OLD | NEW |
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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/run_loop.h" | 6 #include "base/run_loop.h" |
7 #include "mojo/public/cpp/application/application_delegate.h" | 7 #include "mojo/public/cpp/application/application_delegate.h" |
8 #include "mojo/public/cpp/application/application_impl.h" | 8 #include "mojo/public/cpp/application/application_impl.h" |
9 #include "mojo/public/cpp/application/application_test_base.h" | 9 #include "mojo/public/cpp/application/application_test_base.h" |
10 #include "mojo/public/cpp/application/service_provider_impl.h" | 10 #include "mojo/public/cpp/application/service_provider_impl.h" |
11 #include "mojo/public/cpp/system/macros.h" | 11 #include "mojo/public/cpp/system/macros.h" |
12 #include "mojo/services/view_manager/public/cpp/view.h" | 12 #include "mojo/services/view_manager/cpp/view.h" |
13 #include "mojo/services/view_manager/public/cpp/view_manager_client_factory.h" | 13 #include "mojo/services/view_manager/cpp/view_manager_client_factory.h" |
14 #include "mojo/services/view_manager/public/cpp/view_manager_delegate.h" | 14 #include "mojo/services/view_manager/cpp/view_manager_delegate.h" |
15 #include "mojo/services/window_manager/public/interfaces/window_manager.mojom.h" | 15 #include "mojo/services/window_manager/interfaces/window_manager.mojom.h" |
16 | 16 |
17 namespace mojo { | 17 namespace mojo { |
18 namespace { | 18 namespace { |
19 | 19 |
20 // TestApplication's view is embedded by the window manager. | 20 // TestApplication's view is embedded by the window manager. |
21 class TestApplication : public ApplicationDelegate, public ViewManagerDelegate { | 21 class TestApplication : public ApplicationDelegate, public ViewManagerDelegate { |
22 public: | 22 public: |
23 TestApplication() : root_(nullptr) {} | 23 TestApplication() : root_(nullptr) {} |
24 ~TestApplication() override {} | 24 ~TestApplication() override {} |
25 | 25 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 // This call fails if the WindowManager does not have a FocusController. | 203 // This call fails if the WindowManager does not have a FocusController. |
204 EXPECT_EQ(0u, capture_view_id); | 204 EXPECT_EQ(0u, capture_view_id); |
205 EXPECT_EQ(0u, focused_view_id); | 205 EXPECT_EQ(0u, focused_view_id); |
206 EXPECT_EQ(0u, active_view_id); | 206 EXPECT_EQ(0u, active_view_id); |
207 } | 207 } |
208 | 208 |
209 // TODO(msw): Write tests exercising other WindowManager functionality. | 209 // TODO(msw): Write tests exercising other WindowManager functionality. |
210 | 210 |
211 } // namespace | 211 } // namespace |
212 } // namespace mojo | 212 } // namespace mojo |
OLD | NEW |