OLD | NEW |
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_mac.h" | 5 #include "device/bluetooth/test/bluetooth_test_mac.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "build/build_config.h" |
8 #include "device/bluetooth/bluetooth_adapter_mac.h" | 11 #include "device/bluetooth/bluetooth_adapter_mac.h" |
9 #include "device/bluetooth/test/mock_bluetooth_central_manager_mac.h" | 12 #include "device/bluetooth/test/mock_bluetooth_central_manager_mac.h" |
10 #include "device/bluetooth/test/test_bluetooth_adapter_observer.h" | 13 #include "device/bluetooth/test/test_bluetooth_adapter_observer.h" |
11 #include "third_party/ocmock/OCMock/OCMock.h" | 14 #include "third_party/ocmock/OCMock/OCMock.h" |
12 | 15 |
13 #if defined(OS_IOS) | 16 #if defined(OS_IOS) |
14 #import <CoreBluetooth/CoreBluetooth.h> | 17 #import <CoreBluetooth/CoreBluetooth.h> |
15 #else // !defined(OS_IOS) | 18 #else // !defined(OS_IOS) |
16 #import <IOBluetooth/IOBluetooth.h> | 19 #import <IOBluetooth/IOBluetooth.h> |
17 #endif // defined(OS_IOS) | 20 #endif // defined(OS_IOS) |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 // crypto::SHA256HashString(input_str, raw, sizeof(raw)); | 209 // crypto::SHA256HashString(input_str, raw, sizeof(raw)); |
207 // if (base::HexEncode(raw, sizeof(raw)) == target) { | 210 // if (base::HexEncode(raw, sizeof(raw)) == target) { |
208 // return input_str; | 211 // return input_str; |
209 // } | 212 // } |
210 // ++input[0]; | 213 // ++input[0]; |
211 // } | 214 // } |
212 // return ""; | 215 // return ""; |
213 // } | 216 // } |
214 | 217 |
215 } // namespace device | 218 } // namespace device |
OLD | NEW |