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

Side by Side Diff: pkg/analysis_server/test/mocks.dart

Issue 254533004: Use @MirrorsUsed to prevent analysis server tests from slowing down in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/pkg.status » ('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) 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 mocks; 5 library mocks;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9
10 @MirrorsUsed(targets: 'mocks', override: '*')
9 import 'dart:mirrors'; 11 import 'dart:mirrors';
10 12
11 import 'package:analyzer/src/generated/engine.dart'; 13 import 'package:analyzer/src/generated/engine.dart';
12 import 'package:analyzer/src/generated/source.dart'; 14 import 'package:analyzer/src/generated/source.dart';
13 import 'package:analysis_server/src/analysis_logger.dart'; 15 import 'package:analysis_server/src/analysis_logger.dart';
14 import 'package:analysis_server/src/analysis_server.dart'; 16 import 'package:analysis_server/src/analysis_server.dart';
15 import 'package:analysis_server/src/channel.dart'; 17 import 'package:analysis_server/src/channel.dart';
16 import 'package:analysis_server/src/protocol.dart'; 18 import 'package:analysis_server/src/protocol.dart';
17 import 'package:matcher/matcher.dart'; 19 import 'package:matcher/matcher.dart';
18 import 'package:mock/mock.dart'; 20 import 'package:mock/mock.dart';
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 192 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
191 } 193 }
192 194
193 /** 195 /**
194 * A mock [Source]. Particularly useful when all that is needed is the 196 * A mock [Source]. Particularly useful when all that is needed is the
195 * encoding. 197 * encoding.
196 */ 198 */
197 class MockSource extends Mock implements Source { 199 class MockSource extends Mock implements Source {
198 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 200 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
199 } 201 }
OLDNEW
« no previous file with comments | « no previous file | pkg/pkg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698