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

Unified Diff: components/arc/arc_bridge_service.cc

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 side-by-side diff with in-line comments
Download patch
Index: components/arc/arc_bridge_service.cc
diff --git a/components/arc/arc_bridge_service.cc b/components/arc/arc_bridge_service.cc
index 5591e1b94775b45b263bd1f24910793cc8e30c6c..2d3bac2ce84dc3f9bd43696cd7d53589e2a4b56b 100644
--- a/components/arc/arc_bridge_service.cc
+++ b/components/arc/arc_bridge_service.cc
@@ -101,6 +101,14 @@ void ArcBridgeService::RemoveObserver(Observer* observer) {
observer_list_.RemoveObserver(observer);
}
+mojom::BluetoothInstance* ArcBridgeService::bluetooth_instance() {
+ return bluetooth_ptr_.get();
+}
+
+int32_t ArcBridgeService::bluetooth_version() const {
+ return bluetooth_ptr_.version();
+}
+
void ArcBridgeService::OnAppInstanceReady(mojom::AppInstancePtr app_ptr) {
DCHECK(CalledOnValidThread());
temporary_app_ptr_ = std::move(app_ptr);

Powered by Google App Engine
This is Rietveld 408576698