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

Side by Side Diff: chrome/browser/ui/webui/signin/login_ui_test_utils.cc

Issue 1104153002: Expose ReconcilorState. Rename MergeSession in Signin Tracker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: VLOGging the reconcilor Created 5 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/signin/signin_promo.h" 5 #include "chrome/browser/signin/signin_promo.h"
6 #include "chrome/browser/signin/signin_tracker_factory.h" 6 #include "chrome/browser/signin/signin_tracker_factory.h"
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/tabs/tab_strip_model.h" 8 #include "chrome/browser/ui/tabs/tab_strip_model.h"
9 #include "chrome/browser/ui/webui/signin/inline_login_ui.h" 9 #include "chrome/browser/ui/webui/signin/inline_login_ui.h"
10 #include "chrome/test/base/ui_test_utils.h" 10 #include "chrome/test/base/ui_test_utils.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 void SigninFailed(const GoogleServiceAuthError& error) override { 49 void SigninFailed(const GoogleServiceAuthError& error) override {
50 DVLOG(1) << "Google signin failed."; 50 DVLOG(1) << "Google signin failed.";
51 seen_ = true; 51 seen_ = true;
52 if (!running_) 52 if (!running_)
53 return; 53 return;
54 message_loop_runner_->Quit(); 54 message_loop_runner_->Quit();
55 running_ = false; 55 running_ = false;
56 } 56 }
57 57
58 void MergeSessionComplete(const GoogleServiceAuthError& error) override {} 58 void AccountAddedToCookie(const GoogleServiceAuthError& error) override {}
59 59
60 void SigninSuccess() override { 60 void SigninSuccess() override {
61 DVLOG(1) << "Google signin succeeded."; 61 DVLOG(1) << "Google signin succeeded.";
62 seen_ = true; 62 seen_ = true;
63 signed_in_ = true; 63 signed_in_ = true;
64 if (!running_) 64 if (!running_)
65 return; 65 return;
66 message_loop_runner_->Quit(); 66 message_loop_runner_->Quit();
67 running_ = false; 67 running_ = false;
68 } 68 }
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 DVLOG(1) << "Wait for login UI to be ready."; 143 DVLOG(1) << "Wait for login UI to be ready.";
144 WaitUntilUIReady(browser); 144 WaitUntilUIReady(browser);
145 DVLOG(1) << "Sign in user: " << username; 145 DVLOG(1) << "Sign in user: " << username;
146 ExecuteJsToSigninInSigninFrame(browser, username, password); 146 ExecuteJsToSigninInSigninFrame(browser, username, password);
147 signin_observer.Wait(); 147 signin_observer.Wait();
148 return signin_observer.DidSignIn(); 148 return signin_observer.DidSignIn();
149 } 149 }
150 150
151 } // namespace login_ui_test_utils 151 } // namespace login_ui_test_utils
OLDNEW
« no previous file with comments | « chrome/browser/ui/sync/one_click_signin_sync_starter_unittest.cc ('k') | components/signin/core/browser/account_reconcilor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698