Home
last modified time | relevance | path

Searched refs:POLICY_DOMAIN_CHROME (Results 1 – 25 of 49) sorted by relevance

12

/external/chromium_org/components/policy/core/common/
Dpolicy_service_impl_unittest.cc51 &bundle->Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())); in AddTestPolicies()
159 PolicyNamespace(POLICY_DOMAIN_CHROME, std::string()), expected)); in TEST_F()
164 policy_service_->AddObserver(POLICY_DOMAIN_CHROME, &observer); in TEST_F()
176 EXPECT_CALL(observer, OnPolicyUpdated(PolicyNamespace(POLICY_DOMAIN_CHROME, in TEST_F()
188 PolicyNamespace(POLICY_DOMAIN_CHROME, std::string()), expectedCurrent)); in TEST_F()
196 EXPECT_CALL(observer, OnPolicyUpdated(PolicyNamespace(POLICY_DOMAIN_CHROME, in TEST_F()
207 EXPECT_CALL(observer, OnPolicyUpdated(PolicyNamespace(POLICY_DOMAIN_CHROME, in TEST_F()
221 EXPECT_CALL(observer, OnPolicyUpdated(PolicyNamespace(POLICY_DOMAIN_CHROME, in TEST_F()
233 PolicyNamespace(POLICY_DOMAIN_CHROME, std::string()), expectedCurrent)); in TEST_F()
235 policy_service_->RemoveObserver(POLICY_DOMAIN_CHROME, &observer); in TEST_F()
[all …]
Dpolicy_bundle_unittest.cc73 PolicyNamespace(POLICY_DOMAIN_CHROME, std::string()))); in TEST()
78 EXPECT_TRUE(bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, in TEST()
83 EXPECT_EQ(POLICY_DOMAIN_CHROME, it->first.domain); in TEST()
102 PolicyNamespace(POLICY_DOMAIN_CHROME, std::string()))); in TEST()
110 EXPECT_TRUE(bundle0.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, in TEST()
119 EXPECT_TRUE(bundle1.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, in TEST()
127 EXPECT_TRUE(bundle0.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, in TEST()
144 bundle0.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in TEST()
154 bundle1.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in TEST()
164 bundle2.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in TEST()
[all …]
Dschema_map_unittest.cc72 EXPECT_FALSE(map->GetComponents(POLICY_DOMAIN_CHROME)); in TEST_F()
74 EXPECT_FALSE(map->GetSchema(PolicyNamespace(POLICY_DOMAIN_CHROME, ""))); in TEST_F()
87 domain_map[POLICY_DOMAIN_CHROME] = component_map; in TEST_F()
103 PolicyNamespace(POLICY_DOMAIN_CHROME, ""))); in TEST_F()
105 PolicyNamespace(POLICY_DOMAIN_CHROME, "extension-1"))); in TEST_F()
107 PolicyNamespace(POLICY_DOMAIN_CHROME, "legacy-extension"))); in TEST_F()
140 PolicyNamespace chrome_ns(POLICY_DOMAIN_CHROME, ""); in TEST_F()
252 PolicyNamespace chrome_ns(POLICY_DOMAIN_CHROME, ""); in TEST_F()
283 map[POLICY_DOMAIN_CHROME][""] = Schema(); in TEST_F()
285 map[POLICY_DOMAIN_CHROME][""] = Schema(); in TEST_F()
[all …]
Dforwarding_policy_provider_unittest.cc49 EXPECT_CALL(mock_provider_, IsInitializationComplete(POLICY_DOMAIN_CHROME)) in TEST_F()
52 forwarding_provider_.IsInitializationComplete(POLICY_DOMAIN_CHROME)); in TEST_F()
61 const PolicyNamespace chrome_ns(POLICY_DOMAIN_CHROME, ""); in TEST_F()
87 schema_registry_.SetReady(POLICY_DOMAIN_CHROME); in TEST_F()
100 bundle->Get(PolicyNamespace(POLICY_DOMAIN_CHROME, "")).CopyFrom(policy_map); in TEST_F()
114 schema_registry_.SetReady(POLICY_DOMAIN_CHROME); in TEST_F()
120 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, "")) in TEST_F()
151 schema_registry_.SetReady(POLICY_DOMAIN_CHROME); in TEST_F()
176 schema_registry_.SetReady(POLICY_DOMAIN_CHROME); in TEST_F()
Dconfiguration_policy_provider_test.cc129 const PolicyNamespace ns(POLICY_DOMAIN_CHROME, ""); in SetUp()
178 const PolicyNamespace chrome_ns(POLICY_DOMAIN_CHROME, ""); in SetUp()
224 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in CheckValue()
340 bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in TEST_P()
399 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in TEST_P()
Dforwarding_policy_provider.cc32 if (domain == POLICY_DOMAIN_CHROME) in IsInitializationComplete()
89 const PolicyNamespace chrome_ns(POLICY_DOMAIN_CHROME, ""); in OnUpdatePolicy()
Dschema_map.cc42 if (it->first.domain == POLICY_DOMAIN_CHROME) in FilterBundle()
75 if (domain->first == POLICY_DOMAIN_CHROME) in HasComponents()
Dpolicy_bundle.cc19 DCHECK(ns.domain != POLICY_DOMAIN_CHROME || ns.component_id.empty()); in Get()
27 DCHECK(ns.domain != POLICY_DOMAIN_CHROME || ns.component_id.empty()); in Get()
Dschema_registry_unittest.cc117 registry.SetReady(POLICY_DOMAIN_CHROME); in TEST()
121 registry.SetReady(POLICY_DOMAIN_CHROME); in TEST()
223 registry1.RegisterComponent(PolicyNamespace(POLICY_DOMAIN_CHROME, ""), in TEST()
Dpolicy_test_utils.cc39 PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())); in PolicyServiceIsEmpty()
98 case policy::POLICY_DOMAIN_CHROME: { in operator <<()
Dpolicy_namespace.h20 POLICY_DOMAIN_CHROME, enumerator
Dmock_configuration_policy_provider.cc25 bundle->Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in UpdateChromePolicy()
/external/chromium_org/chrome/browser/chromeos/policy/
Dnetwork_configuration_updater.cc20 policy_service_->RemoveObserver(POLICY_DOMAIN_CHROME, this); in ~NetworkConfigurationUpdater()
47 if (domain != POLICY_DOMAIN_CHROME) in OnPolicyServiceInitialized()
50 if (policy_service_->IsInitializationComplete(POLICY_DOMAIN_CHROME)) { in OnPolicyServiceInitialized()
52 policy_service_->RemoveObserver(POLICY_DOMAIN_CHROME, this); in OnPolicyServiceInitialized()
68 PolicyNamespace(POLICY_DOMAIN_CHROME, in NetworkConfigurationUpdater()
79 if (policy_service_->IsInitializationComplete(POLICY_DOMAIN_CHROME)) { in Init()
83 policy_service_->AddObserver(POLICY_DOMAIN_CHROME, this); in Init()
111 PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())); in ApplyPolicy()
Dlogin_profile_policy_provider.cc70 device_policy_service_->AddObserver(POLICY_DOMAIN_CHROME, this); in Init()
71 if (device_policy_service_->IsInitializationComplete(POLICY_DOMAIN_CHROME)) in Init()
76 device_policy_service_->RemoveObserver(POLICY_DOMAIN_CHROME, this); in Shutdown()
92 if (ns == PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in OnPolicyUpdated()
98 if (domain == POLICY_DOMAIN_CHROME) in OnPolicyServiceInitialized()
112 const PolicyNamespace chrome_namespaces(POLICY_DOMAIN_CHROME, std::string()); in UpdateFromDevicePolicy()
Duser_cloud_policy_manager_chromeos_unittest.cc116 expected_bundle_.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in SetUp()
172 EXPECT_FALSE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); in CreateManager()
297 EXPECT_TRUE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); in FetchPolicy()
419 EXPECT_FALSE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); in TEST_F()
421 EXPECT_TRUE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); in TEST_F()
443 EXPECT_FALSE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); in TEST_F()
447 EXPECT_TRUE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); in TEST_F()
485 EXPECT_FALSE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); in TEST_F()
489 EXPECT_TRUE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); in TEST_F()
505 EXPECT_FALSE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); in TEST_F()
[all …]
Dproxy_policy_provider_unittest.cc47 EXPECT_TRUE(proxy_provider_.IsInitializationComplete(POLICY_DOMAIN_CHROME)); in TEST_F()
53 bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in TEST_F()
67 bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in TEST_F()
Ddevice_local_account_policy_provider.cc34 if (domain == POLICY_DOMAIN_CHROME) in IsInitializationComplete()
77 bundle->Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in UpdateFromBroker()
Dcloud_external_data_policy_observer.cc65 policy_service_->AddObserver(POLICY_DOMAIN_CHROME, this); in PolicyServiceObserver()
73 PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in PolicyServiceObserver()
82 policy_service_->RemoveObserver(POLICY_DOMAIN_CHROME, this); in ~PolicyServiceObserver()
89 DCHECK(ns == PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())); in OnPolicyUpdated()
Ddevice_cloud_policy_manager_chromeos_unittest.cc153 EXPECT_TRUE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); in TEST_F()
175 EXPECT_TRUE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); in TEST_F()
178 bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in TEST_F()
201 EXPECT_TRUE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); in TEST_F()
254 EXPECT_TRUE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); in SetUp()
280 bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in ExpectSuccessfulEnrollment()
/external/chromium_org/components/policy/core/browser/
Dconfiguration_policy_pref_store.cc45 policy_service_->AddObserver(POLICY_DOMAIN_CHROME, this); in ConfigurationPolicyPrefStore()
62 return policy_service_->IsInitializationComplete(POLICY_DOMAIN_CHROME); in IsInitializationComplete()
80 DCHECK_EQ(POLICY_DOMAIN_CHROME, ns.domain); in OnPolicyUpdated()
87 if (domain == POLICY_DOMAIN_CHROME) { in OnPolicyServiceInitialized()
94 policy_service_->RemoveObserver(POLICY_DOMAIN_CHROME, this); in ~ConfigurationPolicyPrefStore()
116 PolicyNamespace(POLICY_DOMAIN_CHROME, std::string()))); in CreatePreferencesFromPolicies()
/external/chromium_org/chrome/browser/policy/cloud/
Dcloud_policy_browsertest.cc286 PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())))); in IN_PROC_BROWSER_TEST_F()
298 PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())))); in IN_PROC_BROWSER_TEST_F()
303 policy_service->AddObserver(POLICY_DOMAIN_CHROME, this); in IN_PROC_BROWSER_TEST_F()
330 PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())))); in IN_PROC_BROWSER_TEST_F()
332 policy_service->RemoveObserver(POLICY_DOMAIN_CHROME, this); in IN_PROC_BROWSER_TEST_F()
351 PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())))); in IN_PROC_BROWSER_TEST_F()
364 PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())))); in IN_PROC_BROWSER_TEST_F()
378 PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())))); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/chrome/browser/policy/
Dschema_registry_service.cc18 RegisterComponent(PolicyNamespace(POLICY_DOMAIN_CHROME, ""), chrome_schema); in SchemaRegistryService()
19 SetReady(POLICY_DOMAIN_CHROME); in SchemaRegistryService()
/external/chromium_org/components/policy/core/common/cloud/
Dcloud_policy_manager.cc55 if (domain == POLICY_DOMAIN_CHROME) in IsInitializationComplete()
93 if (IsInitializationComplete(POLICY_DOMAIN_CHROME) && in CheckAndPublishPolicy()
96 bundle->Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in CheckAndPublishPolicy()
Dcloud_policy_manager_unittest.cc175 expected_bundle_.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in SetUp()
216 EXPECT_FALSE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); in TEST_F()
228 EXPECT_TRUE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); in TEST_F()
250 EXPECT_TRUE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); in TEST_F()
274 EXPECT_TRUE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); in TEST_F()
283 EXPECT_TRUE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); in TEST_F()
350 EXPECT_TRUE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); in TEST_F()
Duser_cloud_policy_manager_unittest.cc38 expected_bundle_.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) in SetUp()
89 EXPECT_TRUE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); in TEST_F()

12