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

Side by Side Diff: third_party/WebKit/Source/modules/payments/PaymentRequestDetailsTest.cpp

Issue 1861543003: DO NOT SUBMIT This fixes CFI bot, but it's ugly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/payments/PaymentRequest.h" 5 #include "modules/payments/PaymentRequest.h"
6 6
7 #include "bindings/core/v8/ExceptionState.h" 7 #include "bindings/core/v8/ExceptionState.h"
8 #include "bindings/core/v8/ScriptState.h" 8 #include "bindings/core/v8/ScriptState.h"
9 #include "core/dom/ExceptionCode.h" 9 #include "core/dom/ExceptionCode.h"
10 #include "core/testing/DummyPageHolder.h" 10 #include "core/testing/DummyPageHolder.h"
(...skipping 14 matching lines...) Expand all
25 , m_valueToUse(valueToUse) 25 , m_valueToUse(valueToUse)
26 , m_expectException(expectException) 26 , m_expectException(expectException)
27 , m_expectedExceptionCode(expectedExceptionCode) 27 , m_expectedExceptionCode(expectedExceptionCode)
28 { 28 {
29 } 29 }
30 30
31 ~DetailsTestCase() {} 31 ~DetailsTestCase() {}
32 32
33 PaymentDetails buildDetails() const 33 PaymentDetails buildDetails() const
34 { 34 {
35 return buildPaymentDetailsForTest(m_detail, m_data, m_modType, m_valueTo Use); 35 return buildPaymentDetailsForTest(true, m_detail, m_data, m_modType, m_v alueToUse);
36 } 36 }
37 37
38 bool expectException() const 38 bool expectException() const
39 { 39 {
40 return m_expectException; 40 return m_expectException;
41 } 41 }
42 42
43 ExceptionCode getExpectedExceptionCode() const 43 ExceptionCode getExpectedExceptionCode() const
44 { 44 {
45 return m_expectedExceptionCode; 45 return m_expectedExceptionCode;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 DetailsTestCase(PaymentTestDetailItem, PaymentTestDataAmount, PaymentTes tOverwriteValue, "10.", true, V8TypeError), 159 DetailsTestCase(PaymentTestDetailItem, PaymentTestDataAmount, PaymentTes tOverwriteValue, "10.", true, V8TypeError),
160 DetailsTestCase(PaymentTestDetailItem, PaymentTestDataAmount, PaymentTes tOverwriteValue, ".99", true, V8TypeError), 160 DetailsTestCase(PaymentTestDetailItem, PaymentTestDataAmount, PaymentTes tOverwriteValue, ".99", true, V8TypeError),
161 DetailsTestCase(PaymentTestDetailItem, PaymentTestDataAmount, PaymentTes tOverwriteValue, "-10.", true, V8TypeError), 161 DetailsTestCase(PaymentTestDetailItem, PaymentTestDataAmount, PaymentTes tOverwriteValue, "-10.", true, V8TypeError),
162 DetailsTestCase(PaymentTestDetailItem, PaymentTestDataAmount, PaymentTes tOverwriteValue, "10-", true, V8TypeError), 162 DetailsTestCase(PaymentTestDetailItem, PaymentTestDataAmount, PaymentTes tOverwriteValue, "10-", true, V8TypeError),
163 DetailsTestCase(PaymentTestDetailItem, PaymentTestDataAmount, PaymentTes tOverwriteValue, "1-0", true, V8TypeError), 163 DetailsTestCase(PaymentTestDetailItem, PaymentTestDataAmount, PaymentTes tOverwriteValue, "1-0", true, V8TypeError),
164 DetailsTestCase(PaymentTestDetailItem, PaymentTestDataAmount, PaymentTes tOverwriteValue, "1.0.0", true, V8TypeError), 164 DetailsTestCase(PaymentTestDetailItem, PaymentTestDataAmount, PaymentTes tOverwriteValue, "1.0.0", true, V8TypeError),
165 DetailsTestCase(PaymentTestDetailItem, PaymentTestDataAmount, PaymentTes tOverwriteValue, "1/3", true, V8TypeError))); 165 DetailsTestCase(PaymentTestDetailItem, PaymentTestDataAmount, PaymentTes tOverwriteValue, "1/3", true, V8TypeError)));
166 166
167 } // namespace 167 } // namespace
168 } // namespace blink 168 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698