| 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/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "base/test/test_simple_task_runner.h" | 14 #include "base/test/test_simple_task_runner.h" |
| 15 #include "content/browser/indexed_db/indexed_db_connection.h" | 15 #include "content/browser/indexed_db/indexed_db_connection.h" |
| 16 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 16 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
| 17 #include "content/browser/indexed_db/indexed_db_factory_impl.h" | 17 #include "content/browser/indexed_db/indexed_db_factory_impl.h" |
| 18 #include "content/browser/indexed_db/mock_indexed_db_callbacks.h" | 18 #include "content/browser/indexed_db/mock_indexed_db_callbacks.h" |
| 19 #include "content/browser/indexed_db/mock_indexed_db_database_callbacks.h" | 19 #include "content/browser/indexed_db/mock_indexed_db_database_callbacks.h" |
| 20 #include "content/browser/quota/mock_quota_manager_proxy.h" | 20 #include "content/browser/quota/mock_quota_manager_proxy.h" |
| 21 #include "storage/common/database/database_identifier.h" | |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 23 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseExc
eption.h" | 22 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseExc
eption.h" |
| 24 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h" | 23 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h" |
| 25 #include "url/gurl.h" | 24 #include "url/gurl.h" |
| 26 | 25 |
| 27 using base::ASCIIToUTF16; | 26 using base::ASCIIToUTF16; |
| 28 | 27 |
| 29 namespace content { | 28 namespace content { |
| 30 | 29 |
| 31 namespace { | 30 namespace { |
| (...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 temp_directory.path()); | 523 temp_directory.path()); |
| 525 EXPECT_TRUE(callbacks->saw_error()); | 524 EXPECT_TRUE(callbacks->saw_error()); |
| 526 EXPECT_FALSE(factory()->IsDatabaseOpen(origin, db_name)); | 525 EXPECT_FALSE(factory()->IsDatabaseOpen(origin, db_name)); |
| 527 } | 526 } |
| 528 | 527 |
| 529 // Terminate all pending-close timers. | 528 // Terminate all pending-close timers. |
| 530 factory()->ForceClose(origin); | 529 factory()->ForceClose(origin); |
| 531 } | 530 } |
| 532 | 531 |
| 533 } // namespace content | 532 } // namespace content |
| OLD | NEW |