OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "mojo/public/cpp/application/application_impl.h" | |
6 #include "mojo/public/cpp/application/connect.h" | 5 #include "mojo/public/cpp/application/connect.h" |
| 6 #include "mojo/public/cpp/bindings/binding.h" |
7 #include "mojo/services/ui/views/interfaces/view_manager.mojom.h" | 7 #include "mojo/services/ui/views/interfaces/view_manager.mojom.h" |
8 #include "mojo/services/ui/views/interfaces/views.mojom.h" | 8 #include "mojo/services/ui/views/interfaces/views.mojom.h" |
9 #include "services/ui/view_manager/tests/mock_view_associate.h" | 9 #include "services/ui/view_manager/tests/mock_view_associate.h" |
10 #include "services/ui/view_manager/tests/view_manager_test_base.h" | 10 #include "services/ui/view_manager/tests/view_manager_test_base.h" |
11 | 11 |
12 namespace view_manager { | 12 namespace view_manager { |
13 namespace test { | 13 namespace test { |
14 | 14 |
15 class MockViewListener : public mojo::ui::ViewListener { | 15 class MockViewListener : public mojo::ui::ViewListener { |
16 public: | 16 public: |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 165 |
166 // view_associate_owner is out of scope, should be destroyed | 166 // view_associate_owner is out of scope, should be destroyed |
167 // we expect to get a connection error from the view associate | 167 // we expect to get a connection error from the view associate |
168 KICK_MESSAGE_LOOP_WHILE(connection_error_callback_invokecount != 1) | 168 KICK_MESSAGE_LOOP_WHILE(connection_error_callback_invokecount != 1) |
169 | 169 |
170 EXPECT_EQ(1, connection_error_callback_invokecount); | 170 EXPECT_EQ(1, connection_error_callback_invokecount); |
171 } | 171 } |
172 | 172 |
173 } // namespace test | 173 } // namespace test |
174 } // namespace view_manager | 174 } // namespace view_manager |
OLD | NEW |