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

Side by Side Diff: content/public/test/mock_resource_context.cc

Issue 10826311: Move the corresponding cc files from content\test to be alongside their headers in content\public\t… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/public/test/mock_resource_context.h" 5 #include "content/public/test/mock_resource_context.h"
6 6
7 #include "net/url_request/url_request_context.h" 7 #include "net/url_request/url_request_context.h"
8 #include "net/url_request/url_request_test_util.h" 8 #include "net/url_request/url_request_test_util.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 MockResourceContext::MockResourceContext() 12 MockResourceContext::MockResourceContext()
13 : test_request_context_(new TestURLRequestContext) { 13 : test_request_context_(new TestURLRequestContext) {
14 } 14 }
15 15
16 MockResourceContext::~MockResourceContext() {} 16 MockResourceContext::~MockResourceContext() {}
17 17
18 net::HostResolver* MockResourceContext::GetHostResolver() { 18 net::HostResolver* MockResourceContext::GetHostResolver() {
19 return NULL; 19 return NULL;
20 } 20 }
21 21
22 net::URLRequestContext* MockResourceContext::GetRequestContext() { 22 net::URLRequestContext* MockResourceContext::GetRequestContext() {
23 return test_request_context_.get(); 23 return test_request_context_.get();
24 } 24 }
25 25
26 } // namespace content 26 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/mock_render_thread.cc ('k') | content/public/test/render_view_fake_resources_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698