Home | History | Annotate | Download | only in browser

Lines Matching defs:tracker

34   MockBackgroundPageTracker tracker;
35 EXPECT_EQ(0, tracker.GetBackgroundPageCount());
36 EXPECT_EQ(0, tracker.GetUnacknowledgedBackgroundPageCount());
40 MockBackgroundPageTracker tracker;
41 EXPECT_EQ(0, tracker.GetBackgroundPageCount());
42 EXPECT_EQ(0, tracker.GetUnacknowledgedBackgroundPageCount());
45 tracker.OnBackgroundPageLoaded(app1);
46 EXPECT_EQ(1, tracker.GetBackgroundPageCount());
47 EXPECT_EQ(1, tracker.GetUnacknowledgedBackgroundPageCount());
48 tracker.OnBackgroundPageLoaded(app1);
49 EXPECT_EQ(1, tracker.GetBackgroundPageCount());
50 EXPECT_EQ(1, tracker.GetUnacknowledgedBackgroundPageCount());
51 tracker.OnBackgroundPageLoaded(app2);
52 EXPECT_EQ(2, tracker.GetBackgroundPageCount());
53 EXPECT_EQ(2, tracker.GetUnacknowledgedBackgroundPageCount());
55 tracker.OnExtensionUnloaded(app1);
56 EXPECT_EQ(1, tracker.GetBackgroundPageCount());
57 EXPECT_EQ(1, tracker.GetUnacknowledgedBackgroundPageCount());
59 tracker.OnExtensionUnloaded(app2);
60 EXPECT_EQ(0, tracker.GetBackgroundPageCount());
61 EXPECT_EQ(0, tracker.GetUnacknowledgedBackgroundPageCount());
65 MockBackgroundPageTracker tracker;
66 EXPECT_EQ(0, tracker.GetBackgroundPageCount());
67 EXPECT_EQ(0, tracker.GetUnacknowledgedBackgroundPageCount());
69 tracker.OnBackgroundPageLoaded(app1);
70 EXPECT_EQ(1, tracker.GetBackgroundPageCount());
71 EXPECT_EQ(1, tracker.GetUnacknowledgedBackgroundPageCount());
72 tracker.AcknowledgeBackgroundPages();
73 EXPECT_EQ(1, tracker.GetBackgroundPageCount());
74 EXPECT_EQ(0, tracker.GetUnacknowledgedBackgroundPageCount());
75 tracker.OnBackgroundPageLoaded(app1);
76 EXPECT_EQ(1, tracker.GetBackgroundPageCount());
77 EXPECT_EQ(0, tracker.GetUnacknowledgedBackgroundPageCount());
104 MockBackgroundPageTracker tracker;
110 tracker.OnBackgroundPageLoaded(app1);
113 tracker.OnBackgroundPageLoaded(app1);
116 tracker.OnBackgroundPageLoaded(app2);
119 tracker.AcknowledgeBackgroundPages();
121 tracker.OnBackgroundPageLoaded(app1);
123 tracker.OnBackgroundPageLoaded(app3);