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

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

Issue 1675083002: Rename ApplicationDelegate to ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
Patch Set: . Created 4 years, 10 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
« no previous file with comments | « components/mus/ws/display_manager.cc ('k') | components/mus/ws/window_tree_apptest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/tests/window_server_test_base.h" 13 #include "components/mus/public/cpp/tests/window_server_test_base.h"
14 #include "components/mus/public/cpp/window_observer.h" 14 #include "components/mus/public/cpp/window_observer.h"
15 #include "components/mus/public/cpp/window_tree_connection.h" 15 #include "components/mus/public/cpp/window_tree_connection.h"
16 #include "components/mus/public/cpp/window_tree_connection_observer.h" 16 #include "components/mus/public/cpp/window_tree_connection_observer.h"
17 #include "components/mus/public/cpp/window_tree_delegate.h" 17 #include "components/mus/public/cpp/window_tree_delegate.h"
18 #include "mojo/converters/geometry/geometry_type_converters.h" 18 #include "mojo/converters/geometry/geometry_type_converters.h"
19 #include "mojo/shell/public/cpp/application_connection.h"
20 #include "mojo/shell/public/cpp/application_test_base.h" 19 #include "mojo/shell/public/cpp/application_test_base.h"
21 #include "ui/gfx/geometry/rect.h" 20 #include "ui/gfx/geometry/rect.h"
22 #include "ui/mojo/geometry/geometry_util.h" 21 #include "ui/mojo/geometry/geometry_util.h"
23 22
24 namespace mus { 23 namespace mus {
25 namespace ws { 24 namespace ws {
26 25
27 namespace { 26 namespace {
28 27
29 int ValidIndexOf(const Window::Children& windows, Window* window) { 28 int ValidIndexOf(const Window::Children& windows, Window* window) {
(...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 ASSERT_TRUE(window_in_wm); 1167 ASSERT_TRUE(window_in_wm);
1169 1168
1170 // Change the bounds in the wm, and make sure the child sees it. 1169 // Change the bounds in the wm, and make sure the child sees it.
1171 window_in_wm->SetBounds(gfx::Rect(1, 11, 12, 101)); 1170 window_in_wm->SetBounds(gfx::Rect(1, 11, 12, 101));
1172 ASSERT_TRUE(WaitForBoundsToChange(window_in_second_connection)); 1171 ASSERT_TRUE(WaitForBoundsToChange(window_in_second_connection));
1173 EXPECT_EQ(gfx::Rect(1, 11, 12, 101), window_in_second_connection->bounds()); 1172 EXPECT_EQ(gfx::Rect(1, 11, 12, 101), window_in_second_connection->bounds());
1174 } 1173 }
1175 1174
1176 } // namespace ws 1175 } // namespace ws
1177 } // namespace mus 1176 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/ws/display_manager.cc ('k') | components/mus/ws/window_tree_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698