diff options
author | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-13 01:30:45 +0000 |
---|---|---|
committer | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-13 01:30:45 +0000 |
commit | 3c5ed2c5747de75351c18fbf1e969eccc263d1d5 (patch) | |
tree | 75ba30df50a1f0bd4ecd90d51051b3bb057c2a51 /webkit/database/databases_table_unittest.cc | |
parent | dad1e3bc1d2894be09c2a5bcb98708044aa1664d (diff) | |
download | chromium_src-3c5ed2c5747de75351c18fbf1e969eccc263d1d5.zip chromium_src-3c5ed2c5747de75351c18fbf1e969eccc263d1d5.tar.gz chromium_src-3c5ed2c5747de75351c18fbf1e969eccc263d1d5.tar.bz2 |
Changing the file naming scheme. Creating a directory for each origin,
and naming files according to the row ID of the respective DB in the
tracker database. Also, fixing a bug: caching the renderer process
handle in DatabaseDispatcherHost after it was set in
ResourceMessageFilter.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/385051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31874 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/database/databases_table_unittest.cc')
-rw-r--r-- | webkit/database/databases_table_unittest.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/database/databases_table_unittest.cc b/webkit/database/databases_table_unittest.cc index 5012cc5..77e9427 100644 --- a/webkit/database/databases_table_unittest.cc +++ b/webkit/database/databases_table_unittest.cc @@ -73,6 +73,8 @@ TEST(DatabasesTableTest, TestIt) { details_in1.origin_identifier, details_in1.database_name, &details_out1)); + EXPECT_EQ(1, databases_table.GetDatabaseID(details_in1.origin_identifier, + details_in1.database_name)); // Check that the details were correctly written to the database. CheckDetailsAreEqual(details_in1, details_out1); @@ -87,6 +89,8 @@ TEST(DatabasesTableTest, TestIt) { details_in2.description = ASCIIToUTF16("description_db2"); details_in2.estimated_size = 200; EXPECT_TRUE(databases_table.InsertDatabaseDetails(details_in2)); + EXPECT_EQ(2, databases_table.GetDatabaseID(details_in2.origin_identifier, + details_in2.database_name)); // Insert details for a third database with a different origin. DatabaseDetails details_in3; @@ -95,6 +99,8 @@ TEST(DatabasesTableTest, TestIt) { details_in3.description = ASCIIToUTF16("description_db3"); details_in3.estimated_size = 300; EXPECT_TRUE(databases_table.InsertDatabaseDetails(details_in3)); + EXPECT_EQ(3, databases_table.GetDatabaseID(details_in3.origin_identifier, + details_in3.database_name)); // There should be no database with origin "origin3". std::vector<DatabaseDetails> details_out_origin3; |