Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,7 @@ if (is_fuchsia) {

deps = [
"$flutter_root/flow:flow_tests",

# TODO(gw280): Re-enable fml_tests on Fuchsia (https://github.com/flutter/flutter/issues/46122)
# "$flutter_root/fml:fml_tests",
"$flutter_root/fml:fml_tests",
"$flutter_root/shell/platform/fuchsia/flutter:flutter_runner_tests",
]
}
Expand Down
10 changes: 8 additions & 2 deletions fml/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ executable("fml_unittests") {
"memory/weak_ptr_unittest.cc",
"message_loop_task_queues_merge_unmerge_unittests.cc",
"message_loop_task_queues_unittests.cc",
"message_loop_unittests.cc",
"message_unittests.cc",
"paths_unittests.cc",
"platform/darwin/string_range_sanitization_unittests.mm",
Expand All @@ -242,7 +241,10 @@ executable("fml_unittests") {

# TODO(gw280): Figure out why these tests don't work currently on Fuchsia
if (!is_fuchsia) {
sources += [ "file_unittest.cc" ]
sources += [
"file_unittest.cc",
"message_loop_unittests.cc",
]
}

deps = [
Expand All @@ -252,6 +254,10 @@ executable("fml_unittests") {
"$flutter_root/runtime:libdart",
"$flutter_root/testing",
]

if (is_fuchsia && using_fuchsia_sdk) {
libs = [ "${fuchsia_sdk_path}/arch/${target_cpu}/sysroot/lib/libzircon.so" ]
}
}

if (is_fuchsia) {
Expand Down
6 changes: 3 additions & 3 deletions fml/platform/fuchsia/message_loop_fuchsia.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ void MessageLoopFuchsia::WakeUp(fml::TimePoint time_point) {
due_time = zx::nsec((time_point - now).ToNanoseconds());
}

FML_DCHECK(async::PostDelayedTask(
loop_.dispatcher(), [this]() { RunExpiredTasksNow(); },
due_time) == ZX_OK);
auto status = async::PostDelayedTask(
loop_.dispatcher(), [this]() { RunExpiredTasksNow(); }, due_time);
FML_DCHECK(status == ZX_OK);
}

} // namespace fml
18 changes: 7 additions & 11 deletions runtime/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,13 @@ source_set("test_font") {
group("libdart") {
public_deps = []

if (!(is_fuchsia && using_fuchsia_sdk)) {
if (flutter_runtime_mode == "profile" ||
flutter_runtime_mode == "release") {
public_deps +=
[ "//third_party/dart/runtime:libdart_precompiled_runtime" ]
} else {
public_deps += [
"$flutter_root/lib/snapshot",
"//third_party/dart/runtime:libdart_jit",
]
}
if (flutter_runtime_mode == "profile" || flutter_runtime_mode == "release") {
public_deps += [ "//third_party/dart/runtime:libdart_precompiled_runtime" ]
} else {
public_deps += [
"$flutter_root/lib/snapshot",
"//third_party/dart/runtime:libdart_jit",
]
}
}

Expand Down
1 change: 0 additions & 1 deletion shell/platform/fuchsia/dart_runner/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ template("runner") {
deps = [
"$flutter_root/common",
"$flutter_root/fml",
"$flutter_root/runtime:libdart",
"$flutter_root/shell/platform/fuchsia/dart-pkg/fuchsia",
"$flutter_root/shell/platform/fuchsia/dart-pkg/zircon",
"$fuchsia_sdk_root/pkg:async",
Expand Down
8 changes: 8 additions & 0 deletions testing/fuchsia/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,11 @@ trap reboot EXIT
-f flutter_runner_tests-0.far \
-t flutter_runner_tests

./fuchsia_ctl -d $device_name test \
-f fml_tests-0.far \
-t fml_tests

./fuchsia_ctl -d $device_name test \
-f flow_tests-0.far \
-t flow_tests

2 changes: 2 additions & 0 deletions testing/fuchsia/test_fars
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
flutter_runner_tests-0.far
fml_tests-0.far
flow_tests-0.far