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 #ifndef MEDIA_FILTERS_PIPELINE_INTEGRATION_TEST_BASE_H_ | 5 #ifndef MEDIA_FILTERS_PIPELINE_INTEGRATION_TEST_BASE_H_ |
6 #define MEDIA_FILTERS_PIPELINE_INTEGRATION_TEST_BASE_H_ | 6 #define MEDIA_FILTERS_PIPELINE_INTEGRATION_TEST_BASE_H_ |
7 | 7 |
8 #include "base/md5.h" | 8 #include "base/md5.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "media/audio/clockless_audio_sink.h" | 10 #include "media/audio/clockless_audio_sink.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 // Empty hash string. Used to verify empty audio tracks. | 33 // Empty hash string. Used to verify empty audio tracks. |
34 extern const char kNullAudioHash[]; | 34 extern const char kNullAudioHash[]; |
35 | 35 |
36 // Dummy tick clock which advances extremely quickly (1 minute every time | 36 // Dummy tick clock which advances extremely quickly (1 minute every time |
37 // NowTicks() is called). | 37 // NowTicks() is called). |
38 class DummyTickClock : public base::TickClock { | 38 class DummyTickClock : public base::TickClock { |
39 public: | 39 public: |
40 DummyTickClock() : now_() {} | 40 DummyTickClock() : now_() {} |
41 virtual ~DummyTickClock() {} | 41 virtual ~DummyTickClock() {} |
42 virtual base::TimeTicks NowTicks() OVERRIDE; | 42 virtual base::TimeTicks NowTicks() override; |
43 private: | 43 private: |
44 base::TimeTicks now_; | 44 base::TimeTicks now_; |
45 }; | 45 }; |
46 | 46 |
47 // Integration tests for Pipeline. Real demuxers, real decoders, and | 47 // Integration tests for Pipeline. Real demuxers, real decoders, and |
48 // base renderer implementations are used to verify pipeline functionality. The | 48 // base renderer implementations are used to verify pipeline functionality. The |
49 // renderers used in these tests rely heavily on the AudioRendererBase & | 49 // renderers used in these tests rely heavily on the AudioRendererBase & |
50 // VideoRendererImpl implementations which contain a majority of the code used | 50 // VideoRendererImpl implementations which contain a majority of the code used |
51 // in the real AudioRendererImpl & SkCanvasVideoRenderer implementations used in | 51 // in the real AudioRendererImpl & SkCanvasVideoRenderer implementations used in |
52 // the browser. The renderers in this test don't actually write data to a | 52 // the browser. The renderers in this test don't actually write data to a |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 MOCK_METHOD1(OnBufferingStateChanged, void(BufferingState)); | 140 MOCK_METHOD1(OnBufferingStateChanged, void(BufferingState)); |
141 MOCK_METHOD1(DecryptorAttached, void(bool)); | 141 MOCK_METHOD1(DecryptorAttached, void(bool)); |
142 MOCK_METHOD2(OnAddTextTrack, | 142 MOCK_METHOD2(OnAddTextTrack, |
143 void(const TextTrackConfig& config, | 143 void(const TextTrackConfig& config, |
144 const AddTextTrackDoneCB& done_cb)); | 144 const AddTextTrackDoneCB& done_cb)); |
145 }; | 145 }; |
146 | 146 |
147 } // namespace media | 147 } // namespace media |
148 | 148 |
149 #endif // MEDIA_FILTERS_PIPELINE_INTEGRATION_TEST_BASE_H_ | 149 #endif // MEDIA_FILTERS_PIPELINE_INTEGRATION_TEST_BASE_H_ |
OLD | NEW |