mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
tests: move Proxy test from testpreferences
Remove Proxy test in testpreferences add the same Proxy tests to testqPrefProxy Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
e198230c83
commit
7acd489891
3 changed files with 40 additions and 29 deletions
|
|
@ -177,35 +177,6 @@ void TestPreferences::testPreferences()
|
|||
TEST(geo->secondTaxonomyCategory(), TC_COUNTRY);
|
||||
TEST(geo->thirdTaxonomyCategory(), TC_NONE);
|
||||
|
||||
auto proxy = qPrefProxy::instance();
|
||||
proxy->set_proxy_type(2);
|
||||
proxy->set_proxy_port(80);
|
||||
proxy->set_proxy_auth(true);
|
||||
proxy->set_proxy_host("localhost");
|
||||
proxy->set_proxy_user("unknown");
|
||||
proxy->set_proxy_pass("secret");
|
||||
|
||||
TEST(proxy->proxy_type(), 2);
|
||||
TEST(proxy->proxy_port(), 80);
|
||||
TEST(proxy->proxy_auth(), true);
|
||||
TEST(proxy->proxy_host(), QStringLiteral("localhost"));
|
||||
TEST(proxy->proxy_user(), QStringLiteral("unknown"));
|
||||
TEST(proxy->proxy_pass(), QStringLiteral("secret"));
|
||||
|
||||
proxy->set_proxy_type(3);
|
||||
proxy->set_proxy_port(8080);
|
||||
proxy->set_proxy_auth(false);
|
||||
proxy->set_proxy_host("127.0.0.1");
|
||||
proxy->set_proxy_user("unknown_1");
|
||||
proxy->set_proxy_pass("secret_1");
|
||||
|
||||
TEST(proxy->proxy_type(), 3);
|
||||
TEST(proxy->proxy_port(), 8080);
|
||||
TEST(proxy->proxy_auth(), false);
|
||||
TEST(proxy->proxy_host(), QStringLiteral("127.0.0.1"));
|
||||
TEST(proxy->proxy_user(), QStringLiteral("unknown_1"));
|
||||
TEST(proxy->proxy_pass(), QStringLiteral("secret_1"));
|
||||
|
||||
auto planner = pref->planner_settings;
|
||||
planner->setLastStop(true);
|
||||
planner->setVerbatimPlan(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue