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

Side by Side Diff: components/sync/tools/testserver/sync_testserver.py

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 #!/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
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())
OLDNEW
« no previous file with comments | « components/sync/tools/testserver/run_sync_testserver.cc ('k') | components/sync/tools/testserver/xmppserver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698