From 836f134c56bfa714217ca12a73482205c1480774 Mon Sep 17 00:00:00 2001 From: "mark@chromium.org" Date: Wed, 1 Oct 2008 17:40:13 +0000 Subject: =?UTF-8?q?Cross-platform=20wrappers=20for=20fopen,=20=5Fwfopen=5F?= =?UTF-8?q?s,=20etc.=20Patch=20by=20Pawe=C3=85=E2=80=9A=20Hajdan=20jr=20.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit http://codereview.chromium.org/6005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2760 0039d316-1c4b-4281-b951-d872f2087c98 --- base/gfx/vector_canvas_unittest.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'base/gfx') diff --git a/base/gfx/vector_canvas_unittest.cc b/base/gfx/vector_canvas_unittest.cc index 9d99a57..65d3d5f 100644 --- a/base/gfx/vector_canvas_unittest.cc +++ b/base/gfx/vector_canvas_unittest.cc @@ -184,11 +184,11 @@ class Image { true, &compressed)); ASSERT_TRUE(compressed.size()); - FILE* f; - ASSERT_EQ(_wfopen_s(&f, filename.c_str(), L"wbS"), 0); + FILE* f = file_util::OpenFile(filename, "wb"); + ASSERT_TRUE(f); ASSERT_EQ(fwrite(&*compressed.begin(), 1, compressed.size(), f), compressed.size()); - fclose(f); + file_util::CloseFile(f); } // Returns the percentage of the image that is different from the other, -- cgit v1.1