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

Side by Side Diff: ash/wm/compact_layout_manager_unittest.cc

Issue 9585028: Mac Aura fails compile and some tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/system/brightness/tray_brightness.cc ('k') | ash/wm/root_window_event_filter_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ash/wm/compact_layout_manager.h" 5 #include "ash/wm/compact_layout_manager.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/shell_window_ids.h" 8 #include "ash/shell_window_ids.h"
9 #include "ash/test/ash_test_base.h" 9 #include "ash/test/ash_test_base.h"
10 #include "ash/wm/shelf_layout_manager.h" 10 #include "ash/wm/shelf_layout_manager.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MAXIMIZED); 116 window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MAXIMIZED);
117 EXPECT_TRUE(widget->IsVisible()); 117 EXPECT_TRUE(widget->IsVisible());
118 window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL); 118 window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL);
119 EXPECT_TRUE(widget->IsVisible()); 119 EXPECT_TRUE(widget->IsVisible());
120 window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_FULLSCREEN); 120 window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_FULLSCREEN);
121 EXPECT_FALSE(widget->IsVisible()); 121 EXPECT_FALSE(widget->IsVisible());
122 window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL); 122 window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL);
123 EXPECT_TRUE(widget->IsVisible()); 123 EXPECT_TRUE(widget->IsVisible());
124 } 124 }
125 125
126 TEST_F(CompactLayoutManagerTest, TransitionTest) { 126 #if defined(OS_MACOSX)
127 #define MAYBE_TransitionTest FAILS_TransitionTest
128 #else
129 #define MAYBE_TransitionTest TransitionTest
130 #endif
131 TEST_F(CompactLayoutManagerTest, MAYBE_TransitionTest) {
127 // Assert on viewport size to be the host size. 132 // Assert on viewport size to be the host size.
128 ASSERT_EQ(kMaxWidth, default_container_layer_width()); 133 ASSERT_EQ(kMaxWidth, default_container_layer_width());
129 // Create 3 windows, check that the layer grow as each one is added 134 // Create 3 windows, check that the layer grow as each one is added
130 // to the layout. 135 // to the layout.
131 aura::Window* window1 = CreateNormalWindow(0); 136 aura::Window* window1 = CreateNormalWindow(0);
132 EXPECT_EQ(kMaxWidth, default_container_layer_width()); 137 EXPECT_EQ(kMaxWidth, default_container_layer_width());
133 aura::Window* window2 = CreateNormalWindow(1); 138 aura::Window* window2 = CreateNormalWindow(1);
134 EXPECT_EQ(kMaxWidth * 2, default_container_layer_width()); 139 EXPECT_EQ(kMaxWidth * 2, default_container_layer_width());
135 aura::Window* window3 = CreateNormalWindow(2); 140 aura::Window* window3 = CreateNormalWindow(2);
136 EXPECT_EQ(kMaxWidth * 3, default_container_layer_width()); 141 EXPECT_EQ(kMaxWidth * 3, default_container_layer_width());
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 delete window1; 223 delete window1;
219 delete window2; 224 delete window2;
220 delete window3; 225 delete window3;
221 226
222 // No current window now. 227 // No current window now.
223 EXPECT_EQ(NULL, layout_manager_->current_window_); 228 EXPECT_EQ(NULL, layout_manager_->current_window_);
224 } 229 }
225 230
226 } // namespace internal 231 } // namespace internal
227 } // namespace ash 232 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/brightness/tray_brightness.cc ('k') | ash/wm/root_window_event_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698