#include "third_party/blink/renderer/core/html/trust_token_attribute_parsing.h"
#include "services/network/public/mojom/trust_tokens.mojom-blink.h"
#include "services/network/test/trust_token_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/json/json_parser.h"
#include "third_party/blink/renderer/platform/json/json_values.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink::internal {
namespace {
network::mojom::blink::TrustTokenParamsPtr NetworkParamsToBlinkParams(
network::mojom::TrustTokenParamsPtr params) { … }
}
TrustTokenAttributeParsingSuccess;
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(TrustTokenAttributeParsingSuccess, Roundtrip) { … }
TEST(TrustTokenAttributeParsing, NotADictionary) { … }
TEST(TrustTokenAttributeParsing, MissingVersion) { … }
TEST(TrustTokenAttributeParsing, MissingOperation) { … }
TEST(TrustTokenAttributeParsing, TypeUnsafeVersion) { … }
TEST(TrustTokenAttributeParsing, TypeUnsafeOperation) { … }
TEST(TrustTokenAttributeParsing, InvalidVersion) { … }
TEST(TrustTokenAttributeParsing, NegativeVersionNumber) { … }
TEST(TrustTokenAttributeParsing, InvalidOperation) { … }
TEST(TrustTokenAttributeParsing, TypeUnsafeRefreshPolicy) { … }
TEST(TrustTokenAttributeParsing, InvalidRefreshPolicy) { … }
TEST(TrustTokenAttributeParsing, NonListIssuers) { … }
TEST(TrustTokenAttributeParsing, EmptyIssuers) { … }
TEST(TrustTokenAttributeParsing, WrongListTypeIssuers) { … }
TEST(TrustTokenAttributeParsing, NonUrlIssuer) { … }
TEST(TrustTokenAttributeParsing, InsecureIssuer) { … }
TEST(TrustTokenAttributeParsing, NonHttpNonHttpsIssuer) { … }
}