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

Side by Side Diff: pkg/analysis_server/test/operation/operation_queue_test.dart

Issue 1266923004: More fixes for failures on the Windows bot (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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.operation.queue; 5 library test.operation.queue;
6 6
7 import 'package:analysis_server/src/analysis_server.dart'; 7 import 'package:analysis_server/src/analysis_server.dart';
8 import 'package:analysis_server/src/context_manager.dart'; 8 import 'package:analysis_server/src/context_manager.dart';
9 import 'package:analysis_server/src/operation/operation.dart'; 9 import 'package:analysis_server/src/operation/operation.dart';
10 import 'package:analysis_server/src/operation/operation_analysis.dart'; 10 import 'package:analysis_server/src/operation/operation_analysis.dart';
11 import 'package:analysis_server/src/operation/operation_queue.dart'; 11 import 'package:analysis_server/src/operation/operation_queue.dart';
12 import 'package:analysis_server/src/services/search/search_engine.dart'; 12 import 'package:analysis_server/src/services/search/search_engine.dart';
13 import 'package:analyzer/file_system/file_system.dart'; 13 import 'package:analyzer/file_system/file_system.dart';
14 import 'package:analyzer/src/generated/engine.dart'; 14 import 'package:analyzer/src/generated/engine.dart';
15 import 'package:analyzer/src/generated/source.dart'; 15 import 'package:analyzer/src/generated/source.dart';
16 import 'package:test_reflective_loader/test_reflective_loader.dart'; 16 import 'package:test_reflective_loader/test_reflective_loader.dart';
17 import 'package:typed_mock/typed_mock.dart'; 17 import 'package:typed_mock/typed_mock.dart';
18 import 'package:unittest/unittest.dart'; 18 import 'package:unittest/unittest.dart';
19 19
20 import '../mocks.dart'; 20 import '../mocks.dart';
21 import '../utils.dart';
21 22
22 main() { 23 main() {
23 groupSep = ' | '; 24 initializeTestEnvironment();
24 defineReflectiveTests(ServerOperationQueueTest); 25 defineReflectiveTests(ServerOperationQueueTest);
25 } 26 }
26 27
27 /** 28 /**
28 * Return a [ServerOperation] mock with the given priority. 29 * Return a [ServerOperation] mock with the given priority.
29 */ 30 */
30 ServerOperation mockOperation(ServerOperationPriority priority) { 31 ServerOperation mockOperation(ServerOperationPriority priority) {
31 ServerOperation operation = new _ServerOperationMock(); 32 ServerOperation operation = new _ServerOperationMock();
32 when(operation.priority).thenReturn(priority); 33 when(operation.priority).thenReturn(priority);
33 return operation; 34 return operation;
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 return ServerOperationPriority.ANALYSIS_NOTIFICATION; 205 return ServerOperationPriority.ANALYSIS_NOTIFICATION;
205 } 206 }
206 207
207 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 208 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
208 209
209 @override 210 @override
210 bool shouldBeDiscardedOnSourceChange(Source source) { 211 bool shouldBeDiscardedOnSourceChange(Source source) {
211 return source == this.source; 212 return source == this.source;
212 } 213 }
213 } 214 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/integration/test_all.dart ('k') | pkg/analysis_server/test/operation/operation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698