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

Side by Side Diff: webrtc/examples/androidtests/video_quality_loopback_test.py

Issue 2858493003: Properly send URL parameters in all requests (Closed)
Patch Set: Avoid code repetition Created 3 years, 7 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 (c) 2017 The WebRTC project authors. All Rights Reserved. 2 # Copyright (c) 2017 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 """ 10 """
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 help='The path to the build directory for building locally.') 78 help='The path to the build directory for building locally.')
79 parser.add_argument('--temp_dir', 79 parser.add_argument('--temp_dir',
80 help='A temporary directory to put the output.') 80 help='A temporary directory to put the output.')
81 parser.add_argument('--adb-path', help='Path to adb binary.', default='adb') 81 parser.add_argument('--adb-path', help='Path to adb binary.', default='adb')
82 82
83 args = parser.parse_args() 83 args = parser.parse_args()
84 return args 84 return args
85 85
86 86
87 def main(): 87 def main():
88 # Disabled, see bugs.webrtc.org/7548
89 if True:
90 return 0
91
92 logging.basicConfig(level=logging.INFO) 88 logging.basicConfig(level=logging.INFO)
93 89
94 args = _ParseArgs() 90 args = _ParseArgs()
95 91
96 build_dir_android = args.build_dir_android 92 build_dir_android = args.build_dir_android
97 build_dir_x86 = args.build_dir_x86 93 build_dir_x86 = args.build_dir_x86
98 temp_dir = args.temp_dir 94 temp_dir = args.temp_dir
99 adb_path = args.adb_path 95 adb_path = args.adb_path
100 if not temp_dir: 96 if not temp_dir:
101 temp_dir = tempfile.mkdtemp() 97 temp_dir = tempfile.mkdtemp()
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 '--stats_file_ref', stats_file_ref, 193 '--stats_file_ref', stats_file_ref,
198 '--stats_file_test', stats_file_test, '--frame_analyzer', frame_analyzer, 194 '--stats_file_test', stats_file_test, '--frame_analyzer', frame_analyzer,
199 '--ffmpeg_path', ffmpeg_path, '--zxing_path', zxing_path]) 195 '--ffmpeg_path', ffmpeg_path, '--zxing_path', zxing_path])
200 196
201 shutil.rmtree(temp_dir) 197 shutil.rmtree(temp_dir)
202 198
203 199
204 if __name__ == '__main__': 200 if __name__ == '__main__':
205 sys.exit(main()) 201 sys.exit(main())
206 202
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698