5#include "flutter/runtime/dart_vm.h"
7#include "flutter/runtime/dart_vm_lifecycle.h"
8#include "flutter/testing/fixture_test.h"
9#include "gtest/gtest.h"
26 ASSERT_TRUE(vm.GetVMData());
27 auto ns = vm->GetIsolateNameServer();
28 ASSERT_EQ(ns->LookupIsolatePortByName(
"foobar").port_id,
ILLEGAL_PORT);
29 ASSERT_FALSE(ns->RemoveIsolateNameMapping(
"foobar"));
31 ASSERT_TRUE(ns->RegisterIsolatePortWithName(correct_portex,
"foobar"));
32 ASSERT_FALSE(ns->RegisterIsolatePortWithName(correct_portex,
"foobar"));
33 Dart_PortEx response = ns->LookupIsolatePortByName(
"foobar");
36 ASSERT_TRUE(ns->RemoveIsolateNameMapping(
"foobar"));
41 auto settings = CreateSettingsForFixture();
52 auto settings = CreateSettingsForFixture();
53 settings.enable_timeline_event_handler =
false;
60 auto settings = CreateSettingsForFixture();
static DartVMRef Create(const Settings &settings, fml::RefPtr< const DartSnapshot > vm_snapshot=nullptr, fml::RefPtr< const DartSnapshot > isolate_snapshot=nullptr)
static bool IsInstanceRunning()
TEST_F(DisplayListTest, Defaults)
bool TraceHasTimelineEventHandler()
void TraceSetTimelineEventHandler(TimelineEventHandler handler)
int64_t TraceGetTimelineMicros()