Searched refs:FileShare (Results 1 – 7 of 7) sorted by relevance
/system/update_engine/cros/ |
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 | 363 EXPECT_TRUE(manager_->FileShare("foo", kP2PTestFileSize)); 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()
|
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 | 121 virtual bool FileShare(const std::string& file_id, size_t expected_size) = 0;
|
D | p2p_manager.cc | 134 bool FileShare(const string& file_id, size_t expected_size) override; 492 bool P2PManagerImpl::FileShare(const string& file_id, size_t expected_size) { in FileShare() function in chromeos_update_engine::P2PManagerImpl
|
D | download_action_chromeos_unittest.cc | 643 ASSERT_TRUE(p2p_manager_->FileShare(file_id, data_.length())); in TEST_F() 677 ASSERT_TRUE(p2p_manager_->FileShare(file_id, data_.length())); in TEST_F()
|
D | download_action_chromeos.cc | 87 if (!p2p_manager->FileShare(p2p_file_id_, payload_->size)) { in SetupP2PSharingFd()
|