blob: ee9a6f1beacc7143fad21cebcebd13be4f180dcd [file] [log] [blame]
// 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/test/mock_resource_context.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_test_util.h"
namespace content {
MockResourceContext::MockResourceContext()
: test_request_context_(new TestURLRequestContext) {
}
MockResourceContext::MockResourceContext(net::URLRequestContext* context)
: test_request_context_(context) {
}
MockResourceContext::~MockResourceContext() {}
net::HostResolver* MockResourceContext::GetHostResolver() {
return NULL;
}
net::URLRequestContext* MockResourceContext::GetRequestContext() {
return test_request_context_;
}
} // namespace content