Searched refs:SecondsToDuration (Results 1 – 3 of 3) sorted by relevance
102 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()
116 static Duration SecondsToDuration(int64 seconds);
257 Duration TimeUtil::SecondsToDuration(int64 seconds) { in SecondsToDuration() function in google::protobuf::util::TimeUtil