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

Unified Diff: chrome/tools/convert_dict/convert_dict_unittest.cc

Issue 2929002: Convert some tools to use FilePaths for file names. (Closed)
Patch Set: ok Created 10 years, 5 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
« no previous file with comments | « chrome/tools/convert_dict/convert_dict.cc ('k') | chrome/tools/convert_dict/dic_reader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/convert_dict/convert_dict_unittest.cc
diff --git a/chrome/tools/convert_dict/convert_dict_unittest.cc b/chrome/tools/convert_dict/convert_dict_unittest.cc
index 525da05c56ac7f0d800b716035676e1689c4794b..25568a12f495d4b3a0d80bad6cc4b79bdd5550d1 100644
--- a/chrome/tools/convert_dict/convert_dict_unittest.cc
+++ b/chrome/tools/convert_dict/convert_dict_unittest.cc
@@ -90,17 +90,10 @@ void RunDictionaryTest(const char* codepage,
{
// Read the above affix file with AffReader and read the dictionary file
// with DicReader, respectively.
-#if defined(OS_WIN)
- std::string aff_path = WideToUTF8(aff_file.value());
- std::string dic_path = WideToUTF8(dic_file.value());
-#else
- std::string aff_path = aff_file.value();
- std::string dic_path = dic_file.value();
-#endif
- convert_dict::AffReader aff_reader(aff_path);
+ convert_dict::AffReader aff_reader(aff_file);
EXPECT_TRUE(aff_reader.Read());
- convert_dict::DicReader dic_reader(dic_path);
+ convert_dict::DicReader dic_reader(dic_file);
EXPECT_TRUE(dic_reader.Read(&aff_reader));
// Verify this DicReader includes all the input words.
« no previous file with comments | « chrome/tools/convert_dict/convert_dict.cc ('k') | chrome/tools/convert_dict/dic_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698