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

Unified Diff: tools/perf/benchmarks/pywebsocket_server.py

Issue 2844633002: Remove blink_perf.pywebsocket tests (Closed)
Patch Set: Rebase Created 3 years, 8 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/perf/benchmarks/blink_perf.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/pywebsocket_server.py
diff --git a/tools/perf/benchmarks/pywebsocket_server.py b/tools/perf/benchmarks/pywebsocket_server.py
deleted file mode 100644
index 351090048d8b93c937059ad7e6ba22b8d31e4d22..0000000000000000000000000000000000000000
--- a/tools/perf/benchmarks/pywebsocket_server.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# 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.
-
-import os
-import sys
-
-from core import path_util
-
-from telemetry.core import local_server
-from telemetry.core import util
-
-
-# This invokes pywebsocket's standalone.py under third_party/pywebsocket
-class PywebsocketServerBackend(local_server.LocalServerBackend):
-
- def __init__(self):
- super(PywebsocketServerBackend, self).__init__()
- self.port = 8001
- self.base_dir = os.path.relpath(
- os.path.join(path_util.GetChromiumSrcDir(),
- 'third_party', 'pywebsocket', 'src'),
- start=util.GetTelemetryDir())
-
- def StartAndGetNamedPorts(self, args):
- return [local_server.NamedPort('http', self.port)]
-
- def ServeForever(self):
- os.chdir(self.base_dir)
- cmd = [
- sys.executable, '-m', 'mod_pywebsocket.standalone',
- '--port', str(self.port),
- '--log-level', 'debug',
- '-d', 'example'
- ]
- os.execv(sys.executable, cmd)
-
-
-class PywebsocketServer(local_server.LocalServer):
-
- def __init__(self):
- super(PywebsocketServer, self).__init__(PywebsocketServerBackend)
-
- def GetBackendStartupArgs(self):
- return {}
« no previous file with comments | « tools/perf/benchmarks/blink_perf.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698