Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | Static Public Member Functions | List of all members
dart::TestCase Class Reference

#include <unit_test.h>

Inheritance diagram for dart::TestCase:
dart::TestCaseBase

Public Types

typedef void() RunEntry()
 

Public Member Functions

 TestCase (RunEntry *run, const char *name, const char *expectation)
 
virtual void Run ()
 

Static Public Member Functions

static char * CompileTestScriptWithDFE (const char *url, const char *source, const uint8_t **kernel_buffer, intptr_t *kernel_buffer_size, bool incrementally=true, bool allow_compile_errors=false, const char *multiroot_filepaths=nullptr, const char *multiroot_scheme=nullptr)
 
static char * CompileTestScriptWithDFE (const char *url, int sourcefiles_count, Dart_SourceFile sourcefiles[], const uint8_t **kernel_buffer, intptr_t *kernel_buffer_size, bool incrementally=true, bool allow_compile_errors=false, const char *multiroot_filepaths=nullptr, const char *multiroot_scheme=nullptr)
 
static Dart_Handle LoadTestScript (const char *script, Dart_NativeEntryResolver resolver, const char *lib_uri=RESOLVED_USER_TEST_URI, bool finalize=true, bool allow_compile_errors=false)
 
static Dart_Handle LoadTestScriptWithErrors (const char *script, Dart_NativeEntryResolver resolver=nullptr, const char *lib_uri=RESOLVED_USER_TEST_URI, bool finalize=true)
 
static Dart_Handle LoadTestLibrary (const char *lib_uri, const char *script, Dart_NativeEntryResolver resolver=nullptr)
 
static Dart_Handle LoadTestScriptWithDFE (int sourcefiles_count, Dart_SourceFile sourcefiles[], Dart_NativeEntryResolver resolver=nullptr, bool finalize=true, bool incrementally=true, bool allow_compile_errors=false, const char *entry_script_uri=nullptr, const char *multiroot_filepaths=nullptr, const char *multiroot_scheme=nullptr)
 
static Dart_Handle LoadCoreTestScript (const char *script, Dart_NativeEntryResolver resolver)
 
static Dart_Handle EvaluateExpression (const Library &lib, const String &expr, const Array &param_names, const Array &param_values)
 
static Dart_Handle lib ()
 
static const char * url ()
 
static Dart_Isolate CreateTestIsolateFromSnapshot (uint8_t *buffer, const char *name=nullptr)
 
static Dart_Isolate CreateTestIsolate (const char *name=nullptr, void *isolate_group_data=nullptr, void *isolate_data=nullptr)
 
static Dart_Isolate CreateTestIsolateInGroup (const char *name, Dart_Isolate parent, void *group_data=nullptr, void *isolate_data=nullptr)
 
static Dart_Handle library_handler (Dart_LibraryTag tag, Dart_Handle library, Dart_Handle url)
 
static Dart_Handle SetReloadTestScript (const char *script)
 
static Dart_Handle TriggerReload (const uint8_t *kernel_buffer, intptr_t kernel_buffer_size)
 
static Dart_Handle TriggerReload (const char *root_script_url)
 
static Dart_Handle ReloadTestScript (const char *script)
 
static Dart_Handle ReloadTestKernel (const uint8_t *kernel_buffer, intptr_t kernel_buffer_size)
 
static void AddTestLib (const char *url, const char *source)
 
static const char * GetTestLib (const char *url)
 

Detailed Description

Definition at line 320 of file unit_test.h.

Member Typedef Documentation

◆ RunEntry

typedef void() dart::TestCase::RunEntry()

Definition at line 322 of file unit_test.h.

Constructor & Destructor Documentation

◆ TestCase()

dart::TestCase::TestCase ( RunEntry run,
const char *  name,
const char *  expectation 
)
inline

Definition at line 324 of file unit_test.h.

325 : TestCaseBase(name, expectation), run_(run) {}
const char * expectation() const
Definition: unit_test.h:291
const char * name() const
Definition: unit_test.h:290
TestCaseBase(const char *name, const char *expectation)
Definition: unit_test.cc:59
Definition: run.py:1

Member Function Documentation

◆ AddTestLib()

void TestCase::AddTestLib ( const char *  url,
const char *  source 
)
static

Definition at line 189 of file unit_test.cc.

189 {
190 if (test_libs_ == nullptr) {
191 test_libs_ = new MallocGrowableArray<TestLibEntry>();
192 }
193 // If the test lib is already added, replace the source.
194 for (intptr_t i = 0; i < test_libs_->length(); i++) {
195 if (strcmp(url, (*test_libs_)[i].url) == 0) {
196 (*test_libs_)[i].source = source;
197 return;
198 }
199 }
200 TestLibEntry entry;
201 entry.url = url;
202 entry.source = source;
203 test_libs_->Add(entry);
204}
static const char * url()
Definition: unit_test.cc:185
SkBitmap source
Definition: examples.cpp:28
static MallocGrowableArray< TestLibEntry > * test_libs_
Definition: unit_test.cc:183

◆ CompileTestScriptWithDFE() [1/2]

char * TestCase::CompileTestScriptWithDFE ( const char *  url,
const char *  source,
const uint8_t **  kernel_buffer,
intptr_t *  kernel_buffer_size,
bool  incrementally = true,
bool  allow_compile_errors = false,
const char *  multiroot_filepaths = nullptr,
const char *  multiroot_scheme = nullptr 
)
static

Definition at line 297 of file unit_test.cc.

304 {
305 // clang-format off
306 Dart_SourceFile sourcefiles[] = {
307 {
308 url, source,
309 },
310 {
311 "file:///.packages", ""
312 }};
313 // clang-format on
315 url, sizeof(sourcefiles) / sizeof(Dart_SourceFile), sourcefiles,
316 kernel_buffer, kernel_buffer_size, incrementally, allow_compile_errors,
317 multiroot_filepaths, multiroot_scheme);
318}
static char * CompileTestScriptWithDFE(const char *url, const char *source, const uint8_t **kernel_buffer, intptr_t *kernel_buffer_size, bool incrementally=true, bool allow_compile_errors=false, const char *multiroot_filepaths=nullptr, const char *multiroot_scheme=nullptr)
Definition: unit_test.cc:297

◆ CompileTestScriptWithDFE() [2/2]

char * TestCase::CompileTestScriptWithDFE ( const char *  url,
int  sourcefiles_count,
Dart_SourceFile  sourcefiles[],
const uint8_t **  kernel_buffer,
intptr_t *  kernel_buffer_size,
bool  incrementally = true,
bool  allow_compile_errors = false,
const char *  multiroot_filepaths = nullptr,
const char *  multiroot_scheme = nullptr 
)
static

Definition at line 320 of file unit_test.cc.

328 {
329 Zone* zone = Thread::Current()->zone();
332 sourcefiles, incrementally, /*for_snapshot=*/false,
333 /*embed_sources=*/true, nullptr, multiroot_filepaths, multiroot_scheme);
337 FATAL(
338 "An error occurred in the CFE while accepting the most recent"
339 " compilation results.");
340 }
341 }
342 return ValidateCompilationResult(zone, result, kernel_buffer,
343 kernel_buffer_size, allow_compile_errors);
344}
static Dart_KernelCompilationResult CompileToKernel(const char *script_uri, const uint8_t *platform_kernel, intptr_t platform_kernel_size, int source_files_count=0, Dart_SourceFile source_files[]=nullptr, bool incremental_compile=true, bool for_snapshot=false, bool embed_sources=true, const char *package_config=nullptr, const char *multiroot_filepaths=nullptr, const char *multiroot_scheme=nullptr, Dart_KernelCompilationVerbosityLevel verbosity=Dart_KernelCompilationVerbosityLevel_All)
static Dart_KernelCompilationResult AcceptCompilation()
Zone * zone() const
Definition: thread_state.h:37
static Thread * Current()
Definition: thread.h:362
@ Dart_KernelCompilationStatus_Ok
Definition: dart_api.h:3785
#define FATAL(error)
GAsyncResult * result
const uint8_t * platform_strong_dill
Definition: unit_test.cc:40
const intptr_t platform_strong_dill_size
Definition: unit_test.cc:41

◆ CreateTestIsolate()

Dart_Isolate TestCase::CreateTestIsolate ( const char *  name = nullptr,
void *  isolate_group_data = nullptr,
void *  isolate_data = nullptr 
)
static

Definition at line 140 of file unit_test.cc.

142 {
143 return CreateIsolate(bin::core_isolate_snapshot_data,
144 0 /* Snapshots have length encoded within them. */,
146 group_data, isolate_data);
147}
const uint8_t * core_isolate_snapshot_data
Definition: main_impl.cc:54
const uint8_t * core_isolate_snapshot_instructions
Definition: main_impl.cc:55

◆ CreateTestIsolateFromSnapshot()

static Dart_Isolate dart::TestCase::CreateTestIsolateFromSnapshot ( uint8_t *  buffer,
const char *  name = nullptr 
)
inlinestatic

Definition at line 381 of file unit_test.h.

383 {
384 return CreateIsolate(buffer, 0, nullptr, name);
385 }
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
Definition: switches.h:126

◆ CreateTestIsolateInGroup()

Dart_Isolate TestCase::CreateTestIsolateInGroup ( const char *  name,
Dart_Isolate  parent,
void *  group_data = nullptr,
void *  isolate_data = nullptr 
)
static

Definition at line 163 of file unit_test.cc.

166 {
167 char* error;
169 reinterpret_cast<Isolate*>(parent)->group(), name, &error);
170 if (error != nullptr) {
171 OS::PrintErr("CreateTestIsolateInGroup failed: %s\n", error);
172 free(error);
173 }
174 EXPECT(result != nullptr);
175 return Api::CastIsolate(result);
176}
#define EXPECT(type, expectedAlignment, expectedSize)
static Dart_Isolate CastIsolate(Isolate *isolate)
static void static void PrintErr(const char *format,...) PRINTF_ATTRIBUTE(1
const uint8_t uint32_t uint32_t GError ** error
Isolate * CreateWithinExistingIsolateGroup(IsolateGroup *group, const char *name, char **error)

◆ EvaluateExpression()

Dart_Handle TestCase::EvaluateExpression ( const Library lib,
const String expr,
const Array param_names,
const Array param_values 
)
static

Definition at line 660 of file unit_test.cc.

663 {
664 Thread* thread = Thread::Current();
665
666 Object& val = Object::Handle();
668 UNREACHABLE();
669 } else {
670 Dart_KernelCompilationResult compilation_result =
672 /* platform_kernel= */ nullptr, /* platform_kernel_size= */ 0,
673 expr.ToCString(), param_names, Array::empty_array(),
674 Array::empty_array(), Array::empty_array(), Array::empty_array(),
676 /* klass= */ nullptr,
677 /* method= */ nullptr,
678 /* token_pos= */ TokenPosition::kNoSource,
679 /* script_uri= */ String::Handle(lib.url()).ToCString(),
680 /* is_static= */ true);
681 if (compilation_result.status != Dart_KernelCompilationStatus_Ok) {
682 return Api::NewError("%s", compilation_result.error);
683 }
684
685 const ExternalTypedData& kernel_buffer =
687 const_cast<uint8_t*>(compilation_result.kernel),
688 compilation_result.kernel_size));
689
690 val = lib.EvaluateCompiledExpression(kernel_buffer, Array::empty_array(),
691 param_values,
692 TypeArguments::null_type_arguments());
693 }
694 return Api::NewHandle(thread, val.ptr());
695}
#define UNREACHABLE()
Definition: assert.h:248
static Dart_Handle NewHandle(Thread *thread, ObjectPtr raw)
static Dart_Handle NewError(const char *format,...) PRINTF_ATTRIBUTE(1
static ExternalTypedDataPtr NewFinalizeWithFree(uint8_t *data, intptr_t len)
Definition: object.cc:25649
static bool IsRunning()
static Dart_KernelCompilationResult CompileExpressionToKernel(const uint8_t *platform_kernel, intptr_t platform_kernel_size, const char *expression, const Array &definitions, const Array &definition_types, const Array &type_definitions, const Array &type_bounds, const Array &type_defaults, const char *library_url, const char *klass, const char *method, TokenPosition token_pos, char const *script_uri, bool is_static)
virtual const char * ToCString() const
Definition: object.h:366
static Object & Handle()
Definition: object.h:407
static Dart_Handle lib()
Definition: unit_test.cc:643
Dart_KernelCompilationStatus status
Definition: dart_api.h:3792

◆ GetTestLib()

const char * TestCase::GetTestLib ( const char *  url)
static

Definition at line 206 of file unit_test.cc.

206 {
207 if (test_libs_ == nullptr) {
208 return nullptr;
209 }
210 for (intptr_t i = 0; i < test_libs_->length(); i++) {
211 if (strcmp(url, (*test_libs_)[i].url) == 0) {
212 return (*test_libs_)[i].source;
213 }
214 }
215 return nullptr;
216}

◆ lib()

Dart_Handle TestCase::lib ( )
static

Definition at line 643 of file unit_test.cc.

643 {
648 return lib;
649}
struct _Dart_Handle * Dart_Handle
Definition: dart_api.h:258
#define ASSERT(E)
DART_EXPORT bool Dart_IsLibrary(Dart_Handle object)
Dart_Handle NewString(const char *str)
DART_EXPORT Dart_Handle Dart_LookupLibrary(Dart_Handle url)
#define EXPECT_VALID(handle)
Definition: unit_test.h:643

◆ library_handler()

Dart_Handle TestCase::library_handler ( Dart_LibraryTag  tag,
Dart_Handle  library,
Dart_Handle  url 
)
static

Definition at line 651 of file unit_test.cc.

653 {
654 if (tag == Dart_kCanonicalizeUrl) {
655 return url;
656 }
657 return Api::Success();
658}
static Dart_Handle Success()
@ Dart_kCanonicalizeUrl
Definition: dart_api.h:3420

◆ LoadCoreTestScript()

Dart_Handle TestCase::LoadCoreTestScript ( const char *  script,
Dart_NativeEntryResolver  resolver 
)
static

Definition at line 638 of file unit_test.cc.

639 {
640 return LoadTestScript(script, resolver, CORELIB_TEST_URI);
641}
static Dart_Handle LoadTestScript(const char *script, Dart_NativeEntryResolver resolver, const char *lib_uri=RESOLVED_USER_TEST_URI, bool finalize=true, bool allow_compile_errors=false)
Definition: unit_test.cc:436
#define CORELIB_TEST_URI
Definition: unit_test.h:318

◆ LoadTestLibrary()

Dart_Handle TestCase::LoadTestLibrary ( const char *  lib_uri,
const char *  script,
Dart_NativeEntryResolver  resolver = nullptr 
)
static

Definition at line 455 of file unit_test.cc.

457 {
459 const char* prefixed_lib_uri =
460 OS::SCreate(Thread::Current()->zone(), "file:///%s", lib_uri);
461 Dart_SourceFile sourcefiles[] = {{prefixed_lib_uri, script}};
462 const uint8_t* kernel_buffer = nullptr;
463 intptr_t kernel_buffer_size = 0;
464 int sourcefiles_count = sizeof(sourcefiles) / sizeof(Dart_SourceFile);
466 sourcefiles[0].uri, sourcefiles_count, sourcefiles, &kernel_buffer,
467 &kernel_buffer_size, true);
468 if ((kernel_buffer == nullptr) && (error != nullptr)) {
469 return Dart_NewApiError(error);
470 }
471
473 Dart_TypedData_kUint8, const_cast<uint8_t*>(kernel_buffer),
474 kernel_buffer_size, const_cast<uint8_t*>(kernel_buffer),
475 kernel_buffer_size, MallocFinalizer);
476 EXPECT_VALID(td);
479
480 // TODO(32618): Kernel doesn't correctly represent the root library.
481 lib = Dart_LookupLibrary(Dart_NewStringFromCString(sourcefiles[0].uri));
485
486 Dart_SetNativeResolver(lib, resolver, nullptr);
487 return lib;
488}
static char * SCreate(Zone *zone, const char *format,...) PRINTF_ATTRIBUTE(2
@ Dart_TypedData_kUint8
Definition: dart_api.h:2615
DART_EXPORT Dart_Handle Dart_NewExternalTypedDataWithFinalizer(Dart_TypedData_Type type, void *data, intptr_t length, void *peer, intptr_t external_allocation_size, Dart_HandleFinalizer callback)
static void LoadIsolateReloadTestLibIfNeeded(const char *script)
Definition: unit_test.cc:286
DART_EXPORT Dart_Handle Dart_SetNativeResolver(Dart_Handle library, Dart_NativeEntryResolver resolver, Dart_NativeEntrySymbol symbol)
DART_EXPORT Dart_Handle Dart_LoadLibrary(Dart_Handle kernel_buffer)
DART_EXPORT Dart_Handle Dart_NewApiError(const char *error)
DART_EXPORT Dart_Handle Dart_SetRootLibrary(Dart_Handle library)
static void MallocFinalizer(void *isolate_callback_data, void *peer)
DART_EXPORT Dart_Handle Dart_NewStringFromCString(const char *str)

◆ LoadTestScript()

Dart_Handle TestCase::LoadTestScript ( const char *  script,
Dart_NativeEntryResolver  resolver,
const char *  lib_uri = RESOLVED_USER_TEST_URI,
bool  finalize = true,
bool  allow_compile_errors = false 
)
static

Definition at line 436 of file unit_test.cc.

440 {
442 Dart_SourceFile* sourcefiles = nullptr;
443 intptr_t num_sources = BuildSourceFilesArray(&sourcefiles, script, lib_url);
445 LoadTestScriptWithDFE(num_sources, sourcefiles, resolver,
446 finalize_classes, true, allow_compile_errors);
447 delete[] sourcefiles;
448 return result;
449}
static Dart_Handle LoadTestScriptWithDFE(int sourcefiles_count, Dart_SourceFile sourcefiles[], Dart_NativeEntryResolver resolver=nullptr, bool finalize=true, bool incrementally=true, bool allow_compile_errors=false, const char *entry_script_uri=nullptr, const char *multiroot_filepaths=nullptr, const char *multiroot_scheme=nullptr)
Definition: unit_test.cc:490
static intptr_t BuildSourceFilesArray(Dart_SourceFile **sourcefiles, const char *script, const char *script_url=RESOLVED_USER_TEST_URI)
Definition: unit_test.cc:406

◆ LoadTestScriptWithDFE()

Dart_Handle TestCase::LoadTestScriptWithDFE ( int  sourcefiles_count,
Dart_SourceFile  sourcefiles[],
Dart_NativeEntryResolver  resolver = nullptr,
bool  finalize = true,
bool  incrementally = true,
bool  allow_compile_errors = false,
const char *  entry_script_uri = nullptr,
const char *  multiroot_filepaths = nullptr,
const char *  multiroot_scheme = nullptr 
)
static

Definition at line 490 of file unit_test.cc.

498 {
499 // First script is the main script.
502 const uint8_t* kernel_buffer = nullptr;
503 intptr_t kernel_buffer_size = 0;
505 entry_script_uri != nullptr ? entry_script_uri : sourcefiles[0].uri,
506 sourcefiles_count, sourcefiles, &kernel_buffer, &kernel_buffer_size,
507 incrementally, allow_compile_errors, multiroot_filepaths,
508 multiroot_scheme);
509 if ((kernel_buffer == nullptr) && error != nullptr) {
510 return Dart_NewApiError(error);
511 }
512
514 Dart_TypedData_kUint8, const_cast<uint8_t*>(kernel_buffer),
515 kernel_buffer_size, const_cast<uint8_t*>(kernel_buffer),
516 kernel_buffer_size, MallocFinalizer);
517 EXPECT_VALID(td);
520
521 // BOGUS: Kernel doesn't correctly represent the root library.
523 entry_script_uri != nullptr ? entry_script_uri : sourcefiles[0].uri));
527
528 result = Dart_SetNativeResolver(lib, resolver, nullptr);
530 if (finalize) {
533 }
534 return lib;
535}
DART_EXPORT Dart_Handle Dart_FinalizeLoading(bool complete_futures)
static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, Dart_Handle library, Dart_Handle url)
Definition: unit_test.cc:375
DART_EXPORT Dart_Handle Dart_SetLibraryTagHandler(Dart_LibraryTagHandler handler)

◆ LoadTestScriptWithErrors()

Dart_Handle TestCase::LoadTestScriptWithErrors ( const char *  script,
Dart_NativeEntryResolver  resolver = nullptr,
const char *  lib_uri = RESOLVED_USER_TEST_URI,
bool  finalize = true 
)
static

Definition at line 428 of file unit_test.cc.

432 {
433 return LoadTestScript(script, resolver, lib_url, finalize_classes, true);
434}

◆ ReloadTestKernel()

Dart_Handle TestCase::ReloadTestKernel ( const uint8_t *  kernel_buffer,
intptr_t  kernel_buffer_size 
)
static

Definition at line 631 of file unit_test.cc.

632 {
633 return TriggerReload(kernel_buffer, kernel_buffer_size);
634}
static Dart_Handle TriggerReload(const uint8_t *kernel_buffer, intptr_t kernel_buffer_size)
Definition: unit_test.cc:603

◆ ReloadTestScript()

Dart_Handle TestCase::ReloadTestScript ( const char *  script)
static

Definition at line 613 of file unit_test.cc.

613 {
614 Dart_SourceFile* sourcefiles = nullptr;
615 intptr_t num_files = BuildSourceFilesArray(&sourcefiles, script);
616 Dart_KernelCompilationResult compilation_result =
617 KernelIsolate::UpdateInMemorySources(num_files, sourcefiles);
618 delete[] sourcefiles;
619 if (compilation_result.status != Dart_KernelCompilationStatus_Ok) {
620 Dart_Handle result = Dart_NewApiError(compilation_result.error);
621 free(compilation_result.error);
622 if (compilation_result.kernel != nullptr) {
623 free(const_cast<uint8_t*>(compilation_result.kernel));
624 }
625 return result;
626 }
627
628 return TriggerReload(/*kernel_buffer=*/nullptr, /*kernel_buffer_size=*/0);
629}
static Dart_KernelCompilationResult UpdateInMemorySources(int source_files_count, Dart_SourceFile source_files[])

◆ Run()

void TestCase::Run ( )
virtual

Implements dart::TestCaseBase.

Definition at line 51 of file run_vm_tests.cc.

51 {
52 Syslog::Print("Running test: %s\n", name());
53 (*run_)();
54 Syslog::Print("Done: %s\n", name());
55}
static void Print(const char *format,...) PRINTF_ATTRIBUTE(1

◆ SetReloadTestScript()

Dart_Handle TestCase::SetReloadTestScript ( const char *  script)
static

Definition at line 539 of file unit_test.cc.

539 {
540 // For our vm/cc/IsolateReload_* tests we flip the GC flag on, which will
541 // cause the isolate reload to do GCs before/after morphing, etc.
542 FLAG_gc_during_reload = true;
543 FLAG_force_evacuation = true;
544
545 Dart_SourceFile* sourcefiles = nullptr;
546 intptr_t num_files = BuildSourceFilesArray(&sourcefiles, script);
547 Dart_KernelCompilationResult compilation_result =
548 KernelIsolate::UpdateInMemorySources(num_files, sourcefiles);
549 delete[] sourcefiles;
550 if (compilation_result.status != Dart_KernelCompilationStatus_Ok) {
551 Dart_Handle result = Dart_NewApiError(compilation_result.error);
552 free(compilation_result.error);
553 return result;
554 }
555 return Api::Success();
556}

◆ TriggerReload() [1/2]

Dart_Handle TestCase::TriggerReload ( const char *  root_script_url)
static

Definition at line 594 of file unit_test.cc.

594 {
595 return TriggerReload([&](IsolateGroup* isolate_group, JSONStream* js) {
596 return isolate_group->ReloadSources(js,
597 /*force_reload=*/false, root_script_url,
598 /*packages_url=*/nullptr,
599 /*dont_delete_reload_context=*/true);
600 });
601}

◆ TriggerReload() [2/2]

Dart_Handle TestCase::TriggerReload ( const uint8_t *  kernel_buffer,
intptr_t  kernel_buffer_size 
)
static

Definition at line 603 of file unit_test.cc.

604 {
605 return TriggerReload([&](IsolateGroup* isolate_group, JSONStream* js) {
606 return isolate_group->ReloadKernel(js,
607 /*force_reload=*/false, kernel_buffer,
608 kernel_buffer_size,
609 /*dont_delete_reload_context=*/true);
610 });
611}

◆ url()

const char * TestCase::url ( )
static

Definition at line 185 of file unit_test.cc.

185 {
187}
#define RESOLVED_USER_TEST_URI
Definition: unit_test.h:317

The documentation for this class was generated from the following files: