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

Unified Diff: ui/views/widget/native_widget_win_unittest.cc

Issue 10892014: Make HWNDMessageHandler subclass WindowImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « ui/views/widget/native_widget_win.cc ('k') | ui/views/win/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_win_unittest.cc
===================================================================
--- ui/views/widget/native_widget_win_unittest.cc (revision 153679)
+++ ui/views/widget/native_widget_win_unittest.cc (working copy)
@@ -50,28 +50,28 @@
TEST_F(NativeWidgetWinTest, ZoomWindow) {
scoped_ptr<NativeWidgetWin> window(CreateNativeWidgetWin());
- window->ShowWindow(SW_HIDE);
+ ShowWindow(window->GetNativeView(), SW_HIDE);
EXPECT_FALSE(window->IsActive());
- window->ShowWindow(SW_MAXIMIZE);
- EXPECT_TRUE(window->IsZoomed());
+ ShowWindow(window->GetNativeView(), SW_MAXIMIZE);
+ EXPECT_TRUE(IsZoomed(window->GetNativeView()));
window->CloseNow();
}
TEST_F(NativeWidgetWinTest, SetBoundsForZoomedWindow) {
scoped_ptr<NativeWidgetWin> window(CreateNativeWidgetWin());
- window->ShowWindow(SW_MAXIMIZE);
- EXPECT_TRUE(window->IsZoomed());
+ ShowWindow(window->GetNativeView(), SW_MAXIMIZE);
+ EXPECT_TRUE(IsZoomed(window->GetNativeView()));
// Create another window, so that it will be active.
scoped_ptr<NativeWidgetWin> window2(CreateNativeWidgetWin());
- window2->ShowWindow(SW_MAXIMIZE);
+ ShowWindow(window2->GetNativeView(), SW_MAXIMIZE);
EXPECT_TRUE(window2->IsActive());
EXPECT_FALSE(window->IsActive());
// Verify that setting the bounds of a zoomed window will unzoom it and not
// cause it to be activated.
window->SetBounds(gfx::Rect(50, 50, 650, 650));
- EXPECT_FALSE(window->IsZoomed());
+ EXPECT_FALSE(IsZoomed(window->GetNativeView()));
EXPECT_FALSE(window->IsActive());
// Cleanup.
« no previous file with comments | « ui/views/widget/native_widget_win.cc ('k') | ui/views/win/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698