summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIevgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>2022-02-21 14:59:33 +0100
committerIevgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>2022-02-24 19:36:26 +0100
commitd0b22762be8b8d2a7c2f09141f3ce77e2fd7bffb (patch)
tree8c805f4d90bfb59842e7f5bba11a8a69f7bafca3
parent1058f053e565dd8182ea0ad0038e7591454e0960 (diff)
tst_qnetworkcookiejar: Remove tests that rely on public suffix database format
This format will be changed by the next commit. Also it is an implimentation detail that can be changed at any time. Task-number: QTBUG-95889 Change-Id: I00b1133078f1035e03e2cd6fae28192de54d2154 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
-rw-r--r--tests/auto/network/access/qnetworkcookiejar/tst_qnetworkcookiejar.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/auto/network/access/qnetworkcookiejar/tst_qnetworkcookiejar.cpp b/tests/auto/network/access/qnetworkcookiejar/tst_qnetworkcookiejar.cpp
index d4e9698ca3..2b50e14e2d 100644
--- a/tests/auto/network/access/qnetworkcookiejar/tst_qnetworkcookiejar.cpp
+++ b/tests/auto/network/access/qnetworkcookiejar/tst_qnetworkcookiejar.cpp
@@ -37,7 +37,6 @@
#include <QtNetwork/QNetworkRequest>
#if QT_CONFIG(topleveldomain)
#include "private/qtldurl_p.h"
-#include "private/qurltlds_p.h"
#endif
class tst_QNetworkCookieJar: public QObject
@@ -479,28 +478,6 @@ void tst_QNetworkCookieJar::effectiveTLDs_data()
QTest::newRow("yes-wildcard5") << "foo.sch.uk" << true;
QTest::newRow("yes-platform.sh") << "eu.platform.sh" << true;
QTest::newRow("no-platform.sh") << "something.platform.sh" << false;
-
- int inFirst = 0; // First group is guaranteed to be in first chunk.
- while (tldIndices[inFirst] < tldChunks[0])
- ++inFirst;
- Q_ASSERT(inFirst < tldCount);
- const char *lastGroupFromFirstChunk = &tldData[0][tldIndices[inFirst - 1]];
- const char *cut = &tldData[0][tldChunks[0]];
- for (const char *entry = lastGroupFromFirstChunk; entry < cut; entry += strlen(entry) + 1)
- QTest::addRow("lastGroupFromFirstChunk: %s", entry) << entry << true;
-
- Q_ASSERT(tldChunkCount > 1); // There are enough TLDs to fill 64K bytes
- // The tldCount + 1 entries in tldIndices are indexed by hash value and some
- // hash cells may be empty: we need to find the last non-empty hash cell.
- int tail = tldCount;
- while (tldIndices[tail - 1] == tldIndices[tail])
- --tail;
- Q_ASSERT(tldIndices[tail] == tldChunks[tldChunkCount - 1]);
- const char *lastGroupFromLastChunk =
- &tldData[tldChunkCount-1][tldIndices[tail - 1] - tldChunks[tldChunkCount - 2]];
- const char *end = &tldData[tldChunkCount-1][tldIndices[tail] - tldChunks[tldChunkCount - 2]];
- for (const char *entry = lastGroupFromLastChunk; entry < end; entry += strlen(entry) + 1)
- QTest::addRow("lastGroupFromLastChunk: %s", entry) << entry << true;
}
void tst_QNetworkCookieJar::effectiveTLDs()