Expose memory file system prefix
- Memory file system prefix should be exposed for testing. Change-Id: Id284d77084b98c8175cdd485480f2fc49241e137
This commit is contained in:
parent
fce25acd78
commit
49e87a34a3
|
@ -17,6 +17,7 @@ namespace edash_packager {
|
||||||
namespace media {
|
namespace media {
|
||||||
|
|
||||||
extern const char* kLocalFilePrefix;
|
extern const char* kLocalFilePrefix;
|
||||||
|
extern const char* kMemoryFilePrefix;
|
||||||
const int64_t kWholeFile = -1;
|
const int64_t kWholeFile = -1;
|
||||||
|
|
||||||
/// Define an abstract file interface.
|
/// Define an abstract file interface.
|
||||||
|
|
|
@ -39,8 +39,9 @@ const uint8_t kNaluLengthSize = 0;
|
||||||
SegmentTestBase::SegmentTestBase() {}
|
SegmentTestBase::SegmentTestBase() {}
|
||||||
|
|
||||||
void SegmentTestBase::SetUp() {
|
void SegmentTestBase::SetUp() {
|
||||||
output_file_name_ = "memory://output-file.webm";
|
output_file_name_ = std::string(kMemoryFilePrefix) + "output-file.webm";
|
||||||
segment_template_ = "memory://output-template-$Number$.webm";
|
segment_template_ =
|
||||||
|
std::string(kMemoryFilePrefix) + "output-template-$Number$.webm";
|
||||||
cur_time_timescale_ = 0;
|
cur_time_timescale_ = 0;
|
||||||
single_segment_ = true;
|
single_segment_ = true;
|
||||||
}
|
}
|
||||||
|
@ -84,7 +85,7 @@ MuxerOptions SegmentTestBase::CreateMuxerOptions() const {
|
||||||
ret.fragment_sap_aligned = false;
|
ret.fragment_sap_aligned = false;
|
||||||
// Use memory files for temp storage. Normally this would be a bad idea
|
// Use memory files for temp storage. Normally this would be a bad idea
|
||||||
// since it wouldn't support large files, but for tests the files are small.
|
// since it wouldn't support large files, but for tests the files are small.
|
||||||
ret.temp_dir = "memory://temp/";
|
ret.temp_dir = std::string(kMemoryFilePrefix) + "temp/";
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue