Searched refs:FileShare (Results 1 – 7 of 7) sorted by relevance
/system/update_engine/ |
D | mock_p2p_manager.h | 51 ON_CALL(*this, FileShare(testing::_, testing::_)) in MockP2PManager() 52 .WillByDefault(testing::Invoke(&fake_, &FakeP2PManager::FileShare)); in MockP2PManager() 82 MOCK_METHOD2(FileShare, bool(const std::string&, size_t));
|
D | p2p_manager_unittest.cc | 355 EXPECT_TRUE(manager_->FileShare("foo", kP2PTestFileSize)); 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()
|
D | fake_p2p_manager.h | 54 bool FileShare(const std::string& file_id, size_t expected_size) override { in FileShare() function
|
D | p2p_manager.h | 122 virtual bool FileShare(const std::string& file_id, size_t expected_size) = 0;
|
D | p2p_manager.cc | 135 bool FileShare(const string& file_id, size_t expected_size) override; 497 bool P2PManagerImpl::FileShare(const string& file_id, size_t expected_size) { in FileShare() function in chromeos_update_engine::P2PManagerImpl
|
/system/update_engine/payload_consumer/ |
D | download_action_unittest.cc | 655 ASSERT_TRUE(p2p_manager_->FileShare(file_id, data_.length())); in TEST_F() 689 ASSERT_TRUE(p2p_manager_->FileShare(file_id, data_.length())); in TEST_F()
|
D | download_action.cc | 90 if (!p2p_manager->FileShare(p2p_file_id_, payload_->size)) { in SetupP2PSharingFd()
|