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

Side by Side Diff: ui/wm/core/transient_window_stacking_client_unittest.cc

Issue 209383003: Move wm/public into wm target (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 8 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 | « ui/wm/core/transient_window_stacking_client.h ('k') | ui/wm/core/visibility_controller.h » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "ui/wm/core/transient_window_stacking_client.h" 5 #include "ui/wm/core/transient_window_stacking_client.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "ui/aura/test/aura_test_base.h"
9 #include "ui/aura/test/test_windows.h" 8 #include "ui/aura/test/test_windows.h"
10 #include "ui/compositor/test/test_layers.h" 9 #include "ui/compositor/test/test_layers.h"
11 #include "ui/wm/core/window_util.h" 10 #include "ui/wm/core/window_util.h"
11 #include "ui/wm/test/wm_test_base.h"
12 12
13 using aura::test::ChildWindowIDsAsString; 13 using aura::test::ChildWindowIDsAsString;
14 using aura::test::CreateTestWindowWithId; 14 using aura::test::CreateTestWindowWithId;
15 using aura::Window; 15 using aura::Window;
16 16
17 namespace wm { 17 namespace wm {
18 18
19 class TransientWindowStackingClientTest : public aura::test::AuraTestBase { 19 class TransientWindowStackingClientTest : public WMTestBase {
20 public: 20 public:
21 TransientWindowStackingClientTest() {} 21 TransientWindowStackingClientTest() {}
22 virtual ~TransientWindowStackingClientTest() {} 22 virtual ~TransientWindowStackingClientTest() {}
23 23
24 virtual void SetUp() OVERRIDE { 24 virtual void SetUp() OVERRIDE {
25 AuraTestBase::SetUp(); 25 AuraTestBase::SetUp();
26 client_.reset(new TransientWindowStackingClient); 26 client_.reset(new TransientWindowStackingClient);
27 aura::client::SetWindowStackingClient(client_.get()); 27 aura::client::SetWindowStackingClient(client_.get());
28 } 28 }
29 29
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // Since neither |window3| nor |window1| have a delegate, |window2| should 206 // Since neither |window3| nor |window1| have a delegate, |window2| should
207 // not move in front of either. 207 // not move in front of either.
208 window3->layer()->set_delegate(NULL); 208 window3->layer()->set_delegate(NULL);
209 root_window()->StackChildBelow(window2.get(), window1.get()); 209 root_window()->StackChildBelow(window2.get(), window1.get());
210 EXPECT_EQ("2 3 1", ChildWindowIDsAsString(root_window())); 210 EXPECT_EQ("2 3 1", ChildWindowIDsAsString(root_window()));
211 EXPECT_EQ("2 3 1", 211 EXPECT_EQ("2 3 1",
212 ui::test::ChildLayerNamesAsString(*root_window()->layer())); 212 ui::test::ChildLayerNamesAsString(*root_window()->layer()));
213 } 213 }
214 214
215 } // namespace wm 215 } // namespace wm
OLDNEW
« no previous file with comments | « ui/wm/core/transient_window_stacking_client.h ('k') | ui/wm/core/visibility_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698