From 909918ff76ef4b4ab7b69e55278f0e1f81aeef27 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Wed, 10 Jul 2019 10:48:27 -0700 Subject: [PATCH] Fix windows test by not attempting to open a directory as a file. --- lib/ui/painting/image_decoder_unittests.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }