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

Side by Side Diff: device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.h

Issue 1867253002: Convert //dbus from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU fixes in //device Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_adapter_client.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_ 5 #ifndef DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_
6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_ 6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <string> 11 #include <string>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
15 #include "base/observer_list.h" 16 #include "base/observer_list.h"
16 #include "dbus/object_path.h" 17 #include "dbus/object_path.h"
17 #include "device/bluetooth/bluetooth_export.h" 18 #include "device/bluetooth/bluetooth_export.h"
18 #include "device/bluetooth/dbus/bluetooth_gatt_descriptor_client.h" 19 #include "device/bluetooth/dbus/bluetooth_gatt_descriptor_client.h"
19 20
20 namespace bluez { 21 namespace bluez {
21 22
22 // FakeBluetoothGattDescriptorClient simulates the behavior of the Bluetooth 23 // FakeBluetoothGattDescriptorClient simulates the behavior of the Bluetooth
23 // Daemon GATT characteristic descriptor objects and is used in test cases in 24 // Daemon GATT characteristic descriptor objects and is used in test cases in
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // Note: This should remain the last member so it'll be destroyed and 98 // Note: This should remain the last member so it'll be destroyed and
98 // invalidate its weak pointers before any other members are destroyed. 99 // invalidate its weak pointers before any other members are destroyed.
99 base::WeakPtrFactory<FakeBluetoothGattDescriptorClient> weak_ptr_factory_; 100 base::WeakPtrFactory<FakeBluetoothGattDescriptorClient> weak_ptr_factory_;
100 101
101 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattDescriptorClient); 102 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattDescriptorClient);
102 }; 103 };
103 104
104 } // namespace bluez 105 } // namespace bluez
105 106
106 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_ 107 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_
OLDNEW
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_adapter_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698