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

Delta Between Two Patch Sets: test/stub-modules/utils.js

Issue 29855555: Issue 6849 - Remove filter list checksum verification (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Left Patch Set: Created Aug. 14, 2018, 9:23 a.m.
Right Patch Set: Remove generateChecksum stub Created Aug. 14, 2018, 9:26 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « lib/synchronizer.js ('k') | test/synchronizer.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 "use strict"; 1 "use strict";
2
3 const crypto = require("crypto");
4 2
5 exports.Utils = { 3 exports.Utils = {
6 appLocale: "en-US", 4 appLocale: "en-US",
7 5
8 generateChecksum(lines)
9 {
10 let buffer = new Buffer(lines.join("\n"), "utf-8");
11 let hash = crypto.createHash("md5");
12 hash.update(buffer);
13 return hash.digest("base64").replace(/=+$/, "");
14 },
15 yield() {} 6 yield() {}
16 }; 7 };
LEFTRIGHT

Powered by Google App Engine
This is Rietveld