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

Side by Side Diff: content/shell/renderer/test_runner/web_test_runner.h

Issue 1167703002: Move test runner to a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « content/shell/renderer/test_runner/web_test_proxy.cc ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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.
4
5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_RUNNER_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_RUNNER_H_
7
8 #include <vector>
9
10 namespace blink {
11 class WebContentSettingsClient;
12 }
13
14 namespace content {
15
16 class WebTestRunner {
17 public:
18 // Returns a mock WebContentSettings that is used for layout tests. An
19 // embedder should use this for all WebViews it creates.
20 virtual blink::WebContentSettingsClient* GetWebContentSettings() const = 0;
21
22 // After WebTestDelegate::TestFinished was invoked, the following methods
23 // can be used to determine what kind of dump the main WebTestProxy can
24 // provide.
25
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>* buffer_view) const = 0;
30
31 // Returns true if the call to WebTestProxy::captureTree will invoke
32 // WebTestDelegate::captureHistoryForWindow.
33 virtual bool ShouldDumpBackForwardList() const = 0;
34
35 // Returns true if WebTestProxy::capturePixels should be invoked after
36 // capturing text results.
37 virtual bool ShouldGeneratePixelResults() = 0;
38 };
39
40 } // namespace content
41
42 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/web_test_proxy.cc ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698