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

Unified Diff: chrome/browser/ui/webui/sync_setup_handler_unittest.cc

Issue 14630003: signin: move SigninManagerBase::Signout to SigninManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/sync_setup_handler_unittest.cc
diff --git a/chrome/browser/ui/webui/sync_setup_handler_unittest.cc b/chrome/browser/ui/webui/sync_setup_handler_unittest.cc
index 345baa2f7e4ed4fa38794dbfff1412c20625eb6e..2f0de873f9b8856ab6dc154dd4fd86d2bf0f9c0b 100644
--- a/chrome/browser/ui/webui/sync_setup_handler_unittest.cc
+++ b/chrome/browser/ui/webui/sync_setup_handler_unittest.cc
@@ -793,7 +793,8 @@ TEST_P(SyncSetupHandlerNonCrosTest, UnrecoverableErrorInitializingSync) {
GoogleServiceAuthError none(GoogleServiceAuthError::NONE);
EXPECT_CALL(*mock_pss_, HasUnrecoverableError())
.WillRepeatedly(Return(true));
- mock_signin_->SignOut();
+ // On non-Cros platforms, we use SigninManager.
+ static_cast<SigninManager*>(mock_signin_)->SignOut();
handler_->SigninFailed(none);
ASSERT_EQ(3U, web_ui_.call_data().size());
// Validate the second JS call (the first call was already tested by
@@ -843,7 +844,8 @@ TEST_P(SyncSetupHandlerNonCrosTest, GaiaErrorInitializingSync) {
GoogleServiceAuthError::SERVICE_UNAVAILABLE);
EXPECT_CALL(*mock_pss_, HasUnrecoverableError())
.WillRepeatedly(Return(false));
- mock_signin_->SignOut();
+ // On non-Cros platforms, we use SigninManager.
+ static_cast<SigninManager*>(mock_signin_)->SignOut();
handler_->SigninFailed(unavailable);
ASSERT_EQ(3U, web_ui_.call_data().size());
// Validate the second JS call (the first call was already tested by

Powered by Google App Engine
This is Rietveld 408576698