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

Unified 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: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/mus/root_window_controller.cc ('k') | ash/mus/test/wm_test_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0762645a82ec61eea6ff951330a01c628d563989
--- /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(root_window->GetBounds(), window->GetBounds());
+}
+
+} // namespace ash
« no previous file with comments | « ash/mus/root_window_controller.cc ('k') | ash/mus/test/wm_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698