Flutter Engine
The Flutter Engine
Classes | Namespaces | Macros | Functions | Variables
dart_api_impl_test.cc File Reference
#include "vm/dart_api_impl.h"
#include "bin/builtin.h"
#include "bin/dartutils.h"
#include "include/dart_api.h"
#include "include/dart_native_api.h"
#include "include/dart_tools_api.h"
#include "platform/assert.h"
#include "platform/text_buffer.h"
#include "platform/utils.h"
#include "vm/class_finalizer.h"
#include "vm/compiler/jit/compiler.h"
#include "vm/dart.h"
#include "vm/dart_api_state.h"
#include "vm/debugger_api_impl_test.h"
#include "vm/heap/verifier.h"
#include "vm/lockers.h"
#include "vm/timeline.h"
#include "vm/unit_test.h"

Go to the source code of this file.

Classes

class  dart::InfiniteLoopTask
 
class  dart::BackgroundGCTask
 

Namespaces

namespace  dart
 

Macros

#define TIMELINE_STREAM_CHECK(name, ...)   EXPECT_SUBSTRING(#name, js_str);
 

Functions

 dart::DECLARE_FLAG (bool, verify_acquired_data)
 
 dart::DECLARE_FLAG (bool, complete_timeline)
 
 dart::UNIT_TEST_CASE (DartAPI_DartInitializeAfterCleanup)
 
 dart::UNIT_TEST_CASE (DartAPI_DartInitializeCallsCodeObserver)
 
 dart::UNIT_TEST_CASE (DartAPI_DartInitializeHeapSizes)
 
 dart::TEST_CASE (Dart_KillIsolate)
 
 dart::TEST_CASE (Dart_KillIsolatePriority)
 
 dart::TEST_CASE (DartAPI_ErrorHandleBasics)
 
 dart::TEST_CASE (DartAPI_StackTraceInfo)
 
 dart::TEST_CASE (DartAPI_DeepStackTraceInfo)
 
void dart::VerifyStackOverflowStackTraceInfo (const char *script, const char *top_frame_func_name, const char *entry_func_name, int expected_line_number, int expected_column_number)
 
 dart::TEST_CASE (DartAPI_StackOverflowStackTraceInfoBraceFunction1)
 
 dart::TEST_CASE (DartAPI_StackOverflowStackTraceInfoBraceFunction2)
 
 dart::TEST_CASE (DartAPI_StackOverflowStackTraceInfoArrowFunction)
 
 dart::TEST_CASE (DartAPI_OutOfMemoryStackTraceInfo)
 
void dart::CurrentStackTraceNative (Dart_NativeArguments args)
 
static Dart_NativeFunction dart::CurrentStackTraceNativeLookup (Dart_Handle name, int argument_count, bool *auto_setup_scope)
 
 dart::TEST_CASE (DartAPI_CurrentStackTraceInfo)
 
 dart::TEST_CASE (DartAPI_ErrorHandleTypes)
 
 dart::TEST_CASE (DartAPI_UnhandleExceptionError)
 
void dart::JustPropagateErrorNative (Dart_NativeArguments args)
 
static Dart_NativeFunction dart::JustPropagateError_lookup (Dart_Handle name, int argument_count, bool *auto_setup_scope)
 
 dart::TEST_CASE (DartAPI_EnsureUnwindErrorHandled_WhenKilled)
 
 dart::TEST_CASE (DartAPI_EnsureUnwindErrorHandled_WhenSendAndExit)
 
void dart::PropagateErrorNative (Dart_NativeArguments args)
 
static Dart_NativeFunction dart::PropagateError_native_lookup (Dart_Handle name, int argument_count, bool *auto_setup_scope)
 
 dart::TEST_CASE (DartAPI_PropagateCompileTimeError)
 
 dart::TEST_CASE (DartAPI_PropagateError)
 
 dart::TEST_CASE (DartAPI_Error)
 
 dart::TEST_CASE (DartAPI_Null)
 
 dart::TEST_CASE (DartAPI_EmptyString)
 
 dart::TEST_CASE (DartAPI_TypeDynamic)
 
 dart::TEST_CASE (DartAPI_TypeVoid)
 
 dart::TEST_CASE (DartAPI_TypeNever)
 
 dart::TEST_CASE (DartAPI_IdentityEquals)
 
 dart::TEST_CASE (DartAPI_ObjectEquals)
 
 dart::TEST_CASE (DartAPI_InstanceValues)
 
 dart::TEST_CASE (DartAPI_InstanceGetType)
 
 dart::TEST_CASE (DartAPI_FunctionName)
 
 dart::TEST_CASE (DartAPI_FunctionOwner)
 
 dart::TEST_CASE (DartAPI_IsTearOff)
 
 dart::TEST_CASE (DartAPI_FunctionIsStatic)
 
 dart::TEST_CASE (DartAPI_ClosureFunction)
 
 dart::TEST_CASE (DartAPI_GetStaticMethodClosure)
 
 dart::TEST_CASE (DartAPI_ClassLibrary)
 
 dart::TEST_CASE (DartAPI_BooleanValues)
 
 dart::TEST_CASE (DartAPI_BooleanConstants)
 
 dart::TEST_CASE (DartAPI_DoubleValues)
 
 dart::TEST_CASE (DartAPI_NumberValues)
 
 dart::TEST_CASE (DartAPI_IntegerValues)
 
 dart::TEST_CASE (DartAPI_IntegerToHexCString)
 
 dart::TEST_CASE (DartAPI_IntegerFitsIntoInt64)
 
 dart::TEST_CASE (DartAPI_IntegerFitsIntoUint64)
 
 dart::TEST_CASE (DartAPI_ArrayValues)
 
 dart::TEST_CASE (DartAPI_IsString)
 
 dart::TEST_CASE (DartAPI_NewString)
 
 dart::TEST_CASE (DartAPI_MalformedStringToUTF8)
 
 dart::TEST_CASE (DartAPI_CopyUTF8EncodingOfString)
 
 dart::TEST_CASE (DartAPI_ExternalTypedDataPretenure)
 
 dart::TEST_CASE (DartAPI_ListAccess)
 
 dart::TEST_CASE (DartAPI_MapAccess)
 
 dart::TEST_CASE (DartAPI_IsFuture)
 
 dart::TEST_CASE (DartAPI_TypedDataViewListGetAsBytes)
 
 dart::TEST_CASE (DartAPI_TypedDataViewListIsTypedData)
 
 dart::TEST_CASE (DartAPI_UnmodifiableTypedDataViewListIsTypedData)
 
 dart::TEST_CASE (DartAPI_TypedDataAccess)
 
 dart::TEST_CASE (DartAPI_ByteBufferAccess)
 
static void dart::ByteDataNativeFunction (Dart_NativeArguments args)
 
static Dart_NativeFunction dart::ByteDataNativeResolver (Dart_Handle name, int arg_count, bool *auto_setup_scope)
 
 dart::TEST_CASE (DartAPI_ByteDataAccess)
 
static void dart::ExternalByteDataNativeFunction (Dart_NativeArguments args)
 
static Dart_NativeFunction dart::ExternalByteDataNativeResolver (Dart_Handle name, int arg_count, bool *auto_setup_scope)
 
 dart::TEST_CASE (DartAPI_ExternalByteDataAccess)
 
void dart::ByteDataFinalizer (void *isolate_data, void *peer)
 
 dart::TEST_CASE (DartAPI_ExternalByteDataFinalizer)
 
static void dart::OptExternalByteDataNativeFunction (Dart_NativeArguments args)
 
static Dart_NativeFunction dart::OptExternalByteDataNativeResolver (Dart_Handle name, int arg_count, bool *auto_setup_scope)
 
 dart::TEST_CASE (DartAPI_OptimizedExternalByteDataAccess)
 
static void dart::TestTypedDataDirectAccess ()
 
 dart::TEST_CASE (DartAPI_TypedDataDirectAccessUnverified)
 
 dart::TEST_CASE (DartAPI_TypedDataDirectAccessVerified)
 
static void dart::TestDirectAccess (Dart_Handle lib, Dart_Handle array, Dart_TypedData_Type expected_type, bool is_external)
 
static void dart::TestTypedDataDirectAccess1 ()
 
 dart::TEST_CASE (DartAPI_TypedDataDirectAccess1Unverified)
 
 dart::TEST_CASE (DartAPI_TypedDataDirectAccess1Verified)
 
static void dart::TestTypedDataViewDirectAccess ()
 
 dart::TEST_CASE (DartAPI_TypedDataViewDirectAccessUnverified)
 
 dart::TEST_CASE (DartAPI_TypedDataViewDirectAccessVerified)
 
static void dart::TestUnmodifiableTypedDataViewDirectAccess ()
 
 dart::TEST_CASE (DartAPI_UnmodifiableTypedDataViewDirectAccessUnverified)
 
 dart::TEST_CASE (DartAPI_UnmodifiableTypedDataViewDirectAccessVerified)
 
static void dart::TestByteDataDirectAccess ()
 
 dart::TEST_CASE (DartAPI_ByteDataDirectAccessUnverified)
 
 dart::TEST_CASE (DartAPI_ByteDataDirectAccessVerified)
 
 dart::TEST_CASE (DartAPI_NewUnmodifiableExternalTypedDataWithFinalizer)
 
 dart::TEST_CASE (DartAPI_UnmodifiableTypedData_PassByReference)
 
static void dart::NopCallback (void *isolate_callback_data, void *peer)
 
 dart::TEST_CASE (DartAPI_ExternalAllocationDuringNoCallbackScope)
 
static void dart::ExternalTypedDataAccessTests (Dart_Handle obj, Dart_TypedData_Type expected_type, uint8_t data[], intptr_t data_length)
 
 dart::TEST_CASE (DartAPI_ExternalTypedDataAccess)
 
 dart::TEST_CASE (DartAPI_ExternalClampedTypedDataAccess)
 
 dart::TEST_CASE (DartAPI_ExternalUint8ClampedArrayAccess)
 
static void dart::UnreachedCallback (void *isolate_callback_data, void *peer)
 
static void dart::ExternalTypedDataFinalizer (void *isolate_callback_data, void *peer)
 
 dart::TEST_CASE (DartAPI_ExternalTypedDataCallback)
 
static void dart::SlowFinalizer (void *isolate_callback_data, void *peer)
 
 dart::TEST_CASE (DartAPI_SlowFinalizer)
 
static void dart::SlowWeakPersistentHandle (void *isolate_callback_data, void *peer)
 
 dart::TEST_CASE (DartAPI_SlowWeakPersistentHandle)
 
static void dart::CheckFloat32x4Data (Dart_Handle obj)
 
 dart::TEST_CASE (DartAPI_Float32x4List)
 
 dart::VM_UNIT_TEST_CASE (DartAPI_EnterExitScope)
 
 dart::VM_UNIT_TEST_CASE (DartAPI_PersistentHandles)
 
 dart::VM_UNIT_TEST_CASE (DartAPI_NewPersistentHandle_FromPersistentHandle)
 
 dart::VM_UNIT_TEST_CASE (DartAPI_AssignToPersistentHandle)
 
static Dart_Handle dart::AllocateNewString (const char *c_str)
 
static Dart_Handle dart::AllocateOldString (const char *c_str)
 
static Dart_Handle dart::AsHandle (Dart_PersistentHandle weak)
 
static Dart_Handle dart::AsHandle (Dart_WeakPersistentHandle weak)
 
 dart::TEST_CASE (DartAPI_WeakPersistentHandle)
 
static void dart::FinalizableHandleCallback (void *isolate_callback_data, void *peer)
 
 dart::TEST_CASE (DartAPI_FinalizableHandle)
 
 dart::TEST_CASE (DartAPI_WeakPersistentHandleErrors)
 
 dart::TEST_CASE (DartAPI_FinalizableHandleErrors)
 
static void dart::WeakPersistentHandlePeerCleanupEnsuresIGFinalizer (void *isolate_callback_data, void *peer)
 
 dart::TEST_CASE (DartAPI_WeakPersistentHandleCleanupFinalizerAtShutdown)
 
static void dart::WeakPersistentHandlePeerCleanupFinalizer (void *isolate_callback_data, void *peer)
 
 dart::TEST_CASE (DartAPI_WeakPersistentHandleCleanupFinalizer)
 
static void dart::FinalizableHandlePeerCleanupFinalizer (void *isolate_callback_data, void *peer)
 
 dart::TEST_CASE (DartAPI_FinalizableHandleCleanupFinalizer)
 
static void dart::WeakPersistentHandlePeerFinalizer (void *isolate_callback_data, void *peer)
 
 dart::TEST_CASE (DartAPI_WeakPersistentHandleCallback)
 
static void dart::FinalizableHandlePeerFinalizer (void *isolate_callback_data, void *peer)
 
 dart::TEST_CASE (DartAPI_FinalizableHandleCallback)
 
 dart::TEST_CASE (DartAPI_WeakPersistentHandleNoCallback)
 
 dart::TEST_CASE (DartAPI_FinalizableHandleNoCallback)
 
static void dart::DeleteWeakHandleOnFinalization (void *isolate_callback_data, void *peer)
 
static void dart::DontDeleteWeakHandleOnFinalization (void *isolate_callback_data, void *peer)
 
 dart::TEST_CASE (DartAPI_WeakPersistentHandleCallbackSelfDelete)
 
 dart::VM_UNIT_TEST_CASE (DartAPI_WeakPersistentHandlesCallbackShutdown)
 
 dart::VM_UNIT_TEST_CASE (DartAPI_FinalizableHandlesCallbackShutdown)
 
 dart::TEST_CASE (DartAPI_WeakPersistentHandleExternalAllocationSize)
 
 dart::TEST_CASE (DartAPI_FinalizableHandleExternalAllocationSize)
 
 dart::TEST_CASE (DartAPI_WeakPersistentHandleExternalAllocationSizeNewspaceGC)
 
 dart::TEST_CASE (DartAPI_FinalizableHandleExternalAllocationSizeNewspaceGC)
 
 dart::TEST_CASE (DartAPI_WeakPersistentHandleExternalAllocationSizeOldspaceGC)
 
 dart::TEST_CASE (DartAPI_FinalizableHandleExternalAllocationSizeOldspaceGC)
 
 dart::TEST_CASE (DartAPI_WeakPersistentHandleExternalAllocationSizeOddReferents)
 
 dart::TEST_CASE (DartAPI_FinalizableHandleExternalAllocationSizeOddReferents)
 
void FUNCTION_NAME() dart::SecretKeeper_KeepSecret (Dart_NativeArguments native_args)
 
static Dart_NativeFunction dart::SecretKeeperNativeResolver (Dart_Handle name, int argument_count, bool *auto_setup_scope)
 
static intptr_t dart::ReturnPtrAsInt (void *ptr)
 
static void * dart::SecretKeeperFfiNativeResolver (const char *name, uintptr_t argn)
 
 dart::TEST_CASE (DartAPI_NativeFieldAccess)
 
 dart::TEST_CASE (DartAPI_NativeFieldAccess_Throws)
 
static void dart::ImplicitReferencesCallback (void *isolate_callback_data, void *peer)
 
 dart::TEST_CASE (DartAPI_ImplicitReferencesOldSpace)
 
 dart::TEST_CASE (DartAPI_ImplicitReferencesNewSpace)
 
 dart::VM_UNIT_TEST_CASE (DartAPI_LocalHandles)
 
 dart::VM_UNIT_TEST_CASE (DartAPI_LocalZoneMemory)
 
 dart::VM_UNIT_TEST_CASE (DartAPI_Isolates)
 
 dart::VM_UNIT_TEST_CASE (DartAPI_IsolateGroups)
 
 dart::VM_UNIT_TEST_CASE (DartAPI_CurrentIsolateData)
 
static Dart_Handle dart::LoadScript (const char *url_str, const char *source)
 
 dart::TEST_CASE (DartAPI_DebugName)
 
 dart::TEST_CASE (DartAPI_IsolateServiceID)
 
static void dart::MyMessageNotifyCallback (Dart_Isolate dest_isolate)
 
 dart::VM_UNIT_TEST_CASE (DartAPI_SetMessageCallbacks)
 
 dart::TEST_CASE (DartAPI_SetStickyError)
 
 dart::TEST_CASE (DartAPI_TypeGetNonParametricTypes)
 
 dart::TEST_CASE (DartAPI_TypeGetParameterizedTypes)
 
static void dart::TestFieldOk (Dart_Handle container, Dart_Handle name, bool final, const char *initial_value)
 
static void dart::TestFieldNotFound (Dart_Handle container, Dart_Handle name)
 
 dart::TEST_CASE (DartAPI_FieldAccess)
 
 dart::TEST_CASE (DartAPI_SetField_FunnyValue)
 
 dart::TEST_CASE (DartAPI_SetField_BadType)
 
void dart::NativeFieldLookup (Dart_NativeArguments args)
 
static Dart_NativeFunction dart::native_field_lookup (Dart_Handle name, int argument_count, bool *auto_setup_scope)
 
 dart::TEST_CASE (DartAPI_InjectNativeFields2)
 
 dart::TEST_CASE (DartAPI_InjectNativeFields3)
 
 dart::TEST_CASE (DartAPI_InjectNativeFields4)
 
void dart::TestNativeFieldsAccess_init (Dart_NativeArguments args)
 
void dart::TestNativeFieldsAccess_access (Dart_NativeArguments args)
 
void dart::TestNativeFieldsAccess_invalidAccess (Dart_NativeArguments args)
 
static Dart_NativeFunction dart::TestNativeFieldsAccess_lookup (Dart_Handle name, int argument_count, bool *auto_scope)
 
 dart::TEST_CASE (DartAPI_TestNativeFieldsAccess)
 
 dart::TEST_CASE (DartAPI_InjectNativeFieldsSuperClass)
 
static void dart::TestNativeFields (Dart_Handle retobj)
 
 dart::TEST_CASE (DartAPI_ImplicitNativeFieldAccess)
 
 dart::TEST_CASE (DartAPI_NegativeNativeFieldAccess)
 
 dart::TEST_CASE (DartAPI_GetStaticField_RunsInitializer)
 
 dart::TEST_CASE (DartAPI_GetField_CheckIsolate)
 
 dart::TEST_CASE (DartAPI_SetField_CheckIsolate)
 
 dart::TEST_CASE (DartAPI_New)
 
 dart::TEST_CASE (DartAPI_New_Issue42939)
 
 dart::TEST_CASE (DartAPI_New_Issue44205)
 
 dart::TEST_CASE (DartAPI_InvokeConstructor_Issue44205)
 
 dart::TEST_CASE (DartAPI_InvokeClosure_Issue44205)
 
 dart::TEST_CASE (DartAPI_NewListOfType)
 
 dart::TEST_CASE (DartAPI_NewListOfTypeFilled)
 
static Dart_Handle dart::PrivateLibName (Dart_Handle lib, const char *str)
 
 dart::TEST_CASE (DartAPI_Invoke)
 
 dart::TEST_CASE (DartAPI_Invoke_PrivateStatic)
 
 dart::TEST_CASE (DartAPI_Invoke_FunnyArgs)
 
 dart::TEST_CASE (DartAPI_Invoke_BadArgs)
 
 dart::TEST_CASE (DartAPI_Invoke_Null)
 
 dart::TEST_CASE (DartAPI_InvokeNoSuchMethod)
 
 dart::TEST_CASE (DartAPI_InvokeClosure)
 
void dart::ExceptionNative (Dart_NativeArguments args)
 
static Dart_NativeFunction dart::native_lookup (Dart_Handle name, int argument_count, bool *auto_setup_scope)
 
 dart::TEST_CASE (DartAPI_ThrowException)
 
static void dart::NativeArgumentCreate (Dart_NativeArguments args)
 
static void dart::NativeArgumentAccess (Dart_NativeArguments args)
 
static Dart_NativeFunction dart::native_args_lookup (Dart_Handle name, int argument_count, bool *auto_scope_setup)
 
 dart::TEST_CASE (DartAPI_GetNativeArguments)
 
static void dart::NativeArgumentCounter (Dart_NativeArguments args)
 
static Dart_NativeFunction dart::gnac_lookup (Dart_Handle name, int argument_count, bool *auto_setup_scope)
 
 dart::TEST_CASE (DartAPI_GetNativeArgumentCount)
 
 dart::TEST_CASE (DartAPI_TypeToNullability)
 
 dart::TEST_CASE (DartAPI_GetNullableType)
 
 dart::TEST_CASE (DartAPI_GetNonNullableType)
 
 dart::TEST_CASE (DartAPI_InstanceOf)
 
 dart::TEST_CASE (DartAPI_RootLibrary)
 
 dart::TEST_CASE (DartAPI_LookupLibrary)
 
 dart::TEST_CASE (DartAPI_LibraryUrl)
 
static void dart::MyNativeFunction1 (Dart_NativeArguments args)
 
static void dart::MyNativeFunction2 (Dart_NativeArguments args)
 
static Dart_NativeFunction dart::MyNativeResolver1 (Dart_Handle name, int arg_count, bool *auto_setup_scope)
 
static Dart_NativeFunction dart::MyNativeResolver2 (Dart_Handle name, int arg_count, bool *auto_setup_scope)
 
 dart::TEST_CASE (DartAPI_SetNativeResolver)
 
 dart::TEST_CASE (DartAPI_ImportLibrary2)
 
 dart::TEST_CASE (DartAPI_ImportLibrary3)
 
 dart::TEST_CASE (DartAPI_ImportLibrary4)
 
 dart::TEST_CASE (DartAPI_ImportLibrary5)
 
 dart::TEST_CASE (DartAPI_Multiroot_Valid)
 
 dart::TEST_CASE (DartAPI_Multiroot_FailWhenUriIsWrong)
 
static void dart::NewNativePort_send123 (Dart_Port dest_port_id, Dart_CObject *message)
 
static void dart::NewNativePort_send321 (Dart_Port dest_port_id, Dart_CObject *message)
 
 dart::TEST_CASE (DartAPI_IllegalNewSendPort)
 
 dart::TEST_CASE (DartAPI_IllegalPost)
 
static void dart::UnreachableFinalizer (void *isolate_callback_data, void *peer)
 
 dart::TEST_CASE (DartAPI_PostCObject_DoesNotRunFinalizerOnFailure)
 
 dart::VM_UNIT_TEST_CASE (DartAPI_NewNativePort)
 
static void dart::NewNativePort_sendInteger123 (Dart_Port dest_port_id, Dart_CObject *message)
 
static void dart::NewNativePort_sendInteger321 (Dart_Port dest_port_id, Dart_CObject *message)
 
 dart::TEST_CASE (DartAPI_NativePortPostInteger)
 
static void dart::NewNativePort_Transferrable1 (Dart_Port dest_port_id, Dart_CObject *message)
 
static void dart::NewNativePort_Transferrable2 (Dart_Port dest_port_id, Dart_CObject *message)
 
 dart::TEST_CASE (DartAPI_NativePortPostTransferrableTypedData)
 
static void dart::NewNativePort_ExternalTypedData (Dart_Port dest_port_id, Dart_CObject *message)
 
static void dart::FinalizeTypedData (void *isolate_callback_data, void *peer)
 
 dart::TEST_CASE (DartAPI_NativePortPostExternalTypedData)
 
static void dart::UnreachableMessageHandler (Dart_Port dest_port_id, Dart_CObject *message)
 
 dart::TEST_CASE (DartAPI_NativePortPostUserClass)
 
static void dart::NewNativePort_nativeReceiveNull (Dart_Port dest_port_id, Dart_CObject *message)
 
 dart::TEST_CASE (DartAPI_NativePortReceiveNull)
 
static void dart::NewNativePort_nativeReceiveInteger (Dart_Port dest_port_id, Dart_CObject *message)
 
 dart::TEST_CASE (DartAPI_NativePortReceiveInteger)
 
static Dart_Isolate dart::RunLoopTestCallback (const char *script_name, const char *main, const char *package_root, const char *package_config, Dart_IsolateFlags *flags, void *data, char **error)
 
static void dart::RunLoopTest (bool throw_exception)
 
 dart::VM_UNIT_TEST_CASE (DartAPI_RunLoop_Success)
 
 dart::VM_UNIT_TEST_CASE (DartAPI_RunLoop_Exception)
 
static void dart::IsolateShutdownTestCallback (void *group_data, void *isolate_data)
 
static void dart::IsolateCleanupTestCallback (void *group_data, void *isolate_data)
 
static void dart::IsolateGroupCleanupTestCallback (void *callback_data)
 
 dart::VM_UNIT_TEST_CASE (DartAPI_IsolateShutdownAndCleanup)
 
static void dart::IsolateShutdownRunDartCodeTestCallback (void *isolate_group_data, void *isolate_data)
 
 dart::VM_UNIT_TEST_CASE (DartAPI_IsolateShutdownRunDartCode)
 
static int64_t dart::GetValue (Dart_Handle arg)
 
static void dart::NativeFoo1 (Dart_NativeArguments args)
 
static void dart::NativeFoo2 (Dart_NativeArguments args)
 
static void dart::NativeFoo3 (Dart_NativeArguments args)
 
static void dart::NativeFoo4 (Dart_NativeArguments args)
 
static Dart_NativeFunction dart::MyNativeClosureResolver (Dart_Handle name, int arg_count, bool *auto_setup_scope)
 
 dart::TEST_CASE (DartAPI_NativeFunctionClosure)
 
static void dart::StaticNativeFoo1 (Dart_NativeArguments args)
 
static void dart::StaticNativeFoo2 (Dart_NativeArguments args)
 
static void dart::StaticNativeFoo3 (Dart_NativeArguments args)
 
static void dart::StaticNativeFoo4 (Dart_NativeArguments args)
 
static Dart_NativeFunction dart::MyStaticNativeClosureResolver (Dart_Handle name, int arg_count, bool *auto_setup_scope)
 
 dart::TEST_CASE (DartAPI_NativeStaticFunctionClosure)
 
 dart::TEST_CASE (DartAPI_RangeLimits)
 
 dart::TEST_CASE (DartAPI_NewString_Null)
 
 dart::TEST_CASE (DartAPI_InvalidGetSetPeer)
 
 dart::TEST_CASE (DartAPI_OneNewSpacePeer)
 
 dart::TEST_CASE (DartAPI_CollectOneNewSpacePeer)
 
 dart::TEST_CASE (DartAPI_TwoNewSpacePeers)
 
 dart::TEST_CASE (DartAPI_CollectTwoNewSpacePeers)
 
 dart::TEST_CASE (DartAPI_CopyNewSpacePeers)
 
 dart::TEST_CASE (DartAPI_OnePromotedPeer)
 
 dart::TEST_CASE (DartAPI_OneOldSpacePeer)
 
 dart::TEST_CASE (DartAPI_CollectOneOldSpacePeer)
 
 dart::TEST_CASE (DartAPI_TwoOldSpacePeers)
 
 dart::TEST_CASE (DartAPI_CollectTwoOldSpacePeers)
 
 dart::TEST_CASE (DartAPI_StringFromExternalTypedData)
 
 dart::TEST_CASE (DartAPI_TimelineDuration)
 
 dart::TEST_CASE (DartAPI_TimelineBegin)
 
 dart::TEST_CASE (DartAPI_TimelineEnd)
 
 dart::TEST_CASE (DartAPI_TimelineInstant)
 
 dart::TEST_CASE (DartAPI_TimelineAsyncDisabled)
 
 dart::TEST_CASE (DartAPI_TimelineAsync)
 
 dart::TEST_CASE (DartAPI_TimelineClock)
 
 dart::TEST_CASE (DartAPI_TimelineCategories)
 
static void dart::NotifyIdleShortNative (Dart_NativeArguments args)
 
static Dart_NativeFunction dart::NotifyIdleShort_native_lookup (Dart_Handle name, int argument_count, bool *auto_setup_scope)
 
 dart::TEST_CASE (DartAPI_NotifyIdleShort)
 
static void dart::NotifyIdleLongNative (Dart_NativeArguments args)
 
static Dart_NativeFunction dart::NotifyIdleLong_native_lookup (Dart_Handle name, int argument_count, bool *auto_setup_scope)
 
 dart::TEST_CASE (DartAPI_NotifyIdleLong)
 
static void dart::NotifyDestroyedNative (Dart_NativeArguments args)
 
static Dart_NativeFunction dart::NotifyDestroyed_native_lookup (Dart_Handle name, int argument_count, bool *auto_setup_scope)
 
 dart::TEST_CASE (DartAPI_NotifyDestroyed)
 
static void dart::SetPerformanceModeDefault (Dart_NativeArguments args)
 
static void dart::SetPerformanceModeLatency (Dart_NativeArguments args)
 
static Dart_NativeFunction dart::SetMode_native_lookup (Dart_Handle name, int argument_count, bool *auto_setup_scope)
 
 dart::TEST_CASE (DartAPI_SetPerformanceMode)
 
static void dart::NotifyLowMemoryNative (Dart_NativeArguments args)
 
static Dart_NativeFunction dart::NotifyLowMemory_native_lookup (Dart_Handle name, int argument_count, bool *auto_setup_scope)
 
 dart::TEST_CASE (DartAPI_NotifyLowMemory)
 
 dart::TEST_CASE (DartAPI_InvokeImportedFunction)
 
 dart::TEST_CASE (DartAPI_InvokeVMServiceMethod)
 
static void dart::InvokeServiceMessages (uword param)
 
 dart::TEST_CASE (DartAPI_InvokeVMServiceMethod_Loop)
 
static void dart::HandleResponse (Dart_Port dest_port_id, Dart_CObject *message)
 
static void dart::CreateNativePorts (uword param)
 
 dart::TEST_CASE (DartAPI_NativePort_Loop)
 
static void dart::ReportTimelineEvents ()
 
 dart::TEST_CASE (DartAPI_TimelineEvents_Serialization)
 
static void dart::CreateTimelineEvents (uword param)
 
 dart::UNIT_TEST_CASE (DartAPI_TimelineEvents_Loop)
 
 dart::UNIT_TEST_CASE (DartAPI_TimelineEvents_NullFlowIdsHandledGracefully)
 
static intptr_t dart::EchoInt (double x)
 
static void * dart::FfiNativeResolver (const char *name, uintptr_t args_n)
 
 dart::TEST_CASE (Dart_SetFfiNativeResolver)
 
 dart::TEST_CASE (Dart_SetFfiNativeResolver_MissingResolver)
 
static void * dart::NopResolver (const char *name, uintptr_t args_n)
 
 dart::TEST_CASE (Dart_SetFfiNativeResolver_DoesNotResolve)
 
 dart::TEST_CASE (DartAPI_UserTags)
 
static void * dart::HeapSamplingCreate (Dart_Isolate isolate, Dart_IsolateGroup isolate_group, const char *cls_name, intptr_t heap_size)
 
static void dart::HeapSamplingDelete (void *data)
 
void dart::HeapSamplingReport (void *context, void *data)
 
void dart::ResetHeapSamplingState (const char *expected_cls=nullptr)
 
void dart::HandleInterrupts (Thread *thread)
 
void dart::InitHeapSampling (Thread *thread, const char *expected_cls)
 
 dart::TEST_CASE (DartAPI_HeapSampling_UserDefinedClass)
 
 dart::TEST_CASE (DartAPI_HeapSampling_APIAllocations)
 
 dart::TEST_CASE (DartAPI_HeapSampling_NonTrivialSamplingPeriod)
 
 dart::VM_UNIT_TEST_CASE (DartAPI_HeapSampling_CorrectSamplingIntervalForOldSpaceAllocations)
 

Variables

static bool dart::use_set_return = false
 
static bool dart::use_throw_exception = false
 
static int dart::kLength = 16
 
static constexpr intptr_t dart::kExtLength = 16
 
static int8_t dart::data [kExtLength]
 
static bool dart::byte_data_finalizer_run = false
 
static constexpr intptr_t dart::kOptExtLength = 16
 
static int8_t dart::opt_data [kOptExtLength]
 
static Dart_FinalizableHandle dart::finalizable_new_ref = nullptr
 
static void * dart::finalizable_new_ref_peer = 0
 
static Dart_FinalizableHandle dart::finalizable_old_ref = nullptr
 
static void * dart::finalizable_old_ref_peer = 0
 
static Dart_PersistentHandle dart::persistent_handle1
 
static Dart_WeakPersistentHandle dart::weak_persistent_handle2
 
static Dart_WeakPersistentHandle dart::weak_persistent_handle3
 
static Dart_FinalizableHandle dart::finalizable_handle3
 
Dart_WeakPersistentHandle dart::delete_on_finalization
 
static Dart_WeakPersistentHandle dart::weak1 = nullptr
 
static Dart_WeakPersistentHandle dart::weak2 = nullptr
 
static Dart_WeakPersistentHandle dart::weak3 = nullptr
 
static constexpr int dart::kTestNumNativeFields = 2
 
static constexpr intptr_t dart::kNativeField1Value = 30
 
static constexpr intptr_t dart::kNativeField2Value = 40
 
static intptr_t dart::kNativeArgumentNativeField1Value = 30
 
static intptr_t dart::kNativeArgumentNativeField2Value = 40
 
static constexpr intptr_t dart::kSendLength = 16
 
static void * dart::shutdown_isolate_group_data
 
static void * dart::shutdown_isolate_data
 
static void * dart::cleanup_isolate_group_data
 
static void * dart::cleanup_isolate_data
 
static void * dart::cleanup_group_callback_data
 
static int64_t dart::add_result = 0
 
static Monitor * dart::loop_test_lock = new Monitor()
 
static bool dart::loop_test_exit = false
 
static bool dart::loop_reset_count = false
 
static void * dart::last_allocation_context = nullptr
 
static const char * dart::last_allocation_cls = nullptr
 
static intptr_t dart::heap_samples = 0
 
static const char * dart::expected_allocation_cls = nullptr
 
static bool dart::found_allocation = false
 

Macro Definition Documentation

◆ TIMELINE_STREAM_CHECK

#define TIMELINE_STREAM_CHECK (   name,
  ... 
)    EXPECT_SUBSTRING(#name, js_str);