RTC Toolkit 4.0.1
|
Classes | |
class | FakeClock |
class | FakeOldbIf |
Implementation of a fake of OldbIf for testing. More... | |
class | FakePersistentRepoIf |
Implementation of a fake of PersistentRepoIf for testing. More... | |
class | FakeRedisProvider |
A fake provider that can also be used for external Redis unit testing. More... | |
class | FakeRepositoryIf |
Implementation of an in-memory fake repository for testing. More... | |
class | FakeRepositorySubscriber |
A very simple fake implementation of RepositorySubscriberIf to allow testing the interactions and callbacks over this API. More... | |
class | FakeRuntimeRepoIf |
Implementation of a fake of RuntimeRepoIf for testing. More... | |
class | MockExtRedisBackend |
Mock interface representing the external Redis backend. More... | |
class | MockPersistentRepoIf |
A mock of PersistentRepoIf. More... | |
class | MockRepositoryIf |
A mock of RepositoryIf. More... | |
class | MockRuntimeRepoIf |
A mock of RuntimeRepoIf. More... | |
class | RepositoryIfTestSuite |
A test suite for performing acceptance tests of a RepositoryIf implementation. More... | |
Typedefs | |
using | OldbCreationResult = std::tuple< std::shared_ptr< elt::oldb::CiiOldb >, std::shared_ptr< MockExtRedisBackend >, std::shared_ptr< MockExtRedisBackend > > |
Functions | |
TYPED_TEST_SUITE_P (RepositoryIfTestSuite) | |
TYPED_TEST_P (RepositoryIfTestSuite, DataPointCreationAndDeletion) | |
TYPED_TEST_P (RepositoryIfTestSuite, TypesAreReturnedCorrectly) | |
TYPED_TEST_P (RepositoryIfTestSuite, SizesAreReturnedCorrectly) | |
TYPED_TEST_P (RepositoryIfTestSuite, DataPointWriteAndRead) | |
TYPED_TEST_P (RepositoryIfTestSuite, DataPointExistanceConsistency) | |
REGISTER_TYPED_TEST_SUITE_P (RepositoryIfTestSuite, DataPointCreationAndDeletion, TypesAreReturnedCorrectly, SizesAreReturnedCorrectly, DataPointWriteAndRead, DataPointExistanceConsistency) | |
OldbCreationResult | CreateInMemoryOldbWithExtRedis () |
This function prepares an in-memory OLDB with fake external Redis providers for unit testing. | |
std::shared_ptr< elt::oldb::CiiOldb > | CreateInMemoryOldb () |
This function prepares an in-memory OLDB that is suitable for unit testing. | |
void | DeleteAllConfigDataPoints (const std::string &target_config_storage=elt::oldb::CiiOldbGlobal::CONFIG_STORAGE_CACHE) |
Deletes all configuration datapoints in the CII configuration service. | |
INSTANTIATE_TYPED_TEST_SUITE_P (TestPersistentRepoAdapter, RepositoryIfTestSuite, RepositoryTypes, testing::internal::DefaultNameGenerator) | |
using rtctk::componentFramework::test::OldbCreationResult = typedef std::tuple<std::shared_ptr<elt::oldb::CiiOldb>, std::shared_ptr<MockExtRedisBackend>, std::shared_ptr<MockExtRedisBackend> > |
rtctk::componentFramework::test::INSTANTIATE_TYPED_TEST_SUITE_P | ( | TestPersistentRepoAdapter | , |
RepositoryIfTestSuite | , | ||
RepositoryTypes | , | ||
testing::internal::DefaultNameGenerator | |||
) |
rtctk::componentFramework::test::REGISTER_TYPED_TEST_SUITE_P | ( | RepositoryIfTestSuite | , |
DataPointCreationAndDeletion | , | ||
TypesAreReturnedCorrectly | , | ||
SizesAreReturnedCorrectly | , | ||
DataPointWriteAndRead | , | ||
DataPointExistanceConsistency | |||
) |
rtctk::componentFramework::test::TYPED_TEST_P | ( | RepositoryIfTestSuite | , |
DataPointCreationAndDeletion | |||
) |
rtctk::componentFramework::test::TYPED_TEST_P | ( | RepositoryIfTestSuite | , |
DataPointExistanceConsistency | |||
) |
rtctk::componentFramework::test::TYPED_TEST_P | ( | RepositoryIfTestSuite | , |
DataPointWriteAndRead | |||
) |
rtctk::componentFramework::test::TYPED_TEST_P | ( | RepositoryIfTestSuite | , |
SizesAreReturnedCorrectly | |||
) |
rtctk::componentFramework::test::TYPED_TEST_P | ( | RepositoryIfTestSuite | , |
TypesAreReturnedCorrectly | |||
) |
rtctk::componentFramework::test::TYPED_TEST_SUITE_P | ( | RepositoryIfTestSuite | ) |