tests: unit-tests-{core,tools} no longer require a global io_service
BaseFixture is moved to tests/daemon and renamed to GlobalIoFixture Refs: #4528 Change-Id: If9184e9f7f1d6072b0103d3ea3ca6c31a9e505c8
This commit is contained in:
1 parent
b7703adb88
commit
cf7db2fd83
89 files changed
+362
-297
No files matched your search
@@ -26,6 +26,7 @@
|
||||
#include "fw/algorithm.hpp"
|
||||
|
||||
#include "tests/test-common.hpp"
|
||||
#include "tests/daemon/global-io-fixture.hpp"
|
||||
#include "tests/daemon/face/dummy-face.hpp"
|
||||
|
||||
namespace nfd {
|
||||
@@ -35,9 +36,9 @@ namespace tests {
|
||||
using namespace nfd::tests;
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(Fw)
|
||||
BOOST_FIXTURE_TEST_SUITE(TestAlgorithm, BaseFixture)
|
||||
BOOST_FIXTURE_TEST_SUITE(TestAlgorithm, GlobalIoFixture)
|
||||
|
||||
class ScopeControlFixture : public BaseFixture
|
||||
class ScopeControlFixture : public GlobalIoFixture
|
||||
{
|
||||
protected:
|
||||
ScopeControlFixture()
|
||||
@@ -169,7 +170,7 @@ BOOST_AUTO_TEST_CASE(Nonce)
|
||||
BOOST_CHECK_EQUAL(findDuplicateNonce(entry5, 19004, *face2), DUPLICATE_NONCE_NONE);
|
||||
}
|
||||
|
||||
BOOST_FIXTURE_TEST_CASE(HasPendingOutRecords, UnitTestTimeFixture)
|
||||
BOOST_FIXTURE_TEST_CASE(HasPendingOutRecords, GlobalIoTimeFixture)
|
||||
{
|
||||
auto face1 = make_shared<DummyFace>();
|
||||
auto face2 = make_shared<DummyFace>();
|
||||
@@ -204,7 +205,7 @@ BOOST_FIXTURE_TEST_CASE(HasPendingOutRecords, UnitTestTimeFixture)
|
||||
BOOST_CHECK_EQUAL(hasPendingOutRecords(entry), false);
|
||||
}
|
||||
|
||||
BOOST_FIXTURE_TEST_CASE(GetLastOutgoing, UnitTestTimeFixture)
|
||||
BOOST_FIXTURE_TEST_CASE(GetLastOutgoing, GlobalIoTimeFixture)
|
||||
{
|
||||
auto face1 = make_shared<DummyFace>();
|
||||
auto face2 = make_shared<DummyFace>();
|
||||
|
||||
Reference in new issue
Block a user