| 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/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 "content/browser/indexed_db/indexed_db_connection.h" |   16 #include "content/browser/indexed_db/indexed_db_connection.h" | 
|   17 #include "content/browser/indexed_db/indexed_db_context_impl.h" |   17 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 
|   18 #include "content/browser/indexed_db/indexed_db_factory_impl.h" |   18 #include "content/browser/indexed_db/indexed_db_factory_impl.h" | 
|   19 #include "content/browser/indexed_db/mock_indexed_db_callbacks.h" |   19 #include "content/browser/indexed_db/mock_indexed_db_callbacks.h" | 
|   20 #include "content/browser/indexed_db/mock_indexed_db_database_callbacks.h" |   20 #include "content/browser/indexed_db/mock_indexed_db_database_callbacks.h" | 
|   21 #include "content/browser/quota/mock_quota_manager_proxy.h" |   21 #include "storage/browser/test/mock_quota_manager_proxy.h" | 
|   22 #include "testing/gtest/include/gtest/gtest.h" |   22 #include "testing/gtest/include/gtest/gtest.h" | 
|   23 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseExc
     eption.h" |   23 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseExc
     eption.h" | 
|   24 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h" |   24 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h" | 
|   25 #include "url/gurl.h" |   25 #include "url/gurl.h" | 
|   26 #include "url/origin.h" |   26 #include "url/origin.h" | 
|   27  |   27  | 
|   28 using base::ASCIIToUTF16; |   28 using base::ASCIIToUTF16; | 
|   29 using url::Origin; |   29 using url::Origin; | 
|   30  |   30  | 
|   31 namespace content { |   31 namespace content { | 
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  502                     temp_directory.GetPath()); |  502                     temp_directory.GetPath()); | 
|  503     EXPECT_TRUE(callbacks->saw_error()); |  503     EXPECT_TRUE(callbacks->saw_error()); | 
|  504     EXPECT_FALSE(factory()->IsDatabaseOpen(origin, db_name)); |  504     EXPECT_FALSE(factory()->IsDatabaseOpen(origin, db_name)); | 
|  505   } |  505   } | 
|  506  |  506  | 
|  507   // Terminate all pending-close timers. |  507   // Terminate all pending-close timers. | 
|  508   factory()->ForceClose(origin); |  508   factory()->ForceClose(origin); | 
|  509 } |  509 } | 
|  510  |  510  | 
|  511 }  // namespace content |  511 }  // namespace content | 
| OLD | NEW |