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

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

Issue 422233009: Add ManagePasswordsBubbleController and unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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_pending_view_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_pending_view_controller_unittest.mm b/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_pending_view_controller_unittest.mm
index 9c7c1ea58a7cf2115646f03aa93b0f9e1d9fb5dd..ac5dcf83689faac371572ed76a48e70b40414dbf 100644
--- a/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_pending_view_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_pending_view_controller_unittest.mm
@@ -17,14 +17,6 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/gtest_mac.h"
-namespace {
-void ClickMenuItem(BubbleCombobox* button, int index) {
- // Skip the title if applicable.
- [[button menu]
- performActionForItemAtIndex:(button.pullsDown ? index + 1 : index)];
-}
-} // namespace
-
@interface ManagePasswordsBubblePendingViewTestDelegate
: NSObject<ManagePasswordsBubblePendingViewDelegate> {
BOOL dismissed_;
@@ -49,6 +41,14 @@ void ClickMenuItem(BubbleCombobox* button, int index) {
@end
+namespace {
+
+void ClickMenuItem(BubbleCombobox* button, int index) {
+ // Skip the title if applicable.
+ [[button menu]
+ performActionForItemAtIndex:(button.pullsDown ? index + 1 : index)];
+}
+
class ManagePasswordsBubblePendingViewControllerTest
: public ManagePasswordsControllerTest {
public:
@@ -129,3 +129,5 @@ TEST_F(ManagePasswordsBubblePendingViewControllerTest,
EXPECT_FALSE(ui_controller()->saved_password());
EXPECT_FALSE(ui_controller()->never_saved_password());
}
+
+} // namespace

Powered by Google App Engine
This is Rietveld 408576698