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

Side by Side Diff: test/stub-modules/utils.js

Issue 29356024: Issue 4223 - Adapt filter storage read/write tests to work in adblockpluscore repository (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Simplified loadFilters/saveFilters helpers a bit further Created Oct. 6, 2016, 7:36 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/stub-modules/io.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 let crypto = require("crypto"); 1 let crypto = require("crypto");
2 2
3 exports.Utils = { 3 exports.Utils = {
4 generateChecksum: function(lines) 4 generateChecksum: function(lines)
5 { 5 {
6 let buffer = new Buffer(lines.join("\n"), "utf-8"); 6 let buffer = new Buffer(lines.join("\n"), "utf-8");
7 let hash = crypto.createHash("md5"); 7 let hash = crypto.createHash("md5");
8 hash.update(buffer); 8 hash.update(buffer);
9 return hash.digest("base64").replace(/=+$/, ""); 9 return hash.digest("base64").replace(/=+$/, "");
10 } 10 },
11 yield: () => undefined
11 }; 12 };
OLDNEW
« no previous file with comments | « test/stub-modules/io.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld