Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(542)

Unified Diff: mock_http_fetcher.cc

Issue 6677146: AU: OmahaRequestAction: allow to be skipped. (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mock_http_fetcher.h ('k') | omaha_request_action.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « mock_http_fetcher.h ('k') | omaha_request_action.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698