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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/queries_unittest.py

Issue 2127343003: Rename MockTool -> MockWebKitPatch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/queries_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/queries_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/queries_unittest.py
index 39d235bbfdc7b6c5de9992c43685dc54361cacc8..da91957ff01169f34759c1f200de064a1881e9d4 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/queries_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/queries_unittest.py
@@ -30,9 +30,8 @@
import unittest
from webkitpy.common.system.outputcapture import OutputCapture
-from webkitpy.layout_tests.port.test import TestPort
from webkitpy.tool.commands.queries import *
-from webkitpy.tool.mock_tool import MockTool, MockOptions
+from webkitpy.tool.mock_tool import MockWebKitPatch, MockOptions
class PrintExpectationsTest(unittest.TestCase):
@@ -40,7 +39,7 @@ class PrintExpectationsTest(unittest.TestCase):
def run_test(self, tests, expected_stdout, platform='test-win-win7', **args):
options = MockOptions(all=False, csv=False, full=False, platform=platform,
include_keyword=[], exclude_keyword=[], paths=False).update(**args)
- tool = MockTool()
+ tool = MockWebKitPatch()
tool.port_factory.all_port_names = lambda: [
'test-linux-trusty', 'test-linux-precise',
'test-mac-mac10.11', 'test-mac-mac10.10',
@@ -112,7 +111,7 @@ class PrintBaselinesTest(unittest.TestCase):
def setUp(self):
self.oc = None
- self.tool = MockTool()
+ self.tool = MockWebKitPatch()
self.test_port = self.tool.port_factory.get('test-win-win7')
self.tool.port_factory.get = lambda port_name=None: self.test_port
self.tool.port_factory.all_port_names = lambda: [

Powered by Google App Engine
This is Rietveld 408576698