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 "components/mus/public/cpp/tests/view_manager_test_base.h" | 5 #include "components/mus/public/cpp/tests/view_manager_test_base.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/test/test_timeouts.h" | 10 #include "base/test/test_timeouts.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 EXPECT_TRUE(QuitRunLoop()); | 88 EXPECT_TRUE(QuitRunLoop()); |
89 } | 89 } |
90 | 90 |
91 void ViewManagerTestBase::OnConnectionLost(ViewTreeConnection* connection) { | 91 void ViewManagerTestBase::OnConnectionLost(ViewTreeConnection* connection) { |
92 view_tree_connection_destroyed_ = true; | 92 view_tree_connection_destroyed_ = true; |
93 } | 93 } |
94 | 94 |
95 void ViewManagerTestBase::Create( | 95 void ViewManagerTestBase::Create( |
96 mojo::ApplicationConnection* connection, | 96 mojo::ApplicationConnection* connection, |
97 mojo::InterfaceRequest<mojo::ViewTreeClient> request) { | 97 mojo::InterfaceRequest<mojo::ViewTreeClient> request) { |
98 ViewTreeConnection::Create(this, request.Pass()); | 98 ViewTreeConnection::Create( |
| 99 this, request.Pass(), |
| 100 ViewTreeConnection::CreateType::DONT_WAIT_FOR_EMBED); |
99 } | 101 } |
100 | 102 |
101 } // namespace mus | 103 } // namespace mus |
OLD | NEW |