Home
last modified time | relevance | path

Searched refs:dm_protocol (Results 1 – 25 of 38) sorted by relevance

12

/external/chromium_org/components/policy/core/common/cloud/
Ddevice_management_service.cc102 return dm_protocol::kValueUserAffiliationManaged; in UserAffiliationToString()
104 return dm_protocol::kValueUserAffiliationNone; in UserAffiliationToString()
107 return dm_protocol::kValueUserAffiliationNone; in UserAffiliationToString()
113 return dm_protocol::kValueRequestAutoEnrollment; in JobTypeToRequestType()
115 return dm_protocol::kValueRequestRegister; in JobTypeToRequestType()
117 return dm_protocol::kValueRequestPolicy; in JobTypeToRequestType()
119 return dm_protocol::kValueRequestApiAuthorization; in JobTypeToRequestType()
121 return dm_protocol::kValueRequestUnregister; in JobTypeToRequestType()
123 return dm_protocol::kValueRequestUploadCertificate; in JobTypeToRequestType()
352 AddParameter(dm_protocol::kParamOAuthToken, oauth_token); in SetOAuthToken()
[all …]
Dcloud_policy_client_unittest.cc74 policy_ns_key_(dm_protocol::kChromeUserPolicyType, std::string()) { in CloudPolicyClientTest()
85 policy_fetch_request->set_policy_type(dm_protocol::kChromeUserPolicyType); in CloudPolicyClientTest()
137 EXPECT_CALL(service_, StartJob(dm_protocol::kValueRequestRegister, in ExpectRegistration()
149 EXPECT_CALL(service_, StartJob(dm_protocol::kValueRequestPolicy, in ExpectPolicyFetch()
160 EXPECT_CALL(service_, StartJob(dm_protocol::kValueRequestUnregister, in ExpectUnregistration()
170 EXPECT_CALL(service_, StartJob(dm_protocol::kValueRequestUploadCertificate, in ExpectUploadCertificate()
183 policy_data.set_policy_type(dm_protocol::kChromeUserPolicyType); in CreatePolicyData()
226 ExpectPolicyFetch(kDMToken, dm_protocol::kValueUserAffiliationNone); in TEST_F()
243 ExpectPolicyFetch(kDMToken, dm_protocol::kValueUserAffiliationNone); in TEST_F()
298 EXPECT_CALL(service_, StartJob(dm_protocol::kValueRequestRegister, in TEST_F()
[all …]
Dmock_device_management_service.cc33 service_->StartJob(ExtractParameter(dm_protocol::kParamRequest), in Run()
35 ExtractParameter(dm_protocol::kParamOAuthToken), in Run()
37 ExtractParameter(dm_protocol::kParamUserAffiliation), in Run()
38 ExtractParameter(dm_protocol::kParamDeviceID), in Run()
Dcloud_policy_constants.cc13 namespace dm_protocol { namespace
58 return dm_protocol::kChromeUserPolicyType; in GetChromeUserPolicyType()
Ddevice_management_service_unittest.cc132 fetch_request->set_policy_type(dm_protocol::kChromeUserPolicyType); in StartPolicyFetchJob()
381 EXPECT_TRUE(query_params.Check(dm_protocol::kParamRequest, request_type)); in CheckURLAndQueryParams()
382 EXPECT_TRUE(query_params.Check(dm_protocol::kParamDeviceID, device_id)); in CheckURLAndQueryParams()
383 EXPECT_TRUE(query_params.Check(dm_protocol::kParamDeviceType, in CheckURLAndQueryParams()
384 dm_protocol::kValueDeviceType)); in CheckURLAndQueryParams()
385 EXPECT_TRUE(query_params.Check(dm_protocol::kParamAppType, in CheckURLAndQueryParams()
386 dm_protocol::kValueAppType)); in CheckURLAndQueryParams()
410 dm_protocol::kValueRequestRegister, in TEST_F()
437 dm_protocol::kValueRequestApiAuthorization, in TEST_F()
470 dm_protocol::kValueRequestUnregister, in TEST_F()
Dcomponent_cloud_policy_store_unittest.cc81 dm_protocol::kChromeExtensionPolicyType); in SetUp()
142 builder_.policy_data().set_policy_type(dm_protocol::kChromeUserPolicyType); in TEST_F()
215 builder_.policy_data().set_policy_type(dm_protocol::kChromeUserPolicyType); in TEST_F()
221 dm_protocol::kChromeExtensionPolicyType); in TEST_F()
Dpolicy_builder.cc225 policy_data().set_policy_type(dm_protocol::kChromeUserPolicyType); in TypedPolicyBuilder()
235 policy_data().set_policy_type(dm_protocol::kChromeExtensionPolicyType); in TypedPolicyBuilder()
Dcloud_policy_manager_unittest.cc79 PolicyNamespaceKey(dm_protocol::kChromeUserPolicyType, std::string()), in CreateProvider()
144 dm_protocol::kChromeUserPolicyType, in TestCloudPolicyManager()
169 : policy_ns_key_(dm_protocol::kChromeUserPolicyType, std::string()) {} in CloudPolicyManagerTest()
Dcloud_policy_constants.h16 namespace dm_protocol {
Dcomponent_cloud_policy_service_unittest.cc132 dm_protocol::kChromeExtensionPolicyType); in SetUp()
366 client_->SetPolicy(PolicyNamespaceKey(dm_protocol::kChromeExtensionPolicyType, in TEST_F()
455 client_->SetPolicy(PolicyNamespaceKey(dm_protocol::kChromeExtensionPolicyType, in TEST_F()
Dcloud_policy_core_unittest.cc24 : core_(PolicyNamespaceKey(dm_protocol::kChromeUserPolicyType, in CloudPolicyCoreTest()
Dcloud_policy_service_unittest.cc35 : policy_ns_key_(dm_protocol::kChromeUserPolicyType, std::string()), in CloudPolicyServiceTest()
/external/chromium_org/chrome/browser/policy/test/
Dlocal_policy_test_server.cc113 types->AppendString(dm_protocol::kChromeDevicePolicyType); in RegisterClient()
114 types->AppendString(dm_protocol::kChromeUserPolicyType); in RegisterClient()
115 types->AppendString(dm_protocol::kChromePublicAccountPolicyType); in RegisterClient()
116 types->AppendString(dm_protocol::kChromeExtensionPolicyType); in RegisterClient()
/external/chromium_org/chrome/browser/policy/cloud/
Dcomponent_cloud_policy_browsertest.cc117 dm_protocol::kChromeExtensionPolicyType, kTestExtension, kTestPolicy)); in SetUpInProcessBrowserTestFixture()
248 dm_protocol::kChromeExtensionPolicyType, kTestExtension, kTestPolicy2)); in IN_PROC_BROWSER_TEST_F()
267 dm_protocol::kChromeExtensionPolicyType, kTestExtension2, kTestPolicy2)); in IN_PROC_BROWSER_TEST_F()
Dcloud_policy_browsertest.cc93 kEmptyPolicy, dm_protocol::kChromeUserPolicyType, GetTestUser()); in GetEmptyPolicy()
118 dm_protocol::kChromeUserPolicyType, in GetTestPolicy()
/external/chromium_org/chrome/browser/chromeos/policy/
Ddevice_policy_builder.cc17 policy_data().set_policy_type(dm_protocol::kChromeDevicePolicyType); in TypedPolicyBuilder()
Denrollment_handler_chromeos.cc70 dm_protocol::kChromeDevicePolicyType, std::string())); in EnrollmentHandlerChromeOS()
97 PolicyNamespaceKey(dm_protocol::kChromeDevicePolicyType, std::string())); in OnPolicyFetched()
116 validator->ValidatePolicyType(dm_protocol::kChromeDevicePolicyType); in OnPolicyFetched()
Ddevice_local_account_policy_service_unittest.cc170 dm_protocol::kChromePublicAccountPolicyType); in SetUp()
275 dm_protocol::kChromeUserPolicyType); in TEST_F()
325 dm_protocol::kChromeUserPolicyType); in TEST_F()
425 StartJob(dm_protocol::kValueRequestPolicy, in TEST_F()
428 dm_protocol::kValueUserAffiliationManaged, in TEST_F()
439 EXPECT_EQ(dm_protocol::kChromePublicAccountPolicyType, in TEST_F()
Ddevice_cloud_policy_store_chromeos.cc101 validator->ValidatePolicyType(dm_protocol::kChromeDevicePolicyType); in CreateValidator()
Ddevice_local_account_policy_store.cc182 validator->ValidatePolicyType(dm_protocol::kChromePublicAccountPolicyType); in Validate()
Ddevice_local_account_browsertest.cc348 dm_protocol::kChromePublicAccountPolicyType); in InitializePolicy()
365 dm_protocol::kChromePublicAccountPolicyType, kAccountId1, in UploadDeviceLocalAccountPolicy()
383 test_server_.UpdatePolicy(dm_protocol::kChromeDevicePolicyType, in AddPublicSessionToDevicePolicy()
512 test_server_.UpdatePolicy(dm_protocol::kChromeDevicePolicyType, std::string(), in IN_PROC_BROWSER_TEST_F()
Duser_cloud_policy_manager_chromeos.cc78 PolicyNamespaceKey(dm_protocol::kChromeUserPolicyType, std::string()), in UserCloudPolicyManagerChromeOS()
Ddevice_cloud_policy_manager_chromeos.cc101 PolicyNamespaceKey(dm_protocol::kChromeDevicePolicyType, in DeviceCloudPolicyManagerChromeOS()
/external/chromium_org/chrome/browser/chromeos/settings/
Dsession_manager_operation.cc183 validator->ValidatePolicyType(policy::dm_protocol::kChromeDevicePolicyType); in ValidateDeviceSettings()
285 policy.set_policy_type(policy::dm_protocol::kChromeDevicePolicyType); in AssembleAndSignPolicy()
Dsession_manager_operation_unittest.cc262 validator->ValidatePolicyType(policy::dm_protocol::kChromeDevicePolicyType); in TEST_F()
275 EXPECT_EQ(policy::dm_protocol::kChromeDevicePolicyType, in TEST_F()

12