summaryrefslogtreecommitdiffstats
path: root/mojo
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-29 08:45:40 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-29 08:45:40 +0000
commitdb91e1b05c034197812077cbe80a105f6c814685 (patch)
tree2d64963786403612358ff358602b0207f97502b5 /mojo
parentb9738c06e14429d8d1558d4cca8d093bbd4ff2b2 (diff)
downloadchromium_src-db91e1b05c034197812077cbe80a105f6c814685.zip
chromium_src-db91e1b05c034197812077cbe80a105f6c814685.tar.gz
chromium_src-db91e1b05c034197812077cbe80a105f6c814685.tar.bz2
Add a PRESUBMIT.py to mojo/embedder.
R=sky@chromium.org Review URL: https://codereview.chromium.org/422123006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286129 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo')
-rw-r--r--mojo/embedder/PRESUBMIT.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/mojo/embedder/PRESUBMIT.py b/mojo/embedder/PRESUBMIT.py
new file mode 100644
index 0000000..97f67c0
--- /dev/null
+++ b/mojo/embedder/PRESUBMIT.py
@@ -0,0 +1,16 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Presubmit script for mojo/embedder.
+
+See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
+for more details about the presubmit API built into depot_tools.
+"""
+
+def CheckChangeOnUpload(input_api, output_api):
+ results = []
+ results += input_api.canned_checks.CheckChangeHasOnlyOneEol(input_api,
+ output_api)
+ results += input_api.canned_checks.CheckPatchFormatted(input_api, output_api)
+ return results