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

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

Issue 1116253003: IndexedDB: Added IDBObjectStore.getAll() corruption test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@idb-objectstore-getall
Patch Set: Created 5 years, 8 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: content/browser/indexed_db/indexed_db_browsertest.cc
diff --git a/content/browser/indexed_db/indexed_db_browsertest.cc b/content/browser/indexed_db/indexed_db_browsertest.cc
index 21f6ad671169d1a724f4d752361451104f6c2528..2ab58c2cd2b03c4d114f1a578129bf5053549a94 100644
--- a/content/browser/indexed_db/indexed_db_browsertest.cc
+++ b/content/browser/indexed_db/indexed_db_browsertest.cc
@@ -693,7 +693,14 @@ static scoped_ptr<net::test_server::HttpResponse> CorruptDBRequestHandler(
class IndexedDBBrowserCorruptionTest
: public IndexedDBBrowserTest,
- public ::testing::WithParamInterface<const char*> {};
+ public ::testing::WithParamInterface<const char*> {
+ public:
+ void SetUpCommandLine(base::CommandLine* command_line) override {
+ // Experimental for IDBObjectStore.getAll()
+ command_line->AppendSwitch(
+ switches::kEnableExperimentalWebPlatformFeatures);
+ }
+};
IN_PROC_BROWSER_TEST_P(IndexedDBBrowserCorruptionTest,
OperationOnCorruptedOpenDatabase) {
@@ -719,6 +726,7 @@ INSTANTIATE_TEST_CASE_P(IndexedDBBrowserCorruptionTestInstantiation,
IndexedDBBrowserCorruptionTest,
::testing::Values("failGetBlobJournal",
"get",
+ "getAll",
"failWebkitGetDatabaseNames",
"iterate",
"failTransactionCommit",
« no previous file with comments | « content/browser/indexed_db/indexed_db_backing_store.cc ('k') | content/test/data/indexeddb/corrupted_open_db_detection.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698