Lines Matching refs:service_
49 service_ = new TabRestoreService(profile(), time_factory_);
54 service_ = NULL;
77 service_ = NULL;
78 service_ = new TabRestoreService(profile(), time_factory_);
79 service_->LoadTabsFromLastSession();
117 scoped_refptr<TabRestoreService> service_;
126 service_->CreateHistoricalTab(&controller(), -1);
129 ASSERT_EQ(1U, service_->entries().size());
132 TabRestoreService::Entry* entry = service_->entries().front();
148 service_->CreateHistoricalTab(&controller(), -1);
151 ASSERT_EQ(2U, service_->entries().size());
154 entry = service_->entries().front();
170 service_->CreateHistoricalTab(&controller(), -1);
171 EXPECT_TRUE(service_->entries().empty());
179 service_->CreateHistoricalTab(&controller(), -1);
185 ASSERT_EQ(1U, service_->entries().size());
188 TabRestoreService::Entry* entry = service_->entries().front();
206 service_->CreateHistoricalTab(&controller(), -1);
209 ASSERT_EQ(1U, service_->entries().size());
213 TabRestoreService::Entry* entry = service_->entries().front();
224 ASSERT_EQ(1U, service_->entries().size());
227 entry = service_->entries().front();
247 service_->CreateHistoricalTab(&controller(), -1);
248 ASSERT_EQ(1U, service_->entries().size());
254 ASSERT_EQ(1U, service_->entries().size());
256 const TabRestoreService::Entry* restored_entry = service_->entries().front();
274 service_->CreateHistoricalTab(&controller(), -1);
275 ASSERT_EQ(1U, service_->entries().size());
280 service_->LoadTabsFromLastSession();
283 ASSERT_EQ(1U, service_->entries().size());
292 service_->LoadTabsFromLastSession();
295 ASSERT_EQ(1U, service_->entries().size());
296 TabRestoreService::Entry* entry2 = service_->entries().front();
317 service_->LoadTabsFromLastSession();
320 ASSERT_EQ(0U, service_->entries().size());
331 service_->LoadTabsFromLastSession();
333 ASSERT_EQ(0U, service_->entries().size());
343 service_->CreateHistoricalTab(&controller(), -1);
349 ASSERT_EQ(2U, service_->entries().size());
351 TabRestoreService::Entry* entry = service_->entries().front();
364 entry = *(++service_->entries().begin());
385 service_->CreateHistoricalTab(&controller(), -1);
391 ASSERT_EQ(2U, service_->entries().size());
393 TabRestoreService::Entry* entry = service_->entries().front();
405 entry = *(++service_->entries().begin());
428 service_->CreateHistoricalTab(&controller(), -1);
434 ASSERT_EQ(TabRestoreService::kMaxEntries, service_->entries().size());
437 TabRestoreService::Entry* entry = service_->entries().front();
457 service_->CreateHistoricalTab(&controller(), -1);
460 ASSERT_EQ(1U, service_->entries().size());
463 TabRestoreService::Entry* entry = service_->entries().front();
474 ASSERT_EQ(1U, service_->entries().size());
477 TabRestoreService::Entry* restored_entry = service_->entries().front();