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

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

Issue 3846004: Delete safe_browsing_database tests and test data. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 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/data/safe_browsing/download_update.py
diff --git a/chrome/test/data/safe_browsing/download_update.py b/chrome/test/data/safe_browsing/download_update.py
deleted file mode 100755
index 717025c9320779de6de2ea111d55f3cc7eadde3e..0000000000000000000000000000000000000000
--- a/chrome/test/data/safe_browsing/download_update.py
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/python
-# Copyright (c) 2009 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 urllib,sys
-
-
-url = 'http://safebrowsing.clients.google.com/safebrowsing/downloads?client=googleclient&appver=1.0&pver=2.1'
-
-if len(sys.argv) == 1:
- data = 'goog-phish-shavar;\ngoog-malware-shavar;\n'
-else:
- post_data_file = sys.argv[1]
- file = open(post_data_file, "r")
- data = file.read()
- file.close
-
-response = urllib.urlopen(url, data)
-
-response_file = open("response", "r+")
-response_file.write(response.read())
-response_file.seek(0)
-
-counter = 0
-
-for line in response_file:
- if not line.startswith('u:'):
- continue
-
- chunk_url = 'http://' + line[2:]
- filename = chunk_url[chunk_url.rfind('/') + 1:]
- filename = "%03d" % counter + filename[0:filename.rfind('_')]
- counter += 1
-
- urllib.urlretrieve(chunk_url, filename)
-
-response_file.close()
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_database_unittest.cc ('k') | chrome/test/data/safe_browsing/filter/database » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698