Commit 021df0b5 authored by Ian Kilpatrick's avatar Ian Kilpatrick Committed by Commit Bot

[code-inclusion] Remove whitelist from payments_validators_test.cc

As above - there should be no behaviour change.

Bug: 842296
Change-Id: I84c388fcdc18b36f6e0a8821a3bd7031645ae49f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2261100
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org>
Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org>
Auto-Submit: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: default avatarRouslan Solomakhin <rouslan@chromium.org>
Reviewed-by: default avatarLiquan (Max) Gu <maxlg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#781603}
parent 7bf0a86b
......@@ -359,14 +359,14 @@ TEST(PaymentMethodValidatorTest, IsValidPaymentMethod) {
}
}
TEST(PaymentMethodValidatorTest, IsValidPaymentMethodWhitelisted) {
TEST(PaymentMethodValidatorTest, IsValidPaymentMethodSafelisted) {
EXPECT_FALSE(PaymentsValidators::IsValidMethodFormat("http://alicepay.com"))
<< "http://alicepay.com is not a valid method format by default";
SecurityPolicy::AddOriginToTrustworthySafelist("http://alicepay.com");
EXPECT_TRUE(PaymentsValidators::IsValidMethodFormat("http://alicepay.com"))
<< "http://alicepay.com should be valid if whitelisted";
<< "http://alicepay.com should be valid if safelisted";
}
} // namespace
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment