#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_WEBCODECS_TEST_HELPERS_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_WEBCODECS_TEST_HELPERS_H_
#include <optional>
#include <string_view>
#include "media/base/decrypt_config.h"
#include "media/base/encryption_scheme.h"
#include "third_party/blink/renderer/modules/webcodecs/array_buffer_util.h"
namespace blink {
AllowSharedBufferSource* StringToBuffer(std::string_view data);
std::string BufferToString(const media::DecoderBuffer& buffer);
std::unique_ptr<media::DecryptConfig> CreateTestDecryptConfig(
media::EncryptionScheme scheme,
std::optional<media::EncryptionPattern> pattern = std::nullopt);
}
#endif