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

Side by Side Diff: tools-webrtc/network_emulator/emulate.py

Issue 2584433002: Create top-level dir tools-webrtc and start moving things into it. (Closed)
Patch Set: Created 4 years 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 (c) 2012 The WebRTC project authors. All Rights Reserved. 2 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 # 3 #
4 # Use of this source code is governed by a BSD-style license 4 # Use of this source code is governed by a BSD-style license
5 # that can be found in the LICENSE file in the root of the source 5 # that can be found in the LICENSE file in the root of the source
6 # tree. An additional intellectual property rights grant can be found 6 # tree. An additional intellectual property rights grant can be found
7 # in the file PATENTS. All contributing project authors may 7 # in the file PATENTS. All contributing project authors may
8 # be found in the AUTHORS file in the root of the source tree. 8 # be found in the AUTHORS file in the root of the source tree.
9 9
10 """Script for constraining traffic on the local machine.""" 10 """Script for constraining traffic on the local machine."""
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 logging.info('Flushing all Dummynet rules...') 186 logging.info('Flushing all Dummynet rules...')
187 network_emulator.cleanup() 187 network_emulator.cleanup()
188 logging.info('Completed Network Emulation.') 188 logging.info('Completed Network Emulation.')
189 return 0 189 return 0
190 except network_emulator.NetworkEmulatorError as e: 190 except network_emulator.NetworkEmulatorError as e:
191 logging.error('Error: %s\n\nCause: %s', e.fail_msg, e.error) 191 logging.error('Error: %s\n\nCause: %s', e.fail_msg, e.error)
192 return -2 192 return -2
193 193
194 if __name__ == '__main__': 194 if __name__ == '__main__':
195 sys.exit(_main()) 195 sys.exit(_main())
OLDNEW
« no previous file with comments | « tools-webrtc/network_emulator/config.py ('k') | tools-webrtc/network_emulator/network_emulator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698