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/run_loop.h" | 13 #include "base/run_loop.h" |
13 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
14 #include "base/test/test_simple_task_runner.h" | 15 #include "base/test/test_simple_task_runner.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_context_impl.h" | 17 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
17 #include "content/browser/indexed_db/indexed_db_factory_impl.h" | 18 #include "content/browser/indexed_db/indexed_db_factory_impl.h" |
18 #include "content/browser/indexed_db/mock_indexed_db_callbacks.h" | 19 #include "content/browser/indexed_db/mock_indexed_db_callbacks.h" |
19 #include "content/browser/indexed_db/mock_indexed_db_database_callbacks.h" | 20 #include "content/browser/indexed_db/mock_indexed_db_database_callbacks.h" |
20 #include "content/browser/quota/mock_quota_manager_proxy.h" | 21 #include "content/browser/quota/mock_quota_manager_proxy.h" |
21 #include "content/public/test/test_browser_thread_bundle.h" | 22 #include "content/public/test/test_browser_thread_bundle.h" |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 temp_directory.GetPath()); | 504 temp_directory.GetPath()); |
504 EXPECT_TRUE(callbacks->saw_error()); | 505 EXPECT_TRUE(callbacks->saw_error()); |
505 EXPECT_FALSE(factory()->IsDatabaseOpen(origin, db_name)); | 506 EXPECT_FALSE(factory()->IsDatabaseOpen(origin, db_name)); |
506 } | 507 } |
507 | 508 |
508 // Terminate all pending-close timers. | 509 // Terminate all pending-close timers. |
509 factory()->ForceClose(origin); | 510 factory()->ForceClose(origin); |
510 } | 511 } |
511 | 512 |
512 } // namespace content | 513 } // namespace content |
OLD | NEW |