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

Unified Diff: components/test_runner/test_runner.cc

Issue 2647243002: PaymentApp: Implement PaymentAppProvider for LayoutTest.
Patch Set: PaymentApp: Implement PaymentAppProvider for LayoutTest. Created 3 years, 11 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
« no previous file with comments | « no previous file | components/test_runner/test_runner_for_specific_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/test_runner.cc
diff --git a/components/test_runner/test_runner.cc b/components/test_runner/test_runner.cc
index 42077622b9b0d6a43e1949240056a8ff4666c858..bcb375da20c44a599c5da01cfcd189d5a2f347eb 100644
--- a/components/test_runner/test_runner.cc
+++ b/components/test_runner/test_runner.cc
@@ -200,6 +200,10 @@ class TestRunnerBindings : public gin::Wrappable<TestRunnerBindings> {
void SetBluetoothFakeAdapter(const std::string& adapter_name,
v8::Local<v8::Function> callback);
void SetBluetoothManualChooser(bool enable);
+
+ void GetAllPaymentAppIDs(v8::Local<v8::Function> callback);
+ void InvokePaymentApp(int64_t registration_id);
+
void SetCanOpenWindows();
void SetCloseRemainingWindowsWhenComplete(gin::Arguments* args);
void SetColorProfile(const std::string& name,
@@ -506,6 +510,9 @@ gin::ObjectTemplateBuilder TestRunnerBindings::GetObjectTemplateBuilder(
&TestRunnerBindings::SetBluetoothFakeAdapter)
.SetMethod("setBluetoothManualChooser",
&TestRunnerBindings::SetBluetoothManualChooser)
+ .SetMethod("getAllPaymentAppIDs",
+ &TestRunnerBindings::GetAllPaymentAppIDs)
+ .SetMethod("invokePaymentApp", &TestRunnerBindings::InvokePaymentApp)
.SetMethod("setCallCloseOnWebViews", &TestRunnerBindings::NotImplemented)
.SetMethod("setCanOpenWindows", &TestRunnerBindings::SetCanOpenWindows)
.SetMethod("setCloseRemainingWindowsWhenComplete",
@@ -1350,6 +1357,16 @@ void TestRunnerBindings::SetBluetoothManualChooser(bool enable) {
view_runner_->SetBluetoothManualChooser(enable);
}
+void TestRunnerBindings::GetAllPaymentAppIDs(v8::Local<v8::Function> callback) {
+ if (view_runner_)
+ view_runner_->GetAllPaymentAppIDs(callback);
+}
+
+void TestRunnerBindings::InvokePaymentApp(int64_t registration_id) {
+ if (view_runner_)
+ view_runner_->InvokePaymentApp(registration_id);
+}
+
void TestRunnerBindings::GetBluetoothManualChooserEvents(
v8::Local<v8::Function> callback) {
if (view_runner_)
« no previous file with comments | « no previous file | components/test_runner/test_runner_for_specific_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698