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_input_stream.h" | 5 #include "media/midi/usb_midi_input_stream.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include <string> | 10 #include <string> |
8 #include <vector> | 11 #include <vector> |
9 | 12 |
| 13 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
11 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
12 #include "base/time/time.h" | 16 #include "base/time/time.h" |
13 #include "media/midi/usb_midi_device.h" | 17 #include "media/midi/usb_midi_device.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
15 | 19 |
16 using base::TimeTicks; | 20 using base::TimeTicks; |
17 | 21 |
18 namespace media { | 22 namespace media { |
19 namespace midi { | 23 namespace midi { |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 uint8_t data[] = {0x4f, 0xf8, 0x00, 0x00}; | 164 uint8_t data[] = {0x4f, 0xf8, 0x00, 0x00}; |
161 | 165 |
162 stream_->OnReceivedData(&device2_, 7, data, arraysize(data), TimeTicks()); | 166 stream_->OnReceivedData(&device2_, 7, data, arraysize(data), TimeTicks()); |
163 EXPECT_EQ("0xf8 \n", delegate_.received_data()); | 167 EXPECT_EQ("0xf8 \n", delegate_.received_data()); |
164 } | 168 } |
165 | 169 |
166 } // namespace | 170 } // namespace |
167 | 171 |
168 } // namespace midi | 172 } // namespace midi |
169 } // namespace media | 173 } // namespace media |
OLD | NEW |