#include "third_party/blink/renderer/platform/loader/link_header.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace blink {
namespace {
TEST(LinkHeaderTest, Empty) { … }
struct SingleTestCase { … } g_single_test_cases[] = …;
void PrintTo(const SingleTestCase& test, std::ostream* os) { … }
class SingleLinkHeaderTest : public testing::TestWithParam<SingleTestCase> { … };
TEST_P(SingleLinkHeaderTest, Single) { … }
INSTANTIATE_TEST_SUITE_P(…);
struct DoubleTestCase { … } g_double_test_cases[] = …;
void PrintTo(const DoubleTestCase& test, std::ostream* os) { … }
class DoubleLinkHeaderTest : public testing::TestWithParam<DoubleTestCase> { … };
TEST_P(DoubleLinkHeaderTest, Double) { … }
INSTANTIATE_TEST_SUITE_P(…);
struct CrossOriginTestCase { … } g_cross_origin_test_cases[] = …;
void PrintTo(const CrossOriginTestCase& test, std::ostream* os) { … }
class CrossOriginLinkHeaderTest
: public testing::TestWithParam<CrossOriginTestCase> { … };
TEST_P(CrossOriginLinkHeaderTest, CrossOrigin) { … }
INSTANTIATE_TEST_SUITE_P(…);
}
}