OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stdint.h> | 5 #include <stdint.h> |
6 #include <utility> | 6 #include <utility> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "components/mus/public/cpp/window.h" | 10 #include "components/mus/public/cpp/window.h" |
11 #include "components/mus/public/cpp/window_tree_connection.h" | 11 #include "components/mus/public/cpp/window_tree_connection.h" |
12 #include "components/mus/public/cpp/window_tree_delegate.h" | 12 #include "components/mus/public/cpp/window_tree_delegate.h" |
13 #include "components/mus/public/interfaces/window_manager.mojom.h" | 13 #include "components/mus/public/interfaces/window_manager.mojom.h" |
14 #include "components/mus/public/interfaces/window_tree.mojom.h" | 14 #include "components/mus/public/interfaces/window_tree.mojom.h" |
15 #include "mojo/application/public/cpp/application_impl.h" | 15 #include "mojo/shell/public/cpp/application_impl.h" |
16 #include "mojo/application/public/cpp/application_test_base.h" | 16 #include "mojo/shell/public/cpp/application_test_base.h" |
17 | 17 |
18 namespace mash { | 18 namespace mash { |
19 namespace wm { | 19 namespace wm { |
20 | 20 |
21 class WindowManagerAppTest : public mojo::test::ApplicationTestBase, | 21 class WindowManagerAppTest : public mojo::test::ApplicationTestBase, |
22 public mus::WindowTreeDelegate { | 22 public mus::WindowTreeDelegate { |
23 public: | 23 public: |
24 WindowManagerAppTest() {} | 24 WindowManagerAppTest() {} |
25 ~WindowManagerAppTest() override {} | 25 ~WindowManagerAppTest() override {} |
26 | 26 |
(...skipping 26 matching lines...) Expand all Loading... |
53 | 53 |
54 TEST_F(WindowManagerAppTest, OpenWindow) { | 54 TEST_F(WindowManagerAppTest, OpenWindow) { |
55 mus::mojom::WindowManagerPtr connection; | 55 mus::mojom::WindowManagerPtr connection; |
56 ConnectToWindowManager(&connection); | 56 ConnectToWindowManager(&connection); |
57 | 57 |
58 ASSERT_TRUE(OpenWindow(connection.get())); | 58 ASSERT_TRUE(OpenWindow(connection.get())); |
59 } | 59 } |
60 | 60 |
61 } // namespace wm | 61 } // namespace wm |
62 } // namespace mash | 62 } // namespace mash |
OLD | NEW |