Home
last modified time | relevance | path

Searched refs:PolicyNamespace (Results 1 – 25 of 32) sorted by relevance

12

/external/libchrome/components/policy/core/common/
Dpolicy_namespace.cc11 PolicyNamespace::PolicyNamespace() {} in PolicyNamespace() function in policy::PolicyNamespace
13 PolicyNamespace::PolicyNamespace(PolicyDomain domain, in PolicyNamespace() function in policy::PolicyNamespace
18 PolicyNamespace::PolicyNamespace(const PolicyNamespace& other) in PolicyNamespace() function in policy::PolicyNamespace
22 PolicyNamespace::~PolicyNamespace() {} in ~PolicyNamespace()
24 PolicyNamespace& PolicyNamespace::operator=(const PolicyNamespace& other) { in operator =()
30 bool PolicyNamespace::operator<(const PolicyNamespace& other) const { in operator <()
35 bool PolicyNamespace::operator==(const PolicyNamespace& other) const { in operator ==()
39 bool PolicyNamespace::operator!=(const PolicyNamespace& other) const { in operator !=()
Dpolicy_namespace.h40 struct POLICY_EXPORT PolicyNamespace { struct
41 PolicyNamespace();
42 PolicyNamespace(PolicyDomain domain, const std::string& component_id);
43 PolicyNamespace(const PolicyNamespace& other);
44 ~PolicyNamespace();
46 PolicyNamespace& operator=(const PolicyNamespace& other); argument
47 bool operator<(const PolicyNamespace& other) const;
48 bool operator==(const PolicyNamespace& other) const;
49 bool operator!=(const PolicyNamespace& other) const;
55 typedef std::vector<PolicyNamespace> PolicyNamespaceList; argument
[all …]
Dpolicy_bundle_unittest.cc81 PolicyNamespace(POLICY_DOMAIN_CHROME, std::string()))); in TEST()
86 EXPECT_TRUE(bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, in TEST()
97 EXPECT_TRUE(bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, in TEST()
110 PolicyNamespace(POLICY_DOMAIN_CHROME, std::string()))); in TEST()
112 PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, kExtension0))); in TEST()
118 EXPECT_TRUE(bundle0.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, in TEST()
120 EXPECT_TRUE(bundle0.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, in TEST()
127 EXPECT_TRUE(bundle1.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, in TEST()
129 EXPECT_TRUE(bundle1.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, in TEST()
135 EXPECT_TRUE(bundle0.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, in TEST()
[all …]
Dschema_registry_unittest.cc75 PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, "abc"))); in TEST()
78 registry.RegisterComponent(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, "abc"), in TEST()
85 registry.RegisterComponent(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, "abc"), in TEST()
90 PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, "abc"))); in TEST()
94 PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, "abc")); in TEST()
98 PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, "abc"))); in TEST()
151 registry1->RegisterComponent(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, "abc"), in TEST()
169 combined.RegisterComponent(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, "abc"), in TEST()
175 registry2->RegisterComponent(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, "def"), in TEST()
182 registry1->RegisterComponent(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, "def"), in TEST()
[all …]
Dschema_map_unittest.cc76 EXPECT_FALSE(map->GetSchema(PolicyNamespace(POLICY_DOMAIN_CHROME, ""))); in TEST_F()
105 PolicyNamespace(POLICY_DOMAIN_CHROME, ""))); in TEST_F()
107 PolicyNamespace(POLICY_DOMAIN_CHROME, "extension-1"))); in TEST_F()
109 PolicyNamespace(POLICY_DOMAIN_CHROME, "legacy-extension"))); in TEST_F()
111 PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, ""))); in TEST_F()
113 PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, "extension-3"))); in TEST_F()
116 map->GetSchema(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, "extension-1")); in TEST_F()
121 PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, "legacy-extension")); in TEST_F()
142 PolicyNamespace chrome_ns(POLICY_DOMAIN_CHROME, ""); in TEST_F()
149 PolicyNamespace another_extension_ns(POLICY_DOMAIN_EXTENSIONS, "xyz"); in TEST_F()
[all …]
Dpolicy_service_impl_unittest.cc56 &bundle->Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())); in AddTestPolicies()
63 &bundle->Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, kExtension)); in AddTestPolicies()
79 void OnPolicyUpdated(const PolicyNamespace&, in OnPolicyUpdated() argument
138 bool VerifyPolicies(const PolicyNamespace& ns, in VerifyPolicies()
168 PolicyNamespace(POLICY_DOMAIN_CHROME, std::string()), expected)); in TEST_F()
188 EXPECT_CALL(observer, OnPolicyUpdated(PolicyNamespace(POLICY_DOMAIN_CHROME, in TEST_F()
200 PolicyNamespace(POLICY_DOMAIN_CHROME, std::string()), expectedCurrent)); in TEST_F()
210 EXPECT_CALL(observer, OnPolicyUpdated(PolicyNamespace(POLICY_DOMAIN_CHROME, in TEST_F()
221 EXPECT_CALL(observer, OnPolicyUpdated(PolicyNamespace(POLICY_DOMAIN_CHROME, in TEST_F()
237 EXPECT_CALL(observer, OnPolicyUpdated(PolicyNamespace(POLICY_DOMAIN_CHROME, in TEST_F()
[all …]
Dpolicy_service.h34 virtual void OnPolicyUpdated(const PolicyNamespace& ns,
55 virtual const PolicyMap& GetPolicies(const PolicyNamespace& ns) const = 0;
89 const PolicyNamespace& ns);
100 void OnPolicyUpdated(const PolicyNamespace& ns,
108 PolicyNamespace ns_;
Dconfiguration_policy_provider_test.cc133 const PolicyNamespace ns(POLICY_DOMAIN_CHROME, ""); in SetUp()
141 bool PolicyTestBase::RegisterSchema(const PolicyNamespace& ns, in RegisterSchema()
187 const PolicyNamespace chrome_ns(POLICY_DOMAIN_CHROME, ""); in SetUp()
193 PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, in SetUp()
197 PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, in SetUp()
201 PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, in SetUp()
234 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in CheckValue()
348 bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in TEST_P()
404 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in TEST_P()
411 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, in TEST_P()
[all …]
Dschema_registry_tracking_policy_provider_unittest.cc86 const PolicyNamespace chrome_ns(POLICY_DOMAIN_CHROME, ""); in TEST_F()
94 delegate_bundle->Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, "xyz")) in TEST_F()
127 bundle->Get(PolicyNamespace(POLICY_DOMAIN_CHROME, "")).CopyFrom(policy_map); in TEST_F()
128 bundle->Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, "xyz")) in TEST_F()
136 PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, "xyz"), CreateTestSchema()); in TEST_F()
147 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, "")) in TEST_F()
158 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, "xyz")) in TEST_F()
166 PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, "xyz"), CreateTestSchema()); in TEST_F()
204 const PolicyNamespace ns(POLICY_DOMAIN_EXTENSIONS, "xyz"); in TEST_F()
Dpolicy_bundle.h22 using MapType = std::map<PolicyNamespace, std::unique_ptr<PolicyMap>>;
30 PolicyMap& Get(const PolicyNamespace& ns);
31 const PolicyMap& Get(const PolicyNamespace& ns) const;
Dschema_registry.h62 void RegisterComponent(const PolicyNamespace& ns,
69 virtual void UnregisterComponent(const PolicyNamespace& ns);
120 void UnregisterComponent(const PolicyNamespace& ns) override;
151 void UnregisterComponent(const PolicyNamespace& ns) override;
Dmock_policy_service.h18 MOCK_METHOD3(OnPolicyUpdated, void(const PolicyNamespace&,
32 MOCK_CONST_METHOD1(GetPolicies, const PolicyMap&(const PolicyNamespace&));
Dschema_map.cc31 const Schema* SchemaMap::GetSchema(const PolicyNamespace& ns) const { in GetSchema()
41 const PolicyNamespace& ns = bundle_item.first; in FilterBundle()
111 const PolicyNamespace ns(domain, component_id); in GetNamespacesNotInOther()
Dpolicy_service.cc12 const PolicyNamespace& ns) in PolicyChangeRegistrar()
28 void PolicyChangeRegistrar::OnPolicyUpdated(const PolicyNamespace& ns, in OnPolicyUpdated()
Dschema_registry.cc30 void SchemaRegistry::RegisterComponent(const PolicyNamespace& ns, in RegisterComponent()
55 void SchemaRegistry::UnregisterComponent(const PolicyNamespace& ns) { in UnregisterComponent()
158 void CombinedSchemaRegistry::UnregisterComponent(const PolicyNamespace& ns) { in UnregisterComponent()
244 void ForwardingSchemaRegistry::UnregisterComponent(const PolicyNamespace& ns) { in UnregisterComponent()
Dpolicy_service_impl.h44 const PolicyMap& GetPolicies(const PolicyNamespace& ns) const override;
56 void NotifyNamespaceUpdated(const PolicyNamespace& ns,
Dpolicy_test_utils.h22 struct PolicyNamespace;
67 std::ostream& operator<<(std::ostream& os, const policy::PolicyNamespace& ns);
Dproxy_policy_provider_unittest.cc56 bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in TEST_F()
68 bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in TEST_F()
Dpolicy_bundle.cc17 PolicyMap& PolicyBundle::Get(const PolicyNamespace& ns) { in Get()
25 const PolicyMap& PolicyBundle::Get(const PolicyNamespace& ns) const { in Get()
Dpolicy_service_impl.cc122 const PolicyNamespace& ns) const { in GetPolicies()
175 const PolicyNamespace& ns, in NotifyNamespaceUpdated()
188 const PolicyNamespace chrome_namespace(POLICY_DOMAIN_CHROME, std::string()); in MergeAndTriggerUpdates()
Dpolicy_service_stub.cc21 const PolicyNamespace& ns) const { in GetPolicies()
Dpolicy_service_stub.h29 const PolicyNamespace& ns) const override;
Dmock_configuration_policy_provider.cc26 bundle->Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in UpdateChromePolicy()
Dpolicy_test_utils.cc46 PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())); in PolicyServiceIsEmpty()
207 std::ostream& operator<<(std::ostream& os, const policy::PolicyNamespace& ns) { in operator <<()
Dschema_map.h39 const Schema* GetSchema(const PolicyNamespace& ns) const;

12