#include "components/link_header_util/link_header_util.h"
#include "base/run_loop.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace link_header_util {
namespace {
void SplitLinkHeaderForTesting(const std::string& header,
std::vector<std::string>* values) { … }
bool ParseLinkHeaderValueForTesting(
std::string value,
std::string* url,
std::unordered_map<std::string, std::optional<std::string>>* params) { … }
TEST(LinkHeaderTest, SplitEmpty) { … }
TEST(LinkHeaderTest, SplitSimple) { … }
TEST(LinkHeaderTest, SplitSkipsEmpty) { … }
TEST(LinkHeaderTest, SplitQuotes) { … }
TEST(LinkHeaderTest, SplitEscapedQuotes) { … }
struct SimpleParseTestData { … };
void PrintTo(const SimpleParseTestData& test, std::ostream* os) { … }
class SimpleParseTest : public ::testing::TestWithParam<SimpleParseTestData> { … };
TEST_P(SimpleParseTest, Simple) { … }
const SimpleParseTestData simple_parse_tests[] = …;
INSTANTIATE_TEST_SUITE_P(…);
}
}