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_) |