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

Side by Side Diff: chrome/browser/ui/cocoa/passwords/passwords_bubble_browsertest.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 "base/mac/foundation_util.h" 5 #include "base/mac/foundation_util.h"
6 #include "base/mac/scoped_objc_class_swizzler.h" 6 #include "base/mac/scoped_objc_class_swizzler.h"
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/browser_window.h" 8 #include "chrome/browser/ui/browser_window.h"
9 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 9 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
10 #import "chrome/browser/ui/cocoa/info_bubble_window.h" 10 #import "chrome/browser/ui/cocoa/info_bubble_window.h"
11 #include "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" 11 #include "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h"
12 #include "chrome/browser/ui/cocoa/location_bar/manage_passwords_decoration.h" 12 #include "chrome/browser/ui/cocoa/location_bar/manage_passwords_decoration.h"
13 #include "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa.h" 13 #include "chrome/browser/ui/cocoa/passwords/passwords_bubble_cocoa.h"
14 #include "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.h " 14 #include "chrome/browser/ui/cocoa/passwords/passwords_bubble_controller.h"
15 #include "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_pending_view _controller.h" 15 #include "chrome/browser/ui/cocoa/passwords/pending_password_view_controller.h"
16 #include "chrome/browser/ui/passwords/manage_passwords_test.h" 16 #include "chrome/browser/ui/passwords/manage_passwords_test.h"
17 #include "chrome/browser/ui/tabs/tab_strip_model.h" 17 #include "chrome/browser/ui/tabs/tab_strip_model.h"
18 #include "content/public/test/test_utils.h" 18 #include "content/public/test/test_utils.h"
19 #include "testing/gtest_mac.h" 19 #include "testing/gtest_mac.h"
20 20
21 // A helper class to swizzle [NSWindow isKeyWindow] to always return true. 21 // A helper class to swizzle [NSWindow isKeyWindow] to always return true.
22 @interface AlwaysKeyNSWindow : NSWindow 22 @interface AlwaysKeyNSWindow : NSWindow
23 - (BOOL)isKeyWindow; 23 - (BOOL)isKeyWindow;
24 @end 24 @end
25 25
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // Open a new tab. 105 // Open a new tab.
106 int firstTab = browser()->tab_strip_model()->active_index(); 106 int firstTab = browser()->tab_strip_model()->active_index();
107 AddTabAtIndex( 107 AddTabAtIndex(
108 firstTab + 1, GURL("http://foo.bar/"), ui::PAGE_TRANSITION_TYPED); 108 firstTab + 1, GURL("http://foo.bar/"), ui::PAGE_TRANSITION_TYPED);
109 EXPECT_FALSE(decoration()->IsVisible()); 109 EXPECT_FALSE(decoration()->IsVisible());
110 110
111 // Switch back to the previous tab. 111 // Switch back to the previous tab.
112 browser()->tab_strip_model()->ActivateTabAt(firstTab, true); 112 browser()->tab_strip_model()->ActivateTabAt(firstTab, true);
113 EXPECT_TRUE(decoration()->IsVisible()); 113 EXPECT_TRUE(decoration()->IsVisible());
114 } 114 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698