1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTRUNNER_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTRUNNER_H_
11 class WebPermissionClient
;
14 namespace WebTestRunner
{
18 // Returns a mock WebPermissionClient that is used for layout tests. An
19 // embedder should use this for all WebViews it creates.
20 virtual blink::WebPermissionClient
* webPermissions() const = 0;
22 // After WebTestDelegate::testFinished was invoked, the following methods
23 // can be used to determine what kind of dump the main WebTestProxy can
26 // If true, WebTestDelegate::audioData returns an audio dump and no text
27 // or pixel results are available.
28 virtual bool shouldDumpAsAudio() const = 0;
29 virtual void getAudioData(std::vector
<unsigned char>* bufferView
) const = 0;
31 // Returns true if the call to WebTestProxy::captureTree will invoke
32 // WebTestDelegate::captureHistoryForWindow.
33 virtual bool shouldDumpBackForwardList() const = 0;
35 // Returns true if WebTestProxy::capturePixels should be invoked after
36 // capturing text results.
37 virtual bool shouldGeneratePixelResults() = 0;
42 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTRUNNER_H_