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

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

Issue 2000803003: Use std::unique_ptr for base::DictionaryValue and base::ListValue's internal store. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More fixes Created 4 years, 7 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
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 COMPONENTS_POLICY_CORE_COMMON_POLICY_TEST_UTILS_H_ 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_POLICY_TEST_UTILS_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_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>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 }; 45 };
46 46
47 // Returns true if |service| is not serving any policies. Otherwise logs the 47 // Returns true if |service| is not serving any policies. Otherwise logs the
48 // current policies and returns false. 48 // current policies and returns false.
49 bool PolicyServiceIsEmpty(const PolicyService* service); 49 bool PolicyServiceIsEmpty(const PolicyService* service);
50 50
51 #if defined(OS_IOS) || defined(OS_MACOSX) 51 #if defined(OS_IOS) || defined(OS_MACOSX)
52 52
53 // Converts a base::Value to the equivalent CFPropertyListRef. 53 // Converts a base::Value to the equivalent CFPropertyListRef.
54 // The returned value is owned by the caller. 54 // The returned value is owned by the caller.
55 CFPropertyListRef ValueToProperty(const base::Value* value); 55 CFPropertyListRef ValueToProperty(const base::Value& value);
56 56
57 #endif 57 #endif
58 58
59 } // namespace policy 59 } // namespace policy
60 60
61 std::ostream& operator<<(std::ostream& os, const policy::PolicyBundle& bundle); 61 std::ostream& operator<<(std::ostream& os, const policy::PolicyBundle& bundle);
62 std::ostream& operator<<(std::ostream& os, policy::PolicyScope scope); 62 std::ostream& operator<<(std::ostream& os, policy::PolicyScope scope);
63 std::ostream& operator<<(std::ostream& os, policy::PolicyLevel level); 63 std::ostream& operator<<(std::ostream& os, policy::PolicyLevel level);
64 std::ostream& operator<<(std::ostream& os, policy::PolicyDomain domain); 64 std::ostream& operator<<(std::ostream& os, policy::PolicyDomain domain);
65 std::ostream& operator<<(std::ostream& os, const policy::PolicyMap& policies); 65 std::ostream& operator<<(std::ostream& os, const policy::PolicyMap& policies);
66 std::ostream& operator<<(std::ostream& os, const policy::PolicyMap::Entry& e); 66 std::ostream& operator<<(std::ostream& os, const policy::PolicyMap::Entry& e);
67 std::ostream& operator<<(std::ostream& os, const policy::PolicyNamespace& ns); 67 std::ostream& operator<<(std::ostream& os, const policy::PolicyNamespace& ns);
68 68
69 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_TEST_UTILS_H_ 69 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « components/policy/core/common/policy_loader_mac_unittest.cc ('k') | components/policy/core/common/policy_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698