#include "services/network/public/cpp/supports_loading_mode/supports_loading_mode_parser.h"
#include "net/http/http_response_headers.h"
#include "services/network/public/mojom/supports_loading_mode.mojom.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace network {
namespace {
template <typename... ModeMatchers>
::testing::Matcher<mojom::SupportsLoadingModePtr> SupportedModesAre(
ModeMatchers&&... modes) { … }
TEST(SupportsLoadingModeParserTest, Valid) { … }
TEST(SupportsLoadingModeParserTest, IgnoresUnknown) { … }
TEST(SupportsLoadingModeParserTest, InvalidHttpStructuredHeaderList) { … }
TEST(SupportsLoadingModeParserTest, ValidFromResponseHeaders) { … }
}
}