summaryrefslogtreecommitdiffstats
path: root/base/gfx
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-01 17:40:13 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-01 17:40:13 +0000
commit836f134c56bfa714217ca12a73482205c1480774 (patch)
tree5c5b9d938a712e09831bdd32022e1b3716c5fbdf /base/gfx
parentd46d6f3b80099ce0c630185a2e86b649bba49254 (diff)
downloadchromium_src-836f134c56bfa714217ca12a73482205c1480774.zip
chromium_src-836f134c56bfa714217ca12a73482205c1480774.tar.gz
chromium_src-836f134c56bfa714217ca12a73482205c1480774.tar.bz2
Cross-platform wrappers for fopen, _wfopen_s, etc.
Patch by Paweł Hajdan jr <phajdan.jr@gmail.com>. http://codereview.chromium.org/6005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2760 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx')
-rw-r--r--base/gfx/vector_canvas_unittest.cc6
1 files changed, 3 insertions, 3 deletions
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,