Chromium Code Reviews| Index: chrome/browser/ui/cocoa/one_click_signin_bubble_controller_unittest.mm |
| diff --git a/chrome/browser/ui/cocoa/one_click_signin_bubble_controller_unittest.mm b/chrome/browser/ui/cocoa/one_click_signin_bubble_controller_unittest.mm |
| index 97b93ae9af3c19c4a7307850c167ece0be034119..c0747da212fe7d0e91ee974a980ed30f1c37c249 100644 |
| --- a/chrome/browser/ui/cocoa/one_click_signin_bubble_controller_unittest.mm |
| +++ b/chrome/browser/ui/cocoa/one_click_signin_bubble_controller_unittest.mm |
| @@ -36,6 +36,8 @@ class OneClickSigninBubbleControllerTest : public CocoaProfileTest { |
| static_cast<BrowserWindowCocoa*>(browser()->window()); |
| controller_.reset([[OneClickSigninBubbleController alloc] |
| initWithBrowserWindowController:browser_window->cocoa_controller() |
| + webContents:nil |
| + errorMessage:nil |
| callback:start_sync_callback_]); |
| [controller_ showWindow:nil]; |
| EXPECT_NSEQ(@"OneClickSigninBubble", |
| @@ -58,35 +60,25 @@ class OneClickSigninBubbleControllerTest : public CocoaProfileTest { |
| DISALLOW_COPY_AND_ASSIGN(OneClickSigninBubbleControllerTest); |
| }; |
| -// Test that the bubble calls the callback if the OK button is clicked. |
| -// Callback should be called to setup sync with default settings. |
| +// Test that the bubble does not sync if the OK button is clicked. |
| TEST_F(OneClickSigninBubbleControllerTest, OK) { |
| EXPECT_CALL(*this, OnStartSync( |
| - OneClickSigninSyncStarter::SYNC_WITH_DEFAULT_SETTINGS)); |
| + OneClickSigninSyncStarter::SYNC_WITH_DEFAULT_SETTINGS)).Times(0); |
| [[controller_ viewController] ok:nil]; |
| } |
| -// Test that the dialog calls the callback if the Undo button |
| +// Test that the bubble does not sync if the Undo button |
| // is clicked. Callback should be called to abort the sync. |
| TEST_F(OneClickSigninBubbleControllerTest, Undo) { |
| EXPECT_CALL(*this, OnStartSync( |
| - OneClickSigninSyncStarter::UNDO_SYNC)).Times(1); |
| + OneClickSigninSyncStarter::UNDO_SYNC)).Times(0); |
| [[controller_ viewController] onClickUndo:nil]; |
| } |
| -// Test that the advanced callback is run if its corresponding button |
| -// is clicked. |
| -TEST_F(OneClickSigninBubbleControllerTest, Advanced) { |
|
Alexei Svitkine (slow)
2013/04/23 19:43:24
Why is this test being deleted?
noms (inactive)
2013/04/24 14:49:30
The new code for the Advanced link event handler o
|
| - EXPECT_CALL(*this, OnStartSync( |
| - OneClickSigninSyncStarter::CONFIGURE_SYNC_FIRST)); |
| - [[controller_ viewController] onClickAdvancedLink:nil]; |
| -} |
| - |
| -// Test that the bubble calls the callback if the bubble is closed. |
| -// Callback should be called to setup sync with default settings. |
| +// Test that the bubble does not sync if the bubble is closed. |
| TEST_F(OneClickSigninBubbleControllerTest, Close) { |
| EXPECT_CALL(*this, OnStartSync( |
| - OneClickSigninSyncStarter::SYNC_WITH_DEFAULT_SETTINGS)); |
| + OneClickSigninSyncStarter::SYNC_WITH_DEFAULT_SETTINGS)).Times(0); |
| [controller_ close]; |
| } |