#include "third_party/blink/renderer/core/permissions_policy/document_policy_parser.h"
#include <vector>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/permissions_policy/document_policy.h"
#include "third_party/blink/public/mojom/permissions_policy/permissions_policy_feature.mojom-blink.h"
namespace blink {
constexpr const mojom::blink::DocumentPolicyFeature kDefault = …;
constexpr const mojom::blink::DocumentPolicyFeature kBoolFeature = …;
constexpr const mojom::blink::DocumentPolicyFeature kDoubleFeature = …;
struct MessageForTest { … };
struct ParseTestCase { … };
class DocumentPolicyParserTest
: public ::testing::TestWithParam<ParseTestCase> { … };
const ParseTestCase DocumentPolicyParserTest::kCases[] = …;
const std::pair<DocumentPolicyFeatureState, std::string>
kPolicySerializationTestCases[] = …;
const DocumentPolicyFeatureState kParsedPolicies[] = …;
TEST_F(DocumentPolicyParserTest, SerializeAndParse) { … }
TEST_F(DocumentPolicyParserTest, SerializeResultShouldMatch) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(DocumentPolicyParserTest, ParseResultShouldMatch) { … }
}