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

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

Issue 1469353004: Restrict backend misuse (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix unittests Created 5 years, 1 month 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: tests/compiler/dart2js/mock_libraries.dart
diff --git a/tests/compiler/dart2js/mock_libraries.dart b/tests/compiler/dart2js/mock_libraries.dart
index 9b89db0a89da4479718895d685ed38fb722ab755..11414163d1d9805830717f7f96135702a383a515 100644
--- a/tests/compiler/dart2js/mock_libraries.dart
+++ b/tests/compiler/dart2js/mock_libraries.dart
@@ -64,10 +64,6 @@ const Map<String, String> DEFAULT_CORE_LIBRARY = const <String, String>{
}''',
'LinkedHashMap': r'''
class LinkedHashMap<K, V> implements Map<K, V> {
- factory LinkedHashMap._empty() => null;
- factory LinkedHashMap._literal(elements) => null;
- static _makeEmpty() => null;
- static _makeLiteral(elements) => null;
}''',
'List': r'''
class List<E> extends Iterable<E> {
@@ -113,6 +109,14 @@ import 'dart:_js_helper';
import 'dart:_interceptors';
import 'dart:_isolate_helper';
import 'dart:async';
+
+@patch
+class LinkedHashMap<K, V> {
+ factory LinkedHashMap._empty() => null;
+ factory LinkedHashMap._literal(elements) => null;
+ static _makeEmpty() => null;
+ static _makeLiteral(elements) => null;
+}
''';
const Map<String, String> DEFAULT_JS_HELPER_LIBRARY = const <String, String>{

Powered by Google App Engine
This is Rietveld 408576698