Chromium Code Reviews| Index: ash/mus/root_window_controller_unittest.cc |
| diff --git a/ash/mus/root_window_controller_unittest.cc b/ash/mus/root_window_controller_unittest.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..893242719373a0f43e2095c584ae73366f84391e |
| --- /dev/null |
| +++ b/ash/mus/root_window_controller_unittest.cc |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "ash/mus/bridge/wm_window_mus.h" |
| +#include "ash/mus/test/wm_test_base.h" |
| + |
| +namespace ash { |
| + |
| +class RootWindowControllerTest : public mus::WmTestBase { |
| + public: |
| + RootWindowControllerTest() {} |
| + ~RootWindowControllerTest() override {} |
| + |
| + WmWindow* CreateFullscreenTestWindow() { |
| + return mus::WmWindowMus::Get(mus::WmTestBase::CreateFullscreenTestWindow()); |
| + } |
| + |
| + WmWindow* GetPrimaryRootWindow() { |
| + return mus::WmWindowMus::Get(mus::WmTestBase::GetPrimaryRootWindow()); |
| + } |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(RootWindowControllerTest); |
| +}; |
| + |
| +TEST_F(RootWindowControllerTest, CreateFullscreenWindow) { |
| + WmWindow* window = CreateFullscreenTestWindow(); |
| + WmWindow* root_window = GetPrimaryRootWindow(); |
| + 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.
|
| +} |
| + |
| +} // namespace ash |