OLD | NEW |
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_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 // Methods used by WebTestProxyBase. | 71 // Methods used by WebTestProxyBase. |
72 bool shouldDumpSelectionRect() const; | 72 bool shouldDumpSelectionRect() const; |
73 bool isPrinting() const; | 73 bool isPrinting() const; |
74 bool shouldDumpAsText(); | 74 bool shouldDumpAsText(); |
75 bool shouldDumpAsTextWithPixelResults(); | 75 bool shouldDumpAsTextWithPixelResults(); |
76 bool shouldDumpAsCustomText() const; | 76 bool shouldDumpAsCustomText() const; |
77 std:: string customDumpText() const; | 77 std:: string customDumpText() const; |
78 bool shouldDumpAsMarkup(); | 78 bool shouldDumpAsMarkup(); |
79 bool shouldDumpChildFrameScrollPositions() const; | 79 bool shouldDumpChildFrameScrollPositions() const; |
| 80 bool shouldDumpChildFramesAsMarkup() const; |
80 bool shouldDumpChildFramesAsText() const; | 81 bool shouldDumpChildFramesAsText() const; |
81 void showDevTools(const std::string& settings, | 82 void showDevTools(const std::string& settings, |
82 const std::string& frontend_url); | 83 const std::string& frontend_url); |
83 void clearDevToolsLocalStorage(); | 84 void clearDevToolsLocalStorage(); |
84 void setShouldDumpAsText(bool); | 85 void setShouldDumpAsText(bool); |
85 void setShouldDumpAsMarkup(bool); | 86 void setShouldDumpAsMarkup(bool); |
86 void setCustomTextOutput(std::string text); | 87 void setCustomTextOutput(std::string text); |
87 void setShouldGeneratePixelResults(bool); | 88 void setShouldGeneratePixelResults(bool); |
88 void setShouldDumpFrameLoadCallbacks(bool); | 89 void setShouldDumpFrameLoadCallbacks(bool); |
89 void setShouldDumpPingLoaderCallbacks(bool); | 90 void setShouldDumpPingLoaderCallbacks(bool); |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 // descriptive text for each editing command. It takes no arguments, and | 332 // descriptive text for each editing command. It takes no arguments, and |
332 // ignores any that may be present. | 333 // ignores any that may be present. |
333 void DumpEditingCallbacks(); | 334 void DumpEditingCallbacks(); |
334 | 335 |
335 // This function sets a flag that tells the test_shell to dump pages as | 336 // This function sets a flag that tells the test_shell to dump pages as |
336 // plain text, rather than as a text representation of the renderer's state. | 337 // plain text, rather than as a text representation of the renderer's state. |
337 // The pixel results will not be generated for this test. | 338 // The pixel results will not be generated for this test. |
338 void DumpAsText(); | 339 void DumpAsText(); |
339 | 340 |
340 // This function sets a flag that tells the test_shell to dump pages as | 341 // This function sets a flag that tells the test_shell to dump pages as |
| 342 // the DOM contents, rather than as a text representation of the renderer's |
| 343 // state. The pixel results will not be generated for this test. |
| 344 void DumpAsMarkup(); |
| 345 |
| 346 // This function sets a flag that tells the test_shell to dump pages as |
341 // plain text, rather than as a text representation of the renderer's state. | 347 // plain text, rather than as a text representation of the renderer's state. |
342 // It will also generate a pixel dump for the test. | 348 // It will also generate a pixel dump for the test. |
343 void DumpAsTextWithPixelResults(); | 349 void DumpAsTextWithPixelResults(); |
344 | 350 |
345 // This function sets a flag that tells the test_shell to print out the | 351 // This function sets a flag that tells the test_shell to print out the |
346 // scroll offsets of the child frames. It ignores all. | 352 // scroll offsets of the child frames. It ignores all. |
347 void DumpChildFrameScrollPositions(); | 353 void DumpChildFrameScrollPositions(); |
348 | 354 |
349 // This function sets a flag that tells the test_shell to recursively | 355 // This function sets a flag that tells the test_shell to recursively |
350 // dump all frames as plain text if the DumpAsText flag is set. | 356 // dump all frames as plain text if the DumpAsText flag is set. |
351 // It takes no arguments, and ignores any that may be present. | 357 // It takes no arguments, and ignores any that may be present. |
352 void DumpChildFramesAsText(); | 358 void DumpChildFramesAsText(); |
353 | 359 |
| 360 // This function sets a flag that tells the test_shell to recursively |
| 361 // dump all frames as the DOM contents if the DumpAsMarkup flag is set. |
| 362 // It takes no arguments, and ignores any that may be present. |
| 363 void DumpChildFramesAsMarkup(); |
| 364 |
354 // This function sets a flag that tells the test_shell to print out the | 365 // This function sets a flag that tells the test_shell to print out the |
355 // information about icon changes notifications from WebKit. | 366 // information about icon changes notifications from WebKit. |
356 void DumpIconChanges(); | 367 void DumpIconChanges(); |
357 | 368 |
358 // Deals with Web Audio WAV file data. | 369 // Deals with Web Audio WAV file data. |
359 void SetAudioData(const gin::ArrayBufferView& view); | 370 void SetAudioData(const gin::ArrayBufferView& view); |
360 | 371 |
361 // This function sets a flag that tells the test_shell to print a line of | 372 // This function sets a flag that tells the test_shell to print a line of |
362 // descriptive text for each frame load callback. It takes no arguments, and | 373 // descriptive text for each frame load callback. It takes no arguments, and |
363 // ignores any that may be present. | 374 // ignores any that may be present. |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 bool dump_as_text_; | 599 bool dump_as_text_; |
589 | 600 |
590 // If true and if dump_as_text_ is true, the test_shell will recursively | 601 // If true and if dump_as_text_ is true, the test_shell will recursively |
591 // dump all frames as plain text. | 602 // dump all frames as plain text. |
592 bool dump_child_frames_as_text_; | 603 bool dump_child_frames_as_text_; |
593 | 604 |
594 // If true, the test_shell will produce a dump of the DOM rather than a text | 605 // If true, the test_shell will produce a dump of the DOM rather than a text |
595 // representation of the renderer. | 606 // representation of the renderer. |
596 bool dump_as_markup_; | 607 bool dump_as_markup_; |
597 | 608 |
| 609 // If true and if dump_as_markup_ is true, the test_shell will recursively |
| 610 // produce a dump of the DOM rather than a text representation of the |
| 611 // renderer. |
| 612 bool dump_child_frames_as_markup_; |
| 613 |
598 // If true, the test_shell will print out the child frame scroll offsets as | 614 // If true, the test_shell will print out the child frame scroll offsets as |
599 // well. | 615 // well. |
600 bool dump_child_frame_scroll_positions_; | 616 bool dump_child_frame_scroll_positions_; |
601 | 617 |
602 // If true, the test_shell will print out the icon change notifications. | 618 // If true, the test_shell will print out the icon change notifications. |
603 bool dump_icon_changes_; | 619 bool dump_icon_changes_; |
604 | 620 |
605 // If true, the test_shell will output a base64 encoded WAVE file. | 621 // If true, the test_shell will output a base64 encoded WAVE file. |
606 bool dump_as_audio_; | 622 bool dump_as_audio_; |
607 | 623 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
712 bool use_mock_theme_; | 728 bool use_mock_theme_; |
713 | 729 |
714 base::WeakPtrFactory<TestRunner> weak_factory_; | 730 base::WeakPtrFactory<TestRunner> weak_factory_; |
715 | 731 |
716 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 732 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
717 }; | 733 }; |
718 | 734 |
719 } // namespace content | 735 } // namespace content |
720 | 736 |
721 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 737 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |