/external/libchrome/components/policy/core/common/ |
D | policy_namespace.cc | 11 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 !=()
|
D | policy_namespace.h | 40 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 …]
|
D | policy_bundle_unittest.cc | 81 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 …]
|
D | schema_registry_unittest.cc | 75 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 …]
|
D | schema_map_unittest.cc | 76 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 …]
|
D | policy_service_impl_unittest.cc | 56 &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 …]
|
D | policy_service.h | 34 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_;
|
D | configuration_policy_provider_test.cc | 133 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 …]
|
D | schema_registry_tracking_policy_provider_unittest.cc | 86 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()
|
D | policy_bundle.h | 22 using MapType = std::map<PolicyNamespace, std::unique_ptr<PolicyMap>>; 30 PolicyMap& Get(const PolicyNamespace& ns); 31 const PolicyMap& Get(const PolicyNamespace& ns) const;
|
D | schema_registry.h | 62 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;
|
D | mock_policy_service.h | 18 MOCK_METHOD3(OnPolicyUpdated, void(const PolicyNamespace&, 32 MOCK_CONST_METHOD1(GetPolicies, const PolicyMap&(const PolicyNamespace&));
|
D | schema_map.cc | 31 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()
|
D | policy_service.cc | 12 const PolicyNamespace& ns) in PolicyChangeRegistrar() 28 void PolicyChangeRegistrar::OnPolicyUpdated(const PolicyNamespace& ns, in OnPolicyUpdated()
|
D | schema_registry.cc | 30 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()
|
D | policy_service_impl.h | 44 const PolicyMap& GetPolicies(const PolicyNamespace& ns) const override; 56 void NotifyNamespaceUpdated(const PolicyNamespace& ns,
|
D | policy_test_utils.h | 22 struct PolicyNamespace; 67 std::ostream& operator<<(std::ostream& os, const policy::PolicyNamespace& ns);
|
D | proxy_policy_provider_unittest.cc | 56 bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in TEST_F() 68 bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in TEST_F()
|
D | policy_bundle.cc | 17 PolicyMap& PolicyBundle::Get(const PolicyNamespace& ns) { in Get() 25 const PolicyMap& PolicyBundle::Get(const PolicyNamespace& ns) const { in Get()
|
D | policy_service_impl.cc | 122 const PolicyNamespace& ns) const { in GetPolicies() 175 const PolicyNamespace& ns, in NotifyNamespaceUpdated() 188 const PolicyNamespace chrome_namespace(POLICY_DOMAIN_CHROME, std::string()); in MergeAndTriggerUpdates()
|
D | policy_service_stub.cc | 21 const PolicyNamespace& ns) const { in GetPolicies()
|
D | policy_service_stub.h | 29 const PolicyNamespace& ns) const override;
|
D | mock_configuration_policy_provider.cc | 26 bundle->Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in UpdateChromePolicy()
|
D | policy_test_utils.cc | 46 PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())); in PolicyServiceIsEmpty() 207 std::ostream& operator<<(std::ostream& os, const policy::PolicyNamespace& ns) { in operator <<()
|
D | schema_map.h | 39 const Schema* GetSchema(const PolicyNamespace& ns) const;
|