OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/strings/string_number_conversions.h" | 6 #include "base/strings/string_number_conversions.h" |
7 #include "device/bluetooth/bluetooth_service_record_win.h" | 7 #include "device/bluetooth/bluetooth_service_record_win.h" |
8 #include "device/bluetooth/bluetooth_uuid.h" | 8 #include "device/bluetooth/bluetooth_uuid.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 EXPECT_EQ(kTestRfcommSdpUuid, service_record.uuid()); | 53 EXPECT_EQ(kTestRfcommSdpUuid, service_record.uuid()); |
54 EXPECT_TRUE(service_record.SupportsRfcomm()); | 54 EXPECT_TRUE(service_record.SupportsRfcomm()); |
55 EXPECT_EQ(kTestRfcommChannel, service_record.rfcomm_channel()); | 55 EXPECT_EQ(kTestRfcommChannel, service_record.rfcomm_channel()); |
56 } | 56 } |
57 | 57 |
58 TEST_F(BluetoothServiceRecordWinTest, BthAddr) { | 58 TEST_F(BluetoothServiceRecordWinTest, BthAddr) { |
59 std::vector<uint8> sdp_bytes_array; | 59 std::vector<uint8> sdp_bytes_array; |
60 ConvertSdpBytes(kTestRfcommSdpBytes, &sdp_bytes_array); | 60 ConvertSdpBytes(kTestRfcommSdpBytes, &sdp_bytes_array); |
61 BluetoothServiceRecordWin service_record( | 61 BluetoothServiceRecordWin service_record( |
62 "01:02:03:0A:10:A0", "Sdp", sdp_bytes_array, BluetoothUUID()); | 62 "01:02:03:0A:10:A0", "Sdp", sdp_bytes_array, BluetoothUUID()); |
63 EXPECT_EQ(1108152553632, service_record.device_bth_addr()); | 63 EXPECT_EQ(1108152553632ull, service_record.device_bth_addr()); |
64 } | 64 } |
65 | 65 |
66 } // namespace device | 66 } // namespace device |
OLD | NEW |