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

Unified Diff: chrome/browser/browsing_data_indexed_db_helper_unittest.cc

Issue 4682002: Remove "name" field from indexed databases. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 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 | « chrome/browser/browsing_data_indexed_db_helper.cc ('k') | chrome/browser/cocoa/cookie_details.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data_indexed_db_helper_unittest.cc
diff --git a/chrome/browser/browsing_data_indexed_db_helper_unittest.cc b/chrome/browser/browsing_data_indexed_db_helper_unittest.cc
index 2817ea41cfd4beb5413db28d58829b863ed08970..10df2248b43556124bdf0bc5905f1f3b2714a513 100644
--- a/chrome/browser/browsing_data_indexed_db_helper_unittest.cc
+++ b/chrome/browser/browsing_data_indexed_db_helper_unittest.cc
@@ -42,17 +42,16 @@ TEST(CannedBrowsingDataIndexedDBHelperTest, DISABLED_AddIndexedDB) {
const GURL origin1("http://host1:1/");
const GURL origin2("http://host2:1/");
- const string16 name(ASCIIToUTF16("name"));
const string16 description(ASCIIToUTF16("description"));
const FilePath::CharType file1[] =
- FILE_PATH_LITERAL("http_host1_1@name.indexeddb");
+ FILE_PATH_LITERAL("http_host1_1.indexeddb");
const FilePath::CharType file2[] =
- FILE_PATH_LITERAL("http_host2_1@name.indexeddb");
+ FILE_PATH_LITERAL("http_host2_1.indexeddb");
scoped_refptr<CannedBrowsingDataIndexedDBHelper> helper(
new CannedBrowsingDataIndexedDBHelper(&profile));
- helper->AddIndexedDB(origin1, name, description);
- helper->AddIndexedDB(origin2, name, description);
+ helper->AddIndexedDB(origin1, description);
+ helper->AddIndexedDB(origin2, description);
TestCompletionCallback callback;
helper->StartFetching(
@@ -72,15 +71,14 @@ TEST(CannedBrowsingDataIndexedDBHelperTest, DISABLED_Unique) {
TestingProfile profile;
const GURL origin("http://host1:1/");
- const string16 name(ASCIIToUTF16("name"));
const string16 description(ASCIIToUTF16("description"));
const FilePath::CharType file[] =
- FILE_PATH_LITERAL("http_host1_1@name.indexeddb");
+ FILE_PATH_LITERAL("http_host1_1.indexeddb");
scoped_refptr<CannedBrowsingDataIndexedDBHelper> helper(
new CannedBrowsingDataIndexedDBHelper(&profile));
- helper->AddIndexedDB(origin, name, description);
- helper->AddIndexedDB(origin, name, description);
+ helper->AddIndexedDB(origin, description);
+ helper->AddIndexedDB(origin, description);
TestCompletionCallback callback;
helper->StartFetching(
@@ -98,14 +96,13 @@ TEST(CannedBrowsingDataIndexedDBHelperTest, Empty) {
TestingProfile profile;
const GURL origin("http://host1:1/");
- const string16 name(ASCIIToUTF16("name"));
const string16 description(ASCIIToUTF16("description"));
scoped_refptr<CannedBrowsingDataIndexedDBHelper> helper(
new CannedBrowsingDataIndexedDBHelper(&profile));
ASSERT_TRUE(helper->empty());
- helper->AddIndexedDB(origin, name, description);
+ helper->AddIndexedDB(origin, description);
ASSERT_FALSE(helper->empty());
helper->Reset();
ASSERT_TRUE(helper->empty());
« no previous file with comments | « chrome/browser/browsing_data_indexed_db_helper.cc ('k') | chrome/browser/cocoa/cookie_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698