OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "ash/mus/bridge/wm_window_mus.h" | |
6 #include "ash/mus/test/wm_test_base.h" | |
7 | |
8 namespace ash { | |
9 | |
10 class RootWindowControllerTest : public mus::WmTestBase { | |
11 public: | |
12 RootWindowControllerTest() {} | |
13 ~RootWindowControllerTest() override {} | |
14 | |
15 WmWindow* CreateFullscreenTestWindow() { | |
16 return mus::WmWindowMus::Get(mus::WmTestBase::CreateFullscreenTestWindow()); | |
17 } | |
18 | |
19 WmWindow* GetPrimaryRootWindow() { | |
20 return mus::WmWindowMus::Get(mus::WmTestBase::GetPrimaryRootWindow()); | |
21 } | |
22 | |
23 private: | |
24 DISALLOW_COPY_AND_ASSIGN(RootWindowControllerTest); | |
25 }; | |
26 | |
27 TEST_F(RootWindowControllerTest, CreateFullscreenWindow) { | |
28 WmWindow* window = CreateFullscreenTestWindow(); | |
29 WmWindow* root_window = GetPrimaryRootWindow(); | |
30 EXPECT_EQ(window->GetBounds(), root_window->GetBounds()); | |
sky
2016/07/21 20:00:02
Format of assertions in expected, actual. I believ
riajiang
2016/07/21 20:13:51
Done.
| |
31 } | |
32 | |
33 } // namespace ash | |
OLD | NEW |