OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chromeos/dbus/bluetooth_input_client.h" | 5 #include "chromeos/dbus/bluetooth_input_client.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
11 #include "chromeos/dbus/fake_bluetooth_input_client.h" | |
12 #include "dbus/bus.h" | 11 #include "dbus/bus.h" |
13 #include "dbus/message.h" | 12 #include "dbus/message.h" |
14 #include "dbus/object_manager.h" | 13 #include "dbus/object_manager.h" |
15 #include "dbus/object_path.h" | 14 #include "dbus/object_path.h" |
16 #include "dbus/object_proxy.h" | 15 #include "dbus/object_proxy.h" |
17 #include "third_party/cros_system_api/dbus/service_constants.h" | 16 #include "third_party/cros_system_api/dbus/service_constants.h" |
18 | 17 |
19 namespace chromeos { | 18 namespace chromeos { |
20 | 19 |
21 BluetoothInputClient::Properties::Properties( | 20 BluetoothInputClient::Properties::Properties( |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 127 |
129 DISALLOW_COPY_AND_ASSIGN(BluetoothInputClientImpl); | 128 DISALLOW_COPY_AND_ASSIGN(BluetoothInputClientImpl); |
130 }; | 129 }; |
131 | 130 |
132 BluetoothInputClient::BluetoothInputClient() { | 131 BluetoothInputClient::BluetoothInputClient() { |
133 } | 132 } |
134 | 133 |
135 BluetoothInputClient::~BluetoothInputClient() { | 134 BluetoothInputClient::~BluetoothInputClient() { |
136 } | 135 } |
137 | 136 |
138 BluetoothInputClient* BluetoothInputClient::Create( | 137 BluetoothInputClient* BluetoothInputClient::Create() { |
139 DBusClientImplementationType type) { | 138 return new BluetoothInputClientImpl(); |
140 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) | |
141 return new BluetoothInputClientImpl(); | |
142 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); | |
143 return new FakeBluetoothInputClient(); | |
144 } | 139 } |
145 | 140 |
146 } // namespace chromeos | 141 } // namespace chromeos |
OLD | NEW |