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/message_loop.h" | 6 #include "base/message_loop.h" |
7 #include "media/base/audio_decoder_config.h" | 7 #include "media/base/audio_decoder_config.h" |
8 #include "media/base/decoder_buffer.h" | 8 #include "media/base/decoder_buffer.h" |
9 #include "media/base/mock_callback.h" | |
10 #include "media/base/mock_demuxer_host.h" | 9 #include "media/base/mock_demuxer_host.h" |
11 #include "media/base/test_data_util.h" | 10 #include "media/base/test_data_util.h" |
| 11 #include "media/base/test_helpers.h" |
12 #include "media/filters/chunk_demuxer.h" | 12 #include "media/filters/chunk_demuxer.h" |
13 #include "media/webm/cluster_builder.h" | 13 #include "media/webm/cluster_builder.h" |
14 #include "media/webm/webm_constants.h" | 14 #include "media/webm/webm_constants.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 using ::testing::AnyNumber; | 17 using ::testing::AnyNumber; |
18 using ::testing::Exactly; | 18 using ::testing::Exactly; |
19 using ::testing::InSequence; | 19 using ::testing::InSequence; |
20 using ::testing::NotNull; | 20 using ::testing::NotNull; |
21 using ::testing::Return; | 21 using ::testing::Return; |
(...skipping 2406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2428 | 2428 |
2429 scoped_ptr<Cluster> cluster_a(kDefaultFirstCluster()); | 2429 scoped_ptr<Cluster> cluster_a(kDefaultFirstCluster()); |
2430 ASSERT_TRUE(AppendData(cluster_a->data(), cluster_a->size())); | 2430 ASSERT_TRUE(AppendData(cluster_a->data(), cluster_a->size())); |
2431 | 2431 |
2432 EXPECT_CALL(host_, SetDuration( | 2432 EXPECT_CALL(host_, SetDuration( |
2433 base::TimeDelta::FromMilliseconds(kDefaultFirstClusterEndTimestamp))); | 2433 base::TimeDelta::FromMilliseconds(kDefaultFirstClusterEndTimestamp))); |
2434 demuxer_->EndOfStream(PIPELINE_OK); | 2434 demuxer_->EndOfStream(PIPELINE_OK); |
2435 } | 2435 } |
2436 | 2436 |
2437 } // namespace media | 2437 } // namespace media |
OLD | NEW |