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

Side by Side Diff: services/ui/ws/window_manager_client_unittest.cc

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "components/mus/common/util.h" 12 #include "services/ui/common/util.h"
13 #include "components/mus/public/cpp/lib/window_private.h" 13 #include "services/ui/public/cpp/lib/window_private.h"
14 #include "components/mus/public/cpp/tests/window_server_test_base.h" 14 #include "services/ui/public/cpp/tests/window_server_test_base.h"
15 #include "components/mus/public/cpp/window_observer.h" 15 #include "services/ui/public/cpp/window_observer.h"
16 #include "components/mus/public/cpp/window_tree_client.h" 16 #include "services/ui/public/cpp/window_tree_client.h"
17 #include "components/mus/public/cpp/window_tree_client_delegate.h" 17 #include "services/ui/public/cpp/window_tree_client_delegate.h"
18 #include "components/mus/public/cpp/window_tree_client_observer.h" 18 #include "services/ui/public/cpp/window_tree_client_observer.h"
19 #include "ui/gfx/geometry/rect.h" 19 #include "ui/gfx/geometry/rect.h"
20 20
21 namespace mus { 21 namespace mus {
22 namespace ws { 22 namespace ws {
23 23
24 namespace { 24 namespace {
25 25
26 Id server_id(mus::Window* window) { 26 Id server_id(mus::Window* window) {
27 return WindowPrivate(window).server_id(); 27 return WindowPrivate(window).server_id();
28 } 28 }
(...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 ASSERT_TRUE(window_in_wm); 1162 ASSERT_TRUE(window_in_wm);
1163 1163
1164 // Change the bounds in the wm, and make sure the child sees it. 1164 // Change the bounds in the wm, and make sure the child sees it.
1165 window_in_wm->SetBounds(gfx::Rect(1, 11, 12, 101)); 1165 window_in_wm->SetBounds(gfx::Rect(1, 11, 12, 101));
1166 ASSERT_TRUE(WaitForBoundsToChange(window_in_second_client)); 1166 ASSERT_TRUE(WaitForBoundsToChange(window_in_second_client));
1167 EXPECT_EQ(gfx::Rect(1, 11, 12, 101), window_in_second_client->bounds()); 1167 EXPECT_EQ(gfx::Rect(1, 11, 12, 101), window_in_second_client->bounds());
1168 } 1168 }
1169 1169
1170 } // namespace ws 1170 } // namespace ws
1171 } // namespace mus 1171 } // namespace mus
OLDNEW
« no previous file with comments | « services/ui/ws/window_manager_access_policy.cc ('k') | services/ui/ws/window_manager_display_root.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698