diff --git a/lib/ui/painting/image_decoder_unittests.cc b/lib/ui/painting/image_decoder_unittests.cc index 7fb08ff50e496..e4ffce10d8012 100644 --- a/lib/ui/painting/image_decoder_unittests.cc +++ b/lib/ui/painting/image_decoder_unittests.cc @@ -75,7 +75,7 @@ class TestIOManager final : public IOManager { static sk_sp OpenFixtureAsSkData(const char* name) { auto fixtures_directory = - fml::OpenFile(GetFixturesPath(), false, fml::FilePermission::kRead); + fml::OpenDirectory(GetFixturesPath(), false, fml::FilePermission::kRead); if (!fixtures_directory.is_valid()) { return nullptr; }