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/bluetooth_gatt_characteristic.h" | 5 #include "device/bluetooth/bluetooth_gatt_characteristic.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 9 #include "base/macros.h" |
7 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 11 #include "build/build_config.h" |
8 #include "device/bluetooth/bluetooth_gatt_service.h" | 12 #include "device/bluetooth/bluetooth_gatt_service.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
10 | 14 |
11 #if defined(OS_ANDROID) | 15 #if defined(OS_ANDROID) |
12 #include "device/bluetooth/test/bluetooth_test_android.h" | 16 #include "device/bluetooth/test/bluetooth_test_android.h" |
13 #elif defined(OS_MACOSX) | 17 #elif defined(OS_MACOSX) |
14 #include "device/bluetooth/test/bluetooth_test_mac.h" | 18 #include "device/bluetooth/test/bluetooth_test_mac.h" |
15 #endif | 19 #endif |
16 | 20 |
17 namespace device { | 21 namespace device { |
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
691 EXPECT_EQ(characteristic1_->GetIdentifier(), | 695 EXPECT_EQ(characteristic1_->GetIdentifier(), |
692 notify_sessions_[0]->GetCharacteristicIdentifier()); | 696 notify_sessions_[0]->GetCharacteristicIdentifier()); |
693 EXPECT_EQ(characteristic1_->GetIdentifier(), | 697 EXPECT_EQ(characteristic1_->GetIdentifier(), |
694 notify_sessions_[1]->GetCharacteristicIdentifier()); | 698 notify_sessions_[1]->GetCharacteristicIdentifier()); |
695 EXPECT_TRUE(notify_sessions_[0]->IsActive()); | 699 EXPECT_TRUE(notify_sessions_[0]->IsActive()); |
696 EXPECT_TRUE(notify_sessions_[1]->IsActive()); | 700 EXPECT_TRUE(notify_sessions_[1]->IsActive()); |
697 } | 701 } |
698 #endif // defined(OS_ANDROID) | 702 #endif // defined(OS_ANDROID) |
699 | 703 |
700 } // namespace device | 704 } // namespace device |
OLD | NEW |