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: media/midi/usb_midi_descriptor_parser_unittest.cc

Issue 2418493002: //media/midi: use top level namespace midi rather than media.midi (Closed)
Patch Set: one more rename to be consistent Created 4 years, 2 months 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 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> 7 #include <stdint.h>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace media {
13 namespace midi { 12 namespace midi {
14 13
15 namespace { 14 namespace {
16 15
17 TEST(UsbMidiDescriptorParserTest, ParseEmpty) { 16 TEST(UsbMidiDescriptorParserTest, ParseEmpty) {
18 UsbMidiDescriptorParser parser; 17 UsbMidiDescriptorParser parser;
19 std::vector<UsbMidiJack> jacks; 18 std::vector<UsbMidiJack> jacks;
20 EXPECT_TRUE(parser.Parse(nullptr, nullptr, 0, &jacks)); 19 EXPECT_TRUE(parser.Parse(nullptr, nullptr, 0, &jacks));
21 EXPECT_TRUE(jacks.empty()); 20 EXPECT_TRUE(jacks.empty());
22 } 21 }
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 EXPECT_EQ(0x2301, info.vendor_id); 113 EXPECT_EQ(0x2301, info.vendor_id);
115 EXPECT_EQ(0x6745, info.product_id); 114 EXPECT_EQ(0x6745, info.product_id);
116 EXPECT_EQ(0xab89, info.bcd_device_version); 115 EXPECT_EQ(0xab89, info.bcd_device_version);
117 EXPECT_EQ(0xcd, info.manufacturer_index); 116 EXPECT_EQ(0xcd, info.manufacturer_index);
118 EXPECT_EQ(0xef, info.product_index); 117 EXPECT_EQ(0xef, info.product_index);
119 } 118 }
120 119
121 } // namespace 120 } // namespace
122 121
123 } // namespace midi 122 } // namespace midi
124 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698