Home
last modified time | relevance | path

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

/external/webrtc/api/units/
Dtimestamp_unittest.cc115 const double kPlusInfinity = std::numeric_limits<double>::infinity(); in TEST() local
116 const double kMinusInfinity = -kPlusInfinity; in TEST()
118 EXPECT_EQ(Timestamp::PlusInfinity().seconds<double>(), kPlusInfinity); in TEST()
120 EXPECT_EQ(Timestamp::PlusInfinity().ms<double>(), kPlusInfinity); in TEST()
122 EXPECT_EQ(Timestamp::PlusInfinity().us<double>(), kPlusInfinity); in TEST()
125 EXPECT_TRUE(Timestamp::Seconds(kPlusInfinity).IsPlusInfinity()); in TEST()
127 EXPECT_TRUE(Timestamp::Millis(kPlusInfinity).IsPlusInfinity()); in TEST()
129 EXPECT_TRUE(Timestamp::Micros(kPlusInfinity).IsPlusInfinity()); in TEST()
Dtime_delta_unittest.cc158 const double kPlusInfinity = std::numeric_limits<double>::infinity(); in TEST() local
159 const double kMinusInfinity = -kPlusInfinity; in TEST()
161 EXPECT_EQ(TimeDelta::PlusInfinity().seconds<double>(), kPlusInfinity); in TEST()
163 EXPECT_EQ(TimeDelta::PlusInfinity().ms<double>(), kPlusInfinity); in TEST()
165 EXPECT_EQ(TimeDelta::PlusInfinity().us<double>(), kPlusInfinity); in TEST()
167 EXPECT_EQ(TimeDelta::PlusInfinity().ns<double>(), kPlusInfinity); in TEST()
170 EXPECT_TRUE(TimeDelta::Seconds(kPlusInfinity).IsPlusInfinity()); in TEST()
172 EXPECT_TRUE(TimeDelta::Millis(kPlusInfinity).IsPlusInfinity()); in TEST()
174 EXPECT_TRUE(TimeDelta::Micros(kPlusInfinity).IsPlusInfinity()); in TEST()
/external/webrtc/rtc_base/units/
Dunit_base_unittest.cc178 const double kPlusInfinity = std::numeric_limits<double>::infinity(); in TEST() local
179 const double kMinusInfinity = -kPlusInfinity; in TEST()
181 EXPECT_EQ(TestUnit::PlusInfinity().ToKilo<double>(), kPlusInfinity); in TEST()
183 EXPECT_EQ(TestUnit::PlusInfinity().ToValue<double>(), kPlusInfinity); in TEST()
185 EXPECT_EQ(TestUnit::PlusInfinity().ToMilli<double>(), kPlusInfinity); in TEST()
188 EXPECT_TRUE(TestUnit::FromKilo(kPlusInfinity).IsPlusInfinity()); in TEST()
190 EXPECT_TRUE(TestUnit::FromValue(kPlusInfinity).IsPlusInfinity()); in TEST()