diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-12 01:55:40 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-12 01:55:40 +0000 |
commit | 1870d5cfa5ca359b44a32322c225cca1b2818e91 (patch) | |
tree | 410cfe2ee14081320dfbab6743ba85683e1aa6f3 /chrome/tools/convert_dict | |
parent | 2ba45d1412dd0bbfea931a497efad37540a8d9df (diff) | |
download | chromium_src-1870d5cfa5ca359b44a32322c225cca1b2818e91.zip chromium_src-1870d5cfa5ca359b44a32322c225cca1b2818e91.tar.gz chromium_src-1870d5cfa5ca359b44a32322c225cca1b2818e91.tar.bz2 |
iwyu: Include stringprintf.h where appropriate, part 3.
BUG=82098
TEST=none
R=csilv@chromium.org
Review URL: http://codereview.chromium.org/7016011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85088 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools/convert_dict')
-rw-r--r-- | chrome/tools/convert_dict/convert_dict_unittest.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/chrome/tools/convert_dict/convert_dict_unittest.cc b/chrome/tools/convert_dict/convert_dict_unittest.cc index f8d1971..9cf996e 100644 --- a/chrome/tools/convert_dict/convert_dict_unittest.cc +++ b/chrome/tools/convert_dict/convert_dict_unittest.cc @@ -8,7 +8,7 @@ #include "base/file_util.h" #include "base/format_macros.h" #include "base/i18n/icu_string_conversions.h" -#include "base/string_util.h" +#include "base/stringprintf.h" #include "base/utf_string_conversions.h" #include "chrome/tools/convert_dict/aff_reader.h" #include "chrome/tools/convert_dict/dic_reader.h" @@ -35,8 +35,8 @@ bool VerifyWords(const convert_dict::DicReader::WordList& org_words, static const int kBufSize = 128; char buf[kBufSize]; for (size_t i = 0; i < org_words.size(); i++) { - SCOPED_TRACE(StringPrintf("org_words[%" PRIuS "]: %s", - i, org_words[i].first.c_str())); + SCOPED_TRACE(base::StringPrintf( + "org_words[%" PRIuS "]: %s", i, org_words[i].first.c_str())); int affix_matches = iter.Advance(buf, kBufSize, affix_ids); EXPECT_NE(0, affix_matches); @@ -64,9 +64,9 @@ bool VerifyWords(const convert_dict::DicReader::WordList& org_words, void RunDictionaryTest(const char* codepage, const std::map<string16, bool>& word_list) { // Create an affix data and a dictionary data. - std::string aff_data(StringPrintf("SET %s\n", codepage)); + std::string aff_data(base::StringPrintf("SET %s\n", codepage)); - std::string dic_data(StringPrintf("%" PRIuS "\n", word_list.size())); + std::string dic_data(base::StringPrintf("%" PRIuS "\n", word_list.size())); for (std::map<string16, bool>::const_iterator it = word_list.begin(); it != word_list.end(); ++it) { std::string encoded_word; @@ -99,8 +99,8 @@ void RunDictionaryTest(const char* codepage, // Verify this DicReader includes all the input words. EXPECT_EQ(word_list.size(), dic_reader.words().size()); for (size_t i = 0; i < dic_reader.words().size(); ++i) { - SCOPED_TRACE(StringPrintf("dic_reader.words()[%" PRIuS "]: %s", - i, dic_reader.words()[i].first.c_str())); + SCOPED_TRACE(base::StringPrintf("dic_reader.words()[%" PRIuS "]: %s", + i, dic_reader.words()[i].first.c_str())); string16 word(UTF8ToUTF16(dic_reader.words()[i].first)); EXPECT_TRUE(word_list.find(word) != word_list.end()); } @@ -121,7 +121,7 @@ void RunDictionaryTest(const char* codepage, // Trim the end of this BDICT and verify our verifier tells these trimmed // BDICTs are corrupted. for (size_t i = 1; i < bdict_data.size(); ++i) { - SCOPED_TRACE(StringPrintf("i = %" PRIuS, i)); + SCOPED_TRACE(base::StringPrintf("i = %" PRIuS, i)); EXPECT_FALSE(hunspell::BDict::Verify(bdict_data.data(), bdict_data.size() - i)); } |