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

Unified Diff: chrome/test/android/telemetry_tests/PRESUBMIT.py

Issue 2140803003: Add PopularUrls test for Chrome using telemetry correctness test framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix outdated comment Created 4 years, 5 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
Index: chrome/test/android/telemetry_tests/PRESUBMIT.py
diff --git a/chrome/test/android/telemetry_tests/PRESUBMIT.py b/chrome/test/android/telemetry_tests/PRESUBMIT.py
new file mode 100644
index 0000000000000000000000000000000000000000..54975213e60beafdf98a3805359fec46fa6053bb
--- /dev/null
+++ b/chrome/test/android/telemetry_tests/PRESUBMIT.py
@@ -0,0 +1,34 @@
+# Copyright 2016 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 android chrome telemetry tests.
+
+See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for
+details on the presubmit API built into depot_tools.
+"""
+def CommonChecks(input_api, output_api):
+ current_dir = input_api.PresubmitLocalPath()
+ chromium_src = input_api.os_path.join(current_dir, '..', '..', '..', '..')
+
+ def J(*dirs):
+ """Returns a path relative to chromium src directory."""
+ return input_api.os_path.join(chromium_src, *dirs)
+
+ return input_api.canned_checks.RunPylint(
+ input_api,
+ output_api,
+ pylintrc='pylintrc',
+ extra_paths_list=[
+ J('third_party', 'catapult', 'catapult_base'),
+ J('third_party', 'catapult', 'telemetry'),
+ J('tools', 'perf'),
+ ])
+
+
+def CheckChangeOnUpload(input_api, output_api):
+ return CommonChecks(input_api, output_api)
+
+
+def CheckChangeOnCommit(input_api, output_api):
+ return CommonChecks(input_api, output_api)

Powered by Google App Engine
This is Rietveld 408576698