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

Unified Diff: chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.h

Issue 1347193004: Refactor DBusThreadManager to split away BT clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
deleted file mode 100644
index 5efe14ffe0ed2d08d6a9c4fd21da5e299125c2bc..0000000000000000000000000000000000000000
--- a/chromeos/dbus/fake_bluetooth_media_endpoint_service_provider.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_
-#define CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_
-
-#include <vector>
-
-#include "base/logging.h"
-#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.
-class CHROMEOS_EXPORT FakeBluetoothMediaEndpointServiceProvider
- : public BluetoothMediaEndpointServiceProvider {
- public:
- 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 Delegate::TransportProperties& properties);
- void SelectConfiguration(
- const std::vector<uint8_t>& capabilities,
- const Delegate::SelectConfigurationCallback& callback);
- void ClearConfiguration(const dbus::ObjectPath& transport_path);
- void Released();
-
- // Gets the path of the media endpoint object.
- const dbus::ObjectPath& object_path() const { return object_path_; }
-
- private:
- // 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
- // |delegate_| will generate the response for those methods which have
- // non-void return.
- Delegate* delegate_;
-
- DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaEndpointServiceProvider);
-};
-
-} // namespace chromeos
-
-#endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_ENDPOINT_SERVICE_PROVIDER_H_
« 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