Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Side by Side Diff: chrome/browser/policy/mock_configuration_policy_reader.h

Issue 9111022: Removed ConfigurationPolicyType and extended PolicyMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_POLICY_MOCK_CONFIGURATION_POLICY_READER_H_ 5 #ifndef CHROME_BROWSER_POLICY_MOCK_CONFIGURATION_POLICY_READER_H_
6 #define CHROME_BROWSER_POLICY_MOCK_CONFIGURATION_POLICY_READER_H_ 6 #define CHROME_BROWSER_POLICY_MOCK_CONFIGURATION_POLICY_READER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/policy/configuration_policy_reader.h" 9 #include "chrome/browser/policy/configuration_policy_reader.h"
10 10
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 13
14 namespace policy { 14 namespace policy {
15 15
16 // Mock ConfigurationPolicyReader implementation. 16 // Mock ConfigurationPolicyReader implementation.
17 class MockConfigurationPolicyReader : public ConfigurationPolicyReader { 17 class MockConfigurationPolicyReader : public ConfigurationPolicyReader {
18 public: 18 public:
19 MockConfigurationPolicyReader(); 19 MockConfigurationPolicyReader();
20 virtual ~MockConfigurationPolicyReader(); 20 virtual ~MockConfigurationPolicyReader();
21 21
22 MOCK_CONST_METHOD1(GetPolicyStatus, 22 MOCK_CONST_METHOD1(GetPolicyStatus, DictionaryValue*(const char* policy));
23 DictionaryValue*(ConfigurationPolicyType policy));
24 }; 23 };
25 24
26 } // namespace policy 25 } // namespace policy
27 26
28 #endif // CHROME_BROWSER_POLICY_MOCK_CONFIGURATION_POLICY_READER_H_ 27 #endif // CHROME_BROWSER_POLICY_MOCK_CONFIGURATION_POLICY_READER_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/mock_configuration_policy_provider.cc ('k') | chrome/browser/policy/network_configuration_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698