| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/indexed_db/indexed_db_transaction.h" | 5 #include "content/browser/indexed_db/indexed_db_transaction.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ptr_util.h" |
| 13 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 15 #include "content/browser/indexed_db/indexed_db_connection.h" | 16 #include "content/browser/indexed_db/indexed_db_connection.h" |
| 16 #include "content/browser/indexed_db/indexed_db_fake_backing_store.h" | 17 #include "content/browser/indexed_db/indexed_db_fake_backing_store.h" |
| 17 #include "content/browser/indexed_db/indexed_db_observer.h" | 18 #include "content/browser/indexed_db/indexed_db_observer.h" |
| 18 #include "content/browser/indexed_db/mock_indexed_db_database_callbacks.h" | 19 #include "content/browser/indexed_db/mock_indexed_db_database_callbacks.h" |
| 19 #include "content/browser/indexed_db/mock_indexed_db_factory.h" | 20 #include "content/browser/indexed_db/mock_indexed_db_factory.h" |
| 20 #include "content/public/test/test_browser_thread_bundle.h" | 21 #include "content/public/test/test_browser_thread_bundle.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 22 | 23 |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 | 487 |
| 487 static const blink::WebIDBTransactionMode kTestModes[] = { | 488 static const blink::WebIDBTransactionMode kTestModes[] = { |
| 488 blink::WebIDBTransactionModeReadOnly, blink::WebIDBTransactionModeReadWrite, | 489 blink::WebIDBTransactionModeReadOnly, blink::WebIDBTransactionModeReadWrite, |
| 489 blink::WebIDBTransactionModeVersionChange}; | 490 blink::WebIDBTransactionModeVersionChange}; |
| 490 | 491 |
| 491 INSTANTIATE_TEST_CASE_P(IndexedDBTransactions, | 492 INSTANTIATE_TEST_CASE_P(IndexedDBTransactions, |
| 492 IndexedDBTransactionTestMode, | 493 IndexedDBTransactionTestMode, |
| 493 ::testing::ValuesIn(kTestModes)); | 494 ::testing::ValuesIn(kTestModes)); |
| 494 | 495 |
| 495 } // namespace content | 496 } // namespace content |
| OLD | NEW |