summaryrefslogtreecommitdiffstats
path: root/PRESUBMIT_test_mocks.py
diff options
context:
space:
mode:
authorglider <glider@chromium.org>2015-02-17 01:26:17 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-17 09:27:05 +0000
commit9b73d0393037452d13358f4e2766cb62adbdede8 (patch)
treece0fd484336ea2c3535081abed9c6647a179e903 /PRESUBMIT_test_mocks.py
parente8687ac4a2cc7836251226cf17d05f3682795e49 (diff)
downloadchromium_src-9b73d0393037452d13358f4e2766cb62adbdede8.zip
chromium_src-9b73d0393037452d13358f4e2766cb62adbdede8.tar.gz
chromium_src-9b73d0393037452d13358f4e2766cb62adbdede8.tar.bz2
Add a presubmit check that warns about declaring Singleton<T> in header files
(except for base/memory/singleton.h) This check is copied from presubmit_canned_checks.py in depot_tools/ with an added exception for base/memory/singleton.h. The corresponding code will be removed from presubmit_canned_checks.py afterwards. BUG=349861 R=phajdan.jr@chromium.org, Review URL: https://codereview.chromium.org/929043002 Cr-Commit-Position: refs/heads/master@{#316546}
Diffstat (limited to 'PRESUBMIT_test_mocks.py')
-rw-r--r--PRESUBMIT_test_mocks.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/PRESUBMIT_test_mocks.py b/PRESUBMIT_test_mocks.py
index 7d286b9..fa4f4bf 100644
--- a/PRESUBMIT_test_mocks.py
+++ b/PRESUBMIT_test_mocks.py
@@ -29,6 +29,9 @@ class MockInputApi(object):
def AffectedFiles(self, file_filter=None):
return self.files
+ def AffectedSourceFiles(self, file_filter=None):
+ return self.files
+
def PresubmitLocalPath(self):
return os.path.dirname(__file__)