Lines Matching refs:counter
17 PromoCounter counter(&profile, "test", "test", 2, 2);
18 ASSERT_TRUE(counter.ShouldShow(test_time));
19 ASSERT_TRUE(counter.ShouldShow(test_time + base::TimeDelta::FromHours(2)));
20 ASSERT_FALSE(counter.ShouldShow(test_time + base::TimeDelta::FromDays(4)));
30 PromoCounter counter(&profile, "test", "test", 2, 2);
31 ASSERT_TRUE(counter.ShouldShow(test_time));
35 PromoCounter counter(&profile, "test", "test", 2, 2);
36 ASSERT_TRUE(counter.ShouldShow(test_time));
40 PromoCounter counter(&profile, "test", "test", 2, 2);
41 ASSERT_FALSE(counter.ShouldShow(test_time));
52 PromoCounter counter(&profile, "test", "test", 2, 2);
53 counter.Hide();
54 ASSERT_FALSE(counter.ShouldShow(test_time));
59 PromoCounter counter(&profile, "test", "test", 2, 2);
60 ASSERT_FALSE(counter.ShouldShow(test_time));
71 PromoCounter counter(&profile, "test", "test", 2, 2);
72 ASSERT_TRUE(counter.ShouldShow(test_time));
73 counter.Hide();
74 ASSERT_FALSE(counter.ShouldShow(test_time));
78 PromoCounter counter(&profile, "test", "test", 2, 2);
79 ASSERT_FALSE(counter.ShouldShow(test_time));