Chromium Code Reviews| Index: chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc |
| diff --git a/chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc b/chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc |
| index 233d473d59d94097c5ca65ddb479caca04d0d7cd..67ad96edfe3a7d20fcd9710f8c3973a457e5426c 100644 |
| --- a/chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc |
| +++ b/chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc |
| @@ -163,7 +163,8 @@ class TestingSyncSetupHandler : public SyncSetupHandler { |
| private: |
| #if !defined(OS_CHROMEOS) |
| - void DisplayGaiaLoginInNewTabOrWindow() override {} |
| + void DisplayGaiaLoginInNewTabOrWindow( |
| + signin_metrics::AccessPoint access_point) override {} |
| #endif |
| // Weak pointer to parent profile. |
| @@ -393,7 +394,7 @@ TEST_F(SyncSetupHandlerTest, |
| EXPECT_CALL(*mock_pss_, IsBackendInitialized()).WillRepeatedly(Return(false)); |
| SetDefaultExpectationsForConfigPage(); |
| - handler_->OpenSyncSetup(); |
| + handler_->OpenSyncSetup(NULL); |
|
Bernhard Bauer
2015/12/04 11:06:24
Use nullptr instead of null.
gogerald1
2015/12/04 20:49:09
Done.
|
| // We expect a call to SyncSetupOverlay.showSyncSetupPage. |
| EXPECT_EQ(1U, web_ui_.call_data().size()); |
| @@ -444,7 +445,7 @@ TEST_F(SyncSetupHandlerTest, |
| .WillOnce(Return(false)) |
| .WillRepeatedly(Return(true)); |
| SetDefaultExpectationsForConfigPage(); |
| - handler_->OpenSyncSetup(); |
| + handler_->OpenSyncSetup(NULL); |
| // It's important to tell sync the user cancelled the setup flow before we |
| // tell it we're through with the setup progress. |
| @@ -468,7 +469,7 @@ TEST_F(SyncSetupHandlerTest, |
| error_ = GoogleServiceAuthError::AuthErrorNone(); |
| EXPECT_CALL(*mock_pss_, IsBackendInitialized()).WillRepeatedly(Return(false)); |
| - handler_->OpenSyncSetup(); |
| + handler_->OpenSyncSetup(NULL); |
| const content::TestWebUI::CallData& data = *web_ui_.call_data()[0]; |
| EXPECT_EQ("SyncSetupOverlay.showSyncSetupPage", data.function_name()); |
| std::string page; |
| @@ -502,7 +503,7 @@ TEST_F(SyncSetupHandlerNonCrosTest, HandleGaiaAuthFailure) { |
| EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted()) |
| .WillRepeatedly(Return(false)); |
| // Open the web UI. |
| - handler_->OpenSyncSetup(); |
| + handler_->OpenSyncSetup(NULL); |
| ASSERT_FALSE(handler_->is_configuring_sync()); |
| } |
| @@ -515,7 +516,7 @@ TEST_F(SyncSetupHandlerNonCrosTest, UnrecoverableErrorInitializingSync) { |
| EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted()) |
| .WillRepeatedly(Return(false)); |
| // Open the web UI. |
| - handler_->OpenSyncSetup(); |
| + handler_->OpenSyncSetup(NULL); |
| ASSERT_FALSE(handler_->is_configuring_sync()); |
| } |
| @@ -527,7 +528,7 @@ TEST_F(SyncSetupHandlerNonCrosTest, GaiaErrorInitializingSync) { |
| EXPECT_CALL(*mock_pss_, HasSyncSetupCompleted()) |
| .WillRepeatedly(Return(false)); |
| // Open the web UI. |
| - handler_->OpenSyncSetup(); |
| + handler_->OpenSyncSetup(NULL); |
| ASSERT_FALSE(handler_->is_configuring_sync()); |
| } |
| @@ -756,7 +757,7 @@ TEST_F(SyncSetupHandlerTest, ShowSyncSetup) { |
| SetupInitializedProfileSyncService(); |
| // This should display the sync setup dialog (not login). |
| SetDefaultExpectationsForConfigPage(); |
| - handler_->OpenSyncSetup(); |
| + handler_->OpenSyncSetup(NULL); |
| ExpectConfig(); |
| } |
| @@ -793,7 +794,7 @@ TEST_F(SyncSetupHandlerTest, ShowSigninOnAuthError) { |
| // On ChromeOS, this should display the spinner while we try to startup the |
| // sync backend, and on desktop this displays the login dialog. |
| - handler_->OpenSyncSetup(); |
| + handler_->OpenSyncSetup(NULL); |
| // Sync setup is closed when re-auth is in progress. |
| EXPECT_EQ(NULL, |
| @@ -812,7 +813,7 @@ TEST_F(SyncSetupHandlerTest, ShowSetupSyncEverything) { |
| SetupInitializedProfileSyncService(); |
| SetDefaultExpectationsForConfigPage(); |
| // This should display the sync setup dialog (not login). |
| - handler_->OpenSyncSetup(); |
| + handler_->OpenSyncSetup(NULL); |
| ExpectConfig(); |
| const content::TestWebUI::CallData& data = *web_ui_.call_data()[0]; |
| @@ -846,7 +847,7 @@ TEST_F(SyncSetupHandlerTest, ShowSetupManuallySyncAll) { |
| sync_prefs.SetKeepEverythingSynced(false); |
| SetDefaultExpectationsForConfigPage(); |
| // This should display the sync setup dialog (not login). |
| - handler_->OpenSyncSetup(); |
| + handler_->OpenSyncSetup(NULL); |
| ExpectConfig(); |
| const content::TestWebUI::CallData& data = *web_ui_.call_data()[0]; |
| @@ -873,7 +874,7 @@ TEST_F(SyncSetupHandlerTest, ShowSetupSyncForAllTypesIndividually) { |
| WillRepeatedly(Return(types)); |
| // This should display the sync setup dialog (not login). |
| - handler_->OpenSyncSetup(); |
| + handler_->OpenSyncSetup(NULL); |
| ExpectConfig(); |
| // Close the config overlay. |
| @@ -898,7 +899,7 @@ TEST_F(SyncSetupHandlerTest, ShowSetupGaiaPassphraseRequired) { |
| SetDefaultExpectationsForConfigPage(); |
| // This should display the sync setup dialog (not login). |
| - handler_->OpenSyncSetup(); |
| + handler_->OpenSyncSetup(NULL); |
| ExpectConfig(); |
| const content::TestWebUI::CallData& data = *web_ui_.call_data()[0]; |
| @@ -920,7 +921,7 @@ TEST_F(SyncSetupHandlerTest, ShowSetupCustomPassphraseRequired) { |
| SetDefaultExpectationsForConfigPage(); |
| // This should display the sync setup dialog (not login). |
| - handler_->OpenSyncSetup(); |
| + handler_->OpenSyncSetup(NULL); |
| ExpectConfig(); |
| const content::TestWebUI::CallData& data = *web_ui_.call_data()[0]; |
| @@ -942,7 +943,7 @@ TEST_F(SyncSetupHandlerTest, ShowSetupEncryptAll) { |
| .WillRepeatedly(Return(true)); |
| // This should display the sync setup dialog (not login). |
| - handler_->OpenSyncSetup(); |
| + handler_->OpenSyncSetup(NULL); |
| ExpectConfig(); |
| const content::TestWebUI::CallData& data = *web_ui_.call_data()[0]; |
| @@ -962,7 +963,7 @@ TEST_F(SyncSetupHandlerTest, ShowSetupEncryptAllDisallowed) { |
| .WillRepeatedly(Return(false)); |
| // This should display the sync setup dialog (not login). |
| - handler_->OpenSyncSetup(); |
| + handler_->OpenSyncSetup(NULL); |
| ExpectConfig(); |
| const content::TestWebUI::CallData& data = *web_ui_.call_data()[0]; |