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

Unified Diff: content/browser/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, 10 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: content/browser/mock_resource_context.cc
diff --git a/content/browser/mock_resource_context.cc b/content/browser/mock_resource_context.cc
deleted file mode 100644
index df31042cc788370170a2ebbbbd055ab1d386cdba..0000000000000000000000000000000000000000
--- a/content/browser/mock_resource_context.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/mock_resource_context.h"
-
-#include "net/url_request/url_request_test_util.h"
-
-namespace content {
-
-MockResourceContext::MockResourceContext()
- : test_request_context_(new TestURLRequestContext),
- media_observer_(NULL) {
-}
-
-MockResourceContext::MockResourceContext(net::URLRequestContext* context)
- : test_request_context_(context),
- media_observer_(NULL) {
-}
-
-MockResourceContext::~MockResourceContext() {}
-
-net::HostResolver* MockResourceContext::GetHostResolver() {
- return NULL;
-}
-
-net::URLRequestContext* MockResourceContext::GetRequestContext() {
- return test_request_context_;
-}
-
-MediaObserver* MockResourceContext::GetMediaObserver() {
- return media_observer_;
-}
-
-} // namespace content
« no previous file with comments | « content/browser/mock_resource_context.h ('k') | content/browser/renderer_host/media/audio_renderer_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698