Home
last modified time | relevance | path

Searched refs:MockHttpFetcher (Results 1 – 6 of 6) sorted by relevance

/system/update_engine/common/
Dmock_http_fetcher.cc34 MockHttpFetcher::~MockHttpFetcher() { in ~MockHttpFetcher()
39 void MockHttpFetcher::BeginTransfer(const std::string& url) { in BeginTransfer()
53 bool MockHttpFetcher::SendData(bool skip_delivery) { in SendData()
91 base::Bind(&MockHttpFetcher::TimeoutCallback, base::Unretained(this)), in SendData()
97 void MockHttpFetcher::TimeoutCallback() { in TimeoutCallback()
103 base::Bind(&MockHttpFetcher::TimeoutCallback, base::Unretained(this)), in TimeoutCallback()
112 void MockHttpFetcher::TerminateTransfer() { in TerminateTransfer()
121 void MockHttpFetcher::SetHeader(const std::string& header_name, in SetHeader()
126 void MockHttpFetcher::Pause() { in Pause()
133 void MockHttpFetcher::Unpause() { in Unpause()
[all …]
Dmock_http_fetcher.h41 class MockHttpFetcher : public HttpFetcher {
45 MockHttpFetcher(const uint8_t* data, in MockHttpFetcher() function
58 MockHttpFetcher(const char* data, size_t size, ProxyResolver* proxy_resolver) in MockHttpFetcher() function
59 : MockHttpFetcher(reinterpret_cast<const uint8_t*>(data), size, in MockHttpFetcher()
63 ~MockHttpFetcher() override;
148 DISALLOW_COPY_AND_ASSIGN(MockHttpFetcher);
Dhttp_fetcher_unittest.cc244 return new MockHttpFetcher( in NewLargeFetcher()
251 return new MockHttpFetcher("x", 1, proxy_resolver); in NewSmallFetcher()
/system/update_engine/payload_consumer/
Ddownload_action_unittest.cc123 MockHttpFetcher* http_fetcher) { in StartProcessorInRunLoop()
160 MockHttpFetcher* http_fetcher = new MockHttpFetcher(data.data(), in TestWithData()
283 new MockHttpFetcher(data.data(), data.size(), nullptr)); in TestTerminateEarly()
383 new MockHttpFetcher("x", 1, nullptr)); in TEST()
460 http_fetcher_ = new MockHttpFetcher(data_.c_str(), in StartDownload()
492 MockHttpFetcher* http_fetcher_;
/system/update_engine/
Domaha_request_action_unittest.cc316 MockHttpFetcher* fetcher = new MockHttpFetcher(http_response.data(), in TestUpdateCheck()
378 MockHttpFetcher* fetcher = new MockHttpFetcher(http_response.data(), in TestEvent()
852 new MockHttpFetcher(http_response.data(), in TEST_F()
1022 new MockHttpFetcher(http_response.data(), in TEST_F()
1236 new MockHttpFetcher(http_response.data(), in TEST_F()
1248 new MockHttpFetcher(http_response.data(), in TEST_F()
Dupdate_attempter_unittest.cc223 unique_ptr<MockHttpFetcher> fetcher(new MockHttpFetcher("", 0, nullptr)); in TEST_F()
244 unique_ptr<MockHttpFetcher> fetcher(new MockHttpFetcher("", 0, nullptr)); in TEST_F()