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

Unified Diff: webkit/dom_storage/dom_storage_database_unittest.cc

Issue 13219005: Replace string16 with base::string16 in src/webkit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
Index: webkit/dom_storage/dom_storage_database_unittest.cc
diff --git a/webkit/dom_storage/dom_storage_database_unittest.cc b/webkit/dom_storage/dom_storage_database_unittest.cc
index 7e50cc7a690d654c1cff58e41f57e7fc0ca12762..e39f5f7510a4c5e655d1dd5064b19eac128874b0 100644
--- a/webkit/dom_storage/dom_storage_database_unittest.cc
+++ b/webkit/dom_storage/dom_storage_database_unittest.cc
@@ -54,8 +54,8 @@ void CreateInvalidValueColumnTable(sql::Connection* db) {
}
void InsertDataV1(sql::Connection* db,
- const string16& key,
- const string16& value) {
+ const base::string16& key,
+ const base::string16& value) {
sql::Statement statement(db->GetCachedStatement(SQL_FROM_HERE,
"INSERT INTO ItemTable VALUES (?,?)"));
statement.BindString16(0, key);
@@ -72,7 +72,7 @@ void CheckValuesMatch(DomStorageDatabase* db,
ValuesMap::const_iterator it = values_read.begin();
for (; it != values_read.end(); ++it) {
- string16 key = it->first;
+ base::string16 key = it->first;
NullableString16 value = it->second;
NullableString16 expected_value = expected.find(key)->second;
EXPECT_EQ(expected_value.string(), value.string());
@@ -81,7 +81,7 @@ void CheckValuesMatch(DomStorageDatabase* db,
}
void CreateMapWithValues(ValuesMap* values) {
- string16 kCannedKeys[] = {
+ base::string16 kCannedKeys[] = {
ASCIIToUTF16("test"),
ASCIIToUTF16("company"),
ASCIIToUTF16("date"),
@@ -91,7 +91,7 @@ void CreateMapWithValues(ValuesMap* values) {
NullableString16(ASCIIToUTF16("123"), false),
NullableString16(ASCIIToUTF16("Google"), false),
NullableString16(ASCIIToUTF16("18-01-2012"), false),
- NullableString16(string16(), false)
+ NullableString16(base::string16(), false)
};
for (unsigned i = 0; i < sizeof(kCannedKeys) / sizeof(kCannedKeys[0]); i++)
(*values)[kCannedKeys[i]] = kCannedValues[i];
@@ -259,7 +259,7 @@ TEST(DomStorageDatabaseTest, WriteWithClear) {
}
TEST(DomStorageDatabaseTest, UpgradeFromV1ToV2WithData) {
- const string16 kCannedKey = ASCIIToUTF16("foo");
+ const base::string16 kCannedKey = ASCIIToUTF16("foo");
const NullableString16 kCannedValue(ASCIIToUTF16("bar"), false);
ValuesMap expected;
expected[kCannedKey] = kCannedValue;
@@ -281,7 +281,7 @@ TEST(DomStorageDatabaseTest, TestSimpleRemoveOneValue) {
DomStorageDatabase db;
ASSERT_TRUE(db.LazyOpen(true));
- const string16 kCannedKey = ASCIIToUTF16("test");
+ const base::string16 kCannedKey = ASCIIToUTF16("test");
const NullableString16 kCannedValue(ASCIIToUTF16("data"), false);
ValuesMap expected;
expected[kCannedKey] = kCannedValue;

Powered by Google App Engine
This is Rietveld 408576698