File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed
pkgs/native_assets_builder/test_data/system_library Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,3 @@ external Pointer malloc(int size);
99
1010@Native < Void Function (Pointer )> ()
1111external void free (Pointer pointer);
12-
13- @Native < Pointer Function (Size )> (symbol: 'CoTaskMemAlloc' )
14- external Pointer coTaskMemAlloc (int cb);
15-
16- @Native < Void Function (Pointer )> (symbol: 'CoTaskMemFree' )
17- external void coTaskMemFree (Pointer pv);
Original file line number Diff line number Diff line change @@ -12,11 +12,7 @@ import 'package:test/test.dart';
1212
1313void main () {
1414 test ('executable' , () {
15- if (Platform .isWindows) {
16- final pointer = executable.coTaskMemAlloc (8 );
17- expect (pointer, isNot (nullptr));
18- executable.coTaskMemFree (pointer);
19- } else {
15+ if (! Platform .isWindows) {
2016 final pointer = executable.malloc (8 );
2117 expect (pointer, isNot (nullptr));
2218 executable.free (pointer);
You can’t perform that action at this time.
0 commit comments