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

Unified Diff: chrome/test/data/safe_browsing/safe_browsing_testserver.py

Issue 2108313002: Remove the Pver3 safe_browsing_test server (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update a few files I missed Created 4 years, 6 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 | « chrome/test/BUILD.gn ('k') | extensions/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/safe_browsing/safe_browsing_testserver.py
diff --git a/chrome/test/data/safe_browsing/safe_browsing_testserver.py b/chrome/test/data/safe_browsing/safe_browsing_testserver.py
deleted file mode 100755
index 2946333ddaa4cacf78347633926195e0cb69e887..0000000000000000000000000000000000000000
--- a/chrome/test/data/safe_browsing/safe_browsing_testserver.py
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/usr/bin/env python
-# 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.
-
-"""Wraps the upstream safebrowsing_test_server.py to run in Chrome tests."""
-
-import os
-import sys
-
-BASE_DIR = os.path.dirname(os.path.abspath(__file__))
-
-sys.path.append(os.path.join(BASE_DIR, '..', '..', '..', '..', 'net',
- 'tools', 'testserver'))
-import testserver_base
-
-
-class ServerRunner(testserver_base.TestServerRunner):
- """TestServerRunner for safebrowsing_test_server.py."""
-
- def create_server(self, server_data):
- sys.path.append(os.path.join(BASE_DIR, '..', '..', '..', '..',
- 'third_party', 'safe_browsing', 'testing'))
- import safebrowsing_test_server
- server = safebrowsing_test_server.SetupServer(
- self.options.data_file, self.options.host, self.options.port,
- opt_enforce_caching=False, opt_validate_database=True)
- print 'Safebrowsing HTTP server started on port %d...' % server.server_port
- server_data['port'] = server.server_port
-
- return server
-
- def add_options(self):
- testserver_base.TestServerRunner.add_options(self)
- self.option_parser.add_option('--data-file', dest='data_file',
- help='File containing safebrowsing test '
- 'data and expectations')
-
-
-if __name__ == '__main__':
- sys.exit(ServerRunner().main())
« no previous file with comments | « chrome/test/BUILD.gn ('k') | extensions/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698