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 "device/usb/webusb_descriptors.h" | 7 #include "device/usb/webusb_descriptors.h" |
6 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
7 | 9 |
8 namespace device { | 10 namespace device { |
9 | 11 |
10 namespace { | 12 namespace { |
11 | 13 |
12 const uint8_t kExampleBosDescriptor[] = { | 14 const uint8_t kExampleBosDescriptor[] = { |
13 // BOS descriptor. | 15 // BOS descriptor. |
14 0x05, 0x0F, 0x4C, 0x00, 0x03, | 16 0x05, 0x0F, 0x4C, 0x00, 0x03, |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 'i', 's', ' ', 'n', 'o', 't', ' ', | 490 'i', 's', ' ', 'n', 'o', 't', ' ', |
489 'a', ' ', 'U', 'R', 'L', '.'}; | 491 'a', ' ', 'U', 'R', 'L', '.'}; |
490 GURL url; | 492 GURL url; |
491 ASSERT_FALSE(ParseWebUsbUrlDescriptor( | 493 ASSERT_FALSE(ParseWebUsbUrlDescriptor( |
492 std::vector<uint8_t>(kBuffer, kBuffer + sizeof(kBuffer)), &url)); | 494 std::vector<uint8_t>(kBuffer, kBuffer + sizeof(kBuffer)), &url)); |
493 } | 495 } |
494 | 496 |
495 } // namespace | 497 } // namespace |
496 | 498 |
497 } // namespace device | 499 } // namespace device |
OLD | NEW |