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

Unified Diff: tools/telemetry/telemetry/__init__.py

Issue 1647513002: Delete tools/telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « tools/telemetry/telemetry.isolate ('k') | tools/telemetry/telemetry/android/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/__init__.py
diff --git a/tools/telemetry/telemetry/__init__.py b/tools/telemetry/telemetry/__init__.py
deleted file mode 100644
index a77b39e36f6376d9d8cb8bca746d55cdad8048bb..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/__init__.py
+++ /dev/null
@@ -1,63 +0,0 @@
-# Copyright 2013 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.
-
-"""A library for cross-platform browser tests."""
-import logging
-import os
-import sys
-
-
-# Ensure Python >= 2.7.
-if sys.version_info < (2, 7):
- print >> sys.stderr, 'Need Python 2.7 or greater.'
- sys.exit(-1)
-
-
-def _JoinPath(*path_parts):
- return os.path.abspath(os.path.join(*path_parts))
-
-
-def _AddDirToPythonPath(*path_parts):
- path = _JoinPath(*path_parts)
- if os.path.isdir(path) and path not in sys.path:
- # Some call sites that use Telemetry assume that sys.path[0] is the
- # directory containing the script, so we add these extra paths to right
- # after sys.path[0].
- sys.path.insert(1, path)
-
-
-# Add Catapult dependencies to our path.
-# util depends on catapult_base, so we can't use it to get the catapult dir.
-_CATAPULT_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)),
- '..', '..', '..', 'third_party', 'catapult')
-_AddDirToPythonPath(_CATAPULT_DIR, 'catapult_base')
-_AddDirToPythonPath(_CATAPULT_DIR, 'dependency_manager')
-_AddDirToPythonPath(_CATAPULT_DIR, 'devil')
-_AddDirToPythonPath(_CATAPULT_DIR, 'tracing')
-
-
-from telemetry.core import util
-from telemetry.internal.util import global_hooks
-
-
-# Add Telemetry third party dependencies into our path.
-_AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'altgraph')
-_AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'mock')
-_AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'modulegraph')
-_AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'mox3')
-_AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'pexpect')
-_AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'png')
-_AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'pyfakefs')
-_AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'pyserial')
-_AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'typ')
-_AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'webpagereplay')
-_AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'websocket-client')
-
-# Install Telemtry global hooks.
-global_hooks.InstallHooks()
-
-logging.warn(
- 'Telemetry has moved to Catapult, and will be deleted from Chromium on '
- '2016-01-29. Please use Telemetry from third_party/catapult/telemetry '
- 'instead.')
« no previous file with comments | « tools/telemetry/telemetry.isolate ('k') | tools/telemetry/telemetry/android/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698