5#include "flutter/testing/dart_isolate_runner.h"
6#include "flutter/testing/fixture_test.h"
18 auto settings = CreateSettingsForFixture();
34 ASSERT_TRUE(isolate->RunInIsolateScope([]() {
35 tonic::FileLoader file_loader;
36 std::string original_url =
"file:///Users/test/foo";
37 Dart_Handle dart_url = tonic::StdStringToDart(original_url);
38 auto canonicalized_url = file_loader.CanonicalizeURL(Dart_Null(), dart_url);
39 EXPECT_TRUE(canonicalized_url);
40 EXPECT_EQ(tonic::StdStringFromDart(canonicalized_url), original_url);
static fml::RefPtr< const DartSnapshot > VMSnapshotFromSettings(const Settings &settings)
From the fields present in the given settings object, infer the core snapshot.
static fml::RefPtr< const DartSnapshot > IsolateSnapshotFromSettings(const Settings &settings)
From the fields present in the given settings object, infer the isolate snapshot.
static DartVMRef Create(const Settings &settings, fml::RefPtr< const DartSnapshot > vm_snapshot=nullptr, fml::RefPtr< const DartSnapshot > isolate_snapshot=nullptr)
static bool IsInstanceRunning()
fml::RefPtr< fml::TaskRunner > GetCurrentTaskRunner()
std::string GetCurrentTestName()
Gets the name of the currently running test. This is useful in generating logs or assets based on tes...
TEST_F(DisplayListTest, Defaults)
std::string GetDefaultKernelFilePath()
Returns the default path to kernel_blob.bin. This file is within the directory returned by GetFixture...
std::unique_ptr< AutoIsolateShutdown > RunDartCodeInIsolate(DartVMRef &vm_ref, const Settings &settings, const TaskRunners &task_runners, std::string entrypoint, const std::vector< std::string > &args, const std::string &kernel_file_path, fml::WeakPtr< IOManager > io_manager, std::shared_ptr< VolatilePathTracker > volatile_path_tracker, std::unique_ptr< PlatformConfiguration > platform_configuration)