Index: chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.h |
diff --git a/chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.h b/chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.h |
index 54acd65f3b29ed523996be9521a0974ea7260abf..5efe14ffe0ed2d08d6a9c4fd21da5e299125c2bc 100644 |
--- a/chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.h |
+++ b/chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.h |
@@ -11,31 +11,37 @@ |
#include "chromeos/chromeos_export.h" |
#include "chromeos/dbus/bluetooth_media_endpoint_service_provider.h" |
#include "dbus/object_path.h" |
+#include "testing/gtest/include/gtest/gtest_prod.h" |
namespace chromeos { |
// FakeBluetoothMediaEndpointServiceProvider simulates the behavior of a local |
// Bluetooth Media Endpoint object. |
-// TODO(mcchou): Add the logic of the behavior. |
class CHROMEOS_EXPORT FakeBluetoothMediaEndpointServiceProvider |
: public BluetoothMediaEndpointServiceProvider { |
public: |
- FakeBluetoothMediaEndpointServiceProvider(const dbus::ObjectPath object_path, |
+ FakeBluetoothMediaEndpointServiceProvider(const dbus::ObjectPath& object_path, |
Delegate* delegate); |
~FakeBluetoothMediaEndpointServiceProvider() override; |
// Each of these calls the equivalent BluetoothMediaEnpointServiceProvider:: |
// Delegate method on the object passed on construction. |
void SetConfiguration(const dbus::ObjectPath& transport_path, |
- const dbus::MessageReader& properties); |
+ const Delegate::TransportProperties& properties); |
void SelectConfiguration( |
const std::vector<uint8_t>& capabilities, |
const Delegate::SelectConfigurationCallback& callback); |
void ClearConfiguration(const dbus::ObjectPath& transport_path); |
- void Release(); |
+ void Released(); |
+ |
+ // Gets the path of the media endpoint object. |
+ const dbus::ObjectPath& object_path() const { return object_path_; } |
private: |
- // The fake D-Bus object path. |
+ // Indicates whether the endpoint object is visible or not. |
+ bool visible_; |
+ |
+ // The path of the media endpoint object. |
dbus::ObjectPath object_path_; |
// All incoming method calls are passed to |delegate_|. |callback| passed to |