diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-01 17:40:13 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-01 17:40:13 +0000 |
commit | 836f134c56bfa714217ca12a73482205c1480774 (patch) | |
tree | 5c5b9d938a712e09831bdd32022e1b3716c5fbdf /chrome/third_party | |
parent | d46d6f3b80099ce0c630185a2e86b649bba49254 (diff) | |
download | chromium_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 'chrome/third_party')
-rw-r--r-- | chrome/third_party/hunspell/google/hunspell_tests.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/third_party/hunspell/google/hunspell_tests.cc b/chrome/third_party/hunspell/google/hunspell_tests.cc index b9775e0..8397c76 100644 --- a/chrome/third_party/hunspell/google/hunspell_tests.cc +++ b/chrome/third_party/hunspell/google/hunspell_tests.cc @@ -104,9 +104,8 @@ void HunspellTest::RunTest(const char* test_base_name) const { 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 @@ TEST_F(HunspellTest, All) { RunTest("utf8_nonbmp"); RunTest("utfcompound"); RunTest("zeroaffix"); -}
\ No newline at end of file +} |