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

Side by Side Diff: chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc

Issue 8387011: Chrome proxy refactoring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/memory/ref_counted.h" 6 #include "base/memory/ref_counted.h"
7 #include "base/message_loop_proxy.h" 7 #include "base/message_loop_proxy.h"
8 #include "base/synchronization/waitable_event.h" 8 #include "base/synchronization/waitable_event.h"
9 #include "base/threading/thread.h" 9 #include "base/threading/thread.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 const GURL& url, 81 const GURL& url,
82 const net::URLRequestStatus& status, 82 const net::URLRequestStatus& status,
83 int response_code, 83 int response_code,
84 const net::ResponseCookies& cookies, 84 const net::ResponseCookies& cookies,
85 const std::string& data); 85 const std::string& data);
86 86
87 virtual void OnRequestAuthError() { 87 virtual void OnRequestAuthError() {
88 ADD_FAILURE(); 88 ADD_FAILURE();
89 } 89 }
90 90
91 virtual std::string GetAuthHeader() {
92 return std::string();
93 }
94
91 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy() { 95 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy() {
92 return io_message_loop_proxy_; 96 return io_message_loop_proxy_;
93 } 97 }
94 98
95 protected: 99 protected:
96 virtual void SetUp() { 100 virtual void SetUp() {
97 testing::Test::SetUp(); 101 testing::Test::SetUp();
98 102
99 io_message_loop_proxy_ = base::MessageLoopProxy::current(); 103 io_message_loop_proxy_ = base::MessageLoopProxy::current();
100 } 104 }
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 manager->OverrideEntryForTests(url, entry); 357 manager->OverrideEntryForTests(url, entry);
354 358
355 CreateFetcher(url, 11); 359 CreateFetcher(url, 11);
356 360
357 MessageLoop::current()->Run(); 361 MessageLoop::current()->Run();
358 362
359 net::URLRequestThrottlerManager::GetInstance()->EraseEntryForTests(url); 363 net::URLRequestThrottlerManager::GetInstance()->EraseEntryForTests(url);
360 } 364 }
361 365
362 } // namespace. 366 } // namespace.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698