OLD | NEW |
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 #include "device/bluetooth/bluetooth_device.h" | 5 #include "device/bluetooth/bluetooth_device.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "device/bluetooth/bluetooth_gatt_service.h" | 13 #include "device/bluetooth/bluetooth_remote_gatt_service.h" |
14 #include "device/bluetooth/test/test_bluetooth_adapter_observer.h" | 14 #include "device/bluetooth/test/test_bluetooth_adapter_observer.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 #if defined(OS_ANDROID) | 17 #if defined(OS_ANDROID) |
18 #include "device/bluetooth/test/bluetooth_test_android.h" | 18 #include "device/bluetooth/test/bluetooth_test_android.h" |
19 #elif defined(OS_MACOSX) | 19 #elif defined(OS_MACOSX) |
20 #include "device/bluetooth/test/bluetooth_test_mac.h" | 20 #include "device/bluetooth/test/bluetooth_test_mac.h" |
21 #elif defined(OS_WIN) | 21 #elif defined(OS_WIN) |
22 #include "device/bluetooth/test/bluetooth_test_win.h" | 22 #include "device/bluetooth/test/bluetooth_test_win.h" |
23 #endif | 23 #endif |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 ResetEventCounts(); | 611 ResetEventCounts(); |
612 SimulateGattConnection(device); | 612 SimulateGattConnection(device); |
613 EXPECT_EQ(1, gatt_discovery_attempts_); | 613 EXPECT_EQ(1, gatt_discovery_attempts_); |
614 | 614 |
615 SimulateGattServicesDiscoveryError(device); | 615 SimulateGattServicesDiscoveryError(device); |
616 EXPECT_EQ(0u, device->GetGattServices().size()); | 616 EXPECT_EQ(0u, device->GetGattServices().size()); |
617 } | 617 } |
618 #endif // defined(OS_ANDROID) | 618 #endif // defined(OS_ANDROID) |
619 | 619 |
620 } // namespace device | 620 } // namespace device |
OLD | NEW |