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

Side by Side Diff: components/policy/core/common/policy_test_utils.h

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years 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 2013 The Chromium Authors. All rights reserved. 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 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_TEST_POLICY_TEST_UTILS_H_ 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_POLICY_TEST_UTILS_H_
6 #define CHROME_BROWSER_POLICY_TEST_POLICY_TEST_UTILS_H_ 6 #define COMPONENTS_POLICY_CORE_COMMON_POLICY_TEST_UTILS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <ostream> 9 #include <ostream>
10 #include <string> 10 #include <string>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "chrome/browser/policy/policy_service.h" 13 #include "components/policy/core/common/policy_details.h"
14 #include "components/policy/core/common/policy_map.h" 14 #include "components/policy/core/common/policy_map.h"
15 #include "components/policy/core/common/policy_service.h"
15 #include "components/policy/core/common/policy_types.h" 16 #include "components/policy/core/common/policy_types.h"
16 #include "policy/policy_constants.h"
17 17
18 namespace policy { 18 namespace policy {
19 19
20 class PolicyBundle; 20 class PolicyBundle;
21 struct PolicyNamespace; 21 struct PolicyNamespace;
22 22
23 // A mapping of policy names to PolicyDetails that can be used to set the 23 // A mapping of policy names to PolicyDetails that can be used to set the
24 // PolicyDetails for test policies. 24 // PolicyDetails for test policies.
25 class PolicyDetailsMap { 25 class PolicyDetailsMap {
26 public: 26 public:
(...skipping 23 matching lines...) Expand all
50 } // namespace policy 50 } // namespace policy
51 51
52 std::ostream& operator<<(std::ostream& os, const policy::PolicyBundle& bundle); 52 std::ostream& operator<<(std::ostream& os, const policy::PolicyBundle& bundle);
53 std::ostream& operator<<(std::ostream& os, policy::PolicyScope scope); 53 std::ostream& operator<<(std::ostream& os, policy::PolicyScope scope);
54 std::ostream& operator<<(std::ostream& os, policy::PolicyLevel level); 54 std::ostream& operator<<(std::ostream& os, policy::PolicyLevel level);
55 std::ostream& operator<<(std::ostream& os, policy::PolicyDomain domain); 55 std::ostream& operator<<(std::ostream& os, policy::PolicyDomain domain);
56 std::ostream& operator<<(std::ostream& os, const policy::PolicyMap& policies); 56 std::ostream& operator<<(std::ostream& os, const policy::PolicyMap& policies);
57 std::ostream& operator<<(std::ostream& os, const policy::PolicyMap::Entry& e); 57 std::ostream& operator<<(std::ostream& os, const policy::PolicyMap::Entry& e);
58 std::ostream& operator<<(std::ostream& os, const policy::PolicyNamespace& ns); 58 std::ostream& operator<<(std::ostream& os, const policy::PolicyNamespace& ns);
59 59
60 #endif // CHROME_BROWSER_POLICY_TEST_POLICY_TEST_UTILS_H_ 60 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698