Flutter Engine
Loading...
Searching...
No Matches
dart_service_isolate_unittests.cc
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#include "
flutter/runtime/dart_service_isolate.h
"
6
7
#include "
flutter/testing/testing.h
"
8
9
namespace
flutter
{
10
11
TEST
(DartServiceIsolateTest, CanAddAndRemoveHandles) {
12
ASSERT_EQ(
DartServiceIsolate::AddServerStatusCallback
(
nullptr
), 0);
13
auto
handle =
DartServiceIsolate::AddServerStatusCallback
([](
const
auto
&) {});
14
ASSERT_NE(handle, 0);
15
ASSERT_TRUE(
DartServiceIsolate::RemoveServerStatusCallback
(handle));
16
}
17
18
}
// namespace flutter
flutter::DartServiceIsolate::AddServerStatusCallback
static CallbackHandle AddServerStatusCallback(const DartVMServiceServerStateCallback &callback)
Add a callback that will get invoked when the VM Service starts up. If the VM Service has already sta...
Definition
dart_service_isolate.cc:84
flutter::DartServiceIsolate::RemoveServerStatusCallback
static bool RemoveServerStatusCallback(CallbackHandle handle)
Removed a callback previously registered via AddServiceStatusCallback.
Definition
dart_service_isolate.cc:108
dart_service_isolate.h
flutter
Definition
asset_manager.cc:10
flutter::TEST
TEST(FrameTimingsRecorderTest, RecordVsync)
Definition
frame_timings_recorder_unittests.cc:22
testing.h
runtime
dart_service_isolate_unittests.cc
Generated on Wed Nov 5 2025 21:33:15 for Flutter Engine by
1.9.8