| 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_factory.h" | 5 #include "content/browser/indexed_db/indexed_db_factory.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "content/browser/indexed_db/indexed_db_connection.h" | 12 #include "content/browser/indexed_db/indexed_db_connection.h" |
| 13 #include "content/browser/indexed_db/mock_indexed_db_callbacks.h" | 13 #include "content/browser/indexed_db/mock_indexed_db_callbacks.h" |
| 14 #include "content/browser/indexed_db/mock_indexed_db_database_callbacks.h" | 14 #include "content/browser/indexed_db/mock_indexed_db_database_callbacks.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "third_party/WebKit/public/platform/WebIDBDatabaseException.h" | 16 #include "third_party/WebKit/public/platform/WebIDBDatabaseException.h" |
| 17 #include "third_party/WebKit/public/platform/WebIDBTypes.h" | 17 #include "third_party/WebKit/public/platform/WebIDBTypes.h" |
| 18 #include "url/gurl.h" | 18 #include "url/gurl.h" |
| 19 #include "webkit/common/database/database_identifier.h" | 19 #include "webkit/common/database/database_identifier.h" |
| 20 | 20 |
| 21 using base::ASCIIToUTF16; |
| 22 |
| 21 namespace content { | 23 namespace content { |
| 22 | 24 |
| 23 class IndexedDBFactoryTest : public testing::Test { | 25 class IndexedDBFactoryTest : public testing::Test { |
| 24 public: | 26 public: |
| 25 IndexedDBFactoryTest() {} | 27 IndexedDBFactoryTest() {} |
| 26 | 28 |
| 27 protected: | 29 protected: |
| 28 // For timers to post events. | 30 // For timers to post events. |
| 29 base::MessageLoop loop_; | 31 base::MessageLoop loop_; |
| 30 | 32 |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 origin, | 472 origin, |
| 471 temp_directory.path()); | 473 temp_directory.path()); |
| 472 EXPECT_FALSE(factory->IsDatabaseOpen(origin, db_name)); | 474 EXPECT_FALSE(factory->IsDatabaseOpen(origin, db_name)); |
| 473 } | 475 } |
| 474 | 476 |
| 475 // Terminate all pending-close timers. | 477 // Terminate all pending-close timers. |
| 476 factory->ForceClose(origin); | 478 factory->ForceClose(origin); |
| 477 } | 479 } |
| 478 | 480 |
| 479 } // namespace content | 481 } // namespace content |
| OLD | NEW |