| OLD | NEW |
| 1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
| 4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
| 5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import json | 9 import json |
| 10 import os | 10 import os |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 'webrtc/modules/audio_conference_mixer', | 25 'webrtc/modules/audio_conference_mixer', |
| 26 'webrtc/modules/audio_device', | 26 'webrtc/modules/audio_device', |
| 27 'webrtc/modules/audio_processing', | 27 'webrtc/modules/audio_processing', |
| 28 'webrtc/modules/desktop_capture', | 28 'webrtc/modules/desktop_capture', |
| 29 'webrtc/modules/include/module_common_types.h', | 29 'webrtc/modules/include/module_common_types.h', |
| 30 'webrtc/modules/media_file', | 30 'webrtc/modules/media_file', |
| 31 'webrtc/modules/utility', | 31 'webrtc/modules/utility', |
| 32 'webrtc/modules/video_capture', | 32 'webrtc/modules/video_capture', |
| 33 'webrtc/p2p', | 33 'webrtc/p2p', |
| 34 'webrtc/pc', | 34 'webrtc/pc', |
| 35 'webrtc/rtc_base', |
| 35 'webrtc/sdk/android/src/jni', | 36 'webrtc/sdk/android/src/jni', |
| 36 'webrtc/sdk/objc', | 37 'webrtc/sdk/objc', |
| 37 'webrtc/system_wrappers', | 38 'webrtc/system_wrappers', |
| 38 'webrtc/test', | 39 'webrtc/test', |
| 39 'webrtc/voice_engine', | 40 'webrtc/voice_engine', |
| 40 'webrtc/common_types.h', | 41 'webrtc/common_types.h', |
| 41 'webrtc/common_types.cc', | 42 'webrtc/common_types.cc', |
| 42 'webrtc/video_send_stream.h', | 43 'webrtc/video_send_stream.h', |
| 43 ] | 44 ] |
| 44 | 45 |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 if f.LocalPath().endswith('.h') and f.Action() == 'A': | 625 if f.LocalPath().endswith('.h') and f.Action() == 'A': |
| 625 file_path = os.path.abspath(f.LocalPath()) | 626 file_path = os.path.abspath(f.LocalPath()) |
| 626 root_dir = os.getcwd() | 627 root_dir = os.getcwd() |
| 627 gn_file_path = GetBuildGnPathFromFilePath(file_path, os.path.exists, | 628 gn_file_path = GetBuildGnPathFromFilePath(file_path, os.path.exists, |
| 628 root_dir) | 629 root_dir) |
| 629 in_build_gn = IsHeaderInBuildGn(file_path, gn_file_path) | 630 in_build_gn = IsHeaderInBuildGn(file_path, gn_file_path) |
| 630 if not in_build_gn: | 631 if not in_build_gn: |
| 631 results.append(output_api.PresubmitError(error_msg.format( | 632 results.append(output_api.PresubmitError(error_msg.format( |
| 632 file_path, gn_file_path))) | 633 file_path, gn_file_path))) |
| 633 return results | 634 return results |
| OLD | NEW |