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 <stdint.h> |
| 6 |
5 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
6 #include "device/usb/usb_descriptors.h" | 8 #include "device/usb/usb_descriptors.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
8 | 10 |
9 namespace device { | 11 namespace device { |
10 | 12 |
11 namespace { | 13 namespace { |
12 | 14 |
13 class UsbDescriptorsTest : public ::testing::Test {}; | 15 class UsbDescriptorsTest : public ::testing::Test {}; |
14 | 16 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 static const uint8_t kBuffer[] = {0x03, 0x03, '?'}; | 64 static const uint8_t kBuffer[] = {0x03, 0x03, '?'}; |
63 base::string16 string; | 65 base::string16 string; |
64 ASSERT_TRUE(ParseUsbStringDescriptor( | 66 ASSERT_TRUE(ParseUsbStringDescriptor( |
65 std::vector<uint8_t>(kBuffer, kBuffer + sizeof(kBuffer)), &string)); | 67 std::vector<uint8_t>(kBuffer, kBuffer + sizeof(kBuffer)), &string)); |
66 EXPECT_EQ(base::string16(), string); | 68 EXPECT_EQ(base::string16(), string); |
67 } | 69 } |
68 | 70 |
69 } // namespace | 71 } // namespace |
70 | 72 |
71 } // namespace device | 73 } // namespace device |
OLD | NEW |