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

Unified Diff: chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc

Issue 13927010: Bluetooth: implement BlueZ 5 backend for Chrome OS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix review comment Created 7 years, 8 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: chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc
diff --git a/chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc b/chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc
index 49c5bbea6baba9c9c6651626174f6985780bbe79..eee44dcb7d46e1b7af7854d6cb8377e02834306f 100644
--- a/chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc
+++ b/chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc
@@ -5,6 +5,10 @@
#include "chromeos/dbus/mock_dbus_thread_manager_without_gmock.h"
#include "chromeos/dbus/dbus_thread_manager_observer.h"
+#include "chromeos/dbus/fake_bluetooth_adapter_client.h"
+#include "chromeos/dbus/fake_bluetooth_agent_manager_client.h"
+#include "chromeos/dbus/fake_bluetooth_device_client.h"
+#include "chromeos/dbus/fake_bluetooth_profile_manager_client.h"
#include "chromeos/dbus/ibus/mock_ibus_client.h"
#include "chromeos/dbus/ibus/mock_ibus_config_client.h"
#include "chromeos/dbus/ibus/mock_ibus_engine_factory_service.h"
@@ -15,7 +19,12 @@
namespace chromeos {
MockDBusThreadManagerWithoutGMock::MockDBusThreadManagerWithoutGMock()
- : mock_ibus_client_(new MockIBusClient),
+ : fake_bluetooth_adapter_client_(new FakeBluetoothAdapterClient()),
+ fake_bluetooth_agent_manager_client_(new FakeBluetoothAgentManagerClient()),
+ fake_bluetooth_device_client_(new FakeBluetoothDeviceClient()),
+ fake_bluetooth_profile_manager_client_(
+ new FakeBluetoothProfileManagerClient()),
+ mock_ibus_client_(new MockIBusClient),
mock_ibus_input_context_client_(new MockIBusInputContextClient),
ibus_bus_(NULL) {
}
@@ -104,28 +113,24 @@ DebugDaemonClient* MockDBusThreadManagerWithoutGMock::GetDebugDaemonClient() {
ExperimentalBluetoothAdapterClient*
MockDBusThreadManagerWithoutGMock::GetExperimentalBluetoothAdapterClient() {
- NOTIMPLEMENTED();
- return NULL;
+ return fake_bluetooth_adapter_client_.get();
}
ExperimentalBluetoothAgentManagerClient*
MockDBusThreadManagerWithoutGMock::
GetExperimentalBluetoothAgentManagerClient() {
- NOTIMPLEMENTED();
- return NULL;
+ return fake_bluetooth_agent_manager_client_.get();
}
ExperimentalBluetoothDeviceClient*
MockDBusThreadManagerWithoutGMock::GetExperimentalBluetoothDeviceClient() {
- NOTIMPLEMENTED();
- return NULL;
+ return fake_bluetooth_device_client_.get();
}
ExperimentalBluetoothProfileManagerClient*
MockDBusThreadManagerWithoutGMock::
GetExperimentalBluetoothProfileManagerClient() {
- NOTIMPLEMENTED();
- return NULL;
+ return fake_bluetooth_profile_manager_client_.get();
}
ShillDeviceClient*
« no previous file with comments | « chromeos/dbus/mock_dbus_thread_manager_without_gmock.h ('k') | device/bluetooth/bluetooth_adapter_experimental_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698