summaryrefslogtreecommitdiffstats
path: root/chrome/browser/spellchecker/feedback_unittest.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-11 19:14:40 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-11 19:14:40 +0000
commita04db824d215692e471a1c21f8b8422eebdb3223 (patch)
tree5535c4b74b85444774b4bcd33e72be406543da88 /chrome/browser/spellchecker/feedback_unittest.cc
parentcd7964025d2a2b9dc285bc52020ab907c7950f6a (diff)
downloadchromium_src-a04db824d215692e471a1c21f8b8422eebdb3223.zip
chromium_src-a04db824d215692e471a1c21f8b8422eebdb3223.tar.gz
chromium_src-a04db824d215692e471a1c21f8b8422eebdb3223.tar.bz2
Convert string16 to base::string16 in chrome/browser
TBR=sky Review URL: https://codereview.chromium.org/112943002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240149 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/spellchecker/feedback_unittest.cc')
-rw-r--r--chrome/browser/spellchecker/feedback_unittest.cc23
1 files changed, 12 insertions, 11 deletions
diff --git a/chrome/browser/spellchecker/feedback_unittest.cc b/chrome/browser/spellchecker/feedback_unittest.cc
index dd7c727..d153603 100644
--- a/chrome/browser/spellchecker/feedback_unittest.cc
+++ b/chrome/browser/spellchecker/feedback_unittest.cc
@@ -181,9 +181,9 @@ TEST_F(FeedbackTest, ClearFeedback) {
// Should be able to find misspellings by misspelled word.
TEST_F(FeedbackTest, FindMisspellingsByText) {
- static const string16 kMisspelledText =
+ static const base::string16 kMisspelledText =
ASCIIToUTF16("Helllo world. Helllo world");
- static const string16 kSuggestion = ASCIIToUTF16("Hello");
+ static const base::string16 kSuggestion = ASCIIToUTF16("Hello");
static const int kMisspellingStart = 0;
static const int kMisspellingLength = 6;
static const int kSentenceLength = 14;
@@ -199,13 +199,14 @@ TEST_F(FeedbackTest, FindMisspellingsByText) {
Misspelling(kMisspelledText,
kMisspellingStart + j * kSentenceLength,
kMisspellingLength,
- std::vector<string16>(1, kSuggestion),
+ std::vector<base::string16>(1, kSuggestion),
++hash));
}
}
- static const string16 kOtherMisspelledText = ASCIIToUTF16("Somethign else");
- static const string16 kOtherSuggestion = ASCIIToUTF16("Something");
+ static const base::string16 kOtherMisspelledText =
+ ASCIIToUTF16("Somethign else");
+ static const base::string16 kOtherSuggestion = ASCIIToUTF16("Something");
static const int kOtherMisspellingStart = 0;
static const int kOtherMisspellingLength = 9;
feedback_.AddMisspelling(
@@ -213,10 +214,10 @@ TEST_F(FeedbackTest, FindMisspellingsByText) {
Misspelling(kOtherMisspelledText,
kOtherMisspellingStart,
kOtherMisspellingLength,
- std::vector<string16>(1, kOtherSuggestion),
+ std::vector<base::string16>(1, kOtherSuggestion),
hash + 1));
- static const string16 kMisspelledWord = ASCIIToUTF16("Helllo");
+ static const base::string16 kMisspelledWord = ASCIIToUTF16("Helllo");
const std::set<uint32>& misspellings =
feedback_.FindMisspellings(kMisspelledWord);
EXPECT_EQ(static_cast<size_t>(kNumberOfSentences * kNumberOfRenderers),
@@ -236,9 +237,9 @@ TEST_F(FeedbackTest, FindMisspellingsByText) {
// Should not be able to find misspellings by misspelled word after they have
// been removed.
TEST_F(FeedbackTest, CannotFindMisspellingsByTextAfterErased) {
- static const string16 kMisspelledText = ASCIIToUTF16("Helllo world");
- static const string16 kMisspelledWord = ASCIIToUTF16("Helllo");
- static const string16 kSuggestion = ASCIIToUTF16("Hello");
+ static const base::string16 kMisspelledText = ASCIIToUTF16("Helllo world");
+ static const base::string16 kMisspelledWord = ASCIIToUTF16("Helllo");
+ static const base::string16 kSuggestion = ASCIIToUTF16("Hello");
static const int kMisspellingStart = 0;
static const int kMisspellingLength = 6;
feedback_.AddMisspelling(
@@ -246,7 +247,7 @@ TEST_F(FeedbackTest, CannotFindMisspellingsByTextAfterErased) {
Misspelling(kMisspelledText,
kMisspellingStart,
kMisspellingLength,
- std::vector<string16>(1, kSuggestion),
+ std::vector<base::string16>(1, kSuggestion),
kMisspellingHash));
feedback_.GetMisspelling(kMisspellingHash)->action.Finalize();
feedback_.EraseFinalizedMisspellings(kRendererProcessId);