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

Side by Side Diff: PRESUBMIT.py

Issue 2993923002: Removing VCMCodecDataBase::Codec and VideoCodingModule::Codec. (Closed)
Patch Set: Remove deprate - let sprang handle when method is removed Created 3 years, 4 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
« no previous file with comments | « no previous file | webrtc/api/video_codecs/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 import re 11 import re
12 import subprocess 12 import subprocess
13 import sys 13 import sys
14 14
15 15
16 # Files and directories that are *skipped* by cpplint in the presubmit script. 16 # Files and directories that are *skipped* by cpplint in the presubmit script.
17 CPPLINT_BLACKLIST = [ 17 CPPLINT_BLACKLIST = [
18 'tools_webrtc', 18 'tools_webrtc',
19 'webrtc/api/video_codecs/video_decoder.h', 19 'webrtc/api/video_codecs/video_decoder.h',
20 'webrtc/api/video_codecs/video_encoder.h',
21 'webrtc/examples/objc', 20 'webrtc/examples/objc',
22 'webrtc/media', 21 'webrtc/media',
23 'webrtc/modules/audio_coding', 22 'webrtc/modules/audio_coding',
24 'webrtc/modules/audio_conference_mixer', 23 'webrtc/modules/audio_conference_mixer',
25 'webrtc/modules/audio_device', 24 'webrtc/modules/audio_device',
26 'webrtc/modules/audio_processing', 25 'webrtc/modules/audio_processing',
27 'webrtc/modules/desktop_capture', 26 'webrtc/modules/desktop_capture',
28 'webrtc/modules/include/module_common_types.h', 27 'webrtc/modules/include/module_common_types.h',
29 'webrtc/modules/media_file', 28 'webrtc/modules/media_file',
30 'webrtc/modules/utility', 29 'webrtc/modules/utility',
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 results = [] 660 results = []
662 source_file_filter = lambda x: input_api.FilterSourceFile( 661 source_file_filter = lambda x: input_api.FilterSourceFile(
663 x, white_list=(r'.+\.proto$',)) 662 x, white_list=(r'.+\.proto$',))
664 for f in input_api.AffectedSourceFiles(source_file_filter): 663 for f in input_api.AffectedSourceFiles(source_file_filter):
665 file_path = f.LocalPath() 664 file_path = f.LocalPath()
666 with open(file_path) as f: 665 with open(file_path) as f:
667 lines = f.readlines() 666 lines = f.readlines()
668 if lines[-1] != '\n' or lines[-2] == '\n': 667 if lines[-1] != '\n' or lines[-2] == '\n':
669 results.append(output_api.PresubmitError(error_msg.format(file_path))) 668 results.append(output_api.PresubmitError(error_msg.format(file_path)))
670 return results 669 return results
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/video_codecs/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698