Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1108)

Unified Diff: chrome/third_party/hunspell/google/hunspell_tests.cc

Issue 6005: Cross-platform equivalent of fopen, _wfopen_s etc.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/third_party/hunspell/google/hunspell_tests.cc
===================================================================
--- chrome/third_party/hunspell/google/hunspell_tests.cc (revision 2711)
+++ chrome/third_party/hunspell/google/hunspell_tests.cc (working copy)
@@ -104,9 +104,8 @@
serialized.size());
#else
// Use "regular" Hunspell.
- FILE *aff_file, *dic_file;
- fopen_s(&aff_file, aff_name.c_str(), "r");
- fopen_s(&dic_file, dic_name.c_str(), "r");
+ FILE* aff_file = file_util::OpenFile(aff_name, "r");
+ FILE* dic_file = file_util::OpenFile(dic_name, "r");
EXPECT_TRUE(aff_file && dic_file);
Hunspell hunspell(aff_file, dic_file);
@@ -211,4 +210,4 @@
RunTest("utf8_nonbmp");
RunTest("utfcompound");
RunTest("zeroaffix");
-}
+}

Powered by Google App Engine
This is Rietveld 408576698