1// Copyright 2013 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.
4
5#include "components/policy/core/common/cloud/mock_cloud_external_data_manager.h"
6
7#include "base/callback.h"
8#include "base/memory/weak_ptr.h"
9#include "components/policy/core/common/external_data_fetcher.h"
10#include "net/url_request/url_request_context_getter.h"
11
12namespace policy {
13
14MockCloudExternalDataManager::MockCloudExternalDataManager() {
15}
16
17MockCloudExternalDataManager::~MockCloudExternalDataManager() {
18}
19
20scoped_ptr<ExternalDataFetcher>
21    MockCloudExternalDataManager::CreateExternalDataFetcher(
22        const std::string& policy) {
23  return make_scoped_ptr(new ExternalDataFetcher(weak_factory_.GetWeakPtr(),
24                                                 policy));
25}
26
27}  // namespace policy
28