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