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

Side by Side Diff: components/test_runner/test_interfaces.h

Issue 2707183003: Move //components/test_runner back into //content/shell (Closed)
Patch Set: Trim DEPS Created 3 years, 10 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
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 COMPONENTS_TEST_RUNNER_TEST_INTERFACES_H_
6 #define COMPONENTS_TEST_RUNNER_TEST_INTERFACES_H_
7
8 #include <memory>
9 #include <vector>
10
11 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h"
13 #include "components/test_runner/mock_web_theme_engine.h"
14 #include "third_party/WebKit/public/platform/WebNonCopyable.h"
15
16 namespace blink {
17 class WebFrame;
18 class WebThemeEngine;
19 class WebURL;
20 class WebView;
21 }
22
23 namespace test_runner {
24
25 class GamepadController;
26 class TestRunner;
27 class WebTestDelegate;
28 class WebViewTestProxyBase;
29
30 class TestInterfaces {
31 public:
32 TestInterfaces();
33 ~TestInterfaces();
34
35 void SetMainView(blink::WebView* web_view);
36 void SetDelegate(WebTestDelegate* delegate);
37 void BindTo(blink::WebFrame* frame);
38 void ResetTestHelperControllers();
39 void ResetAll();
40 void SetTestIsRunning(bool running);
41 void ConfigureForTestWithURL(const blink::WebURL& test_url,
42 bool generate_pixels);
43
44 void WindowOpened(WebViewTestProxyBase* proxy);
45 void WindowClosed(WebViewTestProxyBase* proxy);
46
47 TestRunner* GetTestRunner();
48 WebTestDelegate* GetDelegate();
49 const std::vector<WebViewTestProxyBase*>& GetWindowList();
50 blink::WebThemeEngine* GetThemeEngine();
51
52 private:
53 base::WeakPtr<GamepadController> gamepad_controller_;
54 std::unique_ptr<TestRunner> test_runner_;
55 WebTestDelegate* delegate_;
56
57 std::vector<WebViewTestProxyBase*> window_list_;
58 blink::WebView* main_view_;
59
60 std::unique_ptr<MockWebThemeEngine> theme_engine_;
61
62 DISALLOW_COPY_AND_ASSIGN(TestInterfaces);
63 };
64
65 } // namespace test_runner
66
67 #endif // COMPONENTS_TEST_RUNNER_TEST_INTERFACES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698