| 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_BASE_MOCK_FILTERS_H_ | 5 #ifndef MEDIA_BASE_MOCK_FILTERS_H_ |
| 6 #define MEDIA_BASE_MOCK_FILTERS_H_ | 6 #define MEDIA_BASE_MOCK_FILTERS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 MOCK_METHOD1(OnError, void(PipelineStatus)); | 50 MOCK_METHOD1(OnError, void(PipelineStatus)); |
| 51 MOCK_METHOD0(OnEnded, void()); | 51 MOCK_METHOD0(OnEnded, void()); |
| 52 MOCK_METHOD1(OnMetadata, void(PipelineMetadata)); | 52 MOCK_METHOD1(OnMetadata, void(PipelineMetadata)); |
| 53 MOCK_METHOD1(OnBufferingStateChange, void(BufferingState)); | 53 MOCK_METHOD1(OnBufferingStateChange, void(BufferingState)); |
| 54 MOCK_METHOD0(OnDurationChange, void()); | 54 MOCK_METHOD0(OnDurationChange, void()); |
| 55 MOCK_METHOD2(OnAddTextTrack, | 55 MOCK_METHOD2(OnAddTextTrack, |
| 56 void(const TextTrackConfig&, const AddTextTrackDoneCB&)); | 56 void(const TextTrackConfig&, const AddTextTrackDoneCB&)); |
| 57 MOCK_METHOD0(OnWaitingForDecryptionKey, void()); | 57 MOCK_METHOD0(OnWaitingForDecryptionKey, void()); |
| 58 MOCK_METHOD1(OnVideoNaturalSizeChange, void(const gfx::Size&)); | 58 MOCK_METHOD1(OnVideoNaturalSizeChange, void(const gfx::Size&)); |
| 59 MOCK_METHOD1(OnVideoOpacityChange, void(bool)); | 59 MOCK_METHOD1(OnVideoOpacityChange, void(bool)); |
| 60 MOCK_METHOD0(OnVideoAverageKeyframeDistanceUpdate, void()); |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 class MockPipeline : public Pipeline { | 63 class MockPipeline : public Pipeline { |
| 63 public: | 64 public: |
| 64 MockPipeline(); | 65 MockPipeline(); |
| 65 virtual ~MockPipeline(); | 66 virtual ~MockPipeline(); |
| 66 | 67 |
| 67 // Note: Start() and Resume() declarations are not actually overrides; they | 68 // Note: Start() and Resume() declarations are not actually overrides; they |
| 68 // take unique_ptr* instead of unique_ptr so that they can be mock methods. | 69 // take unique_ptr* instead of unique_ptr so that they can be mock methods. |
| 69 // Private stubs for Start() and Resume() implement the actual Pipeline | 70 // Private stubs for Start() and Resume() implement the actual Pipeline |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 MOCK_METHOD0(Flush, void()); | 583 MOCK_METHOD0(Flush, void()); |
| 583 MOCK_METHOD2(Parse, bool(const uint8_t*, int)); | 584 MOCK_METHOD2(Parse, bool(const uint8_t*, int)); |
| 584 | 585 |
| 585 private: | 586 private: |
| 586 DISALLOW_COPY_AND_ASSIGN(MockStreamParser); | 587 DISALLOW_COPY_AND_ASSIGN(MockStreamParser); |
| 587 }; | 588 }; |
| 588 | 589 |
| 589 } // namespace media | 590 } // namespace media |
| 590 | 591 |
| 591 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 592 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
| OLD | NEW |