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

Side by Side Diff: pkg/analyzer/test/src/summary/package_bundle_reader_test.dart

Issue 2298913003: Pull in test_reflective_loader 0.0.4 and switch analyzer to it. (Closed)
Patch Set: Fixes for review comments. Created 4 years, 3 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) 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 import 'package:analyzer/src/context/cache.dart'; 5 import 'package:analyzer/src/context/cache.dart';
6 import 'package:analyzer/src/generated/engine.dart'; 6 import 'package:analyzer/src/generated/engine.dart';
7 import 'package:analyzer/src/generated/source.dart'; 7 import 'package:analyzer/src/generated/source.dart';
8 import 'package:analyzer/src/summary/idl.dart'; 8 import 'package:analyzer/src/summary/idl.dart';
9 import 'package:analyzer/src/summary/package_bundle_reader.dart'; 9 import 'package:analyzer/src/summary/package_bundle_reader.dart';
10 import 'package:analyzer/src/task/dart.dart'; 10 import 'package:analyzer/src/task/dart.dart';
11 import 'package:analyzer/src/util/fast_uri.dart'; 11 import 'package:analyzer/src/util/fast_uri.dart';
12 import 'package:analyzer/task/dart.dart'; 12 import 'package:analyzer/task/dart.dart';
13 import 'package:analyzer/task/general.dart'; 13 import 'package:analyzer/task/general.dart';
14 import 'package:test_reflective_loader/test_reflective_loader.dart';
14 import 'package:typed_mock/typed_mock.dart'; 15 import 'package:typed_mock/typed_mock.dart';
15 import 'package:unittest/unittest.dart'; 16 import 'package:unittest/unittest.dart';
16 17
17 import '../../reflective_tests.dart';
18
19 main() { 18 main() {
20 groupSep = ' | '; 19 groupSep = ' | ';
21 runReflectiveTests(ResynthesizerResultProviderTest); 20 defineReflectiveTests(ResynthesizerResultProviderTest);
22 runReflectiveTests(SummaryDataStoreTest); 21 defineReflectiveTests(SummaryDataStoreTest);
23 } 22 }
24 23
25 UnlinkedPublicNamespace _namespaceWithParts(List<String> parts) { 24 UnlinkedPublicNamespace _namespaceWithParts(List<String> parts) {
26 UnlinkedPublicNamespace namespace = new _UnlinkedPublicNamespaceMock(); 25 UnlinkedPublicNamespace namespace = new _UnlinkedPublicNamespaceMock();
27 when(namespace.parts).thenReturn(parts); 26 when(namespace.parts).thenReturn(parts);
28 return namespace; 27 return namespace;
29 } 28 }
30 29
31 @reflectiveTest 30 @reflectiveTest
32 class ResynthesizerResultProviderTest { 31 class ResynthesizerResultProviderTest {
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 @override 299 @override
301 bool hasResultsForSource(Source source) { 300 bool hasResultsForSource(Source source) {
302 return sourcesWithResults.contains(source); 301 return sourcesWithResults.contains(source);
303 } 302 }
304 } 303 }
305 304
306 class _UnlinkedPublicNamespaceMock extends TypedMock 305 class _UnlinkedPublicNamespaceMock extends TypedMock
307 implements UnlinkedPublicNamespace {} 306 implements UnlinkedPublicNamespace {}
308 307
309 class _UnlinkedUnitMock extends TypedMock implements UnlinkedUnit {} 308 class _UnlinkedUnitMock extends TypedMock implements UnlinkedUnit {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698