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

Side by Side Diff: content/shell/renderer/layout_test/blink_test_runner.h

Issue 1589643003: OOPIF support for testRunner.dumpAsText and similar layout dumps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 4 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ 5 #ifndef CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_
6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ 6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 23 matching lines...) Expand all
34 namespace test_runner { 34 namespace test_runner {
35 class WebTestProxyBase; 35 class WebTestProxyBase;
36 } 36 }
37 37
38 namespace content { 38 namespace content {
39 39
40 class LeakDetector; 40 class LeakDetector;
41 struct LeakDetectionResult; 41 struct LeakDetectionResult;
42 42
43 // This is the renderer side of the webkit test runner. 43 // This is the renderer side of the webkit test runner.
44 // TODO(lukasza): Rename to LayoutTestRenderViewObserver for consistency with
45 // LayoutTestRenderFrameObserver.
44 class BlinkTestRunner : public RenderViewObserver, 46 class BlinkTestRunner : public RenderViewObserver,
45 public RenderViewObserverTracker<BlinkTestRunner>, 47 public RenderViewObserverTracker<BlinkTestRunner>,
46 public test_runner::WebTestDelegate { 48 public test_runner::WebTestDelegate {
47 public: 49 public:
48 explicit BlinkTestRunner(RenderView* render_view); 50 explicit BlinkTestRunner(RenderView* render_view);
49 ~BlinkTestRunner() override; 51 ~BlinkTestRunner() override;
50 52
51 // RenderViewObserver implementation. 53 // RenderViewObserver implementation.
52 bool OnMessageReceived(const IPC::Message& message) override; 54 bool OnMessageReceived(const IPC::Message& message) override;
53 void DidClearWindowObject(blink::WebLocalFrame* frame) override; 55 void DidClearWindowObject(blink::WebLocalFrame* frame) override;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 const std::vector<unsigned>& current_entry_indexes); 172 const std::vector<unsigned>& current_entry_indexes);
171 void OnReset(); 173 void OnReset();
172 void OnNotifyDone(); 174 void OnNotifyDone();
173 void OnTryLeakDetection(); 175 void OnTryLeakDetection();
174 void OnReplyBluetoothManualChooserEvents( 176 void OnReplyBluetoothManualChooserEvents(
175 const std::vector<std::string>& events); 177 const std::vector<std::string>& events);
176 178
177 // After finishing the test, retrieves the audio, text, and pixel dumps from 179 // After finishing the test, retrieves the audio, text, and pixel dumps from
178 // the TestRunner library and sends them to the browser process. 180 // the TestRunner library and sends them to the browser process.
179 void CaptureDump(); 181 void CaptureDump();
180 void CaptureDumpPixels(const SkBitmap& snapshot); 182 void OnLayoutDumpCompleted(std::string completed_layout_dump);
183 void CaptureDumpContinued();
184 void OnPixelsDumpCompleted(const SkBitmap& snapshot);
181 void CaptureDumpComplete(); 185 void CaptureDumpComplete();
182 186
183 test_runner::WebTestProxyBase* proxy_; 187 test_runner::WebTestProxyBase* proxy_;
184 188
185 RenderView* focused_view_; 189 RenderView* focused_view_;
186 190
187 test_runner::TestPreferences prefs_; 191 test_runner::TestPreferences prefs_;
188 192
189 ShellTestConfiguration test_config_; 193 ShellTestConfiguration test_config_;
190 194
191 std::vector<int> routing_ids_; 195 std::vector<int> routing_ids_;
192 std::vector<std::vector<PageState> > session_histories_; 196 std::vector<std::vector<PageState> > session_histories_;
193 std::vector<unsigned> current_entry_indexes_; 197 std::vector<unsigned> current_entry_indexes_;
194 198
195 std::deque<base::Callback<void(const std::vector<std::string>&)>> 199 std::deque<base::Callback<void(const std::vector<std::string>&)>>
196 get_bluetooth_events_callbacks_; 200 get_bluetooth_events_callbacks_;
197 201
198 bool is_main_window_; 202 bool is_main_window_;
199 203
200 bool focus_on_next_commit_; 204 bool focus_on_next_commit_;
201 205
202 scoped_ptr<LeakDetector> leak_detector_; 206 scoped_ptr<LeakDetector> leak_detector_;
203 207
204 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); 208 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner);
205 }; 209 };
206 210
207 } // namespace content 211 } // namespace content
208 212
209 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ 213 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « content/shell/common/shell_messages.h ('k') | content/shell/renderer/layout_test/blink_test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698