Lines Matching refs:counter
496 Counter counter(Counter::CountAndDisarmNotifyFunction); in TEST() local
497 ASSERT_EQ(0, counter.Value()); in TEST()
499 counter.SetTime(0, 500000000, 1, 0); in TEST()
503 ASSERT_EQ(1, counter.Value()); in TEST()
507 Counter counter(Counter::CountNotifyFunction); in TEST() local
508 ASSERT_EQ(0, counter.Value()); in TEST()
510 counter.SetTime(0, 1, 0, 10); in TEST()
511 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
512 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
513 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
514 counter.DeleteTimer(); in TEST()
577 Counter counter(Counter::CountNotifyFunction); in TEST() local
578 ASSERT_EQ(0, counter.Value()); in TEST()
580 counter.SetTime(0, 1, 0, 1); in TEST()
581 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
582 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
583 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
585 counter.SetTime(0, 0, 0, 0); in TEST()
588 int value = counter.Value(); in TEST()
592 ASSERT_EQ(value, counter.Value()); in TEST()
597 Counter counter(Counter::CountNotifyFunction); in TEST() local
598 ASSERT_EQ(0, counter.Value()); in TEST()
600 counter.SetTime(0, 1, 0, 1); in TEST()
601 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
602 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
603 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
605 counter.DeleteTimer(); in TEST()
608 int value = counter.Value(); in TEST()
612 ASSERT_EQ(value, counter.Value()); in TEST()