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

Unified Diff: chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.h

Issue 910023002: device/bluetooth:Implement BluetoothMediaEndpointServiceProvider delegate and media-related overrid… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/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..3f16d34afef4613b3a41a431c5835547d1c914e0 100644
--- a/chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.h
+++ b/chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.h
@@ -11,12 +11,12 @@
#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:
@@ -27,15 +27,24 @@ class CHROMEOS_EXPORT FakeBluetoothMediaEndpointServiceProvider
// 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();
+
+ // Makes the endpoint object visible or invisible.
+ void SetVisible(bool visible);
armansito 2015/02/10 00:17:01 I think this is a bit strange, since this is an ex
Miao 2015/02/10 22:15:21 Indeed, an endpoint is an exported object, so this
+
+ // Gets the path of the media endpoint object.
+ 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

Powered by Google App Engine
This is Rietveld 408576698