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

Side by Side Diff: content/shell/renderer/test_runner/test_runner.cc

Issue 297273003: test_runner: Migrate WebTestRunner to our Chromium C++ style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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 #include "content/shell/renderer/test_runner/test_runner.h" 5 #include "content/shell/renderer/test_runner/test_runner.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/shell/common/test_runner/test_preferences.h" 10 #include "content/shell/common/test_runner/test_preferences.h"
(...skipping 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after
1530 1530
1531 std::string TestRunner::customDumpText() const { 1531 std::string TestRunner::customDumpText() const {
1532 return custom_text_output_; 1532 return custom_text_output_;
1533 } 1533 }
1534 1534
1535 void TestRunner::setCustomTextOutput(std::string text) { 1535 void TestRunner::setCustomTextOutput(std::string text) {
1536 custom_text_output_ = text; 1536 custom_text_output_ = text;
1537 has_custom_text_output_ = true; 1537 has_custom_text_output_ = true;
1538 } 1538 }
1539 1539
1540 bool TestRunner::shouldGeneratePixelResults() { 1540 bool TestRunner::ShouldGeneratePixelResults() {
1541 CheckResponseMimeType(); 1541 CheckResponseMimeType();
1542 return generate_pixel_results_; 1542 return generate_pixel_results_;
1543 } 1543 }
1544 1544
1545 void TestRunner::setShouldGeneratePixelResults(bool value) { 1545 void TestRunner::setShouldGeneratePixelResults(bool value) {
1546 generate_pixel_results_ = value; 1546 generate_pixel_results_ = value;
1547 } 1547 }
1548 1548
1549 bool TestRunner::shouldDumpChildFrameScrollPositions() const { 1549 bool TestRunner::shouldDumpChildFrameScrollPositions() const {
1550 return dump_child_frame_scroll_positions_; 1550 return dump_child_frame_scroll_positions_;
1551 } 1551 }
1552 1552
1553 bool TestRunner::shouldDumpChildFramesAsText() const { 1553 bool TestRunner::shouldDumpChildFramesAsText() const {
1554 return dump_child_frames_as_text_; 1554 return dump_child_frames_as_text_;
1555 } 1555 }
1556 1556
1557 bool TestRunner::shouldDumpAsAudio() const { 1557 bool TestRunner::ShouldDumpAsAudio() const {
1558 return dump_as_audio_; 1558 return dump_as_audio_;
1559 } 1559 }
1560 1560
1561 void TestRunner::getAudioData(std::vector<unsigned char>* bufferView) const { 1561 void TestRunner::GetAudioData(std::vector<unsigned char>* buffer_view) const {
1562 *bufferView = audio_data_; 1562 *buffer_view = audio_data_;
1563 } 1563 }
1564 1564
1565 bool TestRunner::shouldDumpFrameLoadCallbacks() const { 1565 bool TestRunner::shouldDumpFrameLoadCallbacks() const {
1566 return test_is_running_ && dump_frame_load_callbacks_; 1566 return test_is_running_ && dump_frame_load_callbacks_;
1567 } 1567 }
1568 1568
1569 void TestRunner::setShouldDumpFrameLoadCallbacks(bool value) { 1569 void TestRunner::setShouldDumpFrameLoadCallbacks(bool value) {
1570 dump_frame_load_callbacks_ = value; 1570 dump_frame_load_callbacks_ = value;
1571 } 1571 }
1572 1572
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1607 } 1607 }
1608 1608
1609 bool TestRunner::shouldDumpResourceRequestCallbacks() const { 1609 bool TestRunner::shouldDumpResourceRequestCallbacks() const {
1610 return test_is_running_ && dump_resource_request_callbacks_; 1610 return test_is_running_ && dump_resource_request_callbacks_;
1611 } 1611 }
1612 1612
1613 bool TestRunner::shouldDumpResourceResponseMIMETypes() const { 1613 bool TestRunner::shouldDumpResourceResponseMIMETypes() const {
1614 return test_is_running_ && dump_resource_reqponse_mime_types_; 1614 return test_is_running_ && dump_resource_reqponse_mime_types_;
1615 } 1615 }
1616 1616
1617 WebPermissionClient* TestRunner::webPermissions() const { 1617 WebPermissionClient* TestRunner::GetWebPermissions() const {
1618 return web_permissions_.get(); 1618 return web_permissions_.get();
1619 } 1619 }
1620 1620
1621 bool TestRunner::shouldDumpStatusCallbacks() const { 1621 bool TestRunner::shouldDumpStatusCallbacks() const {
1622 return dump_window_status_changes_; 1622 return dump_window_status_changes_;
1623 } 1623 }
1624 1624
1625 bool TestRunner::shouldDumpProgressFinishedCallback() const { 1625 bool TestRunner::shouldDumpProgressFinishedCallback() const {
1626 return dump_progress_finished_callback_; 1626 return dump_progress_finished_callback_;
1627 } 1627 }
1628 1628
1629 bool TestRunner::shouldDumpSpellCheckCallbacks() const { 1629 bool TestRunner::shouldDumpSpellCheckCallbacks() const {
1630 return dump_spell_check_callbacks_; 1630 return dump_spell_check_callbacks_;
1631 } 1631 }
1632 1632
1633 bool TestRunner::shouldDumpBackForwardList() const { 1633 bool TestRunner::ShouldDumpBackForwardList() const {
1634 return dump_back_forward_list_; 1634 return dump_back_forward_list_;
1635 } 1635 }
1636 1636
1637 bool TestRunner::shouldDumpSelectionRect() const { 1637 bool TestRunner::shouldDumpSelectionRect() const {
1638 return dump_selection_rect_; 1638 return dump_selection_rect_;
1639 } 1639 }
1640 1640
1641 bool TestRunner::isPrinting() const { 1641 bool TestRunner::isPrinting() const {
1642 return is_printing_; 1642 return is_printing_;
1643 } 1643 }
(...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
2633 } 2633 }
2634 2634
2635 void TestRunner::DidLosePointerLockInternal() { 2635 void TestRunner::DidLosePointerLockInternal() {
2636 bool was_locked = pointer_locked_; 2636 bool was_locked = pointer_locked_;
2637 pointer_locked_ = false; 2637 pointer_locked_ = false;
2638 if (was_locked) 2638 if (was_locked)
2639 web_view_->didLosePointerLock(); 2639 web_view_->didLosePointerLock();
2640 } 2640 }
2641 2641
2642 } // namespace content 2642 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/test_runner.h ('k') | content/shell/renderer/test_runner/web_test_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698