OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "media/midi/usb_midi_descriptor_parser.h" | 5 #include "media/midi/usb_midi_descriptor_parser.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 9 #include "base/macros.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
8 | 11 |
9 namespace media { | 12 namespace media { |
10 namespace midi { | 13 namespace midi { |
11 | 14 |
12 namespace { | 15 namespace { |
13 | 16 |
14 TEST(UsbMidiDescriptorParserTest, ParseEmpty) { | 17 TEST(UsbMidiDescriptorParserTest, ParseEmpty) { |
15 UsbMidiDescriptorParser parser; | 18 UsbMidiDescriptorParser parser; |
16 std::vector<UsbMidiJack> jacks; | 19 std::vector<UsbMidiJack> jacks; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 EXPECT_EQ(0x6745, info.product_id); | 115 EXPECT_EQ(0x6745, info.product_id); |
113 EXPECT_EQ(0xab89, info.bcd_device_version); | 116 EXPECT_EQ(0xab89, info.bcd_device_version); |
114 EXPECT_EQ(0xcd, info.manufacturer_index); | 117 EXPECT_EQ(0xcd, info.manufacturer_index); |
115 EXPECT_EQ(0xef, info.product_index); | 118 EXPECT_EQ(0xef, info.product_index); |
116 } | 119 } |
117 | 120 |
118 } // namespace | 121 } // namespace |
119 | 122 |
120 } // namespace midi | 123 } // namespace midi |
121 } // namespace media | 124 } // namespace media |
OLD | NEW |