| 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
| 10 #include "base/test/simple_test_tick_clock.h" | 10 #include "base/test/simple_test_tick_clock.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 using ::testing::Mock; | 29 using ::testing::Mock; |
| 30 using ::testing::NotNull; | 30 using ::testing::NotNull; |
| 31 using ::testing::Return; | 31 using ::testing::Return; |
| 32 using ::testing::SaveArg; | 32 using ::testing::SaveArg; |
| 33 using ::testing::StrictMock; | 33 using ::testing::StrictMock; |
| 34 using ::testing::WithArg; | 34 using ::testing::WithArg; |
| 35 | 35 |
| 36 namespace media { | 36 namespace media { |
| 37 | 37 |
| 38 // Demuxer properties. | 38 // Demuxer properties. |
| 39 static const int kTotalBytes = 1024; | 39 const int kTotalBytes = 1024; |
| 40 static const int kBitrate = 1234; | |
| 41 | 40 |
| 42 ACTION_P(SetDemuxerProperties, duration) { | 41 ACTION_P(SetDemuxerProperties, duration) { |
| 43 arg0->SetTotalBytes(kTotalBytes); | 42 arg0->SetTotalBytes(kTotalBytes); |
| 44 arg0->SetDuration(duration); | 43 arg0->SetDuration(duration); |
| 45 } | 44 } |
| 46 | 45 |
| 47 ACTION_P2(Stop, pipeline, stop_cb) { | 46 ACTION_P2(Stop, pipeline, stop_cb) { |
| 48 pipeline->Stop(stop_cb); | 47 pipeline->Stop(stop_cb); |
| 49 } | 48 } |
| 50 | 49 |
| (...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1184 INSTANTIATE_TEARDOWN_TEST(Error, Pausing); | 1183 INSTANTIATE_TEARDOWN_TEST(Error, Pausing); |
| 1185 INSTANTIATE_TEARDOWN_TEST(Error, Flushing); | 1184 INSTANTIATE_TEARDOWN_TEST(Error, Flushing); |
| 1186 INSTANTIATE_TEARDOWN_TEST(Error, Seeking); | 1185 INSTANTIATE_TEARDOWN_TEST(Error, Seeking); |
| 1187 INSTANTIATE_TEARDOWN_TEST(Error, Prerolling); | 1186 INSTANTIATE_TEARDOWN_TEST(Error, Prerolling); |
| 1188 INSTANTIATE_TEARDOWN_TEST(Error, Starting); | 1187 INSTANTIATE_TEARDOWN_TEST(Error, Starting); |
| 1189 INSTANTIATE_TEARDOWN_TEST(Error, Playing); | 1188 INSTANTIATE_TEARDOWN_TEST(Error, Playing); |
| 1190 | 1189 |
| 1191 INSTANTIATE_TEARDOWN_TEST(ErrorAndStop, Playing); | 1190 INSTANTIATE_TEARDOWN_TEST(ErrorAndStop, Playing); |
| 1192 | 1191 |
| 1193 } // namespace media | 1192 } // namespace media |
| OLD | NEW |