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

Side by Side Diff: components/arc/arc_bridge_service.h

Issue 2046283003: Add unit test for ArcBluetoothBridge and TypeConverter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bt
Patch Set: Use fake dbus client instead of mock Bluetooth type Created 4 years, 6 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 #ifndef COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ 5 #ifndef COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_
6 #define COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ 6 #define COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 void AddObserver(Observer* observer); 185 void AddObserver(Observer* observer);
186 void RemoveObserver(Observer* observer); 186 void RemoveObserver(Observer* observer);
187 187
188 // Gets the Mojo interface for all the instance services. This will return 188 // Gets the Mojo interface for all the instance services. This will return
189 // nullptr if that particular service is not ready yet. Use an Observer if 189 // nullptr if that particular service is not ready yet. Use an Observer if
190 // you want to be notified when this is ready. This can only be called on the 190 // you want to be notified when this is ready. This can only be called on the
191 // thread that this class was created on. 191 // thread that this class was created on.
192 mojom::AppInstance* app_instance() { return app_ptr_.get(); } 192 mojom::AppInstance* app_instance() { return app_ptr_.get(); }
193 mojom::AudioInstance* audio_instance() { return audio_ptr_.get(); } 193 mojom::AudioInstance* audio_instance() { return audio_ptr_.get(); }
194 mojom::AuthInstance* auth_instance() { return auth_ptr_.get(); } 194 mojom::AuthInstance* auth_instance() { return auth_ptr_.get(); }
195 mojom::BluetoothInstance* bluetooth_instance() { 195 virtual mojom::BluetoothInstance* bluetooth_instance();
Luis Héctor Chávez 2016/06/27 20:19:56 ouch. you can't have name this "bluetooth_instanc
196 return bluetooth_ptr_.get();
197 }
198 mojom::ClipboardInstance* clipboard_instance() { 196 mojom::ClipboardInstance* clipboard_instance() {
199 return clipboard_ptr_.get(); 197 return clipboard_ptr_.get();
200 } 198 }
201 mojom::CrashCollectorInstance* crash_collector_instance() { 199 mojom::CrashCollectorInstance* crash_collector_instance() {
202 return crash_collector_ptr_.get(); 200 return crash_collector_ptr_.get();
203 } 201 }
204 mojom::FileSystemInstance* file_system_instance() { 202 mojom::FileSystemInstance* file_system_instance() {
205 return file_system_ptr_.get(); 203 return file_system_ptr_.get();
206 } 204 }
207 mojom::ImeInstance* ime_instance() { return ime_ptr_.get(); } 205 mojom::ImeInstance* ime_instance() { return ime_ptr_.get(); }
(...skipping 14 matching lines...) Expand all
222 mojom::StorageManagerInstance* storage_manager_instance() { 220 mojom::StorageManagerInstance* storage_manager_instance() {
223 return storage_manager_ptr_.get(); 221 return storage_manager_ptr_.get();
224 } 222 }
225 mojom::VideoInstance* video_instance() { return video_ptr_.get(); } 223 mojom::VideoInstance* video_instance() { return video_ptr_.get(); }
226 mojom::WindowManagerInstance* window_manager_instance() { 224 mojom::WindowManagerInstance* window_manager_instance() {
227 return window_manager_ptr_.get(); 225 return window_manager_ptr_.get();
228 } 226 }
229 227
230 int32_t app_version() const { return app_ptr_.version(); } 228 int32_t app_version() const { return app_ptr_.version(); }
231 int32_t audio_version() const { return audio_ptr_.version(); } 229 int32_t audio_version() const { return audio_ptr_.version(); }
232 int32_t bluetooth_version() const { return bluetooth_ptr_.version(); } 230 virtual int32_t bluetooth_version() const;
233 int32_t auth_version() const { return auth_ptr_.version(); } 231 int32_t auth_version() const { return auth_ptr_.version(); }
234 int32_t clipboard_version() const { return clipboard_ptr_.version(); } 232 int32_t clipboard_version() const { return clipboard_ptr_.version(); }
235 int32_t crash_collector_version() const { 233 int32_t crash_collector_version() const {
236 return crash_collector_ptr_.version(); 234 return crash_collector_ptr_.version();
237 } 235 }
238 int32_t file_system_version() const { return file_system_ptr_.version(); } 236 int32_t file_system_version() const { return file_system_ptr_.version(); }
239 int32_t ime_version() const { return ime_ptr_.version(); } 237 int32_t ime_version() const { return ime_ptr_.version(); }
240 int32_t intent_helper_version() const { return intent_helper_ptr_.version(); } 238 int32_t intent_helper_version() const { return intent_helper_ptr_.version(); }
241 int32_t metrics_version() const { return metrics_ptr_.version(); } 239 int32_t metrics_version() const { return metrics_ptr_.version(); }
242 int32_t net_version() const { return net_ptr_.version(); } 240 int32_t net_version() const { return net_ptr_.version(); }
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 411
414 // WeakPtrFactory to use callbacks. 412 // WeakPtrFactory to use callbacks.
415 base::WeakPtrFactory<ArcBridgeService> weak_factory_; 413 base::WeakPtrFactory<ArcBridgeService> weak_factory_;
416 414
417 DISALLOW_COPY_AND_ASSIGN(ArcBridgeService); 415 DISALLOW_COPY_AND_ASSIGN(ArcBridgeService);
418 }; 416 };
419 417
420 } // namespace arc 418 } // namespace arc
421 419
422 #endif // COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ 420 #endif // COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698