Index: third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp |
diff --git a/third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.cpp b/third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp |
similarity index 92% |
rename from third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.cpp |
rename to third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp |
index 515b9cf10988853389fac7d277e1682293c70bd7..eedf68e12ebce3ee3783f842bfcf68cb14994da8 100644 |
--- a/third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.cpp |
+++ b/third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp |
@@ -2,7 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "modules/payments/PaymentDetailsTestHelper.h" |
+#include "modules/payments/PaymentTestHelper.h" |
#include "modules/payments/CurrencyAmount.h" |
#include "platform/heap/HeapAllocator.h" |
@@ -91,4 +91,11 @@ PaymentDetails buildPaymentDetailsForTest(PaymentTestDetailToChange detail, Paym |
return result; |
} |
+HeapVector<PaymentMethodData> buildPaymentMethodDataForTest() |
+{ |
+ HeapVector<PaymentMethodData> methodData(1, PaymentMethodData()); |
+ methodData[0].setSupportedMethods(Vector<String>(1, "foo")); |
+ return methodData; |
+} |
+ |
} // namespace blink |