Lines Matching refs:manager_

87     manager_.reset(P2PManager::Construct(test_conf_,  in SetUp()
107 unique_ptr<P2PManager> manager_; member in chromeos_update_engine::P2PManagerTest
116 EXPECT_FALSE(manager_->IsP2PEnabled()); in TEST_F()
118 EXPECT_FALSE(manager_->IsP2PEnabled()); in TEST_F()
130 EXPECT_TRUE(manager_->IsP2PEnabled()); in TEST_F()
132 EXPECT_FALSE(manager_->IsP2PEnabled()); in TEST_F()
141 manager_.reset(P2PManager::Construct(test_conf_, in TEST_F()
147 EXPECT_EQ(manager_->CountSharedFiles(), 0); in TEST_F()
165 EXPECT_EQ(manager_->CountSharedFiles(), 5); in TEST_F()
167 EXPECT_TRUE(manager_->PerformHousekeeping()); in TEST_F()
185 EXPECT_EQ(manager_->CountSharedFiles(), 3); in TEST_F()
206 manager_.reset(P2PManager::Construct(test_conf_, in TEST_F()
212 EXPECT_EQ(manager_->CountSharedFiles(), 0); in TEST_F()
239 EXPECT_EQ(manager_->CountSharedFiles(), 5); in TEST_F()
241 EXPECT_TRUE(manager_->PerformHousekeeping()); in TEST_F()
259 EXPECT_EQ(manager_->CountSharedFiles(), 3); in TEST_F()
355 EXPECT_TRUE(manager_->FileShare("foo", kP2PTestFileSize)); in TEST_F()
356 EXPECT_EQ(manager_->FileGetPath("foo"), in TEST_F()
364 EXPECT_TRUE(manager_->FileShare("foo", kP2PTestFileSize)); in TEST_F()
367 EXPECT_FALSE(manager_->FileShare("foo", kP2PTestFileSize + 1)); in TEST_F()
375 manager_->FileShare("foo", kP2PTestFileSize); in TEST_F()
376 EXPECT_EQ(manager_->FileGetPath("foo"), in TEST_F()
385 manager_->FileMakeVisible("foo"); in TEST_F()
386 EXPECT_EQ(manager_->FileGetPath("foo"), in TEST_F()
400 EXPECT_EQ(manager_->FileGetPath("foo"), base::FilePath()); in TEST_F()
401 EXPECT_EQ(manager_->FileGetSize("foo"), -1); in TEST_F()
402 EXPECT_EQ(manager_->FileGetExpectedSize("foo"), -1); in TEST_F()
403 EXPECT_FALSE(manager_->FileGetVisible("foo", nullptr)); in TEST_F()
408 EXPECT_EQ(manager_->FileGetPath("foo"), in TEST_F()
410 EXPECT_EQ(manager_->FileGetSize("foo"), 42); in TEST_F()
411 EXPECT_EQ(manager_->FileGetExpectedSize("foo"), 43); in TEST_F()
412 EXPECT_TRUE(manager_->FileGetVisible("foo", &visible)); in TEST_F()
416 EXPECT_EQ(manager_->FileGetPath("bar"), base::FilePath()); in TEST_F()
417 EXPECT_EQ(manager_->FileGetSize("bar"), -1); in TEST_F()
418 EXPECT_EQ(manager_->FileGetExpectedSize("bar"), -1); in TEST_F()
419 EXPECT_FALSE(manager_->FileGetVisible("bar", nullptr)); in TEST_F()
424 EXPECT_EQ(manager_->FileGetPath("bar"), in TEST_F()
426 EXPECT_EQ(manager_->FileGetSize("bar"), 44); in TEST_F()
427 EXPECT_EQ(manager_->FileGetExpectedSize("bar"), 45); in TEST_F()
428 EXPECT_TRUE(manager_->FileGetVisible("bar", &visible)); in TEST_F()
438 EXPECT_TRUE(manager_->EnsureP2PRunning()); in TEST_F()
440 EXPECT_FALSE(manager_->EnsureP2PRunning()); in TEST_F()
443 EXPECT_TRUE(manager_->EnsureP2PRunning()); in TEST_F()
446 EXPECT_FALSE(manager_->EnsureP2PRunning()); in TEST_F()
453 EXPECT_TRUE(manager_->EnsureP2PNotRunning()); in TEST_F()
455 EXPECT_FALSE(manager_->EnsureP2PNotRunning()); in TEST_F()
458 EXPECT_TRUE(manager_->EnsureP2PNotRunning()); in TEST_F()
461 EXPECT_FALSE(manager_->EnsureP2PNotRunning()); in TEST_F()
476 manager_->LookupUrlForFile( in TEST_F()
485 manager_->LookupUrlForFile( in TEST_F()
491 manager_->LookupUrlForFile( in TEST_F()
497 manager_->LookupUrlForFile( in TEST_F()
503 manager_->LookupUrlForFile( in TEST_F()
521 manager_->LookupUrlForFile("foobar", in TEST_F()