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

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

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 4 years, 12 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_unittest.cc ('k') | media/midi/midi_output_port_android.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_util.h" 5 #include "media/midi/midi_message_util.h"
6 6
7 #include <stdint.h>
8
7 #include "base/macros.h" 9 #include "base/macros.h"
8 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
9 11
10 namespace media { 12 namespace media {
11 namespace midi { 13 namespace midi {
12 namespace { 14 namespace {
13 15
14 const uint8_t kGMOn[] = {0xf0, 0x7e, 0x7f, 0x09, 0x01, 0xf7}; 16 const uint8_t kGMOn[] = {0xf0, 0x7e, 0x7f, 0x09, 0x01, 0xf7};
15 const uint8_t kNoteOn[] = {0x90, 0x3c, 0x7f}; 17 const uint8_t kNoteOn[] = {0x90, 0x3c, 0x7f};
16 const uint8_t kSystemCommonMessageReserved1[] = {0xf4}; 18 const uint8_t kSystemCommonMessageReserved1[] = {0xf4};
(...skipping 20 matching lines...) Expand all
37 39
38 // Any data byte should be mapped to 0-length 40 // Any data byte should be mapped to 0-length
39 EXPECT_EQ(0u, GetMidiMessageLength(kGMOn[1])); 41 EXPECT_EQ(0u, GetMidiMessageLength(kGMOn[1]));
40 EXPECT_EQ(0u, GetMidiMessageLength(kNoteOn[1])); 42 EXPECT_EQ(0u, GetMidiMessageLength(kNoteOn[1]));
41 EXPECT_EQ(0u, GetMidiMessageLength(kChannelPressure[1])); 43 EXPECT_EQ(0u, GetMidiMessageLength(kChannelPressure[1]));
42 } 44 }
43 45
44 } // namespace 46 } // namespace
45 } // namespace midi 47 } // namespace midi
46 } // namespace media 48 } // namespace media
OLDNEW
« no previous file with comments | « media/midi/midi_message_queue_unittest.cc ('k') | media/midi/midi_output_port_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698