| Index: chrome/browser/ui/cocoa/passwords/passwords_bubble_controller_unittest.mm
|
| diff --git a/chrome/browser/ui/cocoa/passwords/passwords_bubble_controller_unittest.mm b/chrome/browser/ui/cocoa/passwords/passwords_bubble_controller_unittest.mm
|
| index 91b5f4108d6b0b0b1cfc006d4acb74cbd842dc56..6bff696817030b034b8aae6e3880a2ed0c66469c 100644
|
| --- a/chrome/browser/ui/cocoa/passwords/passwords_bubble_controller_unittest.mm
|
| +++ b/chrome/browser/ui/cocoa/passwords/passwords_bubble_controller_unittest.mm
|
| @@ -15,6 +15,7 @@
|
| #include "chrome/browser/ui/cocoa/passwords/base_passwords_controller_test.h"
|
| #import "chrome/browser/ui/cocoa/passwords/manage_passwords_view_controller.h"
|
| #import "chrome/browser/ui/cocoa/passwords/save_pending_password_view_controller.h"
|
| +#import "chrome/browser/ui/cocoa/passwords/update_pending_password_view_controller.h"
|
| #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h"
|
| #include "chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| @@ -48,13 +49,13 @@ class ManagePasswordsBubbleControllerTest
|
| };
|
|
|
| TEST_F(ManagePasswordsBubbleControllerTest, PendingStateShouldHavePendingView) {
|
| - SetUpPendingState();
|
| + SetUpPendingState(false);
|
| EXPECT_EQ([SavePendingPasswordViewController class],
|
| [[controller() currentController] class]);
|
| }
|
|
|
| TEST_F(ManagePasswordsBubbleControllerTest, DismissingShouldCloseWindow) {
|
| - SetUpPendingState();
|
| + SetUpPendingState(false);
|
| [controller() showWindow:nil];
|
|
|
| // Turn off animations so that closing happens immediately.
|
| @@ -73,4 +74,11 @@ TEST_F(ManagePasswordsBubbleControllerTest, ManageStateShouldHaveManageView) {
|
| [[controller() currentController] class]);
|
| }
|
|
|
| +TEST_F(ManagePasswordsBubbleControllerTest,
|
| + PendingStateShouldHaveUpdatePendingView) {
|
| + SetUpPendingState(true);
|
| + EXPECT_EQ([UpdatePendingPasswordViewController class],
|
| + [[controller() currentController] class]);
|
| +}
|
| +
|
| } // namespace
|
|
|