| 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 <stdint.h> | 5 #include <stdint.h> |
| 6 #include <utility> | 6 #include <utility> |
| 7 | 7 |
| 8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
| 15 #include "base/test/test_simple_task_runner.h" | 15 #include "base/test/test_simple_task_runner.h" |
| 16 #include "base/threading/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
| 17 #include "content/browser/indexed_db/indexed_db_connection.h" | 17 #include "content/browser/indexed_db/indexed_db_connection.h" |
| 18 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 18 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
| 19 #include "content/browser/indexed_db/indexed_db_factory_impl.h" | 19 #include "content/browser/indexed_db/indexed_db_factory_impl.h" |
| 20 #include "content/browser/indexed_db/mock_indexed_db_callbacks.h" | 20 #include "content/browser/indexed_db/mock_indexed_db_callbacks.h" |
| 21 #include "content/browser/indexed_db/mock_indexed_db_database_callbacks.h" | 21 #include "content/browser/indexed_db/mock_indexed_db_database_callbacks.h" |
| 22 #include "content/browser/quota/mock_quota_manager_proxy.h" | |
| 23 #include "content/public/test/test_browser_thread_bundle.h" | 22 #include "content/public/test/test_browser_thread_bundle.h" |
| 23 #include "storage/browser/test/mock_quota_manager_proxy.h" |
| 24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
| 25 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseExc
eption.h" | 25 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseExc
eption.h" |
| 26 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h" | 26 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h" |
| 27 #include "url/gurl.h" | 27 #include "url/gurl.h" |
| 28 #include "url/origin.h" | 28 #include "url/origin.h" |
| 29 | 29 |
| 30 using base::ASCIIToUTF16; | 30 using base::ASCIIToUTF16; |
| 31 using url::Origin; | 31 using url::Origin; |
| 32 | 32 |
| 33 namespace content { | 33 namespace content { |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 temp_directory.GetPath()); | 509 temp_directory.GetPath()); |
| 510 EXPECT_TRUE(callbacks->saw_error()); | 510 EXPECT_TRUE(callbacks->saw_error()); |
| 511 EXPECT_FALSE(factory()->IsDatabaseOpen(origin, db_name)); | 511 EXPECT_FALSE(factory()->IsDatabaseOpen(origin, db_name)); |
| 512 } | 512 } |
| 513 | 513 |
| 514 // Terminate all pending-close timers. | 514 // Terminate all pending-close timers. |
| 515 factory()->ForceClose(origin); | 515 factory()->ForceClose(origin); |
| 516 } | 516 } |
| 517 | 517 |
| 518 } // namespace content | 518 } // namespace content |
| OLD | NEW |