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

Unified Diff: pkg/kernel/test/round_trip.dart

Issue 2665723002: Implement canonical name scheme in kernel. (Closed)
Patch Set: Address Kevin's comments Created 3 years, 10 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
« no previous file with comments | « pkg/kernel/test/frontend_bench.dart ('k') | pkg/kernel/test/self_check_util.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/test/round_trip.dart
diff --git a/pkg/kernel/test/round_trip.dart b/pkg/kernel/test/round_trip.dart
index 72a57dfaddf4db91f7ea17b45e6274eb836e50de..eb806ffd6fdab9cfeed97f1b898d6ab0c6853517 100644
--- a/pkg/kernel/test/round_trip.dart
+++ b/pkg/kernel/test/round_trip.dart
@@ -7,7 +7,6 @@ import 'dart:async';
import 'dart:io';
import 'package:kernel/binary/ast_from_binary.dart';
import 'package:kernel/binary/ast_to_binary.dart';
-import 'package:kernel/binary/loader.dart';
import 'package:kernel/kernel.dart';
const String usage = '''
@@ -26,8 +25,8 @@ void main(List<String> args) {
}
void testRoundTrip(List<int> bytes) {
- var loader = new BinaryLoader(new Repository());
- var program = new BinaryBuilder(loader, bytes).readProgramFile();
+ var program = new Program();
+ new BinaryBuilder(bytes).readSingleFileProgram(program);
new BinaryPrinterWithExpectedOutput(bytes).writeProgramFile(program);
}
« no previous file with comments | « pkg/kernel/test/frontend_bench.dart ('k') | pkg/kernel/test/self_check_util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698