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

Side by Side Diff: sky/tools/webkitpy/layout_tests/port/mock_drt.py

Issue 1200993002: Update README.md and HACKING.md and resulting yak shave. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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
OLDNEW
1 # Copyright (c) 2012 Google Inc. All rights reserved. 1 # Copyright (c) 2012 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 cmd_line = original_cmd_line(pixel_tests, per_test_args) 97 cmd_line = original_cmd_line(pixel_tests, per_test_args)
98 index = cmd_line.index(driver_path) 98 index = cmd_line.index(driver_path)
99 cmd_line[index:index + 1] = [python_exe, this_file, '--platform', po rt_name] 99 cmd_line[index:index + 1] = [python_exe, this_file, '--platform', po rt_name]
100 return cmd_line 100 return cmd_line
101 101
102 return new_cmd_line 102 return new_cmd_line
103 103
104 def start_helper(self): 104 def start_helper(self):
105 pass 105 pass
106 106
107 def start_http_server(self, additional_dirs, number_of_servers): 107 def start_sky_server(self, additional_dirs, number_of_servers):
108 pass 108 pass
109 109
110 def start_websocket_server(self): 110 def start_websocket_server(self):
111 pass 111 pass
112 112
113 def acquire_http_lock(self): 113 def acquire_http_lock(self):
114 pass 114 pass
115 115
116 def stop_helper(self): 116 def stop_helper(self):
117 pass 117 pass
118 118
119 def stop_http_server(self): 119 def stop_sky_server(self):
120 pass 120 pass
121 121
122 def stop_websocket_server(self): 122 def stop_websocket_server(self):
123 pass 123 pass
124 124
125 def release_http_lock(self): 125 def release_http_lock(self):
126 pass 126 pass
127 127
128 def _make_wdiff_available(self): 128 def _make_wdiff_available(self):
129 self.__delegate._wdiff_available = True 129 self.__delegate._wdiff_available = True
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 self._stdout.write('#EOF\n') 277 self._stdout.write('#EOF\n')
278 self._stdout.flush() 278 self._stdout.flush()
279 self._stderr.write('#EOF\n') 279 self._stderr.write('#EOF\n')
280 self._stderr.flush() 280 self._stderr.flush()
281 281
282 282
283 if __name__ == '__main__': 283 if __name__ == '__main__':
284 # Note that the Mock in MockDRT refers to the fact that it is emulating a 284 # Note that the Mock in MockDRT refers to the fact that it is emulating a
285 # real DRT, and as such, it needs access to a real SystemHost, not a MockSys temHost. 285 # real DRT, and as such, it needs access to a real SystemHost, not a MockSys temHost.
286 sys.exit(main(sys.argv[1:], SystemHost(), sys.stdin, sys.stdout, sys.stderr) ) 286 sys.exit(main(sys.argv[1:], SystemHost(), sys.stdin, sys.stdout, sys.stderr) )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698