Lines Matching +full:post +full:- +full:dates
4 * Use of this source code is governed by a BSD-style license
42 EXPECT_GE(-500, TimeDiff(ts_earlier, ts_later)); in TEST()
47 // ts_earlier is earlier than now, so TimeUntil ts_earlier is -ve in TEST()
50 // ts_later likely hasn't happened yet, so TimeSince could be -ve in TEST()
52 EXPECT_GE(TimeSince(ts_later), -500); in TEST()
63 EXPECT_EQ(-ts_diff, rtc::TimeDiff(ts_earlier, ts_later)); in TEST()
81 ts = -2; in TEST_F()
103 ts -= 0x0fffffff; in TEST_F()
145 tm.tm_year = year - 1900; // std::tm is year 1900 based. in TestTmToSeconds()
157 tm.tm_year = 1969 - 1900; in TestTmToSeconds()
160 tm.tm_mon = -1; in TestTmToSeconds()
172 tm.tm_hour = -1; in TestTmToSeconds()
178 tm.tm_min = -1; in TestTmToSeconds()
184 tm.tm_sec = -1; in TestTmToSeconds()
190 EXPECT_EQ(rtc::TmToSeconds(tm), -1); in TestTmToSeconds()
193 // portably test dates until 2038, which is achieved by the % 0x80000000. in TestTmToSeconds()
267 worker->Start(); in TEST()
269 // Post an event that won't be executed for 10 seconds. in TEST()
271 worker->PostDelayedTask( in TEST()
278 Thread::Current()->SleepMs(1000); in TEST()
284 worker->Stop(); in TEST()
291 EXPECT_LT(real_end_time_ms - real_start_time_ms, 10000); in TEST()