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

Side by Side Diff: media/midi/midi_manager_usb_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/midi_manager_usb.h" 5 #include "media/midi/midi_manager_usb.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 #include <utility> 11 #include <utility>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "base/run_loop.h" 15 #include "base/run_loop.h"
16 #include "base/strings/stringprintf.h" 16 #include "base/strings/stringprintf.h"
17 #include "base/time/time.h" 17 #include "base/time/time.h"
18 #include "media/midi/usb_midi_device.h" 18 #include "media/midi/usb_midi_device.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 namespace media {
22 namespace midi { 21 namespace midi {
23 22
24 namespace { 23 namespace {
25 24
26 template<typename T, size_t N> 25 template<typename T, size_t N>
27 std::vector<T> ToVector(const T (&array)[N]) { 26 std::vector<T> ToVector(const T (&array)[N]) {
28 return std::vector<T>(array, array + N); 27 return std::vector<T>(array, array + N);
29 } 28 }
30 29
31 class Logger { 30 class Logger {
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 EXPECT_EQ(2u, manager_->output_streams()[0]->jack().jack_id); 566 EXPECT_EQ(2u, manager_->output_streams()[0]->jack().jack_id);
568 EXPECT_EQ(3u, manager_->output_streams()[1]->jack().jack_id); 567 EXPECT_EQ(3u, manager_->output_streams()[1]->jack().jack_id);
569 ASSERT_EQ(1u, jacks.size()); 568 ASSERT_EQ(1u, jacks.size());
570 EXPECT_EQ(2, jacks[0].endpoint_number()); 569 EXPECT_EQ(2, jacks[0].endpoint_number());
571 EXPECT_EQ("UsbMidiDevice::GetDescriptors\n", logger_.TakeLog()); 570 EXPECT_EQ("UsbMidiDevice::GetDescriptors\n", logger_.TakeLog());
572 } 571 }
573 572
574 } // namespace 573 } // namespace
575 574
576 } // namespace midi 575 } // namespace midi
577 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698