#include "base/bind.h"
#include "base/logging.h"
-#include "chromeos/dbus/fake_bluetooth_agent_manager_client.h"
#include "dbus/bus.h"
#include "dbus/message.h"
#include "dbus/object_path.h"
virtual void RegisterAgent(const dbus::ObjectPath& agent_path,
const std::string& capability,
const base::Closure& callback,
- const ErrorCallback& error_callback) OVERRIDE {
+ const ErrorCallback& error_callback) override {
dbus::MethodCall method_call(
bluetooth_agent_manager::kBluetoothAgentManagerInterface,
bluetooth_agent_manager::kRegisterAgent);
// BluetoothAgentManagerClient override.
virtual void UnregisterAgent(const dbus::ObjectPath& agent_path,
const base::Closure& callback,
- const ErrorCallback& error_callback) OVERRIDE {
+ const ErrorCallback& error_callback) override {
dbus::MethodCall method_call(
bluetooth_agent_manager::kBluetoothAgentManagerInterface,
bluetooth_agent_manager::kUnregisterAgent);
virtual void RequestDefaultAgent(const dbus::ObjectPath& agent_path,
const base::Closure& callback,
const ErrorCallback& error_callback)
- OVERRIDE {
+ override {
dbus::MethodCall method_call(
bluetooth_agent_manager::kBluetoothAgentManagerInterface,
bluetooth_agent_manager::kRequestDefaultAgent);
}
protected:
- virtual void Init(dbus::Bus* bus) OVERRIDE {
+ virtual void Init(dbus::Bus* bus) override {
DCHECK(bus);
object_proxy_ = bus->GetObjectProxy(
bluetooth_agent_manager::kBluetoothAgentManagerServiceName,
BluetoothAgentManagerClient::~BluetoothAgentManagerClient() {
}
-BluetoothAgentManagerClient* BluetoothAgentManagerClient::Create(
- DBusClientImplementationType type) {
- if (type == REAL_DBUS_CLIENT_IMPLEMENTATION)
- return new BluetoothAgentManagerClientImpl();
- DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type);
- return new FakeBluetoothAgentManagerClient();
+BluetoothAgentManagerClient* BluetoothAgentManagerClient::Create() {
+ return new BluetoothAgentManagerClientImpl();
}
} // namespace chromeos