OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
6 #include "base/run_loop.h" | 6 #include "base/run_loop.h" |
7 #include "base/time/time.h" | 7 #include "base/time/time.h" |
8 #include "chrome/browser/signin/account_reconcilor.h" | 8 #include "chrome/browser/signin/account_reconcilor.h" |
9 #include "chrome/browser/signin/account_reconcilor_factory.h" | 9 #include "chrome/browser/signin/account_reconcilor_factory.h" |
10 #include "chrome/browser/signin/fake_profile_oauth2_token_service.h" | 10 #include "chrome/browser/signin/fake_profile_oauth2_token_service.h" |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 | 267 |
268 base::RunLoop().RunUntilIdle(); | 268 base::RunLoop().RunUntilIdle(); |
269 ASSERT_FALSE(reconcilor->AreAllRefreshTokensChecked()); | 269 ASSERT_FALSE(reconcilor->AreAllRefreshTokensChecked()); |
270 | 270 |
271 token_service()->IssueAllTokensForAccount("user@gmail.com", "access_token", | 271 token_service()->IssueAllTokensForAccount("user@gmail.com", "access_token", |
272 base::Time::Now() + base::TimeDelta::FromHours(1)); | 272 base::Time::Now() + base::TimeDelta::FromHours(1)); |
273 | 273 |
274 base::RunLoop().RunUntilIdle(); | 274 base::RunLoop().RunUntilIdle(); |
275 ASSERT_TRUE(reconcilor->AreAllRefreshTokensChecked()); | 275 ASSERT_TRUE(reconcilor->AreAllRefreshTokensChecked()); |
276 } | 276 } |
277 | |
OLD | NEW |