| Index: tests/compiler/dart2js/options_helper.dart
|
| diff --git a/tests/compiler/dart2js/options_helper.dart b/tests/compiler/dart2js/options_helper.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b071832c495fa7c57345e3abfc8f82e38dfe608e
|
| --- /dev/null
|
| +++ b/tests/compiler/dart2js/options_helper.dart
|
| @@ -0,0 +1,24 @@
|
| +// Copyright (c) 2016, 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 options_helper;
|
| +
|
| +import 'package:compiler/src/options.dart';
|
| +export 'package:compiler/src/options.dart';
|
| +
|
| +class MockDiagnosticOptions implements DiagnosticOptions {
|
| + const MockDiagnosticOptions();
|
| +
|
| + bool get fatalWarnings => false;
|
| + bool get terseDiagnostics => false;
|
| + bool get suppressWarnings => false;
|
| + bool get suppressHints => false;
|
| + bool get showAllPackageWarnings => false;
|
| + bool get hidePackageWarnings => true;
|
| + bool showPackageWarningsFor(Uri uri) => false;
|
| +}
|
| +
|
| +class MockParserOptions implements ParserOptions {
|
| + bool get enableConditionalDirectives => true;
|
| +}
|
|
|