16#ifndef RTCTK_COMPONENTFRAMEWORK_TEST_RUNTIMEREPOTESTSUITE_HPP
17#define RTCTK_COMPONENTFRAMEWORK_TEST_RUNTIMEREPOTESTSUITE_HPP
25 int initial_value = 0;
28 md[
"timestamp"] = t_start;
33 repo->SendRequest(req).Wait();
35 ASSERT_TRUE(md.
Contains(
"timestamp"));
36 ASSERT_TRUE(md.
Contains(
"sequence_id"));
38 EXPECT_EQ(md[
"timestamp"].Cast<RepositoryIf::Timestamp>(), t_start);
39 EXPECT_EQ(md[
"sequence_id"].Cast<RtcUInt64>(), 1);
47 int initial_value = 0;
51 repo->SendRequest(req).Wait();
53 ASSERT_TRUE(metadata_read.
Contains(
"timestamp"));
54 EXPECT_GT(metadata_read[
"timestamp"].Cast<RepositoryIf::Timestamp>(), t_start);
65 repo->SendRequest(req).Wait();
67 ASSERT_TRUE(metadata_read.
Contains(
"timestamp"));
68 EXPECT_GT(metadata_read[
"timestamp"].Cast<RepositoryIf::Timestamp>(), t_start);
76 int initial_value = 0;
80 repo->SendRequest(req).Wait();
82 ASSERT_TRUE(metadata_read.
Contains(
"sequence_id"));
83 EXPECT_EQ(metadata_read[
"sequence_id"].Cast<RtcUInt64>(), 0);
93 repo->SendRequest(req).Wait();
95 ASSERT_TRUE(metadata_read.
Contains(
"sequence_id"));
96 EXPECT_EQ(metadata_read[
"sequence_id"].Cast<RtcUInt64>(), 1);
105 repo->SendRequest(req).Wait();
107 ASSERT_TRUE(metadata_write.
Contains(
"sequence_id"));
108 EXPECT_EQ(metadata_write[
"sequence_id"].Cast<RtcUInt64>(), 2);
126 repo->SendRequest(req).Wait();
128 ASSERT_EQ(metadata[
"sequence_id"].Cast<RtcUInt64>(), 2);
136 repo->SendRequest(req).Wait();
137 EXPECT_EQ(int_read, 5);
156 repo->SendRequest(req).Wait();
158 ASSERT_EQ(metadata[
"sequence_id"].Cast<RtcUInt64>(), 2);
An object representing one or more asynchronous I/O requests to a repository.
Definition repositoryIf.hpp:634
void WriteDataPoint(const DataPointPath &path, const T &buffer, std::optional< std::reference_wrapper< MetaData > > metadata=std::nullopt, const CallbackType &callback=nullptr)
Definition repositoryIf.ipp:1538
void ReadDataPoint(const DataPointPath &path, T &buffer, std::optional< std::reference_wrapper< MetaData > > metadata=std::nullopt, const CallbackType &callback=nullptr) const
Definition repositoryIf.ipp:1444
void ReadMetaData(const DataPointPath &path, MetaData &metadata, const CallbackType &callback=nullptr) const
Definition repositoryIf.cpp:367
void CreateDataPoint(const DataPointPath &path, const T &initial_value, std::optional< std::reference_wrapper< const MetaData > > metadata=std::nullopt, const CallbackType &callback=nullptr)
Definition repositoryIf.ipp:1385
Clock::time_point Timestamp
Definition repositoryIf.hpp:58
The RtctkException class is the base class for all Rtctk exceptions.
Definition exceptions.hpp:213
Definition fakeClock.cpp:15
TEST_F(Callbacks, CreateDataPointCallback)
Definition repositoryIfTestSuite.hpp:1662
std::uint64_t RtcUInt64
Definition basicTypes.hpp:45
Header file declaring type parameterised tests for RepositoryIf.