blob: 8ba8a88348aa933617ddba66acafd9bce18d431d (
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
28
29
30
31
32
33
34
35
36
37
|
// Copyright (c) 2010 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 CHROME_BROWSER_POLICY_MOCK_CONFIGURATION_POLICY_PROVIDER_H_
#define CHROME_BROWSER_POLICY_MOCK_CONFIGURATION_POLICY_PROVIDER_H_
#pragma once
#include <map>
#include <utility>
#include "base/stl_util-inl.h"
#include "chrome/browser/policy/configuration_policy_provider.h"
namespace policy {
// Mock ConfigurationPolicyProvider implementation that supplies canned
// values for polices.
class MockConfigurationPolicyProvider : public ConfigurationPolicyProvider {
public:
MockConfigurationPolicyProvider();
virtual ~MockConfigurationPolicyProvider();
void AddPolicy(ConfigurationPolicyType policy, Value* value);
// ConfigurationPolicyProvider method overrides.
virtual bool Provide(ConfigurationPolicyStoreInterface* store);
private:
typedef std::map<ConfigurationPolicyType, Value*> PolicyMap;
PolicyMap policy_map_;
};
} // namespace policy
#endif // CHROME_BROWSER_POLICY_MOCK_CONFIGURATION_POLICY_PROVIDER_H_
|