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

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

Issue 9845033: Move the MediaObserver getter from ResourceContext to ContentBrowserClient, since we only need to s… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix dcheck 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/webrtc_audio_device_test.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/test/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_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 media_observer_(NULL) {
15 } 14 }
16 15
17 MockResourceContext::MockResourceContext(net::URLRequestContext* context) 16 MockResourceContext::MockResourceContext(net::URLRequestContext* context)
18 : test_request_context_(context), 17 : test_request_context_(context) {
19 media_observer_(NULL) {
20 } 18 }
21 19
22 MockResourceContext::~MockResourceContext() {} 20 MockResourceContext::~MockResourceContext() {}
23 21
24 net::HostResolver* MockResourceContext::GetHostResolver() { 22 net::HostResolver* MockResourceContext::GetHostResolver() {
25 return NULL; 23 return NULL;
26 } 24 }
27 25
28 net::URLRequestContext* MockResourceContext::GetRequestContext() { 26 net::URLRequestContext* MockResourceContext::GetRequestContext() {
29 return test_request_context_; 27 return test_request_context_;
30 } 28 }
31 29
32 MediaObserver* MockResourceContext::GetMediaObserver() {
33 return media_observer_;
34 }
35
36 } // namespace content 30 } // namespace content
OLDNEW
« no previous file with comments | « content/test/mock_resource_context.h ('k') | content/test/webrtc_audio_device_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698