| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_ANDROID_TEST_DATA_FACTORY_H_ | 5 #ifndef MEDIA_BASE_ANDROID_TEST_DATA_FACTORY_H_ |
| 6 #define MEDIA_BASE_ANDROID_TEST_DATA_FACTORY_H_ | 6 #define MEDIA_BASE_ANDROID_TEST_DATA_FACTORY_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 8 #include <stdint.h> | 9 #include <stdint.h> |
| 9 #include <set> | 10 #include <set> |
| 10 #include <vector> | 11 #include <vector> |
| 11 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 12 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 13 #include "media/base/android/demuxer_stream_player_params.h" | 14 #include "media/base/android/demuxer_stream_player_params.h" |
| 14 | 15 |
| 15 namespace media { | 16 namespace media { |
| 16 | 17 |
| 17 // TestDataFactory is used by MediaCodecDecoder unit test and MediaCodecPlayer | 18 // TestDataFactory is used by MediaCodecDecoder unit test and MediaCodecPlayer |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 base::TimeDelta last_pts_; // subclass can modify PTS, maintain the last | 92 base::TimeDelta last_pts_; // subclass can modify PTS, maintain the last |
| 92 PTSSet reconfigs_; // ConfigChange requests | 93 PTSSet reconfigs_; // ConfigChange requests |
| 93 size_t total_chunks_; // total number of chunks returned | 94 size_t total_chunks_; // total number of chunks returned |
| 94 bool starvation_mode_; // true means no EOS at the end | 95 bool starvation_mode_; // true means no EOS at the end |
| 95 bool eos_reached_; // true if CreateChunk() returned EOS frame | 96 bool eos_reached_; // true if CreateChunk() returned EOS frame |
| 96 }; | 97 }; |
| 97 | 98 |
| 98 } // namespace media | 99 } // namespace media |
| 99 | 100 |
| 100 #endif // MEDIA_BASE_ANDROID_TEST_DATA_FACTORY_H_ | 101 #endif // MEDIA_BASE_ANDROID_TEST_DATA_FACTORY_H_ |
| OLD | NEW |