Files
sdk/pkg/analyzer_cli/test/mocks.dart
T
pq 9ae1265ff5 analyzer_cli move to SDK.
Tracking bug: https://github.com/dart-lang/sdk/issues/24731

Note, dartium build changes are in a separate CL: https://codereview.chromium.org/1453413006/

Some tests had to be disabled for want of mockito in the SDK; tracking their reimplementation is here: https://github.com/dart-lang/sdk/issues/24994

BUG=24731
R=whesse@google.com

Review URL: https://codereview.chromium.org/1459683003 .
2015-11-19 14:52:54 -08:00

52 lines
1.7 KiB
Dart

// Copyright (c) 2015, 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 analyzer_cli.test.mocks;
import 'package:analyzer/analyzer.dart';
import 'package:analyzer/src/generated/engine.dart';
import 'package:analyzer/src/generated/source.dart';
import 'package:analyzer_cli/src/options.dart';
import 'package:typed_mock/typed_mock.dart';
class MockAnalysisError extends TypedMock implements AnalysisError {
@override
noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}
class MockAnalysisErrorInfo extends TypedMock implements AnalysisErrorInfo {
@override
noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}
class MockCommandLineOptions extends TypedMock implements CommandLineOptions {
@override
noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}
class MockErrorCode extends TypedMock implements ErrorCode {
@override
noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}
class MockErrorType extends TypedMock implements ErrorType {
@override
noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}
class MockLineInfo extends TypedMock implements LineInfo {
@override
noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}
class MockLineInfo_Location extends TypedMock implements LineInfo_Location {
@override
noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}
class MockSource extends TypedMock implements Source {
@override
noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}