diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-03-19 11:34:40 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-03-20 11:37:24 +0000 |
commit | 933b542d36266627dd776b516459a5c1610555af (patch) | |
tree | 759b7db5a5e2968ac53874f8c61b6a4a2878808d /tests/auto/core/qwebengineclientcertificatestore/tst_qwebengineclientcertificatestore.cpp | |
parent | f4e041643d5f05330e6495d83f2e583da97a69d7 (diff) |
Remove Entry type from QWebEngineClientCertificateStore
It is now only possible to list contained certificates, which is used
by the existing tests.
Change-Id: I3eada816a05cff2bb9cc5d39125136e9084a1a2f
Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Diffstat (limited to 'tests/auto/core/qwebengineclientcertificatestore/tst_qwebengineclientcertificatestore.cpp')
-rw-r--r-- | tests/auto/core/qwebengineclientcertificatestore/tst_qwebengineclientcertificatestore.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/core/qwebengineclientcertificatestore/tst_qwebengineclientcertificatestore.cpp b/tests/auto/core/qwebengineclientcertificatestore/tst_qwebengineclientcertificatestore.cpp index 03e68c533..6d51bf7af 100644 --- a/tests/auto/core/qwebengineclientcertificatestore/tst_qwebengineclientcertificatestore.cpp +++ b/tests/auto/core/qwebengineclientcertificatestore/tst_qwebengineclientcertificatestore.cpp @@ -77,21 +77,21 @@ void tst_QWebEngineClientCertificateStore::addAndListCertificates() QWebEngineProfile::defaultProfile()->clientCertificateStore()->add(cert, sslKey); QWebEngineProfile::defaultProfile()->clientCertificateStore()->add(certSecond, sslKeySecond); - QCOMPARE(2, QWebEngineProfile::defaultProfile()->clientCertificateStore()->toList().length()); + QCOMPARE(2, QWebEngineProfile::defaultProfile()->clientCertificateStore()->certificates().length()); } void tst_QWebEngineClientCertificateStore::removeAndClearCertificates() { - QCOMPARE(2, QWebEngineProfile::defaultProfile()->clientCertificateStore()->toList().length()); + QCOMPARE(2, QWebEngineProfile::defaultProfile()->clientCertificateStore()->certificates().length()); // Remove one certificate from in-memory store - auto list = QWebEngineProfile::defaultProfile()->clientCertificateStore()->toList(); - QWebEngineProfile::defaultProfile()->clientCertificateStore()->remove(list[0].certificate); - QCOMPARE(1, QWebEngineProfile::defaultProfile()->clientCertificateStore()->toList().length()); + auto list = QWebEngineProfile::defaultProfile()->clientCertificateStore()->certificates(); + QWebEngineProfile::defaultProfile()->clientCertificateStore()->remove(list[0]); + QCOMPARE(1, QWebEngineProfile::defaultProfile()->clientCertificateStore()->certificates().length()); // Remove all certificates in-memory store QWebEngineProfile::defaultProfile()->clientCertificateStore()->clear(); - QCOMPARE(0, QWebEngineProfile::defaultProfile()->clientCertificateStore()->toList().length()); + QCOMPARE(0, QWebEngineProfile::defaultProfile()->clientCertificateStore()->certificates().length()); } QTEST_MAIN(tst_QWebEngineClientCertificateStore) |