| OLD | NEW |
| 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 <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 8 | 11 |
| 9 namespace media { | 12 namespace media { |
| 10 namespace midi { | 13 namespace midi { |
| 11 namespace { | 14 namespace { |
| 12 | 15 |
| 13 const uint8_t kGMOn[] = {0xf0, 0x7e, 0x7f, 0x09, 0x01, 0xf7}; | 16 const uint8_t kGMOn[] = {0xf0, 0x7e, 0x7f, 0x09, 0x01, 0xf7}; |
| 14 const uint8_t kPartialGMOn1st[] = {0xf0}; | 17 const uint8_t kPartialGMOn1st[] = {0xf0}; |
| 15 const uint8_t kPartialGMOn2nd[] = {0x7e, 0x7f, 0x09, 0x01}; | 18 const uint8_t kPartialGMOn2nd[] = {0x7e, 0x7f, 0x09, 0x01}; |
| 16 const uint8_t kPartialGMOn3rd[] = {0xf7}; | 19 const uint8_t kPartialGMOn3rd[] = {0xf7}; |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 queue.Get(&message); | 565 queue.Get(&message); |
| 563 EXPECT_TRUE(message.empty()); | 566 EXPECT_TRUE(message.empty()); |
| 564 Add(&queue, kPartialGMOn3rd); | 567 Add(&queue, kPartialGMOn3rd); |
| 565 queue.Get(&message); | 568 queue.Get(&message); |
| 566 EXPECT_TRUE(message.empty()); | 569 EXPECT_TRUE(message.empty()); |
| 567 } | 570 } |
| 568 | 571 |
| 569 } // namespace | 572 } // namespace |
| 570 } // namespace midi | 573 } // namespace midi |
| 571 } // namespace media | 574 } // namespace media |
| OLD | NEW |