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

Unified Diff: tracing/tracing/extras/importer/gzip_importer_test.html

Issue 2755943002: tracing: Stream processing for some importers (Closed)
Patch Set: review / sync Created 3 years, 8 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: tracing/tracing/extras/importer/gzip_importer_test.html
diff --git a/tracing/tracing/extras/importer/gzip_importer_test.html b/tracing/tracing/extras/importer/gzip_importer_test.html
index 92816cb61986d444069eaa984b9b1320882d06d4..4ff8f05c6722621647f52d138b43aef98f33b4e8 100644
--- a/tracing/tracing/extras/importer/gzip_importer_test.html
+++ b/tracing/tracing/extras/importer/gzip_importer_test.html
@@ -6,6 +6,7 @@ found in the LICENSE file.
-->
<link rel="import" href="/tracing/base/base64.html">
+<link rel="import" href="/tracing/base/trace_stream.html">
<link rel="import" href="/tracing/core/test_utils.html">
<link rel="import" href="/tracing/extras/importer/gzip_importer.html">
<link rel="import" href="/tracing/extras/importer/trace_event_importer.html">
@@ -35,7 +36,8 @@ tr.b.unittest.testSuite(function() {
var gzipData = Base64.atob(GZIP_DATA_BASE_64);
var importer = new tr.e.importer.GzipImporter(null, gzipData);
assert.isTrue(tr.e.importer.GzipImporter.canImport(gzipData));
- assert.strictEqual(importer.extractSubtraces()[0], ORIGINAL_DATA);
+ assert.strictEqual(
+ importer.extractSubtraces()[0].toString(), ORIGINAL_DATA);
});
test('inflateArrayBuffer', function() {
@@ -48,7 +50,8 @@ tr.b.unittest.testSuite(function() {
}
var importer = new tr.e.importer.GzipImporter(null, buffer);
assert.isTrue(tr.e.importer.GzipImporter.canImport(buffer));
- assert.strictEqual(importer.extractSubtraces()[0], ORIGINAL_DATA);
+ assert.strictEqual(
+ importer.extractSubtraces()[0].toString(), ORIGINAL_DATA);
});
test('import', function() {
« no previous file with comments | « tracing/tracing/extras/importer/gzip_importer.html ('k') | tracing/tracing/extras/importer/linux_perf/ftrace_importer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698