Home
last modified time | relevance | path

Searched refs:EnrollmentStatus (Results 1 – 13 of 13) sorted by relevance

/external/chromium_org/chrome/browser/chromeos/policy/
Denrollment_status_chromeos.cc12 EnrollmentStatus EnrollmentStatus::ForStatus(Status status) { in ForStatus()
13 return EnrollmentStatus(status, DM_STATUS_SUCCESS, net::HTTP_OK, in ForStatus()
19 EnrollmentStatus EnrollmentStatus::ForRegistrationError( in ForRegistrationError()
21 return EnrollmentStatus(STATUS_REGISTRATION_FAILED, client_status, in ForRegistrationError()
27 EnrollmentStatus EnrollmentStatus::ForRobotAuthFetchError( in ForRobotAuthFetchError()
29 return EnrollmentStatus(STATUS_ROBOT_AUTH_FETCH_FAILED, client_status, in ForRobotAuthFetchError()
35 EnrollmentStatus EnrollmentStatus::ForRobotRefreshFetchError(int http_status) { in ForRobotRefreshFetchError()
36 return EnrollmentStatus(STATUS_ROBOT_REFRESH_FETCH_FAILED, DM_STATUS_SUCCESS, in ForRobotRefreshFetchError()
42 EnrollmentStatus EnrollmentStatus::ForFetchError( in ForFetchError()
44 return EnrollmentStatus(STATUS_POLICY_FETCH_FAILED, client_status, in ForFetchError()
[all …]
Denrollment_handler_chromeos.cc99 ReportResult(EnrollmentStatus::ForFetchError( in OnPolicyFetched()
135 ReportResult(EnrollmentStatus::ForStatus( in OnRegistrationStateChanged()
136 EnrollmentStatus::STATUS_REGISTRATION_BAD_MODE)); in OnRegistrationStateChanged()
152 ReportResult(EnrollmentStatus::ForRobotAuthFetchError(client_->status())); in OnClientError()
154 ReportResult(EnrollmentStatus::ForRegistrationError(client_->status())); in OnClientError()
156 ReportResult(EnrollmentStatus::ForFetchError(client_->status())); in OnClientError()
169 ReportResult(EnrollmentStatus::ForStatus(EnrollmentStatus::STATUS_SUCCESS)); in OnStoreLoaded()
175 ReportResult(EnrollmentStatus::ForStoreError(store_->status(), in OnStoreError()
210 ReportResult(EnrollmentStatus::ForValidationError(validator->status())); in PolicyValidated()
264 EnrollmentStatus::ForRobotRefreshFetchError(net::HTTP_BAD_REQUEST)); in OnOAuthError()
[all …]
Denrollment_status_chromeos.h16 class EnrollmentStatus {
35 static EnrollmentStatus ForStatus(Status status);
36 static EnrollmentStatus ForRegistrationError(
38 static EnrollmentStatus ForFetchError(DeviceManagementStatus client_status);
39 static EnrollmentStatus ForRobotAuthFetchError(
41 static EnrollmentStatus ForRobotRefreshFetchError(int http_status);
42 static EnrollmentStatus ForValidationError(
44 static EnrollmentStatus ForStoreError(
57 EnrollmentStatus(Status status,
Ddevice_cloud_policy_manager_chromeos_unittest.cc218 void Done(EnrollmentStatus status) { in Done()
230 status_(EnrollmentStatus::ForStatus(EnrollmentStatus::STATUS_SUCCESS)), in DeviceCloudPolicyManagerChromeOSEnrollmentTest()
264 void ExpectFailedEnrollment(EnrollmentStatus::Status status) { in ExpectFailedEnrollment()
272 EXPECT_EQ(EnrollmentStatus::STATUS_SUCCESS, status_.status()); in ExpectSuccessfulEnrollment()
418 EnrollmentStatus status_;
457 ExpectFailedEnrollment(EnrollmentStatus::STATUS_REGISTRATION_FAILED); in TEST_F()
465 ExpectFailedEnrollment(EnrollmentStatus::STATUS_ROBOT_AUTH_FETCH_FAILED); in TEST_F()
472 ExpectFailedEnrollment(EnrollmentStatus::STATUS_ROBOT_REFRESH_FETCH_FAILED); in TEST_F()
480 ExpectFailedEnrollment(EnrollmentStatus::STATUS_ROBOT_REFRESH_FETCH_FAILED); in TEST_F()
487 ExpectFailedEnrollment(EnrollmentStatus::STATUS_ROBOT_REFRESH_STORE_FAILED); in TEST_F()
[all …]
Ddevice_cloud_policy_manager_chromeos.h46 typedef base::Callback<void(EnrollmentStatus)> EnrollmentCallback;
116 EnrollmentStatus status);
Ddevice_cloud_policy_manager_chromeos.cc272 EnrollmentStatus status) { in EnrollmentCompleted()
273 if (status.status() == EnrollmentStatus::STATUS_SUCCESS) { in EnrollmentCompleted()
Denrollment_handler_chromeos.h143 void ReportResult(EnrollmentStatus status);
/external/chromium_org/chrome/browser/chromeos/login/enrollment/
Denrollment_screen.cc216 policy::EnrollmentStatus status) { in ReportEnrollmentStatus()
217 bool success = status.status() == policy::EnrollmentStatus::STATUS_SUCCESS; in ReportEnrollmentStatus()
222 case policy::EnrollmentStatus::STATUS_SUCCESS: in ReportEnrollmentStatus()
227 case policy::EnrollmentStatus::STATUS_REGISTRATION_FAILED: in ReportEnrollmentStatus()
228 case policy::EnrollmentStatus::STATUS_POLICY_FETCH_FAILED: in ReportEnrollmentStatus()
259 case policy::EnrollmentStatus::STATUS_REGISTRATION_BAD_MODE: in ReportEnrollmentStatus()
262 case policy::EnrollmentStatus::STATUS_LOCK_TIMEOUT: in ReportEnrollmentStatus()
265 case policy::EnrollmentStatus::STATUS_LOCK_WRONG_USER: in ReportEnrollmentStatus()
268 case policy::EnrollmentStatus::STATUS_VALIDATION_FAILED: in ReportEnrollmentStatus()
269 case policy::EnrollmentStatus::STATUS_STORE_ERROR: in ReportEnrollmentStatus()
[all …]
Dmock_enrollment_screen.h40 MOCK_METHOD1(ShowEnrollmentStatus, void(policy::EnrollmentStatus status));
Denrollment_screen_actor.h86 virtual void ShowEnrollmentStatus(policy::EnrollmentStatus status) = 0;
Denrollment_screen.h63 void ReportEnrollmentStatus(policy::EnrollmentStatus status);
/external/chromium_org/chrome/browser/ui/webui/chromeos/login/
Denrollment_screen_handler.cc215 policy::EnrollmentStatus status) { in ShowEnrollmentStatus()
217 case policy::EnrollmentStatus::STATUS_SUCCESS: in ShowEnrollmentStatus()
220 case policy::EnrollmentStatus::STATUS_REGISTRATION_FAILED: in ShowEnrollmentStatus()
240 case policy::EnrollmentStatus::STATUS_ROBOT_AUTH_FETCH_FAILED: in ShowEnrollmentStatus()
243 case policy::EnrollmentStatus::STATUS_ROBOT_REFRESH_FETCH_FAILED: in ShowEnrollmentStatus()
246 case policy::EnrollmentStatus::STATUS_ROBOT_REFRESH_STORE_FAILED: in ShowEnrollmentStatus()
249 case policy::EnrollmentStatus::STATUS_REGISTRATION_BAD_MODE: in ShowEnrollmentStatus()
252 case policy::EnrollmentStatus::STATUS_POLICY_FETCH_FAILED: in ShowEnrollmentStatus()
259 case policy::EnrollmentStatus::STATUS_VALIDATION_FAILED: in ShowEnrollmentStatus()
266 case policy::EnrollmentStatus::STATUS_LOCK_ERROR: in ShowEnrollmentStatus()
[all …]
Denrollment_screen_handler.h52 virtual void ShowEnrollmentStatus(policy::EnrollmentStatus status) OVERRIDE;