From 4ab0bffeabd7117eaccd804f538ea8e00b0d16a3 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Wed, 10 Jul 2019 10:54:40 -0700 Subject: [PATCH] Fix windows test by not attempting to open a directory as a file. (flutter/engine#9745) --- engine/src/flutter/lib/ui/painting/image_decoder_unittests.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/lib/ui/painting/image_decoder_unittests.cc b/engine/src/flutter/lib/ui/painting/image_decoder_unittests.cc index 7fb08ff50e..e4ffce10d8 100644 --- a/engine/src/flutter/lib/ui/painting/image_decoder_unittests.cc +++ b/engine/src/flutter/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; }