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

Unified Diff: omaha_request_action_unittest.cc

Issue 5205002: AU: Manual proxy support (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: missed one fix for review Created 10 years, 1 month 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 | « multi_http_fetcher.h ('k') | proxy_resolver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: omaha_request_action_unittest.cc
diff --git a/omaha_request_action_unittest.cc b/omaha_request_action_unittest.cc
index dd71aabf9342b3f1b8e50344957dc23b0456ac72..8fe24822c16e9d86baad5a3d09cc618ff55a3f3c 100755
--- a/omaha_request_action_unittest.cc
+++ b/omaha_request_action_unittest.cc
@@ -160,7 +160,8 @@ bool TestUpdateCheck(PrefsInterface* prefs,
vector<char>* out_post_data) {
GMainLoop* loop = g_main_loop_new(g_main_context_default(), FALSE);
MockHttpFetcher* fetcher = new MockHttpFetcher(http_response.data(),
- http_response.size());
+ http_response.size(),
+ NULL);
if (fail_http_response_code >= 0) {
fetcher->FailTransfer(fail_http_response_code);
}
@@ -200,7 +201,8 @@ void TestEvent(const OmahaRequestParams& params,
vector<char>* out_post_data) {
GMainLoop* loop = g_main_loop_new(g_main_context_default(), FALSE);
MockHttpFetcher* fetcher = new MockHttpFetcher(http_response.data(),
- http_response.size());
+ http_response.size(),
+ NULL);
NiceMock<PrefsMock> prefs;
OmahaRequestAction action(&prefs, params, event, fetcher);
OmahaRequestActionTestProcessorDelegate delegate;
@@ -267,7 +269,8 @@ TEST(OmahaRequestActionTest, NoOutputPipeTest) {
NiceMock<PrefsMock> prefs;
OmahaRequestAction action(&prefs, kDefaultTestParams, NULL,
new MockHttpFetcher(http_response.data(),
- http_response.size()));
+ http_response.size(),
+ NULL));
OmahaRequestActionTestProcessorDelegate delegate;
delegate.loop_ = loop;
ActionProcessor processor;
@@ -414,7 +417,8 @@ TEST(OmahaRequestActionTest, TerminateTransferTest) {
NiceMock<PrefsMock> prefs;
OmahaRequestAction action(&prefs, kDefaultTestParams, NULL,
new MockHttpFetcher(http_response.data(),
- http_response.size()));
+ http_response.size(),
+ NULL));
TerminateEarlyTestProcessorDelegate delegate;
delegate.loop_ = loop;
ActionProcessor processor;
@@ -599,7 +603,8 @@ TEST(OmahaRequestActionTest, IsEventTest) {
kDefaultTestParams,
NULL,
new MockHttpFetcher(http_response.data(),
- http_response.size()));
+ http_response.size(),
+ NULL));
EXPECT_FALSE(update_check_action.IsEvent());
OmahaRequestAction event_action(
@@ -607,7 +612,8 @@ TEST(OmahaRequestActionTest, IsEventTest) {
kDefaultTestParams,
new OmahaEvent(OmahaEvent::kTypeUpdateComplete),
new MockHttpFetcher(http_response.data(),
- http_response.size()));
+ http_response.size(),
+ NULL));
EXPECT_TRUE(event_action.IsEvent());
}
« no previous file with comments | « multi_http_fetcher.h ('k') | proxy_resolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698