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

Side by Side Diff: device/bluetooth/bluetooth_device.h

Issue 2744243008: Add unit tests for BluetoothDevice::GetPrimaryServices() etc. (Closed)
Patch Set: clean up code Created 3 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BLUETOOTH_DEVICE_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 FRIEND_TEST_ALL_PREFIXES( 572 FRIEND_TEST_ALL_PREFIXES(
573 BluetoothTest, 573 BluetoothTest,
574 BluetoothGattConnection_DisconnectGatt_SimulateDisconnect); 574 BluetoothGattConnection_DisconnectGatt_SimulateDisconnect);
575 FRIEND_TEST_ALL_PREFIXES(BluetoothTest, 575 FRIEND_TEST_ALL_PREFIXES(BluetoothTest,
576 BluetoothGattConnection_ErrorAfterConnection); 576 BluetoothGattConnection_ErrorAfterConnection);
577 FRIEND_TEST_ALL_PREFIXES(BluetoothTest, 577 FRIEND_TEST_ALL_PREFIXES(BluetoothTest,
578 BluetoothGattConnection_DisconnectGatt_Cleanup); 578 BluetoothGattConnection_DisconnectGatt_Cleanup);
579 FRIEND_TEST_ALL_PREFIXES(BluetoothTest, GetName_NullName); 579 FRIEND_TEST_ALL_PREFIXES(BluetoothTest, GetName_NullName);
580 FRIEND_TEST_ALL_PREFIXES(BluetoothTest, RemoveOutdatedDevices); 580 FRIEND_TEST_ALL_PREFIXES(BluetoothTest, RemoveOutdatedDevices);
581 FRIEND_TEST_ALL_PREFIXES(BluetoothTest, RemoveOutdatedDeviceGattConnect); 581 FRIEND_TEST_ALL_PREFIXES(BluetoothTest, RemoveOutdatedDeviceGattConnect);
582 FRIEND_TEST_ALL_PREFIXES(BluetoothTest, GetPrimaryServices);
583 FRIEND_TEST_ALL_PREFIXES(BluetoothTest, GetPrimaryServicesByUUID);
584 FRIEND_TEST_ALL_PREFIXES(BluetoothTest, GetCharacteristicsByUUID);
582 585
583 // Helper class to easily update the sets of UUIDs and keep them in sync with 586 // Helper class to easily update the sets of UUIDs and keep them in sync with
584 // the set of all the device's UUIDs. 587 // the set of all the device's UUIDs.
585 class DeviceUUIDs { 588 class DeviceUUIDs {
586 public: 589 public:
587 DeviceUUIDs(); 590 DeviceUUIDs();
588 ~DeviceUUIDs(); 591 ~DeviceUUIDs();
589 592
590 DeviceUUIDs(const DeviceUUIDs& other); 593 DeviceUUIDs(const DeviceUUIDs& other);
591 DeviceUUIDs& operator=(const DeviceUUIDs& other); 594 DeviceUUIDs& operator=(const DeviceUUIDs& other);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 // Returns a localized string containing the device's bluetooth address and 687 // Returns a localized string containing the device's bluetooth address and
685 // a device type for display when |name_| is empty. 688 // a device type for display when |name_| is empty.
686 base::string16 GetAddressWithLocalizedDeviceTypeName() const; 689 base::string16 GetAddressWithLocalizedDeviceTypeName() const;
687 690
688 DISALLOW_COPY_AND_ASSIGN(BluetoothDevice); 691 DISALLOW_COPY_AND_ASSIGN(BluetoothDevice);
689 }; 692 };
690 693
691 } // namespace device 694 } // namespace device
692 695
693 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ 696 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_
OLDNEW
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_device_unittest.cc » ('j') | device/bluetooth/bluetooth_device_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698