Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 7d8fbae

Browse files
committed
disabled the tests for fuchsia
1 parent c381f49 commit 7d8fbae

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/ui/painting/image_decoder_no_gl_unittests.cc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
namespace flutter {
88
namespace testing {
99

10+
// Tests are disabled for fuchsia.
11+
#if defined(OS_FUCHSIA)
12+
#pragma GCC diagnostic ignored "-Wunreachable-code"
13+
#endif
14+
1015
namespace {
1116

1217
bool IsPngWithPLTE(const uint8_t* bytes, size_t size) {
@@ -91,6 +96,9 @@ float DecodeBGR10(uint32_t x) {
9196
}
9297

9398
TEST(ImageDecoderNoGLTest, ImpellerWideGamutDisplayP3) {
99+
#if defined(OS_FUCHSIA)
100+
GTEST_SKIP() << "Fuchsia can't load the test fixtures.";
101+
#endif
94102
auto data = OpenFixtureAsSkData("DisplayP3Logo.png");
95103
auto image = SkImages::DeferredFromEncodedData(data);
96104
ASSERT_TRUE(image != nullptr);
@@ -145,6 +153,9 @@ TEST(ImageDecoderNoGLTest, ImpellerWideGamutDisplayP3) {
145153
}
146154

147155
TEST(ImageDecoderNoGLTest, ImpellerWideGamutIndexedPng) {
156+
#if defined(OS_FUCHSIA)
157+
GTEST_SKIP() << "Fuchsia can't load the test fixtures.";
158+
#endif
148159
auto data = OpenFixtureAsSkData("WideGamutIndexed.png");
149160
auto image = SkImages::DeferredFromEncodedData(data);
150161
ASSERT_TRUE(image != nullptr);

0 commit comments

Comments
 (0)