Bug 1288840 - Use the private phishing site list in official build. r=francois

MozReview-Commit-ID: 3SYoP2z1jWb
This commit is contained in:
Henry Chang
2016-07-25 09:18:25 +08:00
parent 85bb0dd6a4
commit 85fe597557
3 changed files with 18 additions and 5 deletions

View File

@@ -5,8 +5,9 @@ function run_test() {
// Test list name to threat type conversion.
equal(urlUtils.convertListNameToThreatType("goog-malware-proto"), 1);
equal(urlUtils.convertListNameToThreatType("goog-phish-proto"), 2);
equal(urlUtils.convertListNameToThreatType("googpub-phish-proto"), 2);
equal(urlUtils.convertListNameToThreatType("goog-unwanted-proto"), 3);
equal(urlUtils.convertListNameToThreatType("goog-phish-proto"), 5);
try {
urlUtils.convertListNameToThreatType("bad-list-name");
@@ -20,8 +21,9 @@ function run_test() {
// Test threat type to list name conversion.
equal(urlUtils.convertThreatTypeToListName(1), "goog-malware-proto");
equal(urlUtils.convertThreatTypeToListName(2), "goog-phish-proto");
equal(urlUtils.convertThreatTypeToListName(2), "googpub-phish-proto");
equal(urlUtils.convertThreatTypeToListName(3), "goog-unwanted-proto");
equal(urlUtils.convertThreatTypeToListName(5), "goog-phish-proto");
try {
urlUtils.convertThreatTypeToListName(0);