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

Side by Side Diff: pkg/analyzer_cli/test/build_mode_test.dart

Issue 2395183002: Switch analyzer_cli to 'package:test'. (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « pkg/analyzer_cli/test/boot_loader_test.dart ('k') | pkg/analyzer_cli/test/driver_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analyzer_cli.test.built_mode; 5 library analyzer_cli.test.built_mode;
6 6
7 import 'package:analyzer/file_system/memory_file_system.dart'; 7 import 'package:analyzer/file_system/memory_file_system.dart';
8 import 'package:analyzer_cli/src/build_mode.dart'; 8 import 'package:analyzer_cli/src/build_mode.dart';
9 import 'package:analyzer_cli/src/driver.dart'; 9 import 'package:analyzer_cli/src/driver.dart';
10 import 'package:analyzer_cli/src/options.dart'; 10 import 'package:analyzer_cli/src/options.dart';
11 import 'package:bazel_worker/bazel_worker.dart'; 11 import 'package:bazel_worker/bazel_worker.dart';
12 import 'package:bazel_worker/testing.dart'; 12 import 'package:bazel_worker/testing.dart';
13 import 'package:protobuf/protobuf.dart'; 13 import 'package:protobuf/protobuf.dart';
14 import 'package:test/test.dart';
14 import 'package:test_reflective_loader/test_reflective_loader.dart'; 15 import 'package:test_reflective_loader/test_reflective_loader.dart';
15 import 'package:unittest/unittest.dart';
16 16
17 main() { 17 main() {
18 defineReflectiveTests(WorkerLoopTest); 18 defineReflectiveTests(WorkerLoopTest);
19 } 19 }
20 20
21 typedef void _TestWorkerLoopAnalyze(CommandLineOptions options); 21 typedef void _TestWorkerLoopAnalyze(CommandLineOptions options);
22 22
23 /** 23 /**
24 * [AnalyzerWorkerLoop] for testing. 24 * [AnalyzerWorkerLoop] for testing.
25 */ 25 */
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 List<int> _serializeProto(GeneratedMessage message) { 133 List<int> _serializeProto(GeneratedMessage message) {
134 var buffer = message.writeToBuffer(); 134 var buffer = message.writeToBuffer();
135 135
136 var writer = new CodedBufferWriter(); 136 var writer = new CodedBufferWriter();
137 writer.writeInt32NoTag(buffer.length); 137 writer.writeInt32NoTag(buffer.length);
138 writer.writeRawBytes(buffer); 138 writer.writeRawBytes(buffer);
139 139
140 return writer.toBuffer(); 140 return writer.toBuffer();
141 } 141 }
142 } 142 }
OLDNEW
« no previous file with comments | « pkg/analyzer_cli/test/boot_loader_test.dart ('k') | pkg/analyzer_cli/test/driver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698