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

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

Issue 1265023004: Revert of Bringing 4 more BluetoothTest.* unit tests to Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scheibtest
Patch Set: Created 5 years, 4 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/test/bluetooth_test.h ('k') | device/bluetooth/test/bluetooth_test_android.h » ('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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "device/bluetooth/bluetooth_adapter.h" 10 #include "device/bluetooth/bluetooth_adapter.h"
11 11
12 namespace device { 12 namespace device {
13 13
14 const std::string BluetoothTestBase::kTestAdapterName = "FakeBluetoothAdapter"; 14 const std::string BluetoothTestBase::kTestAdapterName = "FakeBluetoothAdapter";
15 const std::string BluetoothTestBase::kTestAdapterAddress = "A1:B2:C3:D4:E5:F6"; 15 const std::string BluetoothTestBase::kTestAdapterAddress = "A1:B2:C3:D4:E5:F6";
16 16
17 const std::string BluetoothTestBase::kTestDeviceName = "FakeBluetoothDevice";
18 const std::string BluetoothTestBase::kTestDeviceNameEmpty = "";
19
20 const std::string BluetoothTestBase::kTestDeviceAddress1 = "01:00:00:90:1E:BE";
21 const std::string BluetoothTestBase::kTestDeviceAddress2 = "02:00:00:8B:74:63";
22
23 const std::string BluetoothTestBase::kTestUUIDGenericAccess = "1800";
24 const std::string BluetoothTestBase::kTestUUIDGenericAttribute = "1801";
25 const std::string BluetoothTestBase::kTestUUIDImmediateAlert = "1802";
26 const std::string BluetoothTestBase::kTestUUIDLinkLoss = "1803";
27
28 BluetoothTestBase::BluetoothTestBase() { 17 BluetoothTestBase::BluetoothTestBase() {
29 } 18 }
30 19
31 BluetoothTestBase::~BluetoothTestBase() { 20 BluetoothTestBase::~BluetoothTestBase() {
32 } 21 }
33 22
34 void BluetoothTestBase::Callback() { 23 void BluetoothTestBase::Callback() {
35 ++callback_count_; 24 ++callback_count_;
36 } 25 }
37 26
(...skipping 15 matching lines...) Expand all
53 BluetoothTestBase::GetDiscoverySessionCallback() { 42 BluetoothTestBase::GetDiscoverySessionCallback() {
54 return base::Bind(&BluetoothTestBase::DiscoverySessionCallback, 43 return base::Bind(&BluetoothTestBase::DiscoverySessionCallback,
55 base::Unretained(this)); 44 base::Unretained(this));
56 } 45 }
57 46
58 BluetoothAdapter::ErrorCallback BluetoothTestBase::GetErrorCallback() { 47 BluetoothAdapter::ErrorCallback BluetoothTestBase::GetErrorCallback() {
59 return base::Bind(&BluetoothTestBase::ErrorCallback, base::Unretained(this)); 48 return base::Bind(&BluetoothTestBase::ErrorCallback, base::Unretained(this));
60 } 49 }
61 50
62 } // namespace device 51 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/test/bluetooth_test.h ('k') | device/bluetooth/test/bluetooth_test_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698