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

Unified Diff: chrome/browser/ui/cocoa/status_bubble_mac_unittest.mm

Issue 164333006: Fix the Mac status bubble. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: nits Created 6 years, 10 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
« no previous file with comments | « chrome/browser/ui/cocoa/status_bubble_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/status_bubble_mac_unittest.mm
diff --git a/chrome/browser/ui/cocoa/status_bubble_mac_unittest.mm b/chrome/browser/ui/cocoa/status_bubble_mac_unittest.mm
index 7e54f3d1fd5e8b8e282303099b0d6ab3a413d32f..4297a397f623c5bb9bb41a3e964fd28227982af5 100644
--- a/chrome/browser/ui/cocoa/status_bubble_mac_unittest.mm
+++ b/chrome/browser/ui/cocoa/status_bubble_mac_unittest.mm
@@ -135,7 +135,7 @@ class StatusBubbleMacTest : public CocoaTest {
BubbleView* bubbleView = [bubble_->window_ contentView];
return [bubbleView content];
}
- NSWindow* GetWindow() {
+ StatusBubbleWindow* GetWindow() {
return bubble_->window_;
}
NSWindow* parent() {
@@ -537,7 +537,7 @@ TEST_F(StatusBubbleMacTest, MovingWindowUpdatesPosition) {
// Show the bubble and make sure it has the same origin as |window|.
bubble_->SetStatus(UTF8ToUTF16("Showing"));
- NSWindow* child = GetWindow();
+ StatusBubbleWindow* child = GetWindow();
EXPECT_TRUE(NSEqualPoints([window frame].origin, [child frame].origin));
// Hide the bubble, move the window, and show it again.
@@ -557,7 +557,7 @@ TEST_F(StatusBubbleMacTest, StatuBubbleRespectsBaseFrameLimits) {
// Show the bubble and make sure it has the same origin as |window|.
bubble_->SetStatus(UTF8ToUTF16("Showing"));
- NSWindow* child = GetWindow();
+ StatusBubbleWindow* child = GetWindow();
EXPECT_TRUE(NSEqualPoints([window frame].origin, [child frame].origin));
// Hide the bubble, change base frame offset, and show it again.
« no previous file with comments | « chrome/browser/ui/cocoa/status_bubble_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698