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

Side by Side Diff: PRESUBMIT_test_mocks.py

Issue 1925273002: [Closure Externs] Fix presubmit check (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | extensions/common/api/externs_checker.py » ('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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import json 5 import json
6 import os 6 import os
7 import re 7 import re
8 import subprocess 8 import subprocess
9 import sys 9 import sys
10 10
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 This class can be used in presubmit unittests to mock the query of the 134 This class can be used in presubmit unittests to mock the query of the
135 current change. 135 current change.
136 """ 136 """
137 137
138 def __init__(self, changed_files): 138 def __init__(self, changed_files):
139 self._changed_files = changed_files 139 self._changed_files = changed_files
140 140
141 def LocalPaths(self): 141 def LocalPaths(self):
142 return self._changed_files 142 return self._changed_files
143
144 def AffectedFiles(self, include_dirs=False, include_deletes=True,
145 file_filter=None):
146 return self._changed_files
OLDNEW
« no previous file with comments | « no previous file | extensions/common/api/externs_checker.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698