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

Side by Side Diff: Tools/Scripts/webkitpy/layout_tests/port/mock_drt.py

Issue 135653016: Clean up run-blink-httpd, run-blink-websocketserver, add tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: merge forward changes Created 6 years, 10 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 | Annotate | Revision Log
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, number_of_servers): 107 def start_http_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
(...skipping 159 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
« no previous file with comments | « Tools/Scripts/webkitpy/layout_tests/port/base.py ('k') | Tools/Scripts/webkitpy/layout_tests/port/test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698