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

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

Issue 1684063002: Add ArcEnabled policy implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@26869593
Patch Set: Added browser test. Created 4 years, 10 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698