Skip to content

Commit 5d0645e

Browse files
committed
[native_assets_cli] Fix system libraries and add documentation - fix test 2
1 parent 3832e4b commit 5d0645e

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

pkgs/native_assets_builder/test_data/system_library/lib/memory_executable.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,3 @@ external Pointer malloc(int size);
99

1010
@Native<Void Function(Pointer)>()
1111
external 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);

pkgs/native_assets_builder/test_data/system_library/test/memory_test.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ import 'package:test/test.dart';
1212

1313
void 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);

0 commit comments

Comments
 (0)