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

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: fix include "" vs <> 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..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();
« 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