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

Side by Side Diff: components/mus/ws/window_manager_client_unittest.cc

Issue 2009073003: Move mojo/converters/geometry -> ui/gfx/geometry/mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 7 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 "components/mus/common/util.h"
13 #include "components/mus/public/cpp/lib/window_private.h" 13 #include "components/mus/public/cpp/lib/window_private.h"
14 #include "components/mus/public/cpp/lib/window_tree_client_impl.h" 14 #include "components/mus/public/cpp/lib/window_tree_client_impl.h"
15 #include "components/mus/public/cpp/tests/window_server_test_base.h" 15 #include "components/mus/public/cpp/tests/window_server_test_base.h"
16 #include "components/mus/public/cpp/window_observer.h" 16 #include "components/mus/public/cpp/window_observer.h"
17 #include "components/mus/public/cpp/window_tree_connection.h" 17 #include "components/mus/public/cpp/window_tree_connection.h"
18 #include "components/mus/public/cpp/window_tree_connection_observer.h" 18 #include "components/mus/public/cpp/window_tree_connection_observer.h"
19 #include "components/mus/public/cpp/window_tree_delegate.h" 19 #include "components/mus/public/cpp/window_tree_delegate.h"
20 #include "mojo/converters/geometry/geometry_type_converters.h" 20 #include "ui/gfx/geometry/mojo/geometry_type_converters.h"
21 #include "ui/gfx/geometry/mojo/geometry_util.h"
21 #include "ui/gfx/geometry/rect.h" 22 #include "ui/gfx/geometry/rect.h"
22 #include "ui/mojo/geometry/geometry_util.h"
23 23
24 namespace mus { 24 namespace mus {
25 namespace ws { 25 namespace ws {
26 26
27 namespace { 27 namespace {
28 28
29 Id server_id(mus::Window* window) { 29 Id server_id(mus::Window* window) {
30 return WindowPrivate(window).server_id(); 30 return WindowPrivate(window).server_id();
31 } 31 }
32 32
(...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 ASSERT_TRUE(window_in_wm); 1165 ASSERT_TRUE(window_in_wm);
1166 1166
1167 // Change the bounds in the wm, and make sure the child sees it. 1167 // Change the bounds in the wm, and make sure the child sees it.
1168 window_in_wm->SetBounds(gfx::Rect(1, 11, 12, 101)); 1168 window_in_wm->SetBounds(gfx::Rect(1, 11, 12, 101));
1169 ASSERT_TRUE(WaitForBoundsToChange(window_in_second_connection)); 1169 ASSERT_TRUE(WaitForBoundsToChange(window_in_second_connection));
1170 EXPECT_EQ(gfx::Rect(1, 11, 12, 101), window_in_second_connection->bounds()); 1170 EXPECT_EQ(gfx::Rect(1, 11, 12, 101), window_in_second_connection->bounds());
1171 } 1171 }
1172 1172
1173 } // namespace ws 1173 } // namespace ws
1174 } // namespace mus 1174 } // namespace mus
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698