/external/chromium_org/google_apis/gaia/ |
D | oauth2_token_service_unittest.cc | 113 TestingOAuth2TokenServiceConsumer consumer_; member in OAuth2TokenServiceTest 119 &consumer_)); in TEST_F() 122 EXPECT_EQ(0, consumer_.number_of_successful_tokens_); in TEST_F() 123 EXPECT_EQ(1, consumer_.number_of_errors_); in TEST_F() 131 &consumer_)); in TEST_F() 134 EXPECT_EQ(0, consumer_.number_of_successful_tokens_); in TEST_F() 135 EXPECT_EQ(0, consumer_.number_of_errors_); in TEST_F() 141 EXPECT_EQ(0, consumer_.number_of_successful_tokens_); in TEST_F() 142 EXPECT_EQ(1, consumer_.number_of_errors_); in TEST_F() 151 &consumer_)); in TEST_F() [all …]
|
D | ubertoken_fetcher_unittest.cc | 54 &consumer_, in SetUp() 67 MockUbertokenConsumer consumer_; member in UbertokenFetcherTest 79 EXPECT_EQ(0, consumer_.nb_error_); in TEST_F() 80 EXPECT_EQ(1, consumer_.nb_correct_token_); in TEST_F() 81 EXPECT_EQ("uberToken", consumer_.last_token_); in TEST_F() 89 EXPECT_EQ(1, consumer_.nb_error_); in TEST_F() 90 EXPECT_EQ(0, consumer_.nb_correct_token_); in TEST_F() 98 EXPECT_EQ(1, consumer_.nb_error_); in TEST_F() 99 EXPECT_EQ(0, consumer_.nb_correct_token_); in TEST_F() 100 EXPECT_EQ("", consumer_.last_token_); in TEST_F() [all …]
|
D | oauth2_token_service_request_unittest.cc | 172 TestingOAuth2TokenServiceConsumer consumer_; member in __anone7e224590111::OAuth2TokenServiceRequestTest 213 provider_.get(), kAccountId, scopes_, &consumer_)); in TEST_F() 215 EXPECT_EQ(0, consumer_.num_get_token_success_); in TEST_F() 216 EXPECT_EQ(1, consumer_.num_get_token_failure_); in TEST_F() 218 consumer_.last_error_.state()); in TEST_F() 225 provider_.get(), kAccountId, scopes_, &consumer_)); in TEST_F() 227 EXPECT_EQ(1, consumer_.num_get_token_success_); in TEST_F() 228 EXPECT_EQ(0, consumer_.num_get_token_failure_); in TEST_F() 229 EXPECT_EQ(kAccessToken, consumer_.last_token_); in TEST_F() 237 provider_.get(), kAccountId, scopes_, &consumer_)); in TEST_F() [all …]
|
D | oauth2_access_token_fetcher.cc | 9 : consumer_(consumer) {} in OAuth2AccessTokenFetcher() 16 consumer_->OnGetTokenSuccess(access_token, expiration_time); in FireOnGetTokenSuccess() 21 consumer_->OnGetTokenFailure(error); in FireOnGetTokenFailure()
|
D | gaia_auth_fetcher.cc | 176 : consumer_(consumer), in GaiaAuthFetcher() 778 consumer_->OnClientLoginSuccess( in OnClientLoginFetched() 781 consumer_->OnClientLoginFailure(GenerateAuthError(data, status)); in OnClientLoginFetched() 792 consumer_->OnIssueAuthTokenSuccess(requested_service_, data); in OnIssueAuthTokenFetched() 794 consumer_->OnIssueAuthTokenFailure(requested_service_, in OnIssueAuthTokenFetched() 812 consumer_->OnClientOAuthFailure(auth_error); in OnClientLoginToOAuth2Fetched() 816 consumer_->OnClientOAuthFailure(auth_error); in OnClientLoginToOAuth2Fetched() 840 consumer_->OnClientOAuthSuccess( in OnOAuth2TokenPairFetched() 844 consumer_->OnClientOAuthFailure(GenerateAuthError(data, status)); in OnOAuth2TokenPairFetched() 852 consumer_->OnOAuth2RevokeTokenCompleted(); in OnOAuth2RevokeTokenFetched() [all …]
|
D | ubertoken_fetcher.cc | 25 consumer_(consumer), in UbertokenFetcher() 45 consumer_->OnUbertokenSuccess(token); in OnUberAuthTokenSuccess() 80 consumer_->OnUbertokenFailure(error); in OnUberAuthTokenFailure() 97 consumer_->OnUbertokenFailure(error); in OnGetTokenFailure()
|
D | oauth2_access_token_fetcher_impl_unittest.cc | 89 fetcher_(&consumer_, request_context_getter_.get(), "refresh_token") { in OAuth2AccessTokenFetcherImplTest() 118 MockOAuth2AccessTokenConsumer consumer_; member in OAuth2AccessTokenFetcherImplTest 127 EXPECT_CALL(consumer_, OnGetTokenFailure(_)).Times(1); in TEST_F() 136 EXPECT_CALL(consumer_, OnGetTokenFailure(_)).Times(1); in TEST_F() 144 EXPECT_CALL(consumer_, OnGetTokenSuccess("at1", _)).Times(1); in TEST_F()
|
D | oauth2_token_service_request.cc | 187 OAuth2TokenService::Consumer* const consumer_; member in __anond7ccf37a0111::RequestCore 208 consumer_(consumer), in RequestCore() 211 DCHECK(consumer_); in RequestCore() 257 consumer_->OnGetTokenSuccess(owner(), access_token, expiration_time); in InformOwnerOnGetTokenSuccess() 264 consumer_->OnGetTokenFailure(owner(), error); in InformOwnerOnGetTokenFailure()
|
/external/chromium_org/chromeos/login/auth/ |
D | mock_authenticator.cc | 50 consumer_->OnAuthSuccess(new_user_context); in LoginAsSupervisedUser() 56 consumer_->OnRetailModeAuthSuccess(user_context); in LoginRetailMode() 60 consumer_->OnOffTheRecordAuthSuccess(); in LoginOffTheRecord() 66 consumer_->OnAuthSuccess(logged_in_user_context); in LoginAsPublicSession() 73 consumer_->OnAuthSuccess(user_context); in LoginAsKioskAccount() 79 consumer_->OnRetailModeAuthSuccess(user_context); in OnRetailModeAuthSuccess() 87 consumer_->OnAuthSuccess(user_context); in OnAuthSuccess() 91 consumer_->OnAuthFailure(failure); in OnAuthFailure()
|
D | fake_extended_authenticator.cc | 15 : consumer_(consumer), in FakeExtendedAuthenticator() 23 : consumer_(NULL), in FakeExtendedAuthenticator() 107 if (consumer_) in OnAuthFailure() 108 consumer_->OnAuthenticationFailure(state); in OnAuthFailure()
|
D | authenticator.cc | 12 : consumer_(consumer), authentication_profile_(NULL) { in Authenticator() 19 consumer_ = consumer; in SetConsumer()
|
D | extended_authenticator_impl.cc | 46 : salt_obtained_(false), consumer_(consumer), old_consumer_(NULL) { in ExtendedAuthenticatorImpl() 53 : salt_obtained_(false), consumer_(NULL), old_consumer_(consumer) { in ExtendedAuthenticatorImpl() 321 if (consumer_) in OnMountComplete() 322 consumer_->OnAuthenticationFailure(state); in OnMountComplete() 357 if (consumer_) in OnOperationComplete() 358 consumer_->OnAuthenticationFailure(state); in OnOperationComplete()
|
D | cryptohome_authenticator.cc | 536 if (consumer_) in OnRetailModeAuthSuccess() 537 consumer_->OnRetailModeAuthSuccess(current_state_->user_context); in OnRetailModeAuthSuccess() 549 if (consumer_) in OnAuthSuccess() 550 consumer_->OnAuthSuccess(current_state_->user_context); in OnAuthSuccess() 556 if (consumer_) in OnOffTheRecordAuthSuccess() 557 consumer_->OnOffTheRecordAuthSuccess(); in OnOffTheRecordAuthSuccess() 562 if (consumer_) in OnPasswordChangeDetected() 563 consumer_->OnPasswordChangeDetected(); in OnPasswordChangeDetected() 578 if (consumer_) in OnAuthFailure() 579 consumer_->OnAuthFailure(error); in OnAuthFailure()
|
/external/chromium_org/components/signin/core/browser/ |
D | signin_oauth_helper.cc | 16 consumer_(consumer) { in SigninOAuthHelper() 17 DCHECK(consumer_); in SigninOAuthHelper() 35 consumer_->OnSigninOAuthInformationFailure(error); in OnClientOAuthFailure() 45 consumer_->OnSigninOAuthInformationFailure(error); in OnClientLoginFailure() 55 consumer_->OnSigninOAuthInformationFailure( in OnGetUserInfoSuccess() 61 consumer_->OnSigninOAuthInformationAvailable( in OnGetUserInfoSuccess() 69 consumer_->OnSigninOAuthInformationFailure(error); in OnGetUserInfoFailure()
|
D | mutable_profile_oauth2_token_service_unittest.cc | 125 TestingOAuth2TokenServiceConsumer consumer_; member in MutableProfileOAuth2TokenServiceTest 325 oauth2_service_.StartRequest(kEmail, scope_list, &consumer_)); in TEST_F() 327 EXPECT_EQ(1, consumer_.number_of_successful_tokens_); in TEST_F() 328 EXPECT_EQ(0, consumer_.number_of_errors_); in TEST_F() 329 EXPECT_EQ("token", consumer_.last_token_); in TEST_F() 344 request = oauth2_service_.StartRequest(kEmail, scope_list, &consumer_); in TEST_F() 346 EXPECT_EQ(2, consumer_.number_of_successful_tokens_); in TEST_F() 347 EXPECT_EQ(0, consumer_.number_of_errors_); in TEST_F() 348 EXPECT_EQ("another token", consumer_.last_token_); in TEST_F() 366 oauth2_service_.StartRequest(kEmail, scope_list, &consumer_)); in TEST_F()
|
/external/chromium_org/base/win/ |
D | event_trace_consumer_unittest.cc | 109 TestConsumer consumer_; in TEST_F() local 113 TestConsumer consumer_; in TEST_F() local 115 consumer_.OpenRealtimeSession(session_name_.c_str())); in TEST_F() 119 TestConsumer consumer_; in TEST_F() local 121 consumer_.OpenRealtimeSession(session_name_.c_str())); in TEST_F() 122 ASSERT_HRESULT_FAILED(consumer_.Consume()); in TEST_F() 132 consumer_.OpenRealtimeSession(session_name_.c_str())); in SetUp() 136 consumer_.Close(); in TearDown() 142 return consumer_.Consume(); in ConsumerThread() 194 TestConsumer consumer_; member in base::win::__anonaebd15770211::EtwTraceConsumerRealtimeTest [all …]
|
/external/chromium_org/chrome/browser/chromeos/login/supervised/ |
D | supervised_user_creation_controller_new.cc | 255 if (consumer_) in OnAuthenticationFailure() 256 consumer_->OnCreationError(code); in OnAuthenticationFailure() 316 consumer_->OnLongCreationWarning(); in OnAddKeySuccess() 363 if (consumer_) in RegistrationCallback() 364 consumer_->OnCreationError(CLOUD_SERVER_ERROR); in RegistrationCallback() 375 if (consumer_) in OnSupervisedUserFilesStored() 376 consumer_->OnCreationError(TOKEN_WRITE_FAILED); in OnSupervisedUserFilesStored() 396 if (consumer_) in OnSupervisedUserFilesStored() 397 consumer_->OnCreationSuccess(); in OnSupervisedUserFilesStored() 402 if (consumer_) in CreationTimedOut() [all …]
|
D | supervised_user_authenticator.cc | 111 : consumer_(consumer) {} in SupervisedUserAuthenticator() 164 if (consumer_) { in OnAuthenticationSuccess() 166 consumer_->OnAddKeySuccess(); in OnAuthenticationSuccess() 168 consumer_->OnMountSuccess(mount_hash); in OnAuthenticationSuccess() 176 if (consumer_) in OnAuthenticationFailure() 177 consumer_->OnAuthenticationFailure(state); in OnAuthenticationFailure()
|
/external/chromium_org/content/browser/media/capture/ |
D | web_contents_audio_muter.cc | 33 : consumer_(media::AudioManager::Get()->GetWorkerTaskRunner(), params) {} in AudioDiscarder() 38 consumer_.Start(base::Bind(&AudioDiscarder::FetchAudioData, callback)); in Start() 40 virtual void Stop() OVERRIDE { consumer_.Stop(); } in Stop() 54 media::FakeAudioConsumer consumer_; member in content::__anon45abc94d0111::AudioDiscarder
|
/external/chromium_org/chrome/browser/chromeos/login/auth/ |
D | cryptohome_authenticator_unittest.cc | 171 auth_ = new ChromeCryptohomeAuthenticator(&consumer_); in SetUp() 204 ON_CALL(consumer_, OnAuthFailure(_)) in FailOnLoginFailure() 211 ON_CALL(consumer_, OnRetailModeAuthSuccess(_)).WillByDefault( in FailOnRetailModeLoginSuccess() 218 ON_CALL(consumer_, OnAuthSuccess(_)) in FailOnLoginSuccess() 225 ON_CALL(consumer_, OnOffTheRecordAuthSuccess()).WillByDefault( in FailOnGuestLoginSuccess() 230 EXPECT_CALL(consumer_, OnAuthFailure(failure)) in ExpectLoginFailure() 236 EXPECT_CALL(consumer_, OnRetailModeAuthSuccess(_)) in ExpectRetailModeLoginSuccess() 242 EXPECT_CALL(consumer_, OnAuthSuccess(user_context)) in ExpectLoginSuccess() 248 EXPECT_CALL(consumer_, OnOffTheRecordAuthSuccess()) in ExpectGuestLoginSuccess() 254 EXPECT_CALL(consumer_, OnPasswordChangeDetected()) in ExpectPasswordChange() [all …]
|
/external/chromium_org/base/debug/ |
D | trace_event_win_unittest.cc | 180 EXPECT_CALL(consumer_, Event(guid, in ExpectEvent() 188 EXPECT_CALL(consumer_, Event(kEventTraceGuid, _, _, _)) in ExpectPlayLog() 197 consumer_.OpenFileSession(log_file_.value().c_str())); in PlayLog() 199 ASSERT_HRESULT_SUCCEEDED(consumer_.Consume()); in PlayLog() 207 TestEventConsumer consumer_; member in base::debug::__anonc22223720111::TraceEventWinTest
|
/external/chromium_org/chrome/browser/chromeos/settings/ |
D | device_oauth2_token_service_unittest.cc | 74 &consumer_); in StartTokenRequest() 188 TestingOAuth2TokenServiceConsumer consumer_; member in chromeos::DeviceOAuth2TokenServiceTest 238 EXPECT_EQ(num_tokens, consumer_.number_of_successful_tokens_); in AssertConsumerTokensAndErrors() 239 EXPECT_EQ(num_errors, consumer_.number_of_errors_); in AssertConsumerTokensAndErrors() 280 EXPECT_EQ("scoped_access_token", consumer_.last_token_); in TEST_F() 298 EXPECT_EQ("scoped_access_token", consumer_.last_token_); in TEST_F()
|
/external/chromium_org/components/webdata/common/ |
D | web_data_request_manager.cc | 19 : manager_(manager), cancelled_(false), consumer_(consumer) { in WebDataRequest() 39 return consumer_; in GetConsumer() 54 consumer_ = NULL; in Cancel()
|
/external/chromium_org/remoting/client/ |
D | software_video_renderer.cc | 109 scoped_refptr<FrameConsumerProxy> consumer_; member in remoting::SoftwareVideoRenderer::Core 137 consumer_(consumer), in Core() 162 if (consumer_->GetPixelFormat() == FrameConsumer::FORMAT_RGBA) { in Initialize() 205 consumer_->SetSourceSize(source_size_, source_dpi_); in DecodePacket() 248 consumer_->ApplyBuffer(view_size_, clip_area_, buffer, output_region, in DoPaint() 258 consumer_->ReturnBuffer(buffers_.front()); in RequestReturnBuffers() 308 consumer_->ReturnBuffer(*i); in SetOutputSizeAndClip()
|
/external/chromium_org/ipc/ |
D | ipc_logging.cc | 49 consumer_(NULL) { in Logging() 83 consumer_ = consumer; in SetConsumer() 225 if (consumer_) { in Log() 227 consumer_->Log(data); in Log()
|