Home
last modified time | relevance | path

Searched refs:SecondsToDuration (Results 1 – 3 of 3) sorted by relevance

/third_party/protobuf/src/google/protobuf/util/
Dtime_util_test.cc102 EXPECT_EQ("1s", TimeUtil::ToString(TimeUtil::SecondsToDuration(1))); in TEST()
145 EXPECT_EQ("1s", TimeUtil::ToString(TimeUtil::SecondsToDuration(1))); in TEST()
146 EXPECT_EQ("-1s", TimeUtil::ToString(TimeUtil::SecondsToDuration(-1))); in TEST()
164 EXPECT_EQ(1, TimeUtil::DurationToSeconds(TimeUtil::SecondsToDuration(1))); in TEST()
165 EXPECT_EQ(-1, TimeUtil::DurationToSeconds(TimeUtil::SecondsToDuration(-1))); in TEST()
252 Duration one_second = TimeUtil::SecondsToDuration(1); in TEST()
290 Duration large = TimeUtil::SecondsToDuration(int64{315576000000}) - one_nano; in TEST()
Dtime_util.h116 static Duration SecondsToDuration(int64 seconds);
Dtime_util.cc257 Duration TimeUtil::SecondsToDuration(int64 seconds) { in SecondsToDuration() function in google::protobuf::util::TimeUtil