OLD | NEW |
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 <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 void OnReplicateTestConfiguration(const ShellTestConfiguration& params); | 169 void OnReplicateTestConfiguration(const ShellTestConfiguration& params); |
170 void OnSetupSecondaryRenderer(); | 170 void OnSetupSecondaryRenderer(); |
171 | 171 |
172 private: | 172 private: |
173 // Message handlers. | 173 // Message handlers. |
174 void OnSessionHistory( | 174 void OnSessionHistory( |
175 const std::vector<int>& routing_ids, | 175 const std::vector<int>& routing_ids, |
176 const std::vector<std::vector<PageState> >& session_histories, | 176 const std::vector<std::vector<PageState> >& session_histories, |
177 const std::vector<unsigned>& current_entry_indexes); | 177 const std::vector<unsigned>& current_entry_indexes); |
178 void OnReset(); | 178 void OnReset(); |
179 void OnNotifyDone(); | 179 void OnTestFinishedInSecondaryRenderer(); |
180 void OnTryLeakDetection(); | 180 void OnTryLeakDetection(); |
181 void OnReplyBluetoothManualChooserEvents( | 181 void OnReplyBluetoothManualChooserEvents( |
182 const std::vector<std::string>& events); | 182 const std::vector<std::string>& events); |
183 | 183 |
184 // After finishing the test, retrieves the audio, text, and pixel dumps from | 184 // After finishing the test, retrieves the audio, text, and pixel dumps from |
185 // the TestRunner library and sends them to the browser process. | 185 // the TestRunner library and sends them to the browser process. |
186 void CaptureDump(); | 186 void CaptureDump(); |
187 void OnLayoutDumpCompleted(std::string completed_layout_dump); | 187 void OnLayoutDumpCompleted(std::string completed_layout_dump); |
188 void CaptureDumpContinued(); | 188 void CaptureDumpContinued(); |
189 void OnPixelsDumpCompleted(const SkBitmap& snapshot); | 189 void OnPixelsDumpCompleted(const SkBitmap& snapshot); |
(...skipping 20 matching lines...) Expand all Loading... |
210 bool focus_on_next_commit_; | 210 bool focus_on_next_commit_; |
211 | 211 |
212 std::unique_ptr<LeakDetector> leak_detector_; | 212 std::unique_ptr<LeakDetector> leak_detector_; |
213 | 213 |
214 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); | 214 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); |
215 }; | 215 }; |
216 | 216 |
217 } // namespace content | 217 } // namespace content |
218 | 218 |
219 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ | 219 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ |
OLD | NEW |