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

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

Issue 1495723004: Minimum implementation of ARC clipboard Bridge (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the fakes Created 5 years 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_service.h" 5 #include "components/arc/test/fake_arc_bridge_service.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 10
(...skipping 21 matching lines...) Expand all
32 const std::string& device_type, 32 const std::string& device_type,
33 base::ScopedFD fd) { 33 base::ScopedFD fd) {
34 return true; 34 return true;
35 } 35 }
36 36
37 bool FakeArcBridgeService::SendNotificationEventToAndroid( 37 bool FakeArcBridgeService::SendNotificationEventToAndroid(
38 const std::string& key, 38 const std::string& key,
39 ArcNotificationEvent event) { 39 ArcNotificationEvent event) {
40 return true; 40 return true;
41 } 41 }
42 bool FakeArcBridgeService::SendClipboardContentToAndroid(
43 const std::string& text) {
44 return true;
45 }
42 46
43 bool FakeArcBridgeService::RefreshAppList() { 47 bool FakeArcBridgeService::RefreshAppList() {
44 ++refresh_app_list_count_; 48 ++refresh_app_list_count_;
45 return true; 49 return true;
46 } 50 }
47 51
48 bool FakeArcBridgeService::LaunchApp(const std::string& package, 52 bool FakeArcBridgeService::LaunchApp(const std::string& package,
49 const std::string& activity) { 53 const std::string& activity) {
50 launch_requests_.push_back(new Request(package, activity)); 54 launch_requests_.push_back(new Request(package, activity));
51 return true; 55 return true;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 app_observer_list(), 140 app_observer_list(),
137 OnAppIcon(app.package, 141 OnAppIcon(app.package,
138 app.activity, 142 app.activity,
139 scale_factor, 143 scale_factor,
140 png_data)); 144 png_data));
141 145
142 return true; 146 return true;
143 } 147 }
144 148
145 } // namespace arc 149 } // namespace arc
OLDNEW
« components/arc/common/arc_bridge.mojom ('K') | « components/arc/test/fake_arc_bridge_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698