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

Unified Diff: content/browser/mock_resource_context.h

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
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | content/browser/mock_resource_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mock_resource_context.h
diff --git a/content/browser/mock_resource_context.h b/content/browser/mock_resource_context.h
deleted file mode 100644
index 417838c3154b5c6fa421e0f7bfb5dbd489a0c110..0000000000000000000000000000000000000000
--- a/content/browser/mock_resource_context.h
+++ /dev/null
@@ -1,42 +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.
-
-#ifndef CONTENT_BROWSER_MOCK_RESOURCE_CONTEXT_H_
-#define CONTENT_BROWSER_MOCK_RESOURCE_CONTEXT_H_
-
-#include "base/compiler_specific.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "content/public/browser/resource_context.h"
-#include "net/url_request/url_request_context.h"
-
-namespace content {
-
-class MockResourceContext : public ResourceContext {
- public:
- MockResourceContext();
- explicit MockResourceContext(net::URLRequestContext* context);
- virtual ~MockResourceContext();
-
- void set_request_context(net::URLRequestContext* context) {
- test_request_context_ = context;
- }
-
- void set_media_observer(MediaObserver* observer) {
- media_observer_ = observer;
- }
-
- // ResourceContext implementation:
- virtual net::HostResolver* GetHostResolver() OVERRIDE;
- virtual net::URLRequestContext* GetRequestContext() OVERRIDE;
- virtual MediaObserver* GetMediaObserver() OVERRIDE;
-
- private:
- scoped_refptr<net::URLRequestContext> test_request_context_;
- MediaObserver* media_observer_;
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_MOCK_RESOURCE_CONTEXT_H_
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | content/browser/mock_resource_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698