Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
Fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
liamappelbe committed Sep 29, 2023
1 parent 5b17283 commit 18511cb
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ final class _SymbolAddresses extends ffi.Opaque {}
abstract class Bindings {}

typedef Native_library = ffi.Void Function();
typedef Native_library_dart = void Function();
typedef Dart_library = void Function();
1 change: 1 addition & 0 deletions test/large_integration_tests/_expected_cjson_bindings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1249,6 +1249,7 @@ final class cJSON_Hooks extends ffi.Struct {
}

typedef cJSON_bool = ffi.Int;
typedef cJSON_bool_dart = int;

const int CJSON_VERSION_MAJOR = 1;

Expand Down
9 changes: 9 additions & 0 deletions test/large_integration_tests/_expected_libclang_bindings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7434,6 +7434,8 @@ typedef CXCursorVisitor
= ffi.Pointer<ffi.NativeFunction<CXCursorVisitor_function>>;
typedef CXCursorVisitor_function = ffi.Int32 Function(
CXCursor cursor, CXCursor parent, CXClientData client_data);
typedef CXCursorVisitor_function_dart = int Function(
CXCursor cursor, CXCursor parent, CXClientData client_data);

/// Opaque pointer representing client data that will be passed through to
/// various callbacks and visitors.
Expand Down Expand Up @@ -7768,6 +7770,11 @@ typedef CXInclusionVisitor_function = ffi.Void Function(
ffi.Pointer<CXSourceLocation> inclusion_stack,
ffi.UnsignedInt include_len,
CXClientData client_data);
typedef CXInclusionVisitor_function_dart = void Function(
CXFile included_file,
ffi.Pointer<CXSourceLocation> inclusion_stack,
int include_len,
CXClientData client_data);

abstract class CXEvalResultKind {
static const int CXEval_Int = 1;
Expand Down Expand Up @@ -8228,6 +8235,8 @@ typedef CXFieldVisitor
= ffi.Pointer<ffi.NativeFunction<CXFieldVisitor_function>>;
typedef CXFieldVisitor_function = ffi.Int32 Function(
CXCursor C, CXClientData client_data);
typedef CXFieldVisitor_function_dart = int Function(
CXCursor C, CXClientData client_data);

const int CINDEX_VERSION_MAJOR = 0;

Expand Down
10 changes: 10 additions & 0 deletions test/large_integration_tests/_expected_sqlite_bindings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10854,9 +10854,11 @@ final class sqlite3_vfs extends ffi.Struct {

typedef sqlite3_int64 = sqlite_int64;
typedef sqlite_int64 = ffi.LongLong;
typedef sqlite_int64_dart = int;
typedef sqlite3_syscall_ptr
= ffi.Pointer<ffi.NativeFunction<sqlite3_syscall_ptr_function>>;
typedef sqlite3_syscall_ptr_function = ffi.Void Function();
typedef sqlite3_syscall_ptr_function_dart = void Function();

final class sqlite3_mem_methods extends ffi.Struct {
/// Memory allocation function
Expand Down Expand Up @@ -10899,6 +10901,7 @@ final class sqlite3_mem_methods extends ffi.Struct {

typedef sqlite3_uint64 = sqlite_uint64;
typedef sqlite_uint64 = ffi.UnsignedLongLong;
typedef sqlite_uint64_dart = int;

final class sqlite3_stmt extends ffi.Opaque {}

Expand Down Expand Up @@ -11507,6 +11510,7 @@ final class sqlite3_rtree_geometry extends ffi.Struct {
}

typedef sqlite3_rtree_dbl = ffi.Double;
typedef sqlite3_rtree_dbl_dart = double;

/// A pointer to a structure of the following type is passed as the
/// argument to scored geometry callback registered using
Expand Down Expand Up @@ -12017,6 +12021,12 @@ typedef fts5_extension_function_function = ffi.Void Function(
ffi.Pointer<sqlite3_context> pCtx,
ffi.Int nVal,
ffi.Pointer<ffi.Pointer<sqlite3_value>> apVal);
typedef fts5_extension_function_function_dart = void Function(
ffi.Pointer<Fts5ExtensionApi> pApi,
ffi.Pointer<Fts5Context> pFts,
ffi.Pointer<sqlite3_context> pCtx,
int nVal,
ffi.Pointer<ffi.Pointer<sqlite3_value>> apVal);

const String SQLITE_VERSION = '3.32.3';

Expand Down

0 comments on commit 18511cb

Please sign in to comment.