Index: content/browser/quota/quota_database_unittest.cc |
diff --git a/content/browser/quota/quota_database_unittest.cc b/content/browser/quota/quota_database_unittest.cc |
index 5f02df2fcf6563730870fc72af16e3eed9c119f1..8241c188d0b9ecbe23818cb4d617722c33b240d6 100644 |
--- a/content/browser/quota/quota_database_unittest.cc |
+++ b/content/browser/quota/quota_database_unittest.cc |
@@ -15,7 +15,6 @@ |
#include "sql/connection.h" |
#include "sql/meta_table.h" |
#include "sql/statement.h" |
-#include "sql/test/test_helpers.h" |
#include "storage/browser/quota/quota_database.h" |
#include "testing/gtest/include/gtest/gtest.h" |
#include "url/gurl.h" |
@@ -44,13 +43,6 @@ |
QuotaDatabase db(kDbFile); |
EXPECT_FALSE(db.LazyOpen(false)); |
ASSERT_TRUE(db.LazyOpen(true)); |
- EXPECT_TRUE(db.db_.get()); |
- EXPECT_TRUE(kDbFile.empty() || base::PathExists(kDbFile)); |
- } |
- |
- void Reopen(const base::FilePath& kDbFile) { |
- QuotaDatabase db(kDbFile); |
- ASSERT_TRUE(db.LazyOpen(false)); |
EXPECT_TRUE(db.db_.get()); |
EXPECT_TRUE(kDbFile.empty() || base::PathExists(kDbFile)); |
} |
@@ -571,14 +563,4 @@ |
DumpOriginInfoTable(kDbFile); |
DumpOriginInfoTable(base::FilePath()); |
} |
- |
-TEST_F(QuotaDatabaseTest, OpenCorruptedDatabase) { |
- base::ScopedTempDir data_dir; |
- ASSERT_TRUE(data_dir.CreateUniqueTempDir()); |
- const base::FilePath kDbFile = data_dir.path().AppendASCII(kDBFileName); |
- LazyOpen(kDbFile); |
- ASSERT_TRUE(sql::test::CorruptSizeInHeader(kDbFile)); |
- Reopen(kDbFile); |
-} |
- |
} // namespace content |