| 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 <utility> | 5 #include <utility> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 10 #include "chromeos/dbus/dbus_thread_manager.h" | 11 #include "chromeos/dbus/dbus_thread_manager.h" |
| 11 #include "components/arc/arc_bridge_service_impl.h" | 12 #include "components/arc/arc_bridge_service_impl.h" |
| 12 #include "components/arc/test/fake_arc_bridge_instance.h" | 13 #include "components/arc/test/fake_arc_bridge_instance.h" |
| 13 #include "ipc/mojo/scoped_ipc_support.h" | 14 #include "ipc/mojo/scoped_ipc_support.h" |
| 14 #include "mojo/public/cpp/environment/environment.h" | 15 #include "mojo/public/cpp/environment/environment.h" |
| 15 #include "mojo/public/cpp/system/message_pipe.h" | 16 #include "mojo/public/cpp/system/message_pipe.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 18 |
| 18 namespace arc { | 19 namespace arc { |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 ASSERT_TRUE(state() == ArcBridgeService::State::STOPPING || | 175 ASSERT_TRUE(state() == ArcBridgeService::State::STOPPING || |
| 175 state() == ArcBridgeService::State::STOPPED); | 176 state() == ArcBridgeService::State::STOPPED); |
| 176 | 177 |
| 177 base::RunLoop run_loop; | 178 base::RunLoop run_loop; |
| 178 run_loop.Run(); | 179 run_loop.Run(); |
| 179 | 180 |
| 180 ASSERT_EQ(ArcBridgeService::State::STOPPED, state()); | 181 ASSERT_EQ(ArcBridgeService::State::STOPPED, state()); |
| 181 } | 182 } |
| 182 | 183 |
| 183 } // namespace arc | 184 } // namespace arc |
| OLD | NEW |