| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/signin/ios/browser/profile_oauth2_token_service_ios_delegat
e.h" | 5 #include "components/signin/ios/browser/profile_oauth2_token_service_ios_delegat
e.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/message_loop/message_loop.h" |
| 8 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 9 #include "components/prefs/pref_registry_simple.h" | 10 #include "components/prefs/pref_registry_simple.h" |
| 10 #include "components/prefs/testing_pref_service.h" | 11 #include "components/prefs/testing_pref_service.h" |
| 11 #include "components/signin/core/browser/account_tracker_service.h" | 12 #include "components/signin/core/browser/account_tracker_service.h" |
| 12 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 13 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
| 13 #include "components/signin/core/browser/test_signin_client.h" | 14 #include "components/signin/core/browser/test_signin_client.h" |
| 14 #include "components/signin/core/common/signin_pref_names.h" | 15 #include "components/signin/core/common/signin_pref_names.h" |
| 15 #include "components/signin/ios/browser/fake_profile_oauth2_token_service_ios_pr
ovider.h" | 16 #include "components/signin/ios/browser/fake_profile_oauth2_token_service_ios_pr
ovider.h" |
| 16 #include "google_apis/gaia/gaia_urls.h" | 17 #include "google_apis/gaia/gaia_urls.h" |
| 17 #include "google_apis/gaia/oauth2_access_token_consumer.h" | 18 #include "google_apis/gaia/oauth2_access_token_consumer.h" |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 ResetObserverCounts(); | 291 ResetObserverCounts(); |
| 291 GoogleServiceAuthError error(GoogleServiceAuthError::SERVICE_ERROR); | 292 GoogleServiceAuthError error(GoogleServiceAuthError::SERVICE_ERROR); |
| 292 oauth2_delegate_->UpdateAuthError(GetAccountId(account1), error); | 293 oauth2_delegate_->UpdateAuthError(GetAccountId(account1), error); |
| 293 EXPECT_EQ(1, error_changed_count_); | 294 EXPECT_EQ(1, error_changed_count_); |
| 294 | 295 |
| 295 oauth2_delegate_->RevokeAllCredentials(); | 296 oauth2_delegate_->RevokeAllCredentials(); |
| 296 ResetObserverCounts(); | 297 ResetObserverCounts(); |
| 297 oauth2_delegate_->UpdateAuthError(GetAccountId(account1), error); | 298 oauth2_delegate_->UpdateAuthError(GetAccountId(account1), error); |
| 298 EXPECT_EQ(0, error_changed_count_); | 299 EXPECT_EQ(0, error_changed_count_); |
| 299 } | 300 } |
| OLD | NEW |