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

Unified Diff: components/test_runner/web_test_interfaces.h

Issue 1308973005: html_viewer/web_view: An app for running layout-tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix-win-build Created 5 years, 3 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: components/test_runner/web_test_interfaces.h
diff --git a/components/test_runner/web_test_interfaces.h b/components/test_runner/web_test_interfaces.h
index 40562685020805a3e4c6d285f57bbcba8df96651..e5eb770fa0463407d43f03f9b2abc67886b0a077 100644
--- a/components/test_runner/web_test_interfaces.h
+++ b/components/test_runner/web_test_interfaces.h
@@ -5,6 +5,7 @@
#ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_
#define COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_
+#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
#include "components/test_runner/test_runner_export.h"
@@ -36,6 +37,10 @@ class TEST_RUNNER_EXPORT WebTestInterfaces {
WebTestInterfaces();
~WebTestInterfaces();
+ void set_termination_callback(const base::Closure& callback) {
+ termination_ = callback;
+ }
+
void SetWebView(blink::WebView* web_view, WebTestProxyBase* proxy);
void SetDelegate(WebTestDelegate* delegate);
void BindTo(blink::WebFrame* frame);
@@ -64,6 +69,7 @@ class TEST_RUNNER_EXPORT WebTestInterfaces {
private:
scoped_ptr<TestInterfaces> interfaces_;
+ base::Closure termination_;
DISALLOW_COPY_AND_ASSIGN(WebTestInterfaces);
};

Powered by Google App Engine
This is Rietveld 408576698