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

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

Issue 9584023: Move MockResourceContext to content/test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jam review 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 | « content/test/mock_resource_context.h ('k') | content/test/test_browser_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/browser/mock_resource_context.h" 5 #include "content/test/mock_resource_context.h"
6 6
7 #include "net/url_request/url_request_context.h"
7 #include "net/url_request/url_request_test_util.h" 8 #include "net/url_request/url_request_test_util.h"
8 9
9 namespace content { 10 namespace content {
10 11
11 MockResourceContext::MockResourceContext() 12 MockResourceContext::MockResourceContext()
12 : test_request_context_(new TestURLRequestContext), 13 : test_request_context_(new TestURLRequestContext),
13 media_observer_(NULL) { 14 media_observer_(NULL) {
14 } 15 }
15 16
16 MockResourceContext::MockResourceContext(net::URLRequestContext* context) 17 MockResourceContext::MockResourceContext(net::URLRequestContext* context)
17 : test_request_context_(context), 18 : test_request_context_(context),
18 media_observer_(NULL) { 19 media_observer_(NULL) {
19 } 20 }
20 21
21 MockResourceContext::~MockResourceContext() {} 22 MockResourceContext::~MockResourceContext() {}
22 23
23 net::HostResolver* MockResourceContext::GetHostResolver() { 24 net::HostResolver* MockResourceContext::GetHostResolver() {
24 return NULL; 25 return NULL;
25 } 26 }
26 27
27 net::URLRequestContext* MockResourceContext::GetRequestContext() { 28 net::URLRequestContext* MockResourceContext::GetRequestContext() {
28 return test_request_context_; 29 return test_request_context_;
29 } 30 }
30 31
31 MediaObserver* MockResourceContext::GetMediaObserver() { 32 MediaObserver* MockResourceContext::GetMediaObserver() {
32 return media_observer_; 33 return media_observer_;
33 } 34 }
34 35
35 } // namespace content 36 } // namespace content
OLDNEW
« no previous file with comments | « content/test/mock_resource_context.h ('k') | content/test/test_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698