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

Unified Diff: pkg/analyzer/test/index/store/mocks.dart

Issue 376693002: Extract testing utilities into a separate package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/test/index/store/mocks.dart
diff --git a/pkg/analyzer/test/index/store/mocks.dart b/pkg/analyzer/test/index/store/mocks.dart
new file mode 100644
index 0000000000000000000000000000000000000000..808264a1087d180091ceb8d54cbab6134820d14a
--- /dev/null
+++ b/pkg/analyzer/test/index/store/mocks.dart
@@ -0,0 +1,36 @@
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+library test.index.store.mocks;
+
+import 'package:analyzer/index/index.dart';
+import 'package:analyzer/src/generated/engine.dart';
+import 'package:analyzer/src/index/store/codec.dart';
+import 'package:typed_mock/typed_mock.dart';
+
+
+class MockContextCodec extends TypedMock implements ContextCodec {
+ noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
+}
+
+
+class MockElementCodec extends TypedMock implements ElementCodec {
+ noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
+}
+
+
+class MockInstrumentedAnalysisContextImpl extends TypedMock implements
+ InstrumentedAnalysisContextImpl {
+ noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
+}
+
+
+class MockLocation extends TypedMock implements Location {
+ noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
+}
+
+
+class MockRelationshipCodec extends TypedMock implements RelationshipCodec {
+ noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
+}

Powered by Google App Engine
This is Rietveld 408576698