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

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: 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698