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

Unified Diff: chrome_frame/test/test_server_test.cc

Issue 10559036: Added URLRequestContext to constructor for URLRequest. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merged with latest version Created 8 years, 6 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
Index: chrome_frame/test/test_server_test.cc
diff --git a/chrome_frame/test/test_server_test.cc b/chrome_frame/test/test_server_test.cc
index cc52a39899d81d264beae7c2c66349392e82f0bd..f520eba5836f859e6b601623d660960bc6b1612c 100644
--- a/chrome_frame/test/test_server_test.cc
+++ b/chrome_frame/test/test_server_test.cc
@@ -62,9 +62,10 @@ class ScopedInternet {
class TestURLRequest : public net::URLRequest {
public:
- TestURLRequest(const GURL& url, Delegate* delegate)
- : net::URLRequest(url, delegate) {
- set_context(new TestURLRequestContext());
+ TestURLRequest(const GURL& url,
+ Delegate* delegate,
+ TestURLRequestContext* context)
+ : net::URLRequest(url, delegate, context) {
}
};
@@ -79,7 +80,8 @@ class UrlTaskChain {
MessageLoopForIO loop;
- TestURLRequest r(GURL(url_), &delegate_);
+ TestURLRequestContext context;
+ TestURLRequest r(GURL(url_), &delegate_, &context);
r.Start();
EXPECT_TRUE(r.is_pending());

Powered by Google App Engine
This is Rietveld 408576698