Home
last modified time | relevance | path

Searched refs:FileShare (Results 1 – 7 of 7) sorted by relevance

/system/update_engine/
Dmock_p2p_manager.h51 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));
Dp2p_manager_unittest.cc355 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()
Dfake_p2p_manager.h54 bool FileShare(const std::string& file_id, size_t expected_size) override { in FileShare() function
Dp2p_manager.h122 virtual bool FileShare(const std::string& file_id, size_t expected_size) = 0;
Dp2p_manager.cc135 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/
Ddownload_action_unittest.cc655 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()
Ddownload_action.cc90 if (!p2p_manager->FileShare(p2p_file_id_, payload_->size)) { in SetupP2PSharingFd()