OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """This is a python sync server used for testing Chrome Sync. | 6 """This is a python sync server used for testing Chrome Sync. |
7 | 7 |
8 By default, it listens on an ephemeral port and xmpp_port and sends the port | 8 By default, it listens on an ephemeral port and xmpp_port and sends the port |
9 numbers back to the originating process over a pipe. The originating process can | 9 numbers back to the originating process over a pipe. The originating process can |
10 specify an explicit port and xmpp_port if necessary. | 10 specify an explicit port and xmpp_port if necessary. |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 testserver_base.TestServerRunner.add_options(self) | 562 testserver_base.TestServerRunner.add_options(self) |
563 self.option_parser.add_option('--xmpp-port', default='0', type='int', | 563 self.option_parser.add_option('--xmpp-port', default='0', type='int', |
564 help='Port used by the XMPP server. If ' | 564 help='Port used by the XMPP server. If ' |
565 'unspecified, the XMPP server will listen on ' | 565 'unspecified, the XMPP server will listen on ' |
566 'an ephemeral port.') | 566 'an ephemeral port.') |
567 # Override the default logfile name used in testserver.py. | 567 # Override the default logfile name used in testserver.py. |
568 self.option_parser.set_defaults(log_file='sync_testserver.log') | 568 self.option_parser.set_defaults(log_file='sync_testserver.log') |
569 | 569 |
570 if __name__ == '__main__': | 570 if __name__ == '__main__': |
571 sys.exit(SyncServerRunner().main()) | 571 sys.exit(SyncServerRunner().main()) |
OLD | NEW |