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

Unified Diff: PRESUBMIT.py

Issue 1513483006: PRESUBMIT: Split NATIVE_API_DIRS into two lists. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased, addressed comments and added webrtc/api, webrtc/media and webrtc/pc Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PRESUBMIT.py
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 8ea0f3a86a9c159d2f9c926f5e267bb4ab654ed7..53a1f01c0568919e2ab59657e44e853eefaf5d02 100755
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -38,31 +38,37 @@ CPPLINT_DIRS = [
# 3. Deprecation is announced to discuss-webrtc@googlegroups.com and
# webrtc-users@google.com (internal list).
# 4. (later) The deprecated APIs are removed.
-# Directories marked as DEPRECATED should not be used. They're only present in
-# the list to support legacy downstream code.
NATIVE_API_DIRS = (
- 'talk/app/webrtc',
'webrtc',
- 'webrtc/base', # DEPRECATED.
- 'webrtc/common_audio/include', # DEPRECATED.
- 'webrtc/modules/audio_coding/include',
- 'webrtc/modules/audio_conference_mixer/include', # DEPRECATED.
+ 'webrtc/api',
+ 'webrtc/media',
'webrtc/modules/audio_device/include',
+ 'webrtc/pc',
+)
+# These directories should not be used but are maintained only to avoid breaking
+# some legacy downstream code.
pthatcher1 2016/05/12 03:43:13 We should point out that if something in the NATIV
the sun 2016/05/12 12:42:41 I don't think we need to point that out at this ti
+LEGACY_API_DIRS = (
+ 'talk/app/webrtc',
+ 'webrtc/base',
+ 'webrtc/common_audio/include',
+ 'webrtc/modules/audio_coding/include',
+ 'webrtc/modules/audio_conference_mixer/include',
'webrtc/modules/audio_processing/include',
'webrtc/modules/bitrate_controller/include',
'webrtc/modules/include',
'webrtc/modules/remote_bitrate_estimator/include',
'webrtc/modules/rtp_rtcp/include',
- 'webrtc/modules/rtp_rtcp/source', # DEPRECATED.
+ 'webrtc/modules/rtp_rtcp/source',
'webrtc/modules/utility/include',
'webrtc/modules/video_coding/codecs/h264/include',
'webrtc/modules/video_coding/codecs/i420/include',
'webrtc/modules/video_coding/codecs/vp8/include',
'webrtc/modules/video_coding/codecs/vp9/include',
'webrtc/modules/video_coding/include',
- 'webrtc/system_wrappers/include', # DEPRECATED.
+ 'webrtc/system_wrappers/include',
'webrtc/voice_engine/include',
)
+API_DIRS = NATIVE_API_DIRS[:] + LEGACY_API_DIRS[:]
def _VerifyNativeApiHeadersListIsValid(input_api, output_api):
@@ -70,7 +76,7 @@ def _VerifyNativeApiHeadersListIsValid(input_api, output_api):
non_existing_paths = []
native_api_full_paths = [
input_api.os_path.join(input_api.PresubmitLocalPath(),
- *path.split('/')) for path in NATIVE_API_DIRS]
+ *path.split('/')) for path in API_DIRS]
for path in native_api_full_paths:
if not os.path.isdir(path):
non_existing_paths.append(path)
@@ -88,7 +94,7 @@ def _CheckNativeApiHeaderChanges(input_api, output_api):
files = []
for f in input_api.AffectedSourceFiles(input_api.FilterSourceFile):
if f.LocalPath().endswith('.h'):
- for path in NATIVE_API_DIRS:
+ for path in API_DIRS:
if os.path.dirname(f.LocalPath()) == path:
files.append(f)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698