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

Unified Diff: base/i18n/string_search_unittest.cc

Issue 8687002: Cleanup: Convert ASCIIToUTF16("") to string16(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « no previous file | base/string_piece_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/i18n/string_search_unittest.cc
diff --git a/base/i18n/string_search_unittest.cc b/base/i18n/string_search_unittest.cc
index a7f4df96702d4b6086ba1361332463149b68ed34..9198ea4d13e96ea2792d2dbffb3bee6d7b187c64 100644
--- a/base/i18n/string_search_unittest.cc
+++ b/base/i18n/string_search_unittest.cc
@@ -6,6 +6,7 @@
#include "base/i18n/rtl.h"
#include "base/i18n/string_search.h"
+#include "base/string16.h"
#include "base/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "unicode/usearch.h"
@@ -35,10 +36,10 @@ TEST(StringSearchTest, ASCII) {
ASCIIToUTF16("aabaaa"), ASCIIToUTF16("aaabaabaaa")));
EXPECT_FALSE(StringSearchIgnoringCaseAndAccents(
- ASCIIToUTF16("searching within empty string"), ASCIIToUTF16("")));
+ ASCIIToUTF16("searching within empty string"), string16()));
EXPECT_TRUE(StringSearchIgnoringCaseAndAccents(
- ASCIIToUTF16(""), ASCIIToUTF16("searching for empty string")));
+ string16(), ASCIIToUTF16("searching for empty string")));
EXPECT_TRUE(StringSearchIgnoringCaseAndAccents(
ASCIIToUTF16("case insensitivity"), ASCIIToUTF16("CaSe InSeNsItIvItY")));
« no previous file with comments | « no previous file | base/string_piece_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698