WiFiServiceImpl (Windows): Fixed wrong authentication type with WEP-PSK.
[chromium-blink-merge.git] / components / test_runner / web_test_runner.h
blob177e2ba3eee5b5ed91985ed92589bd90c1dac8ed
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.
5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_RUNNER_H_
6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_RUNNER_H_
8 #include <vector>
10 namespace blink {
11 class WebContentSettingsClient;
14 namespace test_runner {
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;
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.
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;
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;
39 virtual bool ShouldStayOnPageAfterHandlingBeforeUnload() const = 0;
42 } // namespace test_runner
44 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_RUNNER_H_