Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Side by Side Diff: chrome/browser/signin/account_reconcilor_unittest.cc

Issue 110373007: Delay loading the NTP after sign in until MergeSession has been performed in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo in chromeos Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/signin/account_reconcilor.cc ('k') | chrome/browser/signin/google_auto_login_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698