Lines Matching refs:manager_
93 manager_.reset(P2PManager::Construct(test_conf_, in SetUp()
116 unique_ptr<P2PManager> manager_; member in chromeos_update_engine::P2PManagerTest
125 EXPECT_FALSE(manager_->IsP2PEnabled()); in TEST_F()
127 EXPECT_FALSE(manager_->IsP2PEnabled()); in TEST_F()
139 EXPECT_TRUE(manager_->IsP2PEnabled()); in TEST_F()
141 EXPECT_FALSE(manager_->IsP2PEnabled()); in TEST_F()
150 manager_.reset(P2PManager::Construct(test_conf_, in TEST_F()
155 EXPECT_EQ(manager_->CountSharedFiles(), 0); in TEST_F()
173 EXPECT_EQ(manager_->CountSharedFiles(), 5); in TEST_F()
175 EXPECT_TRUE(manager_->PerformHousekeeping()); in TEST_F()
193 EXPECT_EQ(manager_->CountSharedFiles(), 3); in TEST_F()
215 manager_.reset(P2PManager::Construct(test_conf_, in TEST_F()
220 EXPECT_EQ(manager_->CountSharedFiles(), 0); in TEST_F()
247 EXPECT_EQ(manager_->CountSharedFiles(), 5); in TEST_F()
249 EXPECT_TRUE(manager_->PerformHousekeeping()); in TEST_F()
267 EXPECT_EQ(manager_->CountSharedFiles(), 3); in TEST_F()
363 EXPECT_TRUE(manager_->FileShare("foo", kP2PTestFileSize)); in TEST_F()
364 EXPECT_EQ(manager_->FileGetPath("foo"), in TEST_F()
372 EXPECT_TRUE(manager_->FileShare("foo", kP2PTestFileSize)); in TEST_F()
375 EXPECT_FALSE(manager_->FileShare("foo", kP2PTestFileSize + 1)); in TEST_F()
383 manager_->FileShare("foo", kP2PTestFileSize); in TEST_F()
384 EXPECT_EQ(manager_->FileGetPath("foo"), in TEST_F()
393 manager_->FileMakeVisible("foo"); in TEST_F()
394 EXPECT_EQ(manager_->FileGetPath("foo"), in TEST_F()
408 EXPECT_EQ(manager_->FileGetPath("foo"), base::FilePath()); in TEST_F()
409 EXPECT_EQ(manager_->FileGetSize("foo"), -1); in TEST_F()
410 EXPECT_EQ(manager_->FileGetExpectedSize("foo"), -1); in TEST_F()
411 EXPECT_FALSE(manager_->FileGetVisible("foo", nullptr)); in TEST_F()
416 EXPECT_EQ(manager_->FileGetPath("foo"), in TEST_F()
418 EXPECT_EQ(manager_->FileGetSize("foo"), 42); in TEST_F()
419 EXPECT_EQ(manager_->FileGetExpectedSize("foo"), 43); in TEST_F()
420 EXPECT_TRUE(manager_->FileGetVisible("foo", &visible)); in TEST_F()
424 EXPECT_EQ(manager_->FileGetPath("bar"), base::FilePath()); in TEST_F()
425 EXPECT_EQ(manager_->FileGetSize("bar"), -1); in TEST_F()
426 EXPECT_EQ(manager_->FileGetExpectedSize("bar"), -1); in TEST_F()
427 EXPECT_FALSE(manager_->FileGetVisible("bar", nullptr)); in TEST_F()
432 EXPECT_EQ(manager_->FileGetPath("bar"), in TEST_F()
434 EXPECT_EQ(manager_->FileGetSize("bar"), 44); in TEST_F()
435 EXPECT_EQ(manager_->FileGetExpectedSize("bar"), 45); in TEST_F()
436 EXPECT_TRUE(manager_->FileGetVisible("bar", &visible)); in TEST_F()
446 EXPECT_TRUE(manager_->EnsureP2PRunning()); in TEST_F()
448 EXPECT_FALSE(manager_->EnsureP2PRunning()); in TEST_F()
451 EXPECT_TRUE(manager_->EnsureP2PRunning()); in TEST_F()
454 EXPECT_FALSE(manager_->EnsureP2PRunning()); in TEST_F()
461 EXPECT_TRUE(manager_->EnsureP2PNotRunning()); in TEST_F()
463 EXPECT_FALSE(manager_->EnsureP2PNotRunning()); in TEST_F()
466 EXPECT_TRUE(manager_->EnsureP2PNotRunning()); in TEST_F()
469 EXPECT_FALSE(manager_->EnsureP2PNotRunning()); in TEST_F()
484 manager_->LookupUrlForFile( in TEST_F()
493 manager_->LookupUrlForFile( in TEST_F()
499 manager_->LookupUrlForFile( in TEST_F()
505 manager_->LookupUrlForFile( in TEST_F()
511 manager_->LookupUrlForFile( in TEST_F()
529 manager_->LookupUrlForFile("foobar", in TEST_F()