#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/base/test_data_util.h"
#include <stdint.h>
#include <ostream>
#include "base/check_op.h"
#include "base/containers/flat_map.h"
#include "base/files/file_util.h"
#include "base/no_destructor.h"
#include "base/numerics/safe_conversions.h"
#include "base/path_service.h"
namespace media {
namespace {
const char kAacAdtsAudio[] = …;
const char kMp2AudioSBR[] = …;
const char kMp2tAudioVideo[] = …;
const char kMp3Audio[] = …;
const char kMp4AacAudio[] = …;
const char kMp4Av110bitVideo[] = …;
const char kMp4Av1Video[] = …;
const char kMp4Av1VideoOpusAudio[] = …;
const char kMp4Avc1Video[] = …;
const char kMp4AacAudioAvc1Video[] = …;
const char kMp4Avc3Video[] = …;
const char kMp4FlacAudio[] = …;
const char kMp4OpusAudio[] = …;
const char kMp4Vp9Profile2Video[] = …;
const char kMp4Vp9Video[] = …;
const char kMp4XheAacAudio[] = …;
const char kWebMAv110bitVideo[] = …;
const char kWebMAv1Video[] = …;
const char kWebMOpusAudio[] = …;
const char kWebMOpusAudioVp9Video[] = …;
const char kWebMVorbisAudio[] = …;
const char kWebMVorbisAudioVp8Video[] = …;
const char kWebMVp8Video[] = …;
const char kWebMVp9Profile2Video[] = …;
const char kWebMVp9Video[] = …;
FileToMimeTypeMap;
const FileToMimeTypeMap& GetFileToMimeTypeMap() { … }
const uint8_t kSecretKey[] = …;
const uint8_t kKeyId[] = …;
}
const char kFailedTitle[] = …;
const char kEndedTitle[] = …;
const char kErrorEventTitle[] = …;
const char kErrorTitle[] = …;
const base::FilePath::CharType kTestDataPath[] = …);
const base::span<const uint8_t> ExternalMemoryAdapterForTesting::Span() const { … }
base::FilePath GetTestDataFilePath(std::string_view name) { … }
base::FilePath GetTestDataPath() { … }
std::string GetMimeTypeForFile(std::string_view file_name) { … }
std::string GetURLQueryString(const base::StringPairs& query_params) { … }
scoped_refptr<DecoderBuffer> ReadTestDataFile(std::string_view name) { … }
scoped_refptr<DecoderBuffer> ReadTestDataFile(std::string_view name,
base::TimeDelta pts) { … }
bool LookupTestKeyVector(const std::vector<uint8_t>& key_id,
bool allow_rotation,
std::vector<uint8_t>* key) { … }
bool LookupTestKeyString(std::string_view key_id,
bool allow_rotation,
std::string* key) { … }
}