Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: device/bluetooth/bluetooth_service_record_win_unittest.cc

Issue 1513043002: clang/win: Let remaining chromium_code targets build with -Wextra. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_device_win_unittest.cc ('k') | device/bluetooth/bluetooth_task_manager_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698