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

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

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 #ifndef COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_SERVICE_H_ 5 #ifndef COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_SERVICE_H_
6 #define COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_SERVICE_H_ 6 #define COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 const std::string& device_type, 72 const std::string& device_type,
73 base::ScopedFD fd) override; 73 base::ScopedFD fd) override;
74 bool RefreshAppList() override; 74 bool RefreshAppList() override;
75 bool LaunchApp(const std::string& package, 75 bool LaunchApp(const std::string& package,
76 const std::string& activity) override; 76 const std::string& activity) override;
77 bool RequestAppIcon(const std::string& package, 77 bool RequestAppIcon(const std::string& package,
78 const std::string& activity, 78 const std::string& activity,
79 ScaleFactor scale_factor) override; 79 ScaleFactor scale_factor) override;
80 bool SendNotificationEventToAndroid(const std::string& key, 80 bool SendNotificationEventToAndroid(const std::string& key,
81 ArcNotificationEvent event) override; 81 ArcNotificationEvent event) override;
82 bool SendClipboardContentToAndroid(const std::string& text) override;
82 83
83 int refresh_app_list_count() const { return refresh_app_list_count_; } 84 int refresh_app_list_count() const { return refresh_app_list_count_; }
84 85
85 const ScopedVector<Request>& launch_requests() const { 86 const ScopedVector<Request>& launch_requests() const {
86 return launch_requests_; 87 return launch_requests_;
87 } 88 }
88 89
89 const ScopedVector<IconRequest>& icon_requests() const { 90 const ScopedVector<IconRequest>& icon_requests() const {
90 return icon_requests_; 91 return icon_requests_;
91 } 92 }
(...skipping 18 matching lines...) Expand all
110 ScopedVector<Request> launch_requests_; 111 ScopedVector<Request> launch_requests_;
111 // Keeps information about icon load requests. 112 // Keeps information about icon load requests.
112 ScopedVector<IconRequest> icon_requests_; 113 ScopedVector<IconRequest> icon_requests_;
113 114
114 DISALLOW_COPY_AND_ASSIGN(FakeArcBridgeService); 115 DISALLOW_COPY_AND_ASSIGN(FakeArcBridgeService);
115 }; 116 };
116 117
117 } // namespace arc 118 } // namespace arc
118 119
119 #endif // COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_SERVICE_H_ 120 #endif // COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698