Home
last modified time | relevance | path

Searched refs:PolicyBundle (Results 1 – 25 of 29) sorted by relevance

12

/external/libchrome/components/policy/core/common/
Dpolicy_bundle.cc11 PolicyBundle::PolicyBundle() {} in PolicyBundle() function in policy::PolicyBundle
13 PolicyBundle::~PolicyBundle() { in ~PolicyBundle()
17 PolicyMap& PolicyBundle::Get(const PolicyNamespace& ns) { in Get()
25 const PolicyMap& PolicyBundle::Get(const PolicyNamespace& ns) const { in Get()
31 void PolicyBundle::Swap(PolicyBundle* other) { in Swap()
35 void PolicyBundle::CopyFrom(const PolicyBundle& other) { in CopyFrom()
42 void PolicyBundle::MergeFrom(const PolicyBundle& other) { in MergeFrom()
75 bool PolicyBundle::Equals(const PolicyBundle& other) const { in Equals()
100 void PolicyBundle::Clear() { in Clear()
Dpolicy_bundle.h20 class POLICY_EXPORT PolicyBundle {
26 PolicyBundle();
27 virtual ~PolicyBundle();
34 void Swap(PolicyBundle* other);
37 void CopyFrom(const PolicyBundle& other);
45 void MergeFrom(const PolicyBundle& other);
48 bool Equals(const PolicyBundle& other) const;
69 DISALLOW_COPY_AND_ASSIGN(PolicyBundle);
Dproxy_policy_provider_unittest.cc39 static std::unique_ptr<PolicyBundle> CopyBundle(const PolicyBundle& bundle) { in CopyBundle()
40 std::unique_ptr<PolicyBundle> copy(new PolicyBundle()); in CopyBundle()
51 EXPECT_TRUE(PolicyBundle().Equals(proxy_provider_.policies())); in TEST_F()
55 PolicyBundle bundle; in TEST_F()
78 EXPECT_TRUE(PolicyBundle().Equals(proxy_provider_.policies())); in TEST_F()
98 std::unique_ptr<PolicyBundle>(new PolicyBundle())); in TEST_F()
Dproxy_policy_provider.cc29 UpdatePolicy(std::unique_ptr<PolicyBundle>(new PolicyBundle())); in SetDelegate()
51 std::unique_ptr<PolicyBundle> bundle(new PolicyBundle()); in RefreshPolicies()
60 std::unique_ptr<PolicyBundle> bundle(new PolicyBundle()); in OnUpdatePolicy()
Dasync_policy_provider_unittest.cc31 void SetPolicy(PolicyBundle* bundle, in SetPolicy()
50 std::unique_ptr<PolicyBundle> Load() override;
52 MOCK_METHOD0(MockLoad, const PolicyBundle*());
66 std::unique_ptr<PolicyBundle> MockPolicyLoader::Load() { in Load()
67 std::unique_ptr<PolicyBundle> bundle; in Load()
68 const PolicyBundle* loaded = MockLoad(); in Load()
70 bundle.reset(new PolicyBundle()); in Load()
88 PolicyBundle initial_bundle_;
130 PolicyBundle refreshed_bundle; in TEST_F()
145 PolicyBundle refreshed_bundle; in TEST_F()
[all …]
Dschema_registry_tracking_policy_provider_unittest.cc79 const PolicyBundle empty_bundle; in TEST_F()
85 PolicyBundle bundle; in TEST_F()
92 std::unique_ptr<PolicyBundle> delegate_bundle(new PolicyBundle); in TEST_F()
126 std::unique_ptr<PolicyBundle> bundle(new PolicyBundle); in TEST_F()
146 PolicyBundle expected_bundle; in TEST_F()
210 PolicyBundle platform_policy; in TEST_F()
214 std::unique_ptr<PolicyBundle> copy(new PolicyBundle); in TEST_F()
226 const PolicyBundle empty; in TEST_F()
236 copy.reset(new PolicyBundle); in TEST_F()
Dfake_async_policy_loader.cc18 std::unique_ptr<PolicyBundle> FakeAsyncPolicyLoader::Load() { in Load()
19 std::unique_ptr<PolicyBundle> result(new PolicyBundle()); in Load()
28 void FakeAsyncPolicyLoader::SetPolicies(const PolicyBundle& policy_bundle) { in SetPolicies()
Dpolicy_bundle_unittest.cc70 bool IsEmpty(const PolicyBundle& bundle) { in IsEmpty()
77 PolicyBundle bundle; in TEST()
89 PolicyBundle::const_iterator it = bundle.begin(); in TEST()
106 PolicyBundle bundle0; in TEST()
107 PolicyBundle bundle1; in TEST()
145 PolicyBundle bundle0; in TEST()
146 PolicyBundle bundle1; in TEST()
147 PolicyBundle bundle2; in TEST()
180 PolicyBundle merged; in TEST()
184 PolicyBundle empty_bundle; in TEST()
[all …]
Dmock_configuration_policy_provider.cc25 std::unique_ptr<PolicyBundle> bundle(new PolicyBundle()); in UpdateChromePolicy()
39 std::unique_ptr<PolicyBundle> bundle(new PolicyBundle); in RefreshWithSamePolicies()
Dasync_policy_loader.h24 class PolicyBundle; variable
49 virtual std::unique_ptr<PolicyBundle> Load() = 0;
62 std::unique_ptr<PolicyBundle> InitialLoad(
82 typedef base::Callback<void(std::unique_ptr<PolicyBundle>)> UpdateCallback;
Dfake_async_policy_loader.h32 std::unique_ptr<PolicyBundle> Load() override;
36 void SetPolicies(const PolicyBundle& policy_bundle);
47 PolicyBundle policy_bundle_;
Dasync_policy_provider.h25 class PolicyBundle; variable
50 void OnLoaderReloaded(std::unique_ptr<PolicyBundle> bundle);
59 std::unique_ptr<PolicyBundle> bundle);
Dconfiguration_policy_provider.h56 const PolicyBundle& policies() const { return policy_bundle_; } in policies()
82 void UpdatePolicy(std::unique_ptr<PolicyBundle> bundle);
90 PolicyBundle policy_bundle_;
Dconfig_dir_policy_loader.h36 std::unique_ptr<PolicyBundle> Load() override;
43 PolicyBundle* bundle);
48 PolicyBundle* bundle);
Dconfig_dir_policy_loader_unittest.cc196 std::unique_ptr<PolicyBundle> bundle(loader.Load()); in TEST_F()
198 const PolicyBundle kEmptyBundle; in TEST_F()
210 std::unique_ptr<PolicyBundle> bundle(loader.Load()); in TEST_F()
212 const PolicyBundle kEmptyBundle; in TEST_F()
235 std::unique_ptr<PolicyBundle> bundle(loader.Load()); in TEST_F()
237 PolicyBundle expected_bundle; in TEST_F()
Dpolicy_service_impl.cc189 PolicyBundle bundle; in MergeAndTriggerUpdates()
191 PolicyBundle provided_bundle; in MergeAndTriggerUpdates()
203 PolicyBundle::const_iterator it_new = policy_bundle_.begin(); in MergeAndTriggerUpdates()
204 PolicyBundle::const_iterator end_new = policy_bundle_.end(); in MergeAndTriggerUpdates()
205 PolicyBundle::const_iterator it_old = bundle.begin(); in MergeAndTriggerUpdates()
206 PolicyBundle::const_iterator end_old = bundle.end(); in MergeAndTriggerUpdates()
Dconfig_dir_policy_loader.cc84 std::unique_ptr<PolicyBundle> ConfigDirPolicyLoader::Load() { in Load()
85 std::unique_ptr<PolicyBundle> bundle(new PolicyBundle()); in Load()
126 PolicyBundle* bundle) { in LoadFromPath()
185 PolicyBundle* bundle) { in Merge3rdPartyPolicy()
Dasync_policy_loader.cc53 std::unique_ptr<PolicyBundle> bundle(Load()); in Reload()
68 std::unique_ptr<PolicyBundle> AsyncPolicyLoader::InitialLoad( in InitialLoad()
75 std::unique_ptr<PolicyBundle> bundle(Load()); in InitialLoad()
Dschema_map.h19 class PolicyBundle; variable
43 void FilterBundle(PolicyBundle* bundle) const;
Dpolicy_service_impl_unittest.cc51 void AddTestPolicies(PolicyBundle* bundle, in AddTestPolicies()
273 std::unique_ptr<PolicyBundle> bundle(new PolicyBundle()); in TEST_F()
306 bundle.reset(new PolicyBundle()); in TEST_F()
518 std::unique_ptr<PolicyBundle> bundle0(new PolicyBundle()); in TEST_F()
519 std::unique_ptr<PolicyBundle> bundle1(new PolicyBundle()); in TEST_F()
520 std::unique_ptr<PolicyBundle> bundle2(new PolicyBundle()); in TEST_F()
661 std::unique_ptr<PolicyBundle> policy_bundle(new PolicyBundle()); in TEST_F()
Dpolicy_test_utils.h21 class PolicyBundle; variable
61 std::ostream& operator<<(std::ostream& os, const policy::PolicyBundle& bundle);
Dschema_registry_tracking_policy_provider.cc85 std::unique_ptr<PolicyBundle> bundle(new PolicyBundle()); in OnUpdatePolicy()
Dconfiguration_policy_provider_test.cc213 const PolicyBundle kEmptyBundle; in SetUp()
233 PolicyBundle expected_bundle; in CheckValue()
246 const PolicyBundle kEmptyBundle; in TEST_P()
328 PolicyBundle bundle; in TEST_P()
403 PolicyBundle expected_bundle; in TEST_P()
Dschema_map_unittest.cc135 PolicyBundle bundle; in TEST_F()
137 const PolicyBundle empty_bundle; in TEST_F()
141 PolicyBundle expected_bundle; in TEST_F()
234 PolicyBundle bundle; in TEST_F()
249 PolicyBundle expected_bundle; in TEST_F()
Dasync_policy_provider.cc113 std::unique_ptr<PolicyBundle> bundle) { in OnLoaderReloaded()
125 std::unique_ptr<PolicyBundle> bundle) { in LoaderUpdateCallback()

12