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

Side by Side Diff: pkg/analysis_server/test/search/search_result_test.dart

Issue 2394683006: Switch analysis_server to use '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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 test.search.search_result; 5 library test.search.search_result;
6 6
7 import 'package:analysis_server/src/protocol_server.dart'; 7 import 'package:analysis_server/src/protocol_server.dart';
8 import 'package:analysis_server/src/services/search/search_engine.dart'; 8 import 'package:analysis_server/src/services/search/search_engine.dart';
9 import 'package:test/test.dart';
9 import 'package:test_reflective_loader/test_reflective_loader.dart'; 10 import 'package:test_reflective_loader/test_reflective_loader.dart';
10 import 'package:unittest/unittest.dart';
11 11
12 import '../utils.dart'; 12 import '../utils.dart';
13 13
14 main() { 14 main() {
15 initializeTestEnvironment(); 15 initializeTestEnvironment();
16 defineReflectiveTests(SearchResultKindTest); 16 defineReflectiveSuite(() {
17 defineReflectiveTests(SearchResultKindTest);
18 });
17 } 19 }
18 20
19 @reflectiveTest 21 @reflectiveTest
20 class SearchResultKindTest { 22 class SearchResultKindTest {
21 void test_fromEngine() { 23 void test_fromEngine() {
22 expect(newSearchResultKind_fromEngine(MatchKind.DECLARATION), 24 expect(newSearchResultKind_fromEngine(MatchKind.DECLARATION),
23 SearchResultKind.DECLARATION); 25 SearchResultKind.DECLARATION);
24 expect( 26 expect(
25 newSearchResultKind_fromEngine(MatchKind.READ), SearchResultKind.READ); 27 newSearchResultKind_fromEngine(MatchKind.READ), SearchResultKind.READ);
26 expect(newSearchResultKind_fromEngine(MatchKind.READ_WRITE), 28 expect(newSearchResultKind_fromEngine(MatchKind.READ_WRITE),
(...skipping 22 matching lines...) Expand all
49 SearchResultKind.INVOCATION); 51 SearchResultKind.INVOCATION);
50 expect(new SearchResultKind(SearchResultKind.UNKNOWN.name), 52 expect(new SearchResultKind(SearchResultKind.UNKNOWN.name),
51 SearchResultKind.UNKNOWN); 53 SearchResultKind.UNKNOWN);
52 } 54 }
53 55
54 void test_toString() { 56 void test_toString() {
55 expect(SearchResultKind.DECLARATION.toString(), 57 expect(SearchResultKind.DECLARATION.toString(),
56 'SearchResultKind.DECLARATION'); 58 'SearchResultKind.DECLARATION');
57 } 59 }
58 } 60 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698