#include "chrome/browser/media/webrtc/webrtc_event_log_manager_unittest_helpers.h"
#include "base/check.h"
#include "base/files/file_util.h"
#include "base/notreached.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace webrtc_event_logging {
std::unique_ptr<LogFileWriter::Factory> CreateLogFileWriterFactory(
WebRtcEventLogCompression compression) { … }
#if BUILDFLAG(IS_POSIX)
void RemoveWritePermissions(const base::FilePath& path) { … }
#endif
std::unique_ptr<CompressedSizeEstimator> NullEstimator::Factory::Create()
const { … }
size_t NullEstimator::EstimateCompressedSize(const std::string& input) const { … }
std::unique_ptr<CompressedSizeEstimator> PerfectGzipEstimator::Factory::Create()
const { … }
PerfectGzipEstimator::PerfectGzipEstimator() { … }
PerfectGzipEstimator::~PerfectGzipEstimator() = default;
size_t PerfectGzipEstimator::EstimateCompressedSize(
const std::string& input) const { … }
size_t GzippedSize(const std::string& uncompressed) { … }
size_t GzippedSize(const std::vector<std::string>& uncompressed) { … }
}