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

Side by Side Diff: chrome/test/base/test_url_request_context_getter.cc

Issue 9562037: Move TestURLRequestContextGetter to url_request_test_util.{h,cc} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change comment Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/base/test_url_request_context_getter.h ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/test/base/test_url_request_context_getter.h"
6
7 #include "content/public/browser/browser_thread.h"
8 #include "net/url_request/url_request_test_util.h"
9
10 using content::BrowserThread;
11
12 TestURLRequestContextGetter::TestURLRequestContextGetter() {}
13
14 TestURLRequestContextGetter::~TestURLRequestContextGetter() {}
15
16 net::URLRequestContext* TestURLRequestContextGetter::GetURLRequestContext() {
17 if (!context_)
18 context_ = new TestURLRequestContext();
19 return context_.get();
20 }
21
22 scoped_refptr<base::MessageLoopProxy>
23 TestURLRequestContextGetter::GetIOMessageLoopProxy() const {
24 return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO);
25 }
OLDNEW
« no previous file with comments | « chrome/test/base/test_url_request_context_getter.h ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698