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

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

Issue 446073002: Add ManagePasswordsBubbleBlacklistViewController and unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: finalize Created 6 years, 4 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/cocoa/passwords/manage_passwords_bubble_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller_unittest.mm b/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller_unittest.mm
index fa24fb84cce1e9d3fb06ca355d3067596bf0d65a..5e4ad956261c1dc59b4573bb124ce97378a98077 100644
--- a/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller_unittest.mm
@@ -15,6 +15,7 @@
#import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_manage_view_controller.h"
#import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_pending_view_controller.h"
#include "chrome/browser/ui/cocoa/passwords/manage_passwords_controller_test.h"
+#import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_blacklist_view_controller.h"
#include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/gtest_mac.h"
@@ -89,4 +90,11 @@ TEST_F(ManagePasswordsBubbleControllerTest,
[[controller() currentController] class]);
}
+TEST_F(ManagePasswordsBubbleControllerTest,
+ BlacklistStateShouldHaveBlacklistView) {
+ model()->set_state(password_manager::ui::BLACKLIST_STATE);
+ EXPECT_EQ([ManagePasswordsBubbleBlacklistViewController class],
+ [[controller() currentController] class]);
+}
+
} // namespace
« no previous file with comments | « chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.mm ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698