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 <stdint.h> |
| 6 |
5 #include <utility> | 7 #include <utility> |
6 | 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/callback.h" | 10 #include "base/callback.h" |
9 #include "base/callback_helpers.h" | 11 #include "base/callback_helpers.h" |
10 #include "base/debug/stack_trace.h" | 12 #include "base/debug/stack_trace.h" |
| 13 #include "base/macros.h" |
11 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
12 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
13 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/string_split.h" | 17 #include "base/strings/string_split.h" |
15 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
16 #include "base/synchronization/lock.h" | 19 #include "base/synchronization/lock.h" |
17 #include "base/test/simple_test_tick_clock.h" | 20 #include "base/test/simple_test_tick_clock.h" |
18 #include "media/base/data_buffer.h" | 21 #include "media/base/data_buffer.h" |
19 #include "media/base/gmock_callback_support.h" | 22 #include "media/base/gmock_callback_support.h" |
20 #include "media/base/limits.h" | 23 #include "media/base/limits.h" |
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 QueueFrames("0 10 20 30"); | 776 QueueFrames("0 10 20 30"); |
774 StartPlayingFrom(0); | 777 StartPlayingFrom(0); |
775 Flush(); | 778 Flush(); |
776 ASSERT_EQ(1u, frame_ready_cbs_.size()); | 779 ASSERT_EQ(1u, frame_ready_cbs_.size()); |
777 // This frame will be discarded. | 780 // This frame will be discarded. |
778 frame_ready_cbs_.front().Run(); | 781 frame_ready_cbs_.front().Run(); |
779 Destroy(); | 782 Destroy(); |
780 } | 783 } |
781 | 784 |
782 } // namespace media | 785 } // namespace media |
OLD | NEW |