Lines Matching refs:counter
757 Counter counter(Counter::CountAndDisarmNotifyFunction); in TEST() local
758 ASSERT_EQ(0, counter.Value()); in TEST()
760 counter.SetTime(0, 500000000, 1, 0); in TEST()
764 ASSERT_EQ(1, counter.Value()); in TEST()
768 Counter counter(Counter::CountNotifyFunction); in TEST() local
769 ASSERT_EQ(0, counter.Value()); in TEST()
771 counter.SetTime(0, 1, 0, 10); in TEST()
772 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
773 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
774 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
775 counter.DeleteTimer(); in TEST()
858 Counter counter(Counter::CountNotifyFunction); in TEST() local
859 ASSERT_EQ(0, counter.Value()); in TEST()
861 counter.SetTime(0, 1, 0, 1); in TEST()
862 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
863 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
864 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
866 counter.SetTime(0, 0, 0, 0); in TEST()
869 int value = counter.Value(); in TEST()
873 ASSERT_EQ(value, counter.Value()); in TEST()
878 Counter counter(Counter::CountNotifyFunction); in TEST() local
879 ASSERT_EQ(0, counter.Value()); in TEST()
881 counter.SetTime(0, 1, 0, 1); in TEST()
882 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
883 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
884 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
886 counter.DeleteTimer(); in TEST()
889 int value = counter.Value(); in TEST()
893 ASSERT_EQ(value, counter.Value()); in TEST()