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

Unified Diff: tests/compiler/dart2js/options_helper.dart

Issue 1864433004: Repeats and fixes the changes landed & reverted as CL 1789553003. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updates to external dependents Created 4 years, 8 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
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | tests/compiler/dart2js/parser_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+}
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | tests/compiler/dart2js/parser_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698