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

Unified Diff: content/browser/in_process_webkit/indexed_db_browsertest.cc

Issue 11470013: IndexedDB: Tests for unknown serialized data versions in backing stores. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Landed test data separately Created 8 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/in_process_webkit/indexed_db_browsertest.cc
diff --git a/content/browser/in_process_webkit/indexed_db_browsertest.cc b/content/browser/in_process_webkit/indexed_db_browsertest.cc
index 3c0a2f93dedf0f04fefaeb5aa392ccf94466a49b..83b3d048759cae46fe70bea97c5c44b4fe8591df 100644
--- a/content/browser/in_process_webkit/indexed_db_browsertest.cc
+++ b/content/browser/in_process_webkit/indexed_db_browsertest.cc
@@ -288,6 +288,22 @@ IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithVersion123456Schema,
EXPECT_NE(original_size, new_size);
}
+class IndexedDBBrowserTestWithVersion987654SSVData : public
+ IndexedDBBrowserTestWithPreexistingLevelDB {
+ virtual std::string EnclosingLevelDBDir() {
+ return "ssv_version_987654";
+ }
+};
+
+IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithVersion987654SSVData,
+ DestroyTest) {
+ int64 original_size = RequestDiskUsage();
+ EXPECT_GT(original_size, 0);
+ SimpleTest(GetTestUrl("indexeddb", "open_bad_db.html"));
+ int64 new_size = RequestDiskUsage();
+ EXPECT_NE(original_size, new_size);
+}
+
class IndexedDBBrowserTestWithCorruptLevelDB : public
IndexedDBBrowserTestWithPreexistingLevelDB {
virtual std::string EnclosingLevelDBDir() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698