#include "components/web_package/web_bundle_builder.h"
#include <string_view>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/numerics/byte_conversions.h"
#include "base/path_service.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace web_package {
namespace {
std::string kFallbackUrl = …;
std::string GetTestFileContents(const base::FilePath& path) { … }
std::vector<uint8_t> GetStringAsBytes(std::string_view contents) { … }
}
class WebBundleBuilderTest : public testing::Test { … };
TEST_F(WebBundleBuilderTest, CorrectWebBundleSizeIsWritten) { … }
TEST_F(WebBundleBuilderTest, ByteByByteComparison) { … }
TEST_F(WebBundleBuilderTest, MoreThan23ResponsesInABundle) { … }
}