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

Unified Diff: chrome/browser/ui/cocoa/passwords/passwords_bubble_controller_unittest.mm

Issue 1515553006: Change password bubble for Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase, clean-up Created 5 years 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/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

Powered by Google App Engine
This is Rietveld 408576698