Chromium Code Reviews| Index: mock_http_fetcher.cc |
| diff --git a/mock_http_fetcher.cc b/mock_http_fetcher.cc |
| index 1a88b94ef88d3a113d8d4ea36efa48890202b434..dbafa6477a56b46a0d6d42eeaad55f34075092a4 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" |
| +#include "gtest/gtest.h" |
|
petkov
2011/04/04 23:33:28
I thought we were switching these to <>
adlr
2011/04/05 00:20:10
You're right. Changed to <>
|
| + |
| -// This is a mac implementation of HttpFetcher which is useful for testing. |
| +// 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(); |