diff options
author | sangwan.kwon <sangwan.kwon@samsung.com> | 2016-05-20 10:11:55 +0900 |
---|---|---|
committer | sangwan.kwon <sangwan.kwon@samsung.com> | 2016-05-20 14:12:01 +0900 |
commit | a43bd5dbc3e73ddedd55b79d7ffc06ac62e1a2fd (patch) | |
tree | b604c78accddd8dbaefdc79d2e18c6e5eba65167 /tests | |
parent | 21fd08ff2804662923e084d3bad9f304af6df8fc (diff) | |
download | cert-checker-a43bd5dbc3e73ddedd55b79d7ffc06ac62e1a2fd.tar.gz cert-checker-a43bd5dbc3e73ddedd55b79d7ffc06ac62e1a2fd.tar.bz2 cert-checker-a43bd5dbc3e73ddedd55b79d7ffc06ac62e1a2fd.zip |
Seperate logic to thread for several client connection
Change-Id: I8424f68e23f32cc8104c9c3987bc2054c6c034ad
Diffstat (limited to 'tests')
-rw-r--r-- | tests/logic_.h | 4 | ||||
-rw-r--r-- | tests/test_logic.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/logic_.h b/tests/logic_.h index 2a14a62..f8dcf95 100644 --- a/tests/logic_.h +++ b/tests/logic_.h @@ -93,9 +93,9 @@ public: { m_logic.run(timeout); } - bool is_gmain_loop_running() + bool is_running() { - return m_logic.is_gmain_loop_running(); + return m_logic.is_running(); } private: diff --git a/tests/test_logic.cpp b/tests/test_logic.cpp index 397b792..56c8290 100644 --- a/tests/test_logic.cpp +++ b/tests/test_logic.cpp @@ -59,10 +59,10 @@ BOOST_AUTO_TEST_CASE(logic_setup) { BOOST_REQUIRE(setup() == NO_ERROR); // double setup - BOOST_REQUIRE(setup() == INTERNAL_ERROR); + BOOST_REQUIRE(setup() == NO_ERROR); // double setup - BOOST_REQUIRE(setup() == INTERNAL_ERROR); + BOOST_REQUIRE(setup() == NO_ERROR); } BOOST_AUTO_TEST_CASE(logic_workflow_mixed) { @@ -466,7 +466,7 @@ BOOST_AUTO_TEST_CASE(logic_workflow_gio_timeout) { // Run gmainloop. run(3); - BOOST_REQUIRE(is_gmain_loop_running() == false); + BOOST_REQUIRE(is_running() == false); } BOOST_AUTO_TEST_SUITE_END() |