summaryrefslogtreecommitdiffstats
path: root/content/browser/mock_resource_context.cc
blob: 2406273c7415c4d565c5b952022e231499755c80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) 2011 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 "base/lazy_instance.h"
#include "net/url_request/url_request_test_util.h"

namespace content {

static base::LazyInstance<MockResourceContext>
    g_mock_resource_context(base::LINKER_INITIALIZED);

MockResourceContext* MockResourceContext::GetInstance() {
  return &g_mock_resource_context.Get();
}

MockResourceContext::MockResourceContext()
    : test_request_context_(new TestURLRequestContext) {
  set_request_context(test_request_context_);
}
MockResourceContext::~MockResourceContext() {}

void MockResourceContext::EnsureInitialized() const {}

}  // namespace content