Lines Matching refs:master_
92 master_.reset(new VisitedLinkMaster(&listener_, history_service_,
95 return master_->Init();
101 if (master_.get())
102 master_.reset(NULL);
126 master_->DebugValidate();
129 int used_count = master_->GetUsedCount();
135 master_->shared_memory()->ShareToProcess(
143 found = master_->IsVisited(cur);
151 found = master_->IsVisited(GURL("http://unfound.site/"));
156 master_->DebugValidate();
186 scoped_ptr<VisitedLinkMaster> master_;
198 master_->AddURL(TestURL(i));
217 master_->AddFingerprint(kFingerprint0, false); // @14
218 master_->AddFingerprint(kFingerprint1, false); // @15
219 master_->AddFingerprint(kFingerprint2, false); // @16
220 master_->AddFingerprint(kFingerprint3, false); // @0
221 master_->AddFingerprint(kFingerprint4, false); // @1
225 EXPECT_EQ(kFingerprint3, master_->hash_table_[0]);
226 master_->DeleteFingerprint(kFingerprint3, false);
228 EXPECT_EQ(zero_fingerprint, master_->hash_table_[1]);
229 EXPECT_NE(zero_fingerprint, master_->hash_table_[0]);
232 master_->DeleteFingerprint(kFingerprint0, false);
233 master_->DeleteFingerprint(kFingerprint1, false);
234 master_->DeleteFingerprint(kFingerprint2, false);
235 master_->DeleteFingerprint(kFingerprint4, false);
237 EXPECT_EQ(0, master_->used_items_);
239 EXPECT_EQ(zero_fingerprint, master_->hash_table_[i]) <<
252 master_->AddURL(TestURL(i));
259 master_->AddURL(url);
263 master_->DeleteURLs(urls_to_delete);
264 master_->DebugValidate();
276 master_->shared_memory()->ShareToProcess(
283 master_->AddURL(TestURL(i));
284 ASSERT_EQ(i + 1, master_->GetUsedCount());
286 master_->DebugValidate();
293 master_->DeleteAllURLs();
294 EXPECT_EQ(0, master_->GetUsedCount());
296 EXPECT_FALSE(master_->IsVisited(TestURL(i)));
308 master_->DebugValidate();
309 EXPECT_EQ(0, master_->GetUsedCount());
311 EXPECT_FALSE(master_->IsVisited(TestURL(i)));
325 master_->shared_memory()->ShareToProcess(
330 int32 used_count = master_->GetUsedCount();
334 master_->AddURL(TestURL(i));
335 used_count = master_->GetUsedCount();
342 master_->GetUsageStatistics(&table_size, &table);
343 used_count = master_->GetUsedCount();
358 master_->DebugValidate();
388 master_->AddURL(TestURL(i));
391 master_->AddURL(TestURL(g_test_count));
394 master_->DeleteURLs(deleted_urls);
401 master_->set_rebuild_complete_task(new MessageLoop::QuitTask);
408 EXPECT_FALSE(master_->IsVisited(TestURL(g_test_count)));
419 master_->AddURL(TestURL(i));
422 master_->set_rebuild_complete_task(new MessageLoop::QuitTask);
426 int used_count = master_->GetUsedCount();
436 master_->AddURL(TestURL(i));
437 ASSERT_EQ(i + 1, master_->GetUsedCount());
443 master_->DeleteURLs(deleted_urls);
445 master_->DeleteAllURLs();