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

Side by Side Diff: media/midi/midi_message_queue_unittest.cc

Issue 1086073004: Web MIDI: namespace change from media to media::midi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@null
Patch Set: (rebase) Created 5 years, 7 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
« no previous file with comments | « media/midi/midi_message_queue.cc ('k') | media/midi/midi_message_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_message_queue.h" 5 #include "media/midi/midi_message_queue.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace media { 9 namespace media {
10 namespace midi {
10 namespace { 11 namespace {
11 12
12 const uint8 kGMOn[] = { 0xf0, 0x7e, 0x7f, 0x09, 0x01, 0xf7 }; 13 const uint8 kGMOn[] = { 0xf0, 0x7e, 0x7f, 0x09, 0x01, 0xf7 };
13 const uint8 kGSOn[] = { 14 const uint8 kGSOn[] = {
14 0xf0, 0x41, 0x10, 0x42, 0x12, 0x40, 0x00, 0x7f, 0x00, 0x41, 0xf7, 15 0xf0, 0x41, 0x10, 0x42, 0x12, 0x40, 0x00, 0x7f, 0x00, 0x41, 0xf7,
15 }; 16 };
16 const uint8 kNoteOn[] = { 0x90, 0x3c, 0x7f }; 17 const uint8 kNoteOn[] = { 0x90, 0x3c, 0x7f };
17 const uint8 kNoteOnWithRunningStatus[] = { 18 const uint8 kNoteOnWithRunningStatus[] = {
18 0x90, 0x3c, 0x7f, 0x3c, 0x7f, 0x3c, 0x7f, 19 0x90, 0x3c, 0x7f, 0x3c, 0x7f, 0x3c, 0x7f,
19 }; 20 };
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 EXPECT_MESSAGE(kMTCFrame, message); 184 EXPECT_MESSAGE(kMTCFrame, message);
184 queue.Get(&message); 185 queue.Get(&message);
185 EXPECT_MESSAGE(kTimingClock, message) << "Running status should be reset"; 186 EXPECT_MESSAGE(kTimingClock, message) << "Running status should be reset";
186 queue.Get(&message); 187 queue.Get(&message);
187 EXPECT_MESSAGE(kNoteOn, message); 188 EXPECT_MESSAGE(kNoteOn, message);
188 queue.Get(&message); 189 queue.Get(&message);
189 EXPECT_TRUE(message.empty()); 190 EXPECT_TRUE(message.empty());
190 } 191 }
191 192
192 } // namespace 193 } // namespace
194 } // namespace midi
193 } // namespace media 195 } // namespace media
OLDNEW
« no previous file with comments | « media/midi/midi_message_queue.cc ('k') | media/midi/midi_message_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698