Searched refs:consumer_ (Results 1 - 25 of 42) sorted by relevance

12

/external/chromium_org/google_apis/gaia/
H A Dubertoken_fetcher_unittest.cc54 &consumer_,
67 MockUbertokenConsumer consumer_; member in class:UbertokenFetcherTest
79 EXPECT_EQ(0, consumer_.nb_error_);
80 EXPECT_EQ(1, consumer_.nb_correct_token_);
81 EXPECT_EQ("uberToken", consumer_.last_token_);
89 EXPECT_EQ(1, consumer_.nb_error_);
90 EXPECT_EQ(0, consumer_.nb_correct_token_);
98 EXPECT_EQ(1, consumer_.nb_error_);
99 EXPECT_EQ(0, consumer_.nb_correct_token_);
100 EXPECT_EQ("", consumer_
[all...]
H A Doauth2_access_token_fetcher.cc9 : consumer_(consumer) {}
16 consumer_->OnGetTokenSuccess(access_token, expiration_time);
21 consumer_->OnGetTokenFailure(error);
H A Doauth2_token_service_unittest.cc113 TestingOAuth2TokenServiceConsumer consumer_; member in class:OAuth2TokenServiceTest
119 &consumer_));
122 EXPECT_EQ(0, consumer_.number_of_successful_tokens_);
123 EXPECT_EQ(1, consumer_.number_of_errors_);
131 &consumer_));
134 EXPECT_EQ(0, consumer_.number_of_successful_tokens_);
135 EXPECT_EQ(0, consumer_.number_of_errors_);
141 EXPECT_EQ(0, consumer_.number_of_successful_tokens_);
142 EXPECT_EQ(1, consumer_.number_of_errors_);
151 &consumer_));
[all...]
H A Doauth2_token_service_request_unittest.cc172 TestingOAuth2TokenServiceConsumer consumer_; member in class:__anon8359::OAuth2TokenServiceRequestTest
213 provider_.get(), kAccountId, scopes_, &consumer_));
215 EXPECT_EQ(0, consumer_.num_get_token_success_);
216 EXPECT_EQ(1, consumer_.num_get_token_failure_);
218 consumer_.last_error_.state());
225 provider_.get(), kAccountId, scopes_, &consumer_));
227 EXPECT_EQ(1, consumer_.num_get_token_success_);
228 EXPECT_EQ(0, consumer_.num_get_token_failure_);
229 EXPECT_EQ(kAccessToken, consumer_.last_token_);
237 provider_.get(), kAccountId, scopes_, &consumer_));
[all...]
H A Dubertoken_fetcher.cc25 consumer_(consumer),
45 consumer_->OnUbertokenSuccess(token);
80 consumer_->OnUbertokenFailure(error);
97 consumer_->OnUbertokenFailure(error);
H A Doauth2_access_token_fetcher.h45 // Fires |OnGetTokenSuccess| on |consumer_|.
49 // Fires |OnGetTokenFailure| on |consumer_|.
53 OAuth2AccessTokenConsumer* const consumer_; member in class:OAuth2AccessTokenFetcher
H A Dgaia_auth_fetcher.cc176 : consumer_(consumer),
778 consumer_->OnClientLoginSuccess(
781 consumer_->OnClientLoginFailure(GenerateAuthError(data, status));
792 consumer_->OnIssueAuthTokenSuccess(requested_service_, data);
794 consumer_->OnIssueAuthTokenFailure(requested_service_,
812 consumer_->OnClientOAuthFailure(auth_error);
816 consumer_->OnClientOAuthFailure(auth_error);
840 consumer_->OnClientOAuthSuccess(
844 consumer_->OnClientOAuthFailure(GenerateAuthError(data, status));
852 consumer_
[all...]
H A Doauth2_access_token_fetcher_impl_unittest.cc89 fetcher_(&consumer_, request_context_getter_.get(), "refresh_token") {
118 MockOAuth2AccessTokenConsumer consumer_; member in class:OAuth2AccessTokenFetcherImplTest
127 EXPECT_CALL(consumer_, OnGetTokenFailure(_)).Times(1);
136 EXPECT_CALL(consumer_, OnGetTokenFailure(_)).Times(1);
144 EXPECT_CALL(consumer_, OnGetTokenSuccess("at1", _)).Times(1);
/external/chromium_org/chromeos/login/auth/
H A Dauthenticator.cc12 : consumer_(consumer), authentication_profile_(NULL) {
19 consumer_ = consumer;
H A Dmock_authenticator.cc50 consumer_->OnAuthSuccess(new_user_context);
56 consumer_->OnRetailModeAuthSuccess(user_context);
60 consumer_->OnOffTheRecordAuthSuccess();
66 consumer_->OnAuthSuccess(logged_in_user_context);
73 consumer_->OnAuthSuccess(user_context);
79 consumer_->OnRetailModeAuthSuccess(user_context);
87 consumer_->OnAuthSuccess(user_context);
91 consumer_->OnAuthFailure(failure);
H A Dfake_extended_authenticator.cc15 : consumer_(consumer),
23 : consumer_(NULL),
107 if (consumer_)
108 consumer_->OnAuthenticationFailure(state);
H A Dextended_authenticator_impl.cc46 : salt_obtained_(false), consumer_(consumer), old_consumer_(NULL) {
53 : salt_obtained_(false), consumer_(NULL), old_consumer_(consumer) {
321 if (consumer_)
322 consumer_->OnAuthenticationFailure(state);
357 if (consumer_)
358 consumer_->OnAuthenticationFailure(state);
H A Dauthenticator.h24 // 1. On successful authentication, will call consumer_->OnAuthSuccess().
25 // 2. On failure, will call consumer_->OnAuthFailure().
26 // 3. On password change, will call consumer_->OnPasswordChangeDetected().
99 AuthStatusConsumer* consumer_; member in class:chromeos::Authenticator
/external/chromium_org/components/signin/core/browser/
H A Dsignin_oauth_helper.cc16 consumer_(consumer) {
17 DCHECK(consumer_);
35 consumer_->OnSigninOAuthInformationFailure(error);
45 consumer_->OnSigninOAuthInformationFailure(error);
55 consumer_->OnSigninOAuthInformationFailure(
61 consumer_->OnSigninOAuthInformationAvailable(
69 consumer_->OnSigninOAuthInformationFailure(error);
H A Dmutable_profile_oauth2_token_service_unittest.cc125 TestingOAuth2TokenServiceConsumer consumer_; member in class:MutableProfileOAuth2TokenServiceTest
325 oauth2_service_.StartRequest(kEmail, scope_list, &consumer_));
327 EXPECT_EQ(1, consumer_.number_of_successful_tokens_);
328 EXPECT_EQ(0, consumer_.number_of_errors_);
329 EXPECT_EQ("token", consumer_.last_token_);
344 request = oauth2_service_.StartRequest(kEmail, scope_list, &consumer_);
346 EXPECT_EQ(2, consumer_.number_of_successful_tokens_);
347 EXPECT_EQ(0, consumer_.number_of_errors_);
348 EXPECT_EQ("another token", consumer_.last_token_);
366 oauth2_service_.StartRequest(kEmail, scope_list, &consumer_));
[all...]
/external/chromium_org/chrome/browser/chromeos/login/supervised/
H A Dsupervised_user_creation_controller.cc20 : consumer_(consumer) {
H A Dsupervised_user_creation_controller_new.cc255 if (consumer_)
256 consumer_->OnCreationError(code);
316 consumer_->OnLongCreationWarning();
363 if (consumer_)
364 consumer_->OnCreationError(CLOUD_SERVER_ERROR);
375 if (consumer_)
376 consumer_->OnCreationError(TOKEN_WRITE_FAILED);
396 if (consumer_)
397 consumer_->OnCreationSuccess();
402 if (consumer_)
[all...]
H A Dsupervised_user_authenticator.cc111 : consumer_(consumer) {}
164 if (consumer_) {
166 consumer_->OnAddKeySuccess();
168 consumer_->OnMountSuccess(mount_hash);
176 if (consumer_)
177 consumer_->OnAuthenticationFailure(state);
H A Dsupervised_user_creation_controller.h100 StatusConsumer* consumer_; member in class:chromeos::SupervisedUserCreationController
/external/chromium_org/base/win/
H A Devent_trace_consumer_unittest.cc109 TestConsumer consumer_; local
113 TestConsumer consumer_; local
115 consumer_.OpenRealtimeSession(session_name_.c_str()));
119 TestConsumer consumer_; local
121 consumer_.OpenRealtimeSession(session_name_.c_str()));
122 ASSERT_HRESULT_FAILED(consumer_.Consume());
132 consumer_.OpenRealtimeSession(session_name_.c_str()));
136 consumer_.Close();
142 return consumer_.Consume();
163 // The event was set, the consumer_ i
194 TestConsumer consumer_; member in class:base::win::__anon2596::EtwTraceConsumerRealtimeTest
311 TestConsumer consumer_; local
[all...]
/external/chromium_org/content/browser/media/capture/
H A Dweb_contents_audio_muter.cc33 : consumer_(media::AudioManager::Get()->GetWorkerTaskRunner(), params) {}
38 consumer_.Start(base::Bind(&AudioDiscarder::FetchAudioData, callback));
40 virtual void Stop() OVERRIDE { consumer_.Stop(); }
54 media::FakeAudioConsumer consumer_; member in class:content::__anon7250::AudioDiscarder
/external/chromium_org/components/webdata/common/
H A Dweb_data_request_manager.cc19 : manager_(manager), cancelled_(false), consumer_(consumer) {
39 return consumer_;
54 consumer_ = NULL;
/external/chromium_org/base/debug/
H A Dtrace_event_win_unittest.cc180 EXPECT_CALL(consumer_, Event(guid,
188 EXPECT_CALL(consumer_, Event(kEventTraceGuid, _, _, _))
197 consumer_.OpenFileSession(log_file_.value().c_str()));
199 ASSERT_HRESULT_SUCCEEDED(consumer_.Consume());
207 TestEventConsumer consumer_; member in namespace:base::debug::__anon2243
/external/chromium_org/chrome/browser/chromeos/settings/
H A Ddevice_oauth2_token_service_unittest.cc74 &consumer_);
188 TestingOAuth2TokenServiceConsumer consumer_; member in class:chromeos::DeviceOAuth2TokenServiceTest
238 EXPECT_EQ(num_tokens, consumer_.number_of_successful_tokens_);
239 EXPECT_EQ(num_errors, consumer_.number_of_errors_);
280 EXPECT_EQ("scoped_access_token", consumer_.last_token_);
298 EXPECT_EQ("scoped_access_token", consumer_.last_token_);
/external/chromium_org/chrome/browser/ui/webui/
H A Didentity_internals_ui.cc132 IdentityInternalsUIMessageHandler* consumer_; // weak. member in class:__anon5488::IdentityInternalsTokenRevoker
263 consumer_(consumer) {
264 DCHECK(consumer_);
271 consumer_->OnTokenRevokerDone(this);

Completed in 361 milliseconds

12