diff options
author | Mikhail Gorbushin <m.gorbushin@corp.mail.ru> | 2019-05-16 18:54:53 +0300 |
---|---|---|
committer | Vlad Mihaylenko <vxmihaylenko@gmail.com> | 2019-05-16 19:03:45 +0300 |
commit | 329cf3e9a28a92d4e0adb532f57eb4ca6d7df66b (patch) | |
tree | c0c5f6258a4e4ce5e709377c58333e7dbb734eb8 /routing | |
parent | 36a8cc7eecf1267044370f59cfe59a2438c5074e (diff) |
[routing] turn off options after tests
Diffstat (limited to 'routing')
-rw-r--r-- | routing/routing_tests/routing_options_tests.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/routing/routing_tests/routing_options_tests.cpp b/routing/routing_tests/routing_options_tests.cpp index 2f2df77bf7..f07443798e 100644 --- a/routing/routing_tests/routing_options_tests.cpp +++ b/routing/routing_tests/routing_options_tests.cpp @@ -11,6 +11,23 @@ namespace { using RoadType = RoutingOptions::RoadType; +class RoutingOptionsTests +{ +public: + RoutingOptionsTests() + { + m_savedOptions = RoutingOptions::LoadCarOptionsFromSettings(); + } + + ~RoutingOptionsTests() + { + RoutingOptions::SaveCarOptionsToSettings(m_savedOptions); + } + +private: + RoutingOptions m_savedOptions; +}; + RoutingOptions CreateOptions(std::vector<RoutingOptions::Road> const & include) { RoutingOptions options; @@ -56,7 +73,7 @@ UNIT_TEST(RoutingOptionTest) Checker({}); } -UNIT_TEST(RoutingOption_GetSetTest) +UNIT_CLASS_TEST(RoutingOptionsTests, GetSetTest) { RoutingOptions options = CreateOptions({RoutingOptions::Road::Toll, RoutingOptions::Road::Motorway, |