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

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: Moved the addition/removal of all types of observer to constructor/destructor. 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..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
« no previous file with comments | « chromeos/dbus/fake_bluetooth_media_client.cc ('k') | chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698