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

Side by Side Diff: ash/mus/root_window_controller_unittest.cc

Issue 2150933003: mash: Add touch-hud app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test Created 4 years, 5 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
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698