| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 import collections | 5 import collections |
| 6 | 6 |
| 7 from webkitpy.common.checkout.scm.git_mock import MockGit | 7 from webkitpy.common.checkout.git_mock import MockGit |
| 8 from webkitpy.common.host_mock import MockHost | 8 from webkitpy.common.host_mock import MockHost |
| 9 from webkitpy.common.system.executive_mock import MockExecutive | 9 from webkitpy.common.system.executive_mock import MockExecutive |
| 10 from webkitpy.common.system.log_testing import LoggingTestCase | 10 from webkitpy.common.system.log_testing import LoggingTestCase |
| 11 from webkitpy.w3c.test_importer import TestImporter | 11 from webkitpy.w3c.test_importer import TestImporter |
| 12 | 12 |
| 13 | 13 |
| 14 MockChromiumCommit = collections.namedtuple('ChromiumCommit', ('sha', 'position'
)) | 14 MockChromiumCommit = collections.namedtuple('ChromiumCommit', ('sha', 'position'
)) |
| 15 | 15 |
| 16 | 16 |
| 17 class TestImporterTest(LoggingTestCase): | 17 class TestImporterTest(LoggingTestCase): |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 self.assertEqual(importer.get_directory_owners(), {'someone@chromium.org
': 'external/wpt/foo'}) | 156 self.assertEqual(importer.get_directory_owners(), {'someone@chromium.org
': 'external/wpt/foo'}) |
| 157 | 157 |
| 158 def test_get_directory_owners_no_changed_files(self): | 158 def test_get_directory_owners_no_changed_files(self): |
| 159 host = MockHost() | 159 host = MockHost() |
| 160 host.filesystem.write_text_file( | 160 host.filesystem.write_text_file( |
| 161 '/mock-checkout/third_party/WebKit/LayoutTests/W3CImportExpectations
', | 161 '/mock-checkout/third_party/WebKit/LayoutTests/W3CImportExpectations
', |
| 162 '## Owners: someone@chromium.org\n' | 162 '## Owners: someone@chromium.org\n' |
| 163 '# external/wpt/foo [ Pass ]\n') | 163 '# external/wpt/foo [ Pass ]\n') |
| 164 importer = TestImporter(host) | 164 importer = TestImporter(host) |
| 165 self.assertEqual(importer.get_directory_owners(), {}) | 165 self.assertEqual(importer.get_directory_owners(), {}) |
| OLD | NEW |