| 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");
|
| -}
|
| +}
|
|
|