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

Side by Side Diff: chrome/browser/ui/cocoa/passwords/passwords_bubble_cocoa_unittest.mm

Issue 1411733009: Bulk rename files in chrome/browser/ui/cocoa/passwords/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-federation
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa.h" 5 #include "chrome/browser/ui/cocoa/passwords/passwords_bubble_cocoa.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/mac/foundation_util.h" 10 #include "base/mac/foundation_util.h"
11 #include "chrome/browser/ui/browser.h" 11 #include "chrome/browser/ui/browser.h"
12 #include "chrome/browser/ui/browser_command_controller.h" 12 #include "chrome/browser/ui/browser_command_controller.h"
13 #include "chrome/browser/ui/browser_window.h" 13 #include "chrome/browser/ui/browser_window.h"
14 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 14 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
15 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" 15 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
16 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" 16 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h"
17 #import "chrome/browser/ui/cocoa/info_bubble_window.h" 17 #import "chrome/browser/ui/cocoa/info_bubble_window.h"
18 #include "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" 18 #include "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h"
19 #include "chrome/browser/ui/cocoa/location_bar/manage_passwords_decoration.h" 19 #include "chrome/browser/ui/cocoa/location_bar/manage_passwords_decoration.h"
20 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.h" 20 #import "chrome/browser/ui/cocoa/passwords/passwords_bubble_controller.h"
21 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.h" 21 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.h"
22 #include "chrome/browser/ui/tab_dialogs.h" 22 #include "chrome/browser/ui/tab_dialogs.h"
23 #include "chrome/browser/ui/tabs/tab_strip_model.h" 23 #include "chrome/browser/ui/tabs/tab_strip_model.h"
24 #include "content/public/browser/site_instance.h" 24 #include "content/public/browser/site_instance.h"
25 #include "content/public/test/test_browser_thread_bundle.h" 25 #include "content/public/test/test_browser_thread_bundle.h"
26 #include "content/public/test/web_contents_tester.h" 26 #include "content/public/test/web_contents_tester.h"
27 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
28 #include "testing/gtest_mac.h" 28 #include "testing/gtest_mac.h"
29 #include "testing/platform_test.h" 29 #include "testing/platform_test.h"
30 30
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 ShowBubble(false); 150 ShowBubble(false);
151 EXPECT_TRUE(ManagePasswordsBubbleCocoa::instance()); 151 EXPECT_TRUE(ManagePasswordsBubbleCocoa::instance());
152 EXPECT_FALSE([controller() shouldOpenAsKeyWindow]); 152 EXPECT_FALSE([controller() shouldOpenAsKeyWindow]);
153 } 153 }
154 154
155 TEST_F(ManagePasswordsBubbleCocoaTest, OpenWithFocus) { 155 TEST_F(ManagePasswordsBubbleCocoaTest, OpenWithFocus) {
156 ShowBubble(true); 156 ShowBubble(true);
157 EXPECT_TRUE(ManagePasswordsBubbleCocoa::instance()); 157 EXPECT_TRUE(ManagePasswordsBubbleCocoa::instance());
158 EXPECT_TRUE([controller() shouldOpenAsKeyWindow]); 158 EXPECT_TRUE([controller() shouldOpenAsKeyWindow]);
159 } 159 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698