Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/stub-modules/utils.js

Issue 29855555: Issue 6849 - Remove filter list checksum verification (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Remove generateChecksum stub Created Aug. 14, 2018, 9:26 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/synchronizer.js ('k') | test/synchronizer.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/stub-modules/utils.js
===================================================================
--- a/test/stub-modules/utils.js
+++ b/test/stub-modules/utils.js
@@ -1,16 +1,7 @@
"use strict";
-const crypto = require("crypto");
-
exports.Utils = {
appLocale: "en-US",
- generateChecksum(lines)
- {
- let buffer = new Buffer(lines.join("\n"), "utf-8");
- let hash = crypto.createHash("md5");
- hash.update(buffer);
- return hash.digest("base64").replace(/=+$/, "");
- },
yield() {}
};
« no previous file with comments | « lib/synchronizer.js ('k') | test/synchronizer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld