| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/sync/signin_manager.h" | 5 #include "chrome/browser/sync/signin_manager.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" |
| 7 #include "base/test/signaling_task.h" | 8 #include "base/test/signaling_task.h" |
| 8 #include "chrome/browser/net/gaia/token_service.h" | 9 #include "chrome/browser/net/gaia/token_service.h" |
| 9 #include "chrome/browser/net/gaia/token_service_unittest.h" | 10 #include "chrome/browser/net/gaia/token_service_unittest.h" |
| 10 #include "chrome/browser/password_manager/encryptor.h" | 11 #include "chrome/browser/password_manager/encryptor.h" |
| 11 #include "chrome/browser/prefs/pref_service.h" | 12 #include "chrome/browser/prefs/pref_service.h" |
| 12 #include "chrome/browser/sync/util/oauth.h" | 13 #include "chrome/browser/sync/util/oauth.h" |
| 13 #include "chrome/browser/webdata/web_data_service.h" | 14 #include "chrome/browser/webdata/web_data_service.h" |
| 14 #include "chrome/common/chrome_notification_types.h" | 15 #include "chrome/common/chrome_notification_types.h" |
| 15 #include "chrome/common/net/gaia/gaia_urls.h" | 16 #include "chrome/common/net/gaia/gaia_urls.h" |
| 16 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 TEST_F(SigninManagerTest, SignOutOnUserInfoSucessRaceTest) { | 282 TEST_F(SigninManagerTest, SignOutOnUserInfoSucessRaceTest) { |
| 282 browser_sync::SetIsUsingOAuthForTest(true); | 283 browser_sync::SetIsUsingOAuthForTest(true); |
| 283 manager_->Initialize(profile_.get()); | 284 manager_->Initialize(profile_.get()); |
| 284 EXPECT_TRUE(manager_->GetUsername().empty()); | 285 EXPECT_TRUE(manager_->GetUsername().empty()); |
| 285 | 286 |
| 286 SimulateSigninStartOAuth(); | 287 SimulateSigninStartOAuth(); |
| 287 manager_->SignOut(); | 288 manager_->SignOut(); |
| 288 SimulateOAuthUserInfoSuccess(); | 289 SimulateOAuthUserInfoSuccess(); |
| 289 EXPECT_TRUE(manager_->GetUsername().empty()); | 290 EXPECT_TRUE(manager_->GetUsername().empty()); |
| 290 } | 291 } |
| OLD | NEW |