| Index: mock_http_fetcher.cc
|
| diff --git a/mock_http_fetcher.cc b/mock_http_fetcher.cc
|
| index 1a88b94ef88d3a113d8d4ea36efa48890202b434..5452d5d46da70cfae54709b2b29cbf776136bb99 100644
|
| --- a/mock_http_fetcher.cc
|
| +++ b/mock_http_fetcher.cc
|
| @@ -3,10 +3,14 @@
|
| // found in the LICENSE file.
|
|
|
| #include "update_engine/mock_http_fetcher.h"
|
| +
|
| #include <algorithm>
|
| -#include "base/logging.h"
|
|
|
| -// This is a mac implementation of HttpFetcher which is useful for testing.
|
| +#include <base/logging.h>
|
| +#include <gtest/gtest.h>
|
| +
|
| +
|
| +// This is a mock implementation of HttpFetcher which is useful for testing.
|
|
|
| using std::min;
|
|
|
| @@ -17,6 +21,7 @@ MockHttpFetcher::~MockHttpFetcher() {
|
| }
|
|
|
| void MockHttpFetcher::BeginTransfer(const std::string& url) {
|
| + EXPECT_FALSE(never_use_);
|
| if (fail_transfer_ || data_.empty()) {
|
| // No data to send, just notify of completion..
|
| SignalTransferComplete();
|
|
|