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

Unified Diff: components/mus/ws/window_tree_unittest.cc

Issue 1474543002: Makes NewWindow() take set of properties for window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nuke shadow_style changes Created 5 years, 1 month 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 | « components/mus/ws/window_tree_impl.cc ('k') | mash/wm/window_manager_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_tree_unittest.cc
diff --git a/components/mus/ws/window_tree_unittest.cc b/components/mus/ws/window_tree_unittest.cc
index 3c13428bd0c04875dd082064dbe1ab7da4505cc1..5f69b294e97ebb5e64737a795ff3088859acb79e 100644
--- a/components/mus/ws/window_tree_unittest.cc
+++ b/components/mus/ws/window_tree_unittest.cc
@@ -354,7 +354,8 @@ class WindowTreeTest : public testing::Test {
// Verifies focus correctly changes on pointer events.
TEST_F(WindowTreeTest, FocusOnPointer) {
const WindowId embed_window_id(wm_connection()->id(), 1);
- EXPECT_TRUE(wm_connection()->NewWindow(embed_window_id));
+ EXPECT_TRUE(
+ wm_connection()->NewWindow(embed_window_id, ServerWindow::Properties()));
EXPECT_TRUE(wm_connection()->SetWindowVisibility(embed_window_id, true));
EXPECT_TRUE(
wm_connection()->AddWindow(*(wm_connection()->root()), embed_window_id));
@@ -379,7 +380,7 @@ TEST_F(WindowTreeTest, FocusOnPointer) {
->SetBounds(gfx::Rect(0, 0, 50, 50));
const WindowId child1(connection1->id(), 1);
- EXPECT_TRUE(connection1->NewWindow(child1));
+ EXPECT_TRUE(connection1->NewWindow(child1, ServerWindow::Properties()));
EXPECT_TRUE(connection1->AddWindow(embed_window_id, child1));
ServerWindow* v1 = connection1->GetWindow(child1);
v1->SetVisible(true);
@@ -436,7 +437,8 @@ TEST_F(WindowTreeTest, FocusOnPointer) {
TEST_F(WindowTreeTest, BasicInputEventTarget) {
const WindowId embed_window_id(wm_connection()->id(), 1);
- EXPECT_TRUE(wm_connection()->NewWindow(embed_window_id));
+ EXPECT_TRUE(
+ wm_connection()->NewWindow(embed_window_id, ServerWindow::Properties()));
EXPECT_TRUE(wm_connection()->SetWindowVisibility(embed_window_id, true));
EXPECT_TRUE(
wm_connection()->AddWindow(*(wm_connection()->root()), embed_window_id));
@@ -461,7 +463,7 @@ TEST_F(WindowTreeTest, BasicInputEventTarget) {
->SetBounds(gfx::Rect(0, 0, 50, 50));
const WindowId child1(connection1->id(), 1);
- EXPECT_TRUE(connection1->NewWindow(child1));
+ EXPECT_TRUE(connection1->NewWindow(child1, ServerWindow::Properties()));
EXPECT_TRUE(connection1->AddWindow(embed_window_id, child1));
ServerWindow* v1 = connection1->GetWindow(child1);
v1->SetVisible(true);
« no previous file with comments | « components/mus/ws/window_tree_impl.cc ('k') | mash/wm/window_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698