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

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

Issue 2020883002: PaymentRequest: Introduce PaymentMethodData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/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

Powered by Google App Engine
This is Rietveld 408576698