Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(742)

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentsValidatorsTest.cpp

Issue 2851383002: Verify behavior of PaymentRequest constructor. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/payments/PaymentsValidatorsTest.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentsValidatorsTest.cpp b/third_party/WebKit/Source/modules/payments/PaymentsValidatorsTest.cpp
index 9173013539f6da0ee673b4afe2043b5cbb221f1d..6b59fada296e26775b02620a3aa2a86235c80163 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentsValidatorsTest.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentsValidatorsTest.cpp
@@ -106,14 +106,16 @@ class PaymentsAmountValidatorTest : public testing::TestWithParam<TestCase> {};
TEST_P(PaymentsAmountValidatorTest, IsValidAmountFormat) {
String error_message;
- EXPECT_EQ(GetParam().expected_valid, PaymentsValidators::IsValidAmountFormat(
- GetParam().input, &error_message))
+ EXPECT_EQ(GetParam().expected_valid,
+ PaymentsValidators::IsValidAmountFormat(
+ GetParam().input, "test value", &error_message))
<< error_message;
EXPECT_EQ(GetParam().expected_valid, error_message.IsEmpty())
<< error_message;
EXPECT_EQ(GetParam().expected_valid,
- PaymentsValidators::IsValidAmountFormat(GetParam().input, nullptr));
+ PaymentsValidators::IsValidAmountFormat(GetParam().input,
+ "test value", nullptr));
}
INSTANTIATE_TEST_CASE_P(

Powered by Google App Engine
This is Rietveld 408576698