Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Side by Side Diff: components/arc/test/fake_arc_bridge_instance.cc

Issue 2133653002: arc: Notify ARC instance failures via callbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698