OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/callback_helpers.h" | 6 #include "base/callback_helpers.h" |
7 #include "base/gtest_prod_util.h" | 7 #include "base/gtest_prod_util.h" |
8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
11 #include "base/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "media/base/audio_timestamp_helper.h" | 12 #include "media/base/audio_timestamp_helper.h" |
13 #include "media/base/data_buffer.h" | 13 #include "media/base/data_buffer.h" |
14 #include "media/base/gmock_callback_support.h" | 14 #include "media/base/gmock_callback_support.h" |
15 #include "media/base/mock_audio_renderer_sink.h" | 15 #include "media/base/mock_audio_renderer_sink.h" |
16 #include "media/base/mock_filters.h" | 16 #include "media/base/mock_filters.h" |
17 #include "media/base/test_helpers.h" | 17 #include "media/base/test_helpers.h" |
18 #include "media/filters/audio_renderer_impl.h" | 18 #include "media/filters/audio_renderer_impl.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 | 20 |
21 using ::base::Time; | 21 using ::base::Time; |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 | 555 |
556 // Simulate the decoder aborting the pending read. | 556 // Simulate the decoder aborting the pending read. |
557 AbortPendingRead(); | 557 AbortPendingRead(); |
558 event.RunAndWait(); | 558 event.RunAndWait(); |
559 | 559 |
560 // Preroll again to a different timestamp and verify it completed normally. | 560 // Preroll again to a different timestamp and verify it completed normally. |
561 Preroll(1000, PIPELINE_OK); | 561 Preroll(1000, PIPELINE_OK); |
562 } | 562 } |
563 | 563 |
564 } // namespace media | 564 } // namespace media |
OLD | NEW |