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

Side by Side Diff: webrtc/audio/test/low_bandwidth_audio_test.py

Issue 2864213004: Rename tools-webrtc -> tools_webrtc (Closed)
Patch Set: REmove symlink 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 def _GetPlatform(): 50 def _GetPlatform():
51 if sys.platform == 'win32': 51 if sys.platform == 'win32':
52 return 'win' 52 return 'win'
53 elif sys.platform == 'darwin': 53 elif sys.platform == 'darwin':
54 return 'mac' 54 return 'mac'
55 elif sys.platform.startswith('linux'): 55 elif sys.platform.startswith('linux'):
56 return 'linux' 56 return 'linux'
57 57
58 58
59 def _DownloadTools(): 59 def _DownloadTools():
60 tools_dir = os.path.join(SRC_DIR, 'tools-webrtc') 60 tools_dir = os.path.join(SRC_DIR, 'tools_webrtc')
61 toolchain_dir = os.path.join(tools_dir, 'audio_quality') 61 toolchain_dir = os.path.join(tools_dir, 'audio_quality')
62 62
63 # Download PESQ and POLQA. 63 # Download PESQ and POLQA.
64 download_script = os.path.join(tools_dir, 'download_tools.py') 64 download_script = os.path.join(tools_dir, 'download_tools.py')
65 command = [sys.executable, download_script, toolchain_dir] 65 command = [sys.executable, download_script, toolchain_dir]
66 subprocess.check_call(_LogCommand(command)) 66 subprocess.check_call(_LogCommand(command))
67 67
68 pesq_path = os.path.join(toolchain_dir, _GetPlatform(), 'pesq') 68 pesq_path = os.path.join(toolchain_dir, _GetPlatform(), 'pesq')
69 polqa_path = os.path.join(toolchain_dir, _GetPlatform(), 'PolqaOem64') 69 polqa_path = os.path.join(toolchain_dir, _GetPlatform(), 'PolqaOem64')
70 return pesq_path, polqa_path 70 return pesq_path, polqa_path
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 os.remove(reference_file) 223 os.remove(reference_file)
224 os.remove(degraded_file) 224 os.remove(degraded_file)
225 finally: 225 finally:
226 test_process.terminate() 226 test_process.terminate()
227 227
228 return test_process.wait() 228 return test_process.wait()
229 229
230 230
231 if __name__ == '__main__': 231 if __name__ == '__main__':
232 sys.exit(main()) 232 sys.exit(main())
OLDNEW
« no previous file with comments | « tools_webrtc/whitespace.txt ('k') | webrtc/examples/androidtests/video_quality_loopback_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698