Content settings: remove some plugin-related code/resources when... there are no...
[chromium-blink-merge.git] / content / public / test / mock_resource_context.cc
blobadbb6b57a39a0aa3b885184a59487be48f5fdf53
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
3 // found in the LICENSE file.
5 #include "content/public/test/mock_resource_context.h"
7 #include "net/url_request/url_request_context.h"
9 namespace content {
11 MockResourceContext::MockResourceContext()
12 : test_request_context_(NULL) {
15 MockResourceContext::MockResourceContext(
16 net::URLRequestContext* test_request_context)
17 : test_request_context_(test_request_context) {
20 MockResourceContext::~MockResourceContext() {}
22 net::HostResolver* MockResourceContext::GetHostResolver() {
23 return NULL;
26 net::URLRequestContext* MockResourceContext::GetRequestContext() {
27 CHECK(test_request_context_);
28 return test_request_context_;
31 } // namespace content