Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Make the Port object have a Host
https://bugs.webkit.org/show_bug.cgi?id=71961 Reviewed by Adam Barth. This has been a long time coming. Now that Port has a Host object, it's very easy to write unittests which use a properly mocked Port. Soon we will remove the executive, filesystem and user members of Port and get everything through the Host. Note how in many callsites we're actually removing explicit mocks, since we're now always going to get the correct Executive/User/FileSystem from the Host and callsites don't need to be careful to pass each one. This is prep-work for adding a new Environment member to Host and needing to be able to access the Environment member from Port functions w/o needing to pass an Environment object (or appropriate Mock) every place we create a Port object. Now that we have a single Host object to reach out through, its simple to add additional functionality (like Environment) while keeping our unittests properly mocked. * Scripts/webkitpy/common/host.py: * Scripts/webkitpy/common/net/credentials_unittest.py: * Scripts/webkitpy/layout_tests/controllers/manager_unittest.py: * Scripts/webkitpy/layout_tests/controllers/manager_worker_broker.py: * Scripts/webkitpy/layout_tests/port/apple.py: * Scripts/webkitpy/layout_tests/port/base.py: * Scripts/webkitpy/layout_tests/port/base_unittest.py: * Scripts/webkitpy/layout_tests/port/chromium.py: * Scripts/webkitpy/layout_tests/port/chromium_gpu.py: * Scripts/webkitpy/layout_tests/port/chromium_gpu_unittest.py: * Scripts/webkitpy/layout_tests/port/chromium_linux.py: * Scripts/webkitpy/layout_tests/port/chromium_linux_unittest.py: * Scripts/webkitpy/layout_tests/port/chromium_mac.py: * Scripts/webkitpy/layout_tests/port/chromium_mac_unittest.py: * Scripts/webkitpy/layout_tests/port/chromium_unittest.py: * Scripts/webkitpy/layout_tests/port/chromium_win.py: * Scripts/webkitpy/layout_tests/port/chromium_win_unittest.py: * Scripts/webkitpy/layout_tests/port/dryrun.py: * Scripts/webkitpy/layout_tests/port/efl.py: * Scripts/webkitpy/layout_tests/port/factory.py: * Scripts/webkitpy/layout_tests/port/google_chrome.py: * Scripts/webkitpy/layout_tests/port/google_chrome_unittest.py: * Scripts/webkitpy/layout_tests/port/gtk.py: * Scripts/webkitpy/layout_tests/port/mac.py: * Scripts/webkitpy/layout_tests/port/mac_unittest.py: * Scripts/webkitpy/layout_tests/port/mock_drt.py: * Scripts/webkitpy/layout_tests/port/mock_drt_unittest.py: * Scripts/webkitpy/layout_tests/port/port_testcase.py: * Scripts/webkitpy/layout_tests/port/qt.py: * Scripts/webkitpy/layout_tests/port/qt_unittest.py: * Scripts/webkitpy/layout_tests/port/test.py: * Scripts/webkitpy/layout_tests/port/webkit.py: * Scripts/webkitpy/layout_tests/port/webkit_unittest.py: * Scripts/webkitpy/layout_tests/port/win.py: * Scripts/webkitpy/layout_tests/port/win_unittest.py: * Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py: * Scripts/webkitpy/to_be_moved/rebaseline_chromium_webkit_tests_unittest.py: * Scripts/webkitpy/tool/servers/rebaselineserver.py: * Scripts/webkitpy/tool/servers/rebaselineserver_unittest.py: Canonical link: https://commits.webkit.org/88338@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@99773 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
288 additions
and 266 deletions.
- +66 −0 Tools/ChangeLog
- +1 −0 Tools/Scripts/webkitpy/common/host.py
- +0 −1 Tools/Scripts/webkitpy/common/net/credentials_unittest.py
- +1 −2 Tools/Scripts/webkitpy/layout_tests/controllers/manager_unittest.py
- +5 −3 Tools/Scripts/webkitpy/layout_tests/controllers/manager_worker_broker.py
- +2 −2 Tools/Scripts/webkitpy/layout_tests/port/apple.py
- +10 −8 Tools/Scripts/webkitpy/layout_tests/port/base.py
- +3 −6 Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py
- +2 −2 Tools/Scripts/webkitpy/layout_tests/port/chromium.py
- +13 −13 Tools/Scripts/webkitpy/layout_tests/port/chromium_gpu.py
- +5 −3 Tools/Scripts/webkitpy/layout_tests/port/chromium_gpu_unittest.py
- +2 −5 Tools/Scripts/webkitpy/layout_tests/port/chromium_linux.py
- +14 −23 Tools/Scripts/webkitpy/layout_tests/port/chromium_linux_unittest.py
- +2 −2 Tools/Scripts/webkitpy/layout_tests/port/chromium_mac.py
- +11 −10 Tools/Scripts/webkitpy/layout_tests/port/chromium_mac_unittest.py
- +5 −8 Tools/Scripts/webkitpy/layout_tests/port/chromium_unittest.py
- +2 −2 Tools/Scripts/webkitpy/layout_tests/port/chromium_win.py
- +13 −12 Tools/Scripts/webkitpy/layout_tests/port/chromium_win_unittest.py
- +2 −3 Tools/Scripts/webkitpy/layout_tests/port/dryrun.py
- +5 −5 Tools/Scripts/webkitpy/layout_tests/port/efl.py
- +4 −12 Tools/Scripts/webkitpy/layout_tests/port/factory.py
- +18 −29 Tools/Scripts/webkitpy/layout_tests/port/google_chrome.py
- +7 −9 Tools/Scripts/webkitpy/layout_tests/port/google_chrome_unittest.py
- +14 −11 Tools/Scripts/webkitpy/layout_tests/port/gtk.py
- +2 −2 Tools/Scripts/webkitpy/layout_tests/port/mac.py
- +9 −9 Tools/Scripts/webkitpy/layout_tests/port/mac_unittest.py
- +17 −22 Tools/Scripts/webkitpy/layout_tests/port/mock_drt.py
- +14 −13 Tools/Scripts/webkitpy/layout_tests/port/mock_drt_unittest.py
- +2 −2 Tools/Scripts/webkitpy/layout_tests/port/port_testcase.py
- +2 −2 Tools/Scripts/webkitpy/layout_tests/port/qt.py
- +2 −3 Tools/Scripts/webkitpy/layout_tests/port/qt_unittest.py
- +4 −6 Tools/Scripts/webkitpy/layout_tests/port/test.py
- +2 −2 Tools/Scripts/webkitpy/layout_tests/port/webkit.py
- +9 −15 Tools/Scripts/webkitpy/layout_tests/port/webkit_unittest.py
- +2 −2 Tools/Scripts/webkitpy/layout_tests/port/win.py
- +3 −5 Tools/Scripts/webkitpy/layout_tests/port/win_unittest.py
- +4 −5 Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py
- +0 −1 Tools/Scripts/webkitpy/to_be_moved/rebaseline_chromium_webkit_tests_unittest.py
- +3 −1 Tools/Scripts/webkitpy/tool/servers/rebaselineserver.py
- +6 −5 Tools/Scripts/webkitpy/tool/servers/rebaselineserver_unittest.py
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.