Home
last modified time | relevance | path

Searched refs:one_second (Results 1 – 2 of 2) sorted by relevance

/external/protobuf/src/google/protobuf/util/
Dtime_util_test.cc252 Duration one_second = TimeUtil::SecondsToDuration(1); in TEST() local
256 Duration a = one_second; in TEST()
257 a += one_second; in TEST()
281 TimeUtil::ToString((one_second - one_nano) * 315576000000LL)); in TEST()
283 TimeUtil::ToString((one_nano - one_second) * 315576000000LL)); in TEST()
285 TimeUtil::ToString((one_second - one_nano) * (-315576000000LL))); in TEST()
316 EXPECT_TRUE(one_nano < one_second); in TEST()
317 EXPECT_FALSE(one_second < one_second); in TEST()
318 EXPECT_FALSE(one_second < one_nano); in TEST()
319 EXPECT_FALSE(-one_nano < -one_second); in TEST()
[all …]
/external/libchrome/base/time/
Dtime_unittest.cc1040 TimeDelta one_second = TimeDelta::FromSeconds(1); in TEST() local
1043 EXPECT_TRUE((large_delta + one_second).is_max()); in TEST()
1044 EXPECT_TRUE(IsMin(large_negative + (-one_second))); in TEST()
1045 EXPECT_TRUE(IsMin(large_negative - one_second)); in TEST()
1046 EXPECT_TRUE((large_delta - (-one_second)).is_max()); in TEST()
1054 delta += one_second; in TEST()
1057 delta += -one_second; in TEST()
1061 delta -= one_second; in TEST()
1064 delta -= -one_second; in TEST()
1088 EXPECT_EQ(one_second, (time_now + one_second) - time_now); in TEST()
[all …]