Lines Matching refs:Time
63 const Time<id>::TimePoint expected_time(std::chrono::seconds{2}); in TEST_F()
64 const Time<id>::Accuracy expected_accuracy(std::chrono::milliseconds{50}); in TEST_F()
65 Time<id>::TimePoint saved_time; in TEST_F()
66 Time<id>::Callback callback = in TEST_F()
67 [&saved_time](Time<id>&, Time<id>::TimePoint time) { in TEST_F()
92 Time<id> time(*event, expected_time, expected_accuracy, in TEST_F()
100 EXPECT_EQ(Time<id>::TimePoint(std::chrono::microseconds(2000100)), in TEST_F()
105 EXPECT_EQ(Time<id>::TimePoint(std::chrono::microseconds(2000100)), in TEST_F()
115 const Time<id>::TimePoint expected_time(std::chrono::seconds{2}); in TEST_F()
116 const Time<id>::Accuracy expected_accuracy(std::chrono::milliseconds{50}); in TEST_F()
117 Time<id>::Callback callback = [](Time<id>&, Time<id>::TimePoint) {}; in TEST_F()
123 EXPECT_THROW(Time<id>(*event, expected_time, expected_accuracy, in TEST_F()
133 std::unique_ptr<Time<id>> time;
156 time = std::make_unique<Time<id>>( in SetUp()
157 *event, Time<id>::TimePoint(std::chrono::seconds{2}), in SetUp()
159 [](Time<id>&, Time<id>::TimePoint) {}); in SetUp()
176 auto time2 = std::make_unique<Time<id>>(*time); in TEST_F()
182 Time<id> time3(*time); in TEST_F()
207 time->set_time(Time<id>::TimePoint(std::chrono::seconds{1})); in TEST_F()
214 EXPECT_THROW(time->set_time(Time<id>::TimePoint(std::chrono::seconds{1})), in TEST_F()
222 EXPECT_EQ(Time<id>::TimePoint(std::chrono::microseconds{10}), in TEST_F()