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

Side by Side Diff: content/shell/test_runner/test_interfaces.h

Issue 2689483007: Tests of ctrl-click can't postMessage to opener - using custom text instead. (Closed)
Patch Set: Rebasing... Created 3 years, 8 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_SHELL_TEST_RUNNER_TEST_INTERFACES_H_ 5 #ifndef CONTENT_SHELL_TEST_RUNNER_TEST_INTERFACES_H_
6 #define CONTENT_SHELL_TEST_RUNNER_TEST_INTERFACES_H_ 6 #define CONTENT_SHELL_TEST_RUNNER_TEST_INTERFACES_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 19 matching lines...) Expand all
30 class TestInterfaces { 30 class TestInterfaces {
31 public: 31 public:
32 TestInterfaces(); 32 TestInterfaces();
33 ~TestInterfaces(); 33 ~TestInterfaces();
34 34
35 void SetMainView(blink::WebView* web_view); 35 void SetMainView(blink::WebView* web_view);
36 void SetDelegate(WebTestDelegate* delegate); 36 void SetDelegate(WebTestDelegate* delegate);
37 void BindTo(blink::WebFrame* frame); 37 void BindTo(blink::WebFrame* frame);
38 void ResetTestHelperControllers(); 38 void ResetTestHelperControllers();
39 void ResetAll(); 39 void ResetAll();
40 bool TestIsRunning();
40 void SetTestIsRunning(bool running); 41 void SetTestIsRunning(bool running);
41 void ConfigureForTestWithURL(const blink::WebURL& test_url, 42 void ConfigureForTestWithURL(const blink::WebURL& test_url,
42 bool generate_pixels); 43 bool generate_pixels);
43 44
44 void WindowOpened(WebViewTestProxyBase* proxy); 45 void WindowOpened(WebViewTestProxyBase* proxy);
45 void WindowClosed(WebViewTestProxyBase* proxy); 46 void WindowClosed(WebViewTestProxyBase* proxy);
46 47
47 TestRunner* GetTestRunner(); 48 TestRunner* GetTestRunner();
48 WebTestDelegate* GetDelegate(); 49 WebTestDelegate* GetDelegate();
49 const std::vector<WebViewTestProxyBase*>& GetWindowList(); 50 const std::vector<WebViewTestProxyBase*>& GetWindowList();
50 blink::WebThemeEngine* GetThemeEngine(); 51 blink::WebThemeEngine* GetThemeEngine();
51 52
52 private: 53 private:
53 base::WeakPtr<GamepadController> gamepad_controller_; 54 base::WeakPtr<GamepadController> gamepad_controller_;
54 std::unique_ptr<TestRunner> test_runner_; 55 std::unique_ptr<TestRunner> test_runner_;
55 WebTestDelegate* delegate_; 56 WebTestDelegate* delegate_;
56 57
57 std::vector<WebViewTestProxyBase*> window_list_; 58 std::vector<WebViewTestProxyBase*> window_list_;
58 blink::WebView* main_view_; 59 blink::WebView* main_view_;
59 60
60 std::unique_ptr<MockWebThemeEngine> theme_engine_; 61 std::unique_ptr<MockWebThemeEngine> theme_engine_;
61 62
62 DISALLOW_COPY_AND_ASSIGN(TestInterfaces); 63 DISALLOW_COPY_AND_ASSIGN(TestInterfaces);
63 }; 64 };
64 65
65 } // namespace test_runner 66 } // namespace test_runner
66 67
67 #endif // CONTENT_SHELL_TEST_RUNNER_TEST_INTERFACES_H_ 68 #endif // CONTENT_SHELL_TEST_RUNNER_TEST_INTERFACES_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.cc ('k') | content/shell/test_runner/test_interfaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698