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

Side by Side Diff: device/bluetooth/test/bluetooth_test.cc

Issue 2377513004: bluetooth:android: Return the advertised name if advertising (Closed)
Patch Set: Format' Created 4 years, 1 month 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/test/bluetooth_test.h ('k') | device/bluetooth/test/bluetooth_test_bluez.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "device/bluetooth/test/bluetooth_test.h" 5 #include "device/bluetooth/test/bluetooth_test.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "device/bluetooth/bluetooth_adapter.h" 13 #include "device/bluetooth/bluetooth_adapter.h"
14 #include "device/bluetooth/bluetooth_common.h" 14 #include "device/bluetooth/bluetooth_common.h"
15 15
16 namespace device { 16 namespace device {
17 17
18 const std::string BluetoothTestBase::kTestAdapterName = "FakeBluetoothAdapter"; 18 const std::string BluetoothTestBase::kTestAdapterName = "FakeBluetoothAdapter";
19 const std::string BluetoothTestBase::kTestAdapterAddress = "A1:B2:C3:D4:E5:F6"; 19 const std::string BluetoothTestBase::kTestAdapterAddress = "A1:B2:C3:D4:E5:F6";
20 20
21 const std::string BluetoothTestBase::kTestDeviceName = "FakeBluetoothDevice"; 21 const std::string BluetoothTestBase::kTestDeviceGapName = "FakeBluetoothDevice";
22 const std::string BluetoothTestBase::kTestDeviceAdvertisedName =
23 "FakeBluetooth";
22 const std::string BluetoothTestBase::kTestDeviceNameEmpty = ""; 24 const std::string BluetoothTestBase::kTestDeviceNameEmpty = "";
23 25
24 const std::string BluetoothTestBase::kTestDeviceAddress1 = "01:00:00:90:1E:BE"; 26 const std::string BluetoothTestBase::kTestDeviceAddress1 = "01:00:00:90:1E:BE";
25 const std::string BluetoothTestBase::kTestDeviceAddress2 = "02:00:00:8B:74:63"; 27 const std::string BluetoothTestBase::kTestDeviceAddress2 = "02:00:00:8B:74:63";
26 const std::string BluetoothTestBase::kTestDeviceAddress3 = "03:00:00:17:C0:57"; 28 const std::string BluetoothTestBase::kTestDeviceAddress3 = "03:00:00:17:C0:57";
27 29
28 const std::string BluetoothTestBase::kTestUUIDGenericAccess = "1800"; 30 const std::string BluetoothTestBase::kTestUUIDGenericAccess = "1800";
29 const std::string BluetoothTestBase::kTestUUIDGenericAttribute = "1801"; 31 const std::string BluetoothTestBase::kTestUUIDGenericAttribute = "1801";
30 const std::string BluetoothTestBase::kTestUUIDImmediateAlert = "1802"; 32 const std::string BluetoothTestBase::kTestUUIDImmediateAlert = "1802";
31 const std::string BluetoothTestBase::kTestUUIDLinkLoss = "1803"; 33 const std::string BluetoothTestBase::kTestUUIDLinkLoss = "1803";
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 gatt_write_characteristic_attempts_ = 0; 376 gatt_write_characteristic_attempts_ = 0;
375 gatt_read_descriptor_attempts_ = 0; 377 gatt_read_descriptor_attempts_ = 0;
376 gatt_write_descriptor_attempts_ = 0; 378 gatt_write_descriptor_attempts_ = 0;
377 } 379 }
378 380
379 void BluetoothTestBase::RemoveTimedOutDevices() { 381 void BluetoothTestBase::RemoveTimedOutDevices() {
380 adapter_->RemoveTimedOutDevices(); 382 adapter_->RemoveTimedOutDevices();
381 } 383 }
382 384
383 } // namespace device 385 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/test/bluetooth_test.h ('k') | device/bluetooth/test/bluetooth_test_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698