Skip to content

Commit 3073f51

Browse files
enable on non-aot
1 parent 16b100b commit 3073f51

File tree

5 files changed

+39
-23
lines changed

5 files changed

+39
-23
lines changed

engine/src/flutter/runtime/dart_plugin_registrant_unittests.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class DartIsolateTest : public FixtureTest {
5252
};
5353

5454
TEST_F(DartIsolateTest, DartPluginRegistrantIsPresent) {
55-
#if defined(OS_FUCHSIA)
55+
#if defined(OS_FUCHSIA) && (FLUTTER_RUNTIME_MODE != FLUTTER_RUNTIME_MODE_DEBUG)
5656
GTEST_SKIP() << "Dart_LoadELF is not implemented on Fuchsia.";
5757
#else
5858
ASSERT_FALSE(DartVMRef::IsInstanceRunning());
@@ -103,7 +103,7 @@ TEST_F(DartIsolateTest, DartPluginRegistrantIsPresent) {
103103
}
104104

105105
TEST_F(DartIsolateTest, DartPluginRegistrantFromBackgroundIsolate) {
106-
#if defined(OS_FUCHSIA)
106+
#if defined(OS_FUCHSIA) && (FLUTTER_RUNTIME_MODE != FLUTTER_RUNTIME_MODE_DEBUG)
107107
GTEST_SKIP() << "Dart_LoadELF is not implemented on Fuchsia.";
108108
#else
109109
ASSERT_FALSE(DartVMRef::IsInstanceRunning());
@@ -155,7 +155,7 @@ TEST_F(DartIsolateTest, DartPluginRegistrantFromBackgroundIsolate) {
155155
}
156156

157157
TEST_F(DartIsolateTest, DartPluginRegistrantNotFromBackgroundIsolate) {
158-
#if defined(OS_FUCHSIA)
158+
#if defined(OS_FUCHSIA) && (FLUTTER_RUNTIME_MODE != FLUTTER_RUNTIME_MODE_DEBUG)
159159
GTEST_SKIP() << "Dart_LoadELF is not implemented on Fuchsia.";
160160
#else
161161
ASSERT_FALSE(DartVMRef::IsInstanceRunning());
@@ -208,7 +208,7 @@ TEST_F(DartIsolateTest, DartPluginRegistrantNotFromBackgroundIsolate) {
208208
}
209209

210210
TEST_F(DartIsolateTest, DartPluginRegistrantWhenRegisteringBackgroundIsolate) {
211-
#if defined(OS_FUCHSIA)
211+
#if defined(OS_FUCHSIA) && (FLUTTER_RUNTIME_MODE != FLUTTER_RUNTIME_MODE_DEBUG)
212212
GTEST_SKIP() << "Dart_LoadELF is not implemented on Fuchsia.";
213213
#else
214214
ASSERT_FALSE(DartVMRef::IsInstanceRunning());

engine/src/flutter/runtime/no_dart_plugin_registrant_unittests.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class DartIsolateTest : public FixtureTest {
2626
};
2727

2828
TEST_F(DartIsolateTest, DartPluginRegistrantIsNotPresent) {
29-
#if defined(OS_FUCHSIA)
29+
#if defined(OS_FUCHSIA) && (FLUTTER_RUNTIME_MODE != FLUTTER_RUNTIME_MODE_DEBUG)
3030
GTEST_SKIP() << "Dart_LoadELF is not implemented on Fuchsia.";
3131
#else
3232
ASSERT_FALSE(DartVMRef::IsInstanceRunning());

engine/src/flutter/shell/platform/embedder/tests/embedder_a11y_unittests.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ constexpr static char kTooltip[] = "tooltip";
3434
#endif
3535

3636
TEST_F(EmbedderTest, CannotProvideMultipleSemanticsCallbacks) {
37-
#if defined(OS_FUCHSIA)
37+
#if defined(OS_FUCHSIA) && (FLUTTER_RUNTIME_MODE != FLUTTER_RUNTIME_MODE_DEBUG)
3838
GTEST_SKIP() << "Dart_LoadELF is not implemented on Fuchsia.";
3939
#else
4040
{
@@ -100,7 +100,7 @@ TEST_F(EmbedderTest, CannotProvideMultipleSemanticsCallbacks) {
100100
}
101101

102102
TEST_F(EmbedderA11yTest, A11yTreeIsConsistentUsingV3Callbacks) {
103-
#if defined(OS_FUCHSIA)
103+
#if defined(OS_FUCHSIA) && (FLUTTER_RUNTIME_MODE != FLUTTER_RUNTIME_MODE_DEBUG)
104104
GTEST_SKIP() << "Dart_LoadELF is not implemented on Fuchsia.";
105105
#else
106106
auto& context = GetEmbedderContext<EmbedderTestContextSoftware>();
@@ -278,7 +278,7 @@ TEST_F(EmbedderA11yTest, A11yTreeIsConsistentUsingV3Callbacks) {
278278
}
279279

280280
TEST_F(EmbedderA11yTest, A11yStringAttributes) {
281-
#if defined(OS_FUCHSIA)
281+
#if defined(OS_FUCHSIA) && (FLUTTER_RUNTIME_MODE != FLUTTER_RUNTIME_MODE_DEBUG)
282282
GTEST_SKIP() << "Dart_LoadELF is not implemented on Fuchsia.";
283283
#else
284284
auto& context = GetEmbedderContext<EmbedderTestContextSoftware>();
@@ -397,7 +397,7 @@ TEST_F(EmbedderA11yTest, A11yStringAttributes) {
397397
}
398398

399399
TEST_F(EmbedderA11yTest, A11yTreeIsConsistentUsingV2Callbacks) {
400-
#if defined(OS_FUCHSIA)
400+
#if defined(OS_FUCHSIA) && (FLUTTER_RUNTIME_MODE != FLUTTER_RUNTIME_MODE_DEBUG)
401401
GTEST_SKIP() << "Dart_LoadELF is not implemented on Fuchsia.";
402402
#else
403403
auto& context = GetEmbedderContext<EmbedderTestContextSoftware>();
@@ -573,7 +573,7 @@ TEST_F(EmbedderA11yTest, A11yTreeIsConsistentUsingV2Callbacks) {
573573
}
574574

575575
TEST_F(EmbedderA11yTest, A11yTreeIsConsistentUsingV1Callbacks) {
576-
#if defined(OS_FUCHSIA)
576+
#if defined(OS_FUCHSIA) && (FLUTTER_RUNTIME_MODE != FLUTTER_RUNTIME_MODE_DEBUG)
577577
GTEST_SKIP() << "Dart_LoadELF is not implemented on Fuchsia.";
578578
#else
579579
auto& context = GetEmbedderContext<EmbedderTestContextSoftware>();

engine/src/flutter/shell/platform/fuchsia/flutter/BUILD.gn

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -931,11 +931,15 @@ if (enable_unittests) {
931931
path = "$root_gen_dir/flutter/runtime/assets/plugin_registrant_kernel_blob.bin"
932932
dest = "assets/plugin_registrant_kernel_blob.bin"
933933
},
934-
{
935-
path = "$root_gen_dir/flutter/runtime/assets/plugin_registrant_app_elf_snapshot.so"
936-
dest = "assets/plugin_registrant_app_elf_snapshot.so"
937-
},
938934
]
935+
if (is_aot_test) {
936+
resources += [
937+
{
938+
path = "$root_gen_dir/flutter/runtime/assets/plugin_registrant_app_elf_snapshot.so"
939+
dest = "assets/plugin_registrant_app_elf_snapshot.so"
940+
},
941+
]
942+
}
939943
}
940944

941945
fuchsia_test_archive("no_dart_plugin_registrant_unittests") {
@@ -954,11 +958,15 @@ if (enable_unittests) {
954958
path = "$root_gen_dir/flutter/runtime/assets/no_plugin_registrant_kernel_blob.bin"
955959
dest = "assets/no_plugin_registrant_kernel_blob.bin"
956960
},
957-
{
958-
path = "$root_gen_dir/flutter/runtime/assets/no_plugin_registrant_app_elf_snapshot.so"
959-
dest = "assets/no_plugin_registrant_app_elf_snapshot.so"
960-
},
961961
]
962+
if (is_aot_test) {
963+
resources += [
964+
{
965+
path = "$root_gen_dir/flutter/runtime/assets/no_plugin_registrant_app_elf_snapshot.so"
966+
dest = "assets/no_plugin_registrant_app_elf_snapshot.so"
967+
},
968+
]
969+
}
962970
}
963971

964972
fuchsia_test_archive("embedder_a11y_unittests") {
@@ -977,11 +985,15 @@ if (enable_unittests) {
977985
path = "$root_gen_dir/flutter/shell/platform/embedder/assets/kernel_blob.bin"
978986
dest = "assets/kernel_blob.bin"
979987
},
980-
{
981-
path = "$root_gen_dir/flutter/shell/platform/embedder/assets/app_elf_snapshot.so"
982-
dest = "assets/app_elf_snapshot.so"
983-
},
984988
]
989+
if (is_aot_test) {
990+
resources += [
991+
{
992+
path = "$root_gen_dir/flutter/shell/platform/embedder/assets/app_elf_snapshot.so"
993+
dest = "assets/app_elf_snapshot.so"
994+
},
995+
]
996+
}
985997
}
986998

987999
fuchsia_test_archive("embedder_proctable_unittests") {
@@ -1012,11 +1024,15 @@ if (enable_unittests) {
10121024
path = "$root_gen_dir/flutter/third_party/tonic/tests/assets/kernel_blob.bin"
10131025
dest = "assets/kernel_blob.bin"
10141026
},
1027+
]
1028+
if (is_aot_test) {
1029+
resources += [
10151030
{
10161031
path = "$root_gen_dir/flutter/third_party/tonic/tests/assets/app_elf_snapshot.so"
10171032
dest = "assets/app_elf_snapshot.so"
10181033
},
10191034
]
1035+
}
10201036
}
10211037

10221038
# When adding a new dep here, please also ensure the dep is added to

engine/src/flutter/testing/fuchsia/test_suites.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
- test_command: test run fuchsia-pkg://fuchsia.com/tonic_unittests#meta/tonic_unittests.cm
9393
disabled: Dart_LoadELF isn't implemented on Fuchsia
9494
package: tonic_unittests-0.far
95-
variant: disabled
95+
variant: debug
9696
- test_command: test run fuchsia-pkg://fuchsia.com/touch-input-test#meta/touch-input-test.cm
9797
packages:
9898
- touch-input-test-0.far

0 commit comments

Comments
 (0)