| 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/arc/test/fake_arc_bridge_instance.h" | 5 #include "components/arc/test/fake_arc_bridge_instance.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 namespace arc { | 9 namespace arc { |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 void FakeArcBridgeInstance::Bind( | 25 void FakeArcBridgeInstance::Bind( |
| 26 mojo::InterfaceRequest<mojom::ArcBridgeInstance> interface_request) { | 26 mojo::InterfaceRequest<mojom::ArcBridgeInstance> interface_request) { |
| 27 binding_.Bind(std::move(interface_request)); | 27 binding_.Bind(std::move(interface_request)); |
| 28 } | 28 } |
| 29 | 29 |
| 30 void FakeArcBridgeInstance::WaitForInitCall() { | 30 void FakeArcBridgeInstance::WaitForInitCall() { |
| 31 binding_.WaitForIncomingMethodCall(); | 31 binding_.WaitForIncomingMethodCall(); |
| 32 } | 32 } |
| 33 | 33 |
| 34 void FakeArcBridgeInstance::SimulateCrash() { | 34 void FakeArcBridgeInstance::SimulateCrash(ArcBridgeService::StopReason reason) { |
| 35 if (!delegate_) | 35 if (!delegate_) |
| 36 return; | 36 return; |
| 37 delegate_->OnCrashed(); | 37 delegate_->OnCrashed(reason); |
| 38 } | 38 } |
| 39 | 39 |
| 40 } // namespace arc | 40 } // namespace arc |
| OLD | NEW |