/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/system/ |
zipfileset_unittest.py | 35 self._filesystem = filesystem 42 return FileSetFileHandle(self, filename, self._filesystem) 51 self._filesystem.write_text_file(self._filesystem.join(path, filename), self.read(filename)) 59 self._filesystem = MockFileSystem() 60 self._zip = ZipFileSet('blah', self._filesystem, self.make_fake_zip) 63 result = FakeZip(self._filesystem) 74 zipfileset = ZipFileSet('blah', self._filesystem, self.make_fake_zip) 81 self._filesystem.maybe_make_directory('/some-dir') 83 self.assertTrue(self._filesystem.isfile('/some-dir/some-file') [all...] |
urlfetcher_mock.py | 35 self._filesystem = filesystem 41 f, fn = self._filesystem.open_binary_tempfile('mockfetcher')
|
fileset.py | 33 self._filesystem = filesystem or FileSystem() 50 with self._filesystem.mkdtemp() as temp_dir: 53 src = self._filesystem.join(temp_dir, self._filename) 54 dest = self._filesystem.join(path, filename) 55 self._filesystem.copyfile(src, dest) 64 return self._filesystem.splitext(self.name())
|
urlfetcher.py | 37 self._filesystem = filesystem 51 file_object, filename = self._filesystem.open_binary_tempfile('-fetched')
|
workspace.py | 43 self._filesystem = filesystem 52 target_path = self._filesystem.join(directory, target_name) 53 if not self._filesystem.exists(target_path):
|
zip_mock.py | 31 self._filesystem = filesystem or MockFileSystem() 50 full_path = self._filesystem.join(path, filename) 52 self._filesystem.write_text_file(full_path, contents)
|
zipfileset.py | 38 self._filesystem = filesystem or FileSystem() 51 return FileSetFileHandle(self, filename, self._filesystem) 55 self._filesystem.remove(self._temp_file)
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/ |
webkit_finder.py | 35 self._filesystem = filesystem 54 module_path = self._filesystem.abspath(self._filesystem.path_to_module(self.__module__)) 57 self._webkit_base = self._filesystem.normpath(module_path[0:tools_index - 1]) 62 self._chromium_base = self._filesystem.dirname(self._filesystem.dirname(self.webkit_base())) 66 return self._filesystem.join(self.webkit_base(), *comps) 69 return self._filesystem.join(self.chromium_base(), *comps) 75 return self._filesystem.join("Tools", "Scripts", script_name) 99 fs = self._filesystem [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/ |
apache_http_server.py | 58 self._filesystem.maybe_make_directory(output_dir) 60 self._pid_file = self._filesystem.join(self._runtime_path, '%s.pid' % self._name) 63 js_test_resources_dir = self._filesystem.join(test_dir, "resources") 64 media_resources_dir = self._filesystem.join(test_dir, "media") 65 mime_types_path = self._filesystem.join(test_dir, "http", "conf", "mime.types") 66 cert_file = self._filesystem.join(test_dir, "http", "conf", "webkit-httpd.pem") 67 access_log = self._filesystem.join(output_dir, "access_log.txt") 68 error_log = self._filesystem.join(output_dir, "error_log.txt") 69 document_root = self._filesystem.join(test_dir, "http", "tests") 144 httpd_conf = self._filesystem.read_text_file(httpd_config [all...] |
websocket_server.py | 89 self._pid_file = self._filesystem.join(self._runtime_path, '%s.pid' % self._name) 95 self._layout_tests = self._filesystem.abspath(self._root) 96 self._web_socket_tests = self._filesystem.abspath(self._filesystem.join(self._root, 'http', 'tests', 'websocket')) 100 self._web_socket_tests = self._filesystem.join(self._layout_tests, 'http', 'tests', 'websocket') 115 error_log = self._filesystem.join(self._output_dir, log_file_name + "-err.txt") 116 output_log = self._filesystem.join(self._output_dir, log_file_name + "-out.txt") 117 self._wsout = self._filesystem.open_text_file_for_writing(output_log) 121 # FIXME: Use self._filesystem.path_to_module(self.__module__) instead of __file__ 123 pywebsocket_base = self._filesystem.join(self._filesystem.dirname(self._filesystem.dirname(self._filesystem.dirname(self._filesystem.a (…) [all...] |
http_server_base.py | 51 self._filesystem = port_obj._filesystem 67 self._runtime_path = self._filesystem.join(tmpdir, "WebKit") 68 self._filesystem.maybe_make_directory(self._runtime_path) 77 if self._filesystem.exists(self._pid_file): 79 self._pid = int(self._filesystem.read_text_file(self._pid_file)) 102 if self._filesystem.exists(self._pid_file): 104 actual_pid = int(self._filesystem.read_text_file(self._pid_file)) 159 if self._filesystem.exists(self._pid_file): 160 self._filesystem.remove(self._pid_file [all...] |
crash_service.py | 52 self._pid_file = self._filesystem.join(self._runtime_path, '%s.pid' % self._name) 61 self._filesystem.write_text_file(self._pid_file, str(pid)) 71 if self._filesystem.exists(self._pid_file): 72 self._filesystem.remove(self._pid_file)
|
http_server.py | 59 self._pid_file = self._filesystem.join(self._runtime_path, '%s.pid' % self._name) 98 base_conf = self._filesystem.read_text_file(base_conf_file) 102 f = self._filesystem.open_text_file_for_writing(out_conf_file) 180 if not self._filesystem.exists(tmp_module_path): 181 self._filesystem.maybe_make_directory(tmp_module_path) 183 self._filesystem.copyfile(self._filesystem.join(module_path, lib_file), 184 self._filesystem.join(tmp_module_path, lib_file)) 202 self._filesystem.write_text_file(self._pid_file, str(pid)) 212 if self._filesystem.exists(self._pid_file) [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/ |
layout_tests_mover.py | 76 self._filesystem = self._port.host.filesystem 81 return self._filesystem.join('LayoutTests', *paths) 84 normalized_parent = self._filesystem.normpath(parent) 85 normalized_child = self._filesystem.normpath(possible_child) 88 return normalized_parent == normalized_child or normalized_child.startswith(normalized_parent + self._filesystem.sep) 93 return self._filesystem.normpath(self._filesystem.join(destination, self._filesystem.relpath(path, origin))) 96 if not self._filesystem.isdir(self._absolute_origin): 100 if self._filesystem.isfile(self._absolute_destination) [all...] |
layout_tests_mover_unittest.py | 92 self._filesystem = self._port.host.filesystem 109 self.assertFalse(self._filesystem.exists(self._port._absolute_path('origin/path'))) 110 self.assertTrue(self._filesystem.isfile(self._port._absolute_path('destination/test.html'))) 114 self.assertFalse(self._filesystem.exists(self._port._absolute_path('origin', 'path'))) 115 self.assertTrue(self._filesystem.isfile(self._port._absolute_path('existing_directory', 'test.html'))) 122 self.assertFalse(self._filesystem.exists(self._port._absolute_path('origin', 'path'))) 123 self.assertTrue(self._filesystem.isfile(self._port._absolute_path('test.html'))) 127 self.assertTrue('src="local_script.js"' in self._filesystem.read_text_file(self._port._absolute_path('destination', 'test.html'))) 131 self.assertTrue('src="local_script.js"' in self._filesystem.read_text_file(self._port._absolute_path('unmoved', 'test.html'))) 135 self.assertTrue('src="../destination/remote_script.js"' in self._filesystem.read_text_file(self._port._absolute_path('unmoved', 'test.html')) [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/ |
detection.py | 43 self._filesystem = filesystem 54 cwd = self._filesystem.getcwd() 57 script_directory = self._filesystem.dirname(self._filesystem.path_to_module(self.__module__)) 66 absolute_path = self._filesystem.abspath(path) 72 return SVN(cwd=absolute_path, patch_directories=patch_directories, filesystem=self._filesystem, executive=self._executive) 75 return Git(cwd=absolute_path, filesystem=self._filesystem, executive=self._executive)
|
scm_mock.py | 39 self._filesystem = filesystem or MockFileSystem() 77 return self._filesystem.join(self.checkout_root, *comps) 101 if not self._filesystem: 104 if self._filesystem.exists(path): 105 self._filesystem.remove(path) 108 if self._filesystem: 109 self._filesystem.move(self.absolute_path(origin), self.absolute_path(destination))
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/ |
baselineoptimizer.py | 52 self._filesystem = host.filesystem 62 return self._filesystem.join(self.ROOT_LAYOUT_TESTS_DIRECTORY, virtual_suite.name) 74 relative_paths = [self._filesystem.relpath(path, port.webkit_base()) for path in self._baseline_search_path(port, baseline_name)] 88 return self._filesystem.join(self._scm.checkout_root, directory, baseline_name_without_virtual) 96 if self._filesystem.exists(path): 97 results_by_directory[directory] = self._filesystem.sha1(path) 114 directory = self._filesystem.relpath(self._baseline_search_path(port, baseline_name)[-1], port.webkit_base()) 197 platform_dir = self.ROOT_LAYOUT_TESTS_DIRECTORY + self._filesystem.sep + 'platform' + self._filesystem.sep 199 return filename.replace(platform_dir, '').split(self._filesystem.sep)[0 [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/ |
base.py | 180 self._filesystem = host.filesystem 182 self._config = port_config.Config(self._executive, self._filesystem, self.port_name) 275 return self._filesystem.join(self.layout_tests_dir(), 'platform', self.port_name) 286 return [self._filesystem.join(path, suite.name) for path in self.default_baseline_search_path()] 313 if not self._filesystem.exists(path_to_file): 355 if not self._filesystem.exists(driver_path): 389 if not self._filesystem.exists(image_diff_path): 405 if not self._filesystem.exists(self._pretty_patch_path): 441 server_name = self._filesystem.basename(httpd_path) 470 tempdir = self._filesystem.mkdtemp( [all...] |
config.py | 47 self._filesystem = filesystem 48 self._webkit_finder = webkit_finder.WebKitFinder(self._filesystem)
|
mock_drt.py | 192 self._port.is_reference_html_file(self._port._filesystem, dirname, basename)) 238 actual_path = port._filesystem.join(self._options.actual_directory, test_input.test_name) 239 root, _ = port._filesystem.splitext(actual_path) 241 if port._filesystem.exists(text_path): 242 actual_text = port._filesystem.read_binary_file(text_path) 244 if port._filesystem.exists(audio_path): 245 actual_audio = port._filesystem.read_binary_file(audio_path) 247 if port._filesystem.exists(image_path): 248 actual_image = port._filesystem.read_binary_file(image_path) 249 with port._filesystem.open_binary_file_for_reading(image_path) as filehandle [all...] |
port_testcase.py | 208 port._filesystem.write_binary_file(args[4], mock_image_diff) 330 never_fix_tests_path = port._filesystem.join(port.layout_tests_dir(), 'NeverFixTests') 331 stale_tests_path = port._filesystem.join(port.layout_tests_dir(), 'StaleTestExpectations') 332 slow_tests_path = port._filesystem.join(port.layout_tests_dir(), 'SlowTests') 336 port._filesystem.write_text_file(skia_overrides_path, 'dummay text') 359 port._filesystem.write_text_file(path, '') 366 port._filesystem.write_text_file(path, '') 367 port._filesystem.write_text_file('/tmp/foo', 'foo') 368 port._filesystem.write_text_file('/tmp/bar', 'bar') 405 port._filesystem = MockFileSystem({'/etc/redhat-release': ''} [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/ |
manager.py | 76 self._filesystem = port.host.filesystem 257 results_path = self._filesystem.join(self._results_directory, "results.html") 338 writer = TestResultWriter(self._port._filesystem, self._port, self._port.results_directory(), test) 344 writer = TestResultWriter(self._port._filesystem, self._port, self._port.results_directory(), test) 356 if self._filesystem.isdir(self._filesystem.join(layout_tests_dir, dirname)): 357 self._filesystem.rmtree(self._filesystem.join(self._results_directory, dirname)) 370 times_json_path = self._filesystem.join(self._results_directory, "times_ms.json") 371 json_results_generator.write_json(self._filesystem, times_trie, times_json_path [all...] |
test_result_writer.py | 101 self._filesystem = filesystem 108 fs = self._filesystem 124 fs = self._filesystem 131 self._filesystem.write_binary_file(path, contents) 136 self._filesystem.write_text_file(path, contents) 139 fs = self._filesystem 171 self._filesystem.copyfile(sample_file, filename) 267 self._filesystem.write_text_file(diffs_html_filename, html) 270 fs = self._filesystem
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/w3c/ |
test_converter.py | 60 self._filesystem = self._host.filesystem 61 self._webkit_root = WebKitFinder(self._filesystem).webkit_base() 70 resources_relpath = self._filesystem.relpath(resources_path, new_path) 89 return self._filesystem.abspath(self._filesystem.join(self._webkit_root, *comps)) 95 contents = self._filesystem.read_text_file(self._css_property_file)
|