Home
last modified time | relevance | path

Searched refs:GoogleServiceAuthError (Results 1 – 25 of 222) sorted by relevance

123456789

/external/chromium_org/google_apis/gaia/
Dgoogle_service_auth_error.cc16 GoogleServiceAuthError::Captcha::Captcha() : image_width(0), image_height(0) { in Captcha()
19 GoogleServiceAuthError::Captcha::Captcha( in Captcha()
26 GoogleServiceAuthError::Captcha::~Captcha() { in ~Captcha()
29 bool GoogleServiceAuthError::Captcha::operator==(const Captcha& b) const { in operator ==()
38 GoogleServiceAuthError::SecondFactor::SecondFactor() : field_length(0) { in SecondFactor()
41 GoogleServiceAuthError::SecondFactor::SecondFactor( in SecondFactor()
48 GoogleServiceAuthError::SecondFactor::~SecondFactor() { in ~SecondFactor()
51 bool GoogleServiceAuthError::SecondFactor::operator==( in operator ==()
59 bool GoogleServiceAuthError::operator==( in operator ==()
60 const GoogleServiceAuthError& b) const { in operator ==()
[all …]
Dgoogle_service_auth_error.h33 class GoogleServiceAuthError {
138 bool operator==(const GoogleServiceAuthError &b) const;
141 explicit GoogleServiceAuthError(State s);
145 static GoogleServiceAuthError FromConnectionError(int error);
151 static GoogleServiceAuthError FromClientLoginCaptchaChallenge(
158 static GoogleServiceAuthError FromServiceError(
163 static GoogleServiceAuthError FromUnexpectedServiceResponse(
169 static GoogleServiceAuthError AuthErrorNone();
187 GoogleServiceAuthError(State s, int error);
190 GoogleServiceAuthError(State state, const std::string& error_message);
[all …]
Dgoogle_service_auth_error_unittest.cc21 void TestSimpleState(GoogleServiceAuthError::State state) { in TestSimpleState()
22 GoogleServiceAuthError error(state); in TestSimpleState()
33 for (int i = GoogleServiceAuthError::NONE; in TEST_F()
34 i <= GoogleServiceAuthError::USER_NOT_SIGNED_UP; ++i) { in TEST_F()
35 TestSimpleState(static_cast<GoogleServiceAuthError::State>(i)); in TEST_F()
40 GoogleServiceAuthError error(GoogleServiceAuthError::AuthErrorNone()); in TEST_F()
47 GoogleServiceAuthError error( in TEST_F()
48 GoogleServiceAuthError::FromConnectionError(net::OK)); in TEST_F()
Doauth2_access_token_fetcher.cc82 static GoogleServiceAuthError CreateAuthError(URLRequestStatus status) { in CreateAuthError()
85 return GoogleServiceAuthError(GoogleServiceAuthError::REQUEST_CANCELED); in CreateAuthError()
89 return GoogleServiceAuthError::FromConnectionError(status.error()); in CreateAuthError()
177 OnGetTokenFailure(GoogleServiceAuthError( in EndGetAccessToken()
178 GoogleServiceAuthError::SERVICE_UNAVAILABLE)); in EndGetAccessToken()
185 OnGetTokenFailure(GoogleServiceAuthError( in EndGetAccessToken()
186 GoogleServiceAuthError::SERVICE_ERROR)); in EndGetAccessToken()
196 GoogleServiceAuthError( in EndGetAccessToken()
197 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS) : in EndGetAccessToken()
198 GoogleServiceAuthError( in EndGetAccessToken()
[all …]
Dgaia_auth_consumer.h12 class GoogleServiceAuthError; variable
65 virtual void OnClientLoginFailure(const GoogleServiceAuthError& error) {} in OnClientLoginFailure()
70 const GoogleServiceAuthError& error) {} in OnIssueAuthTokenFailure()
73 virtual void OnClientOAuthFailure(const GoogleServiceAuthError& error) {} in OnClientOAuthFailure()
78 virtual void OnGetUserInfoFailure(const GoogleServiceAuthError& error) {} in OnGetUserInfoFailure()
81 virtual void OnUberAuthTokenFailure(const GoogleServiceAuthError& error) {} in OnUberAuthTokenFailure()
84 virtual void OnMergeSessionFailure(const GoogleServiceAuthError& error) {} in OnMergeSessionFailure()
87 virtual void OnListAccountsFailure(const GoogleServiceAuthError& error) {} in OnListAccountsFailure()
/external/chromium_org/chrome/browser/signin/
Dsignin_global_error_unittest.cc62 error_provider.SetAuthError(kTestAccountId, GoogleServiceAuthError( in TEST_F()
63 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS)); in TEST_F()
80 GoogleServiceAuthError( in TEST_F()
81 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS)); in TEST_F()
85 GoogleServiceAuthError(GoogleServiceAuthError::ACCOUNT_DISABLED)); in TEST_F()
90 GoogleServiceAuthError::AuthErrorNone()); in TEST_F()
93 GoogleServiceAuthError::AuthErrorNone()); in TEST_F()
107 GoogleServiceAuthError( in TEST_F()
108 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS)); in TEST_F()
111 GoogleServiceAuthError(GoogleServiceAuthError::NONE)); in TEST_F()
[all …]
Dsignin_global_error.cc28 : auth_error_(GoogleServiceAuthError::AuthErrorNone()), profile_(profile) { in SigninGlobalError()
61 GoogleServiceAuthError current_error(GoogleServiceAuthError::AuthErrorNone()); in AuthStatusChanged()
72 if (current_error.state() != GoogleServiceAuthError::NONE && in AuthStatusChanged()
73 current_error.state() != GoogleServiceAuthError::CONNECTION_FAILED) { in AuthStatusChanged()
80 if (auth_error_.state() == GoogleServiceAuthError::NONE) { in AuthStatusChanged()
101 auth_error_.state() == GoogleServiceAuthError::NONE || in MenuItemLabel()
102 auth_error_.state() == GoogleServiceAuthError::CONNECTION_FAILED) { in MenuItemLabel()
114 if (auth_error_.state() != GoogleServiceAuthError::NONE) { in ExecuteMenuItem()
161 case GoogleServiceAuthError::CONNECTION_FAILED: in GetBubbleViewMessages()
162 case GoogleServiceAuthError::NONE: in GetBubbleViewMessages()
[all …]
Dubertoken_fetcher_unittest.cc27 last_error_(GoogleServiceAuthError::AuthErrorNone()), in MockUbertokenConsumer()
37 virtual void OnUbertokenFailure(const GoogleServiceAuthError& error) in OnUbertokenFailure()
45 GoogleServiceAuthError last_error_;
95 GoogleServiceAuthError error(GoogleServiceAuthError::USER_NOT_SIGNED_UP); in TEST_F()
102 GoogleServiceAuthError error(GoogleServiceAuthError::USER_NOT_SIGNED_UP); in TEST_F()
115 GoogleServiceAuthError error(GoogleServiceAuthError::USER_NOT_SIGNED_UP); in TEST_F()
/external/chromium/chrome/common/net/gaia/
Dgoogle_service_auth_error.cc13 GoogleServiceAuthError::Captcha::Captcha( in Captcha()
17 bool GoogleServiceAuthError::operator==( in operator ==()
18 const GoogleServiceAuthError &b) const { in operator ==()
26 GoogleServiceAuthError::GoogleServiceAuthError(State s) in GoogleServiceAuthError() function in GoogleServiceAuthError
36 GoogleServiceAuthError
37 GoogleServiceAuthError::FromConnectionError(int error) { in FromConnectionError()
38 return GoogleServiceAuthError(CONNECTION_FAILED, error); in FromConnectionError()
41 GoogleServiceAuthError GoogleServiceAuthError::FromCaptchaChallenge( in FromCaptchaChallenge()
45 return GoogleServiceAuthError(CAPTCHA_REQUIRED, captcha_token, in FromCaptchaChallenge()
49 GoogleServiceAuthError GoogleServiceAuthError::None() { in None()
[all …]
Dgoogle_service_auth_error_unittest.cc21 void TestSimpleState(GoogleServiceAuthError::State state) { in TestSimpleState()
22 GoogleServiceAuthError error(state); in TestSimpleState()
33 for (int i = GoogleServiceAuthError::NONE; in TEST_F()
34 i <= GoogleServiceAuthError::USER_NOT_SIGNED_UP; ++i) { in TEST_F()
35 TestSimpleState(static_cast<GoogleServiceAuthError::State>(i)); in TEST_F()
40 GoogleServiceAuthError error(GoogleServiceAuthError::None()); in TEST_F()
47 GoogleServiceAuthError error( in TEST_F()
48 GoogleServiceAuthError::FromConnectionError(net::OK)); in TEST_F()
56 GoogleServiceAuthError error( in TEST_F()
57 GoogleServiceAuthError::FromCaptchaChallenge( in TEST_F()
Dgaia_auth_fetcher_unittest.cc122 void(const GoogleServiceAuthError& error));
124 const GoogleServiceAuthError& error));
128 GoogleServiceAuthError expected_error = in TEST_F()
129 GoogleServiceAuthError::FromConnectionError(-101); in TEST_F()
131 GoogleServiceAuthError matching_error = in TEST_F()
132 GoogleServiceAuthError::FromConnectionError(-101); in TEST_F()
136 expected_error = GoogleServiceAuthError::FromConnectionError(6); in TEST_F()
140 expected_error = GoogleServiceAuthError(GoogleServiceAuthError::NONE); in TEST_F()
144 matching_error = GoogleServiceAuthError(GoogleServiceAuthError::NONE); in TEST_F()
153 GoogleServiceAuthError expected_error = in TEST_F()
[all …]
Dgoogle_service_auth_error.h32 class GoogleServiceAuthError {
90 bool operator==(const GoogleServiceAuthError &b) const;
93 explicit GoogleServiceAuthError(State s);
97 static GoogleServiceAuthError FromConnectionError(int error);
100 static GoogleServiceAuthError FromCaptchaChallenge(
108 static GoogleServiceAuthError None();
120 GoogleServiceAuthError(State s, int error);
122 GoogleServiceAuthError(State s, const std::string& captcha_token,
/external/chromium_org/chrome/browser/extensions/api/identity/
Dgaia_web_auth_flow_unittest.cc33 GoogleServiceAuthError::State ubertoken_error_state) in TestGaiaWebAuthFlow()
42 if (ubertoken_error_.state() == GoogleServiceAuthError::NONE) in Start()
53 GoogleServiceAuthError ubertoken_error_;
60 GoogleServiceAuthError service_error,
70 : ubertoken_error_state_(GoogleServiceAuthError::NONE), in IdentityGaiaWebAuthFlowTest()
90 GoogleServiceAuthError GetNoneServiceError() { in GetNoneServiceError()
91 return GoogleServiceAuthError(GoogleServiceAuthError::NONE); in GetNoneServiceError()
95 GoogleServiceAuthError::State ubertoken_error_state) { in set_ubertoken_error()
101 GoogleServiceAuthError::State ubertoken_error_state_;
111 GoogleServiceAuthError(GoogleServiceAuthError::NONE), in TEST_F()
[all …]
/external/chromium_org/chrome/browser/chromeos/login/
Donline_attempt_unittest.cc40 void RunFailureTest(const GoogleServiceAuthError& error) { in RunFailureTest()
83 GoogleServiceAuthError error(GoogleServiceAuthError::REQUEST_CANCELED); in TEST_F()
132 GoogleServiceAuthError( in TEST_F()
133 GoogleServiceAuthError::HOSTED_NOT_ALLOWED))); in TEST_F()
179 GoogleServiceAuthError::FromConnectionError(net::ERR_CONNECTION_RESET)); in TEST_F()
184 GoogleServiceAuthError(GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS)); in TEST_F()
189 GoogleServiceAuthError(GoogleServiceAuthError::ACCOUNT_DISABLED)); in TEST_F()
194 GoogleServiceAuthError(GoogleServiceAuthError::ACCOUNT_DELETED)); in TEST_F()
199 GoogleServiceAuthError(GoogleServiceAuthError::SERVICE_UNAVAILABLE)); in TEST_F()
203 GoogleServiceAuthError auth_error = in TEST_F()
[all …]
/external/chromium_org/components/policy/core/common/cloud/
Duser_info_fetcher.cc56 GoogleServiceAuthError error = GoogleServiceAuthError::AuthErrorNone(); in OnURLFetchComplete()
59 error = GoogleServiceAuthError(GoogleServiceAuthError::REQUEST_CANCELED); in OnURLFetchComplete()
61 error = GoogleServiceAuthError::FromConnectionError(status.error()); in OnURLFetchComplete()
65 error = GoogleServiceAuthError( in OnURLFetchComplete()
66 GoogleServiceAuthError::CONNECTION_FAILED); in OnURLFetchComplete()
68 if (error.state() != GoogleServiceAuthError::NONE) { in OnURLFetchComplete()
84 delegate_->OnGetUserInfoFailure(GoogleServiceAuthError( in OnURLFetchComplete()
85 GoogleServiceAuthError::CONNECTION_FAILED)); in OnURLFetchComplete()
/external/chromium/chrome/browser/chromeos/login/
Donline_attempt_unittest.cc66 void RunFailureTest(const GoogleServiceAuthError& error) { in RunFailureTest()
123 GoogleServiceAuthError error(GoogleServiceAuthError::REQUEST_CANCELED); in TEST_F()
180 GoogleServiceAuthError( in TEST_F()
181 GoogleServiceAuthError::HOSTED_NOT_ALLOWED))); in TEST_F()
233 GoogleServiceAuthError::FromConnectionError(net::ERR_CONNECTION_RESET)); in TEST_F()
238 GoogleServiceAuthError(GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS)); in TEST_F()
243 GoogleServiceAuthError(GoogleServiceAuthError::ACCOUNT_DISABLED)); in TEST_F()
248 GoogleServiceAuthError(GoogleServiceAuthError::ACCOUNT_DELETED)); in TEST_F()
253 GoogleServiceAuthError(GoogleServiceAuthError::SERVICE_UNAVAILABLE)); in TEST_F()
257 GoogleServiceAuthError auth_error = in TEST_F()
[all …]
Dlogin_performer.cc73 failure.error().state() == GoogleServiceAuthError::CAPTCHA_REQUIRED) { in OnLoginFailure()
188 LoginFailure::FromNetworkAuthFailure(GoogleServiceAuthError( in OnPasswordChangeDetected()
189 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS)); in OnPasswordChangeDetected()
345 case GoogleServiceAuthError::CONNECTION_FAILED: in ResolveInitialNetworkAuthFailure()
346 case GoogleServiceAuthError::SERVICE_UNAVAILABLE: in ResolveInitialNetworkAuthFailure()
347 case GoogleServiceAuthError::TWO_FACTOR: in ResolveInitialNetworkAuthFailure()
348 case GoogleServiceAuthError::REQUEST_CANCELED: in ResolveInitialNetworkAuthFailure()
357 case GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS: in ResolveInitialNetworkAuthFailure()
360 case GoogleServiceAuthError::USER_NOT_SIGNED_UP: in ResolveInitialNetworkAuthFailure()
361 case GoogleServiceAuthError::ACCOUNT_DELETED: in ResolveInitialNetworkAuthFailure()
[all …]
Denterprise_enrollment_screen.cc108 const GoogleServiceAuthError& error) { in OnClientLoginFailure()
141 const GoogleServiceAuthError& error) { in OnIssueAuthTokenFailure()
194 const GoogleServiceAuthError& error) { in HandleAuthError()
201 case GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS: in HandleAuthError()
202 case GoogleServiceAuthError::CONNECTION_FAILED: in HandleAuthError()
203 case GoogleServiceAuthError::CAPTCHA_REQUIRED: in HandleAuthError()
204 case GoogleServiceAuthError::TWO_FACTOR: in HandleAuthError()
207 case GoogleServiceAuthError::USER_NOT_SIGNED_UP: in HandleAuthError()
208 case GoogleServiceAuthError::ACCOUNT_DELETED: in HandleAuthError()
209 case GoogleServiceAuthError::ACCOUNT_DISABLED: in HandleAuthError()
[all …]
/external/chromium_org/chrome/browser/managed_mode/
Dmanaged_user_refresh_token_fetcher_unittest.cc100 void MakeOAuth2TokenServiceRequestFail(GoogleServiceAuthError::State error);
106 const GoogleServiceAuthError& error() const { return error_; } in error()
110 void OnTokenFetched(const GoogleServiceAuthError& error,
119 GoogleServiceAuthError error_;
129 error_(GoogleServiceAuthError::NONE), in ManagedUserRefreshTokenFetcherTest()
192 GoogleServiceAuthError::State error) { in MakeOAuth2TokenServiceRequestFail()
197 GoogleServiceAuthError(error)); in MakeOAuth2TokenServiceRequestFail()
217 const GoogleServiceAuthError& error, in OnTokenFetched()
231 EXPECT_EQ(GoogleServiceAuthError::NONE, error().state()); in TEST_F()
243 EXPECT_EQ(GoogleServiceAuthError::NONE, error().state()); in TEST_F()
[all …]
Dmanaged_user_registration_utility.cc67 void OnReceivedToken(const GoogleServiceAuthError& error,
76 const GoogleServiceAuthError& error);
82 const GoogleServiceAuthError& error);
229 GoogleServiceAuthError(GoogleServiceAuthError::NONE)); in CancelPendingRegistration()
243 GoogleServiceAuthError(GoogleServiceAuthError::REQUEST_CANCELED)); in OnManagedUsersSyncingStopped()
255 const GoogleServiceAuthError& error, in OnReceivedToken()
257 if (error.state() != GoogleServiceAuthError::NONE) { in OnReceivedToken()
275 GoogleServiceAuthError error(GoogleServiceAuthError::NONE); in CompleteRegistrationIfReady()
281 const GoogleServiceAuthError& error) { in AbortPendingRegistration()
288 const GoogleServiceAuthError& error) { in CompleteRegistration()
/external/chromium_org/chrome/browser/net/gaia/
Dgaia_oauth_consumer.h10 class GoogleServiceAuthError; variable
19 virtual void OnGetOAuthTokenFailure(const GoogleServiceAuthError& error) {} in OnGetOAuthTokenFailure()
24 const GoogleServiceAuthError& error) {} in OnOAuthGetAccessTokenFailure()
30 const GoogleServiceAuthError& error) {} in OnOAuthWrapBridgeFailure()
33 virtual void OnUserInfoFailure(const GoogleServiceAuthError& error) {} in OnUserInfoFailure()
38 virtual void OnOAuthLoginFailure(const GoogleServiceAuthError& error) {} in OnOAuthLoginFailure()
41 virtual void OnOAuthRevokeTokenFailure(const GoogleServiceAuthError& error) {} in OnOAuthRevokeTokenFailure()
/external/chromium_org/chrome/browser/sync/
Dsync_ui_util_unittest.cc52 GoogleServiceAuthError::State error_state, in VerifySyncGlobalErrorResult()
58 GoogleServiceAuthError auth_error(error_state); in VerifySyncGlobalErrorResult()
92 &service, signin, GoogleServiceAuthError::NONE, true, true); in TEST_F()
113 GoogleServiceAuthError auth_error( in TEST_F()
114 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS); in TEST_F()
136 GoogleServiceAuthError::State table[] = { in TEST_F()
137 GoogleServiceAuthError::NONE, in TEST_F()
138 GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS, in TEST_F()
139 GoogleServiceAuthError::USER_NOT_SIGNED_UP, in TEST_F()
140 GoogleServiceAuthError::CONNECTION_FAILED, in TEST_F()
[all …]
/external/chromium_org/chrome/browser/ui/webui/chromeos/login/
Denrollment_screen_handler.cc172 const GoogleServiceAuthError& error) { in ShowAuthError()
174 case GoogleServiceAuthError::NONE: in ShowAuthError()
175 case GoogleServiceAuthError::CAPTCHA_REQUIRED: in ShowAuthError()
176 case GoogleServiceAuthError::TWO_FACTOR: in ShowAuthError()
177 case GoogleServiceAuthError::HOSTED_NOT_ALLOWED: in ShowAuthError()
178 case GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS: in ShowAuthError()
179 case GoogleServiceAuthError::REQUEST_CANCELED: in ShowAuthError()
180 case GoogleServiceAuthError::UNEXPECTED_SERVICE_RESPONSE: in ShowAuthError()
181 case GoogleServiceAuthError::SERVICE_ERROR: in ShowAuthError()
184 case GoogleServiceAuthError::USER_NOT_SIGNED_UP: in ShowAuthError()
[all …]
/external/chromium_org/chrome/browser/chromeos/login/enrollment/
Denrollment_screen.cc103 const GoogleServiceAuthError& error) { in OnAuthError()
108 case GoogleServiceAuthError::NONE: in OnAuthError()
109 case GoogleServiceAuthError::CAPTCHA_REQUIRED: in OnAuthError()
110 case GoogleServiceAuthError::TWO_FACTOR: in OnAuthError()
111 case GoogleServiceAuthError::HOSTED_NOT_ALLOWED: in OnAuthError()
112 case GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS: in OnAuthError()
113 case GoogleServiceAuthError::REQUEST_CANCELED: in OnAuthError()
114 case GoogleServiceAuthError::UNEXPECTED_SERVICE_RESPONSE: in OnAuthError()
115 case GoogleServiceAuthError::SERVICE_ERROR: in OnAuthError()
119 case GoogleServiceAuthError::USER_NOT_SIGNED_UP: in OnAuthError()
[all …]
/external/chromium_org/chrome/browser/chromeos/policy/
Dpolicy_oauth2_token_fetcher.cc81 const GoogleServiceAuthError& error) { in OnClientOAuthFailure()
94 GoogleServiceAuthError(GoogleServiceAuthError::NONE)); in OnGetTokenSuccess()
98 const GoogleServiceAuthError& error) { in OnGetTokenFailure()
105 void PolicyOAuth2TokenFetcher::RetryOnError(const GoogleServiceAuthError& error, in RetryOnError()
108 if ((error.state() == GoogleServiceAuthError::CONNECTION_FAILED || in RetryOnError()
109 error.state() == GoogleServiceAuthError::SERVICE_UNAVAILABLE || in RetryOnError()
110 error.state() == GoogleServiceAuthError::REQUEST_CANCELED) && in RetryOnError()
129 const GoogleServiceAuthError& error) { in ForwardPolicyToken()

123456789