Lines Matching full:service
66 void SendOpenedNotification(BackgroundContentsService* service) {
70 service->BackgroundContentsOpened(&details);
112 BackgroundContentsService service(&profile, command_line_.get());
117 BackgroundContentsService service(&profile, command_line_.get());
119 EXPECT_FALSE(service.IsTracked(contents));
120 contents->SendOpenedNotification(&service);
121 EXPECT_TRUE(service.IsTracked(contents));
123 EXPECT_FALSE(service.IsTracked(contents));
129 BackgroundContentsService service(&profile, command_line_.get());
137 contents->SendOpenedNotification(&service);
155 BackgroundContentsService service(&profile, command_line_.get());
159 contents->SendOpenedNotification(&service);
174 BackgroundContentsService service(&profile, command_line_.get());
179 contents->SendOpenedNotification(&service);
192 contents->SendOpenedNotification(&service);
203 BackgroundContentsService service(&profile, command_line_.get());
206 EXPECT_EQ(NULL, service.GetAppBackgroundContents(ASCIIToUTF16("appid")));
211 contents->SendOpenedNotification(&service);
212 EXPECT_EQ(contents, service.GetAppBackgroundContents(contents->appid()));
213 contents2->SendOpenedNotification(&service);
214 EXPECT_EQ(contents2.get(), service.GetAppBackgroundContents(
226 service.ShutdownAssociatedBackgroundContents(ASCIIToUTF16("appid"));
227 EXPECT_FALSE(service.IsTracked(contents));
228 EXPECT_EQ(NULL, service.GetAppBackgroundContents(ASCIIToUTF16("appid")));