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

Unified Diff: tests/compiler/dart2js_native/native_method_inlining_test.dart

Issue 2379173002: Add native_testing library to mock @Native classes (Closed)
Patch Set: xxx Created 4 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_native/native_method_inlining_test.dart
diff --git a/tests/compiler/dart2js_native/native_method_inlining_test.dart b/tests/compiler/dart2js_native/native_method_inlining_test.dart
index dce81ec48ecfb713012fa6193a67898265122ce0..07a0620d07b21e9a7d6af39a8a8f1f9b48594db3 100644
--- a/tests/compiler/dart2js_native/native_method_inlining_test.dart
+++ b/tests/compiler/dart2js_native/native_method_inlining_test.dart
@@ -5,8 +5,7 @@
// Test that native methods with unnamed optional arguments are called with the
// number of arguments in the call site AND the call site is inlined.
-import "package:expect/expect.dart";
-import 'dart:_js_helper' show Native, NoInline;
+import 'native_testing.dart';
typedef int Int2Int(int x);
@@ -71,6 +70,8 @@ findMethodTextContaining = function (instance, string) {
if (s.indexOf(string)>0) return s;
}
};
+
+self.nativeConstructor(A);
""";
bool get isCheckedMode {
@@ -148,6 +149,7 @@ test2() {
}
main() {
+ nativeTesting();
setup();
test1();
test2();

Powered by Google App Engine
This is Rietveld 408576698