Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "components/arc/test/fake_arc_bridge_bootstrap.h" | |
| 6 | |
| 7 #include <utility> | |
| 8 | |
| 9 #include "base/bind.h" | |
|
bartfab (slow)
2016/03/02 14:45:41
Nit: Not used.
Polina Bondarenko
2016/03/06 20:22:33
Done.
| |
| 10 #include "base/bind_helpers.h" | |
|
bartfab (slow)
2016/03/02 14:45:41
Nit: Not used.
Polina Bondarenko
2016/03/06 20:22:33
Done.
| |
| 11 #include "components/arc/test/fake_arc_bridge_instance.h" | |
| 12 | |
| 13 namespace arc { | |
| 14 | |
| 15 FakeArcBridgeBootstrap::FakeArcBridgeBootstrap(FakeArcBridgeInstance* instance) | |
| 16 : instance_(instance) {} | |
|
bartfab (slow)
2016/03/02 14:45:41
Nit: If a method declaration is not inline, the cl
Polina Bondarenko
2016/03/06 20:22:33
Done.
| |
| 17 | |
| 18 void FakeArcBridgeBootstrap::Start() { | |
| 19 DCHECK(delegate_); | |
|
bartfab (slow)
2016/03/02 14:45:41
Nit: #include "base/logging.h"
Polina Bondarenko
2016/03/06 20:22:33
Done.
| |
| 20 ArcBridgeInstancePtr instance; | |
|
bartfab (slow)
2016/03/02 14:45:41
Nit: #include "components/arc/common/arc_bridge.mo
Polina Bondarenko
2016/03/06 20:22:33
Done.
| |
| 21 instance_->Bind(mojo::GetProxy(&instance)); | |
|
bartfab (slow)
2016/03/02 14:45:41
Nit: #include "mojo/public/cpp/bindings/interface_
Polina Bondarenko
2016/03/06 20:22:33
Done.
| |
| 22 delegate_->OnConnectionEstablished(std::move(instance)); | |
| 23 } | |
| 24 | |
| 25 void FakeArcBridgeBootstrap::Stop() { | |
| 26 DCHECK(delegate_); | |
| 27 instance_->Unbind(); | |
| 28 delegate_->OnStopped(); | |
| 29 } | |
| 30 | |
| 31 } // namespace arc | |
| OLD | NEW |