#ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROVIDER_H_
#define CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROVIDER_H_
#include <string>
#include <vector>
#include "chromeos/chromeos_export.h"
#include "chromeos/dbus/bluetooth_gatt_characteristic_service_provider.h"
#include "dbus/object_path.h"
namespace chromeos {
class CHROMEOS_EXPORT FakeBluetoothGattCharacteristicServiceProvider
: public BluetoothGattCharacteristicServiceProvider {
public:
FakeBluetoothGattCharacteristicServiceProvider(
const dbus::ObjectPath& object_path,
Delegate* delegate,
const std::string& uuid,
const std::vector<std::string>& flags,
const std::vector<std::string>& permissions,
const dbus::ObjectPath& service_path);
virtual ~FakeBluetoothGattCharacteristicServiceProvider();
virtual void SendValueChanged(const std::vector<uint8>& value) OVERRIDE;
void GetValue(const Delegate::ValueCallback& callback,
const Delegate::ErrorCallback& error_callback);
void SetValue(const std::vector<uint8>& value,
const base::Closure& callback,
const Delegate::ErrorCallback& error_callback);
const dbus::ObjectPath& object_path() const { return object_path_; }
const std::string& uuid() const { return uuid_; }
const dbus::ObjectPath& service_path() const { return service_path_; }
private:
dbus::ObjectPath object_path_;
std::string uuid_;
dbus::ObjectPath service_path_;
Delegate* delegate_;
DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattCharacteristicServiceProvider);
};
}
#endif