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

Unified Diff: content/shell/renderer/test_runner/WebTestRunner.h

Issue 110533009: Import TestRunner library into chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years 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: content/shell/renderer/test_runner/WebTestRunner.h
diff --git a/content/shell/renderer/test_runner/WebTestRunner.h b/content/shell/renderer/test_runner/WebTestRunner.h
new file mode 100644
index 0000000000000000000000000000000000000000..1ae5c3025dc37f0c5d9d6181e84d0df7dbeebe44
--- /dev/null
+++ b/content/shell/renderer/test_runner/WebTestRunner.h
@@ -0,0 +1,41 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebTestRunner_h
+#define WebTestRunner_h
+
+namespace blink {
+class WebArrayBufferView;
+class WebPermissionClient;
+}
+
+namespace WebTestRunner {
+
+class WebTestRunner {
+public:
+ // Returns a mock WebPermissionClient that is used for layout tests. An
+ // embedder should use this for all WebViews it creates.
+ virtual blink::WebPermissionClient* webPermissions() const = 0;
+
+ // After WebTestDelegate::testFinished was invoked, the following methods
+ // can be used to determine what kind of dump the main WebTestProxy can
+ // provide.
+
+ // If true, WebTestDelegate::audioData returns an audio dump and no text
+ // or pixel results are available.
+ virtual bool shouldDumpAsAudio() const = 0;
+ virtual const blink::WebArrayBufferView* audioData() const = 0;
+
+ // Returns true if the call to WebTestProxy::captureTree will invoke
+ // WebTestDelegate::captureHistoryForWindow.
+ virtual bool shouldDumpBackForwardList() const = 0;
+
+ // Returns true if WebTestProxy::capturePixels should be invoked after
+ // capturing text results.
+ virtual bool shouldGeneratePixelResults() = 0;
+};
+
+}
+
+#endif // WebTestRunner_h
« no previous file with comments | « content/shell/renderer/test_runner/WebTestProxy.cpp ('k') | content/shell/renderer/test_runner/WebTestThemeControlWin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698