OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/memory/ref_counted.h" | 6 #include "base/memory/ref_counted.h" |
7 #include "base/test/test_simple_task_runner.h" | 7 #include "base/test/test_simple_task_runner.h" |
| 8 #include "build/build_config.h" |
8 #include "device/bluetooth/bluetooth_adapter.h" | 9 #include "device/bluetooth/bluetooth_adapter.h" |
9 #include "device/bluetooth/bluetooth_adapter_mac.h" | 10 #include "device/bluetooth/bluetooth_adapter_mac.h" |
10 #include "device/bluetooth/bluetooth_discovery_session.h" | 11 #include "device/bluetooth/bluetooth_discovery_session.h" |
11 #include "device/bluetooth/bluetooth_discovery_session_outcome.h" | 12 #include "device/bluetooth/bluetooth_discovery_session_outcome.h" |
12 #include "device/bluetooth/bluetooth_low_energy_device_mac.h" | 13 #include "device/bluetooth/bluetooth_low_energy_device_mac.h" |
13 #include "device/bluetooth/test/mock_bluetooth_central_manager_mac.h" | 14 #include "device/bluetooth/test/mock_bluetooth_central_manager_mac.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "third_party/ocmock/OCMock/OCMock.h" | 16 #include "third_party/ocmock/OCMock/OCMock.h" |
16 | 17 |
17 #if defined(OS_IOS) | 18 #if defined(OS_IOS) |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 EXPECT_EQ(1, NumDevices()); | 317 EXPECT_EQ(1, NumDevices()); |
317 EXPECT_TRUE(DevicePresent(mock_peripheral)); | 318 EXPECT_TRUE(DevicePresent(mock_peripheral)); |
318 | 319 |
319 // Check that object pointed to by |device| is deleted by the adapter. | 320 // Check that object pointed to by |device| is deleted by the adapter. |
320 RemoveTimedOutDevices(); | 321 RemoveTimedOutDevices(); |
321 EXPECT_EQ(0, NumDevices()); | 322 EXPECT_EQ(0, NumDevices()); |
322 EXPECT_FALSE(DevicePresent(mock_peripheral)); | 323 EXPECT_FALSE(DevicePresent(mock_peripheral)); |
323 } | 324 } |
324 | 325 |
325 } // namespace device | 326 } // namespace device |
OLD | NEW |