OLD | NEW |
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.services.index.store.mocks; | 5 library test.services.index.store.mocks; |
6 | 6 |
7 import 'package:analysis_services/index/index.dart'; | 7 import 'package:analysis_server/src/services/index/index.dart'; |
8 import 'package:analysis_services/src/index/store/codec.dart'; | 8 import 'package:analysis_server/src/services/index/store/codec.dart'; |
9 import 'package:analyzer/src/generated/engine.dart'; | 9 import 'package:analyzer/src/generated/engine.dart'; |
10 import 'package:typed_mock/typed_mock.dart'; | 10 import 'package:typed_mock/typed_mock.dart'; |
11 | 11 |
12 | 12 |
13 class MockContextCodec extends TypedMock implements ContextCodec { | 13 class MockContextCodec extends TypedMock implements ContextCodec { |
14 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 14 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
15 } | 15 } |
16 | 16 |
17 | 17 |
18 class MockElementCodec extends TypedMock implements ElementCodec { | 18 class MockElementCodec extends TypedMock implements ElementCodec { |
19 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 19 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
20 } | 20 } |
21 | 21 |
22 | 22 |
23 class MockInstrumentedAnalysisContextImpl extends TypedMock implements | 23 class MockInstrumentedAnalysisContextImpl extends TypedMock implements |
24 InstrumentedAnalysisContextImpl { | 24 InstrumentedAnalysisContextImpl { |
25 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 25 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
26 } | 26 } |
27 | 27 |
28 | 28 |
29 class MockLocation extends TypedMock implements Location { | 29 class MockLocation extends TypedMock implements Location { |
30 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 30 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
31 } | 31 } |
32 | 32 |
33 | 33 |
34 class MockRelationshipCodec extends TypedMock implements RelationshipCodec { | 34 class MockRelationshipCodec extends TypedMock implements RelationshipCodec { |
35 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 35 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
36 } | 36 } |
OLD | NEW |