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

Unified Diff: webkit/dom_storage/dom_storage_map_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_map_unittest.cc
diff --git a/webkit/dom_storage/dom_storage_map_unittest.cc b/webkit/dom_storage/dom_storage_map_unittest.cc
index 89edbc3f2d666eaa81acd41c775ec1f57644c656..8339a542a2a59a57f1f10543a81c89c1d2b6667b 100644
--- a/webkit/dom_storage/dom_storage_map_unittest.cc
+++ b/webkit/dom_storage/dom_storage_map_unittest.cc
@@ -9,20 +9,20 @@
namespace dom_storage {
TEST(DomStorageMapTest, DomStorageMapBasics) {
- const string16 kKey(ASCIIToUTF16("key"));
- const string16 kValue(ASCIIToUTF16("value"));
+ const base::string16 kKey(ASCIIToUTF16("key"));
+ const base::string16 kValue(ASCIIToUTF16("value"));
const size_t kValueBytes = kValue.size() * sizeof(char16);
const size_t kItemBytes =
(kKey.size() + kValue.size()) * sizeof(char16);
- const string16 kKey2(ASCIIToUTF16("key2"));
+ const base::string16 kKey2(ASCIIToUTF16("key2"));
const size_t kKey2Bytes = kKey2.size() * sizeof(char16);
- const string16 kValue2(ASCIIToUTF16("value2"));
+ const base::string16 kValue2(ASCIIToUTF16("value2"));
const size_t kItem2Bytes =
(kKey2.size() + kValue2.size()) * sizeof(char16);
const size_t kQuota = 1024; // 1K quota for this test.
scoped_refptr<DomStorageMap> map(new DomStorageMap(kQuota));
- string16 old_value;
+ base::string16 old_value;
NullableString16 old_nullable_value;
ValuesMap swap;
scoped_refptr<DomStorageMap> copy;
@@ -83,15 +83,15 @@ TEST(DomStorageMapTest, DomStorageMapBasics) {
}
TEST(DomStorageMapTest, EnforcesQuota) {
- const string16 kKey = ASCIIToUTF16("test_key");
- const string16 kValue = ASCIIToUTF16("test_value");
- const string16 kKey2 = ASCIIToUTF16("test_key_2");
+ const base::string16 kKey = ASCIIToUTF16("test_key");
+ const base::string16 kValue = ASCIIToUTF16("test_value");
+ const base::string16 kKey2 = ASCIIToUTF16("test_key_2");
// A 50 byte quota is too small to hold both keys, so we
// should see the DomStorageMap enforcing it.
const size_t kQuota = 50;
- string16 old_value;
+ base::string16 old_value;
NullableString16 old_nullable_value;
scoped_refptr<DomStorageMap> map(new DomStorageMap(kQuota));
@@ -115,9 +115,9 @@ TEST(DomStorageMapTest, EnforcesQuota) {
// When overbudget, a new value of greater size than the existing value can
// not be set, but a new value of lesser or equal size can be set.
EXPECT_TRUE(map->SetItem(kKey, kValue, &old_nullable_value));
- EXPECT_FALSE(map->SetItem(kKey, string16(kValue + kValue),
+ EXPECT_FALSE(map->SetItem(kKey, base::string16(kValue + kValue),
&old_nullable_value));
- EXPECT_TRUE(map->SetItem(kKey, string16(), &old_nullable_value));
+ EXPECT_TRUE(map->SetItem(kKey, base::string16(), &old_nullable_value));
EXPECT_EQ(kValue, old_nullable_value.string());
}

Powered by Google App Engine
This is Rietveld 408576698