Searched refs:FloorToMultiple (Results 1 – 5 of 5) sorted by relevance
/external/cronet/base/time/ |
D | time_unittest.cc | 2145 TEST(TimeDelta, FloorToMultiple) { in TEST() argument 2148 EXPECT_EQ(TimeDelta().FloorToMultiple(interval), TimeDelta()); in TEST() 2149 EXPECT_EQ(Seconds(1).FloorToMultiple(interval), TimeDelta()); in TEST() 2150 EXPECT_EQ(Seconds(9).FloorToMultiple(interval), TimeDelta()); in TEST() 2151 EXPECT_EQ(Seconds(10).FloorToMultiple(interval), Seconds(10)); in TEST() 2152 EXPECT_EQ(Seconds(15).FloorToMultiple(interval), Seconds(10)); in TEST() 2153 EXPECT_EQ(Seconds(20).FloorToMultiple(interval), Seconds(20)); in TEST() 2154 EXPECT_EQ(TimeDelta::Max().FloorToMultiple(interval), TimeDelta::Max()); in TEST() 2155 EXPECT_EQ(Seconds(-1).FloorToMultiple(interval), Seconds(-10)); in TEST() 2156 EXPECT_EQ(Seconds(-9).FloorToMultiple(interval), Seconds(-10)); in TEST() [all …]
|
D | time.cc | 112 TimeDelta TimeDelta::FloorToMultiple(TimeDelta interval) const { in FloorToMultiple() function in base::TimeDelta 130 : (*this + half).FloorToMultiple(interval); in RoundToMultiple()
|
D | time.h | 334 TimeDelta FloorToMultiple(TimeDelta interval) const;
|
/external/cronet/base/allocator/partition_allocator/partition_alloc_base/time/ |
D | time.cc | 95 TimeDelta TimeDelta::FloorToMultiple(TimeDelta interval) const { in FloorToMultiple() function in partition_alloc::internal::base::TimeDelta 113 : (*this + half).FloorToMultiple(interval); in RoundToMultiple()
|
D | time.h | 330 TimeDelta FloorToMultiple(TimeDelta interval) const; in PA_COMPONENT_EXPORT()
|