| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/files/scoped_temp_dir.h" | 6 #include "base/files/scoped_temp_dir.h" |
| 7 #include "content/browser/browser_thread_impl.h" | 7 #include "content/browser/browser_thread_impl.h" |
| 8 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 8 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
| 9 #include "content/browser/indexed_db/webidbdatabase_impl.h" | 9 #include "content/browser/indexed_db/webidbdatabase_impl.h" |
| 10 #include "content/public/browser/storage_partition.h" | 10 #include "content/public/browser/storage_partition.h" |
| 11 #include "content/public/common/url_constants.h" | 11 #include "content/public/common/url_constants.h" |
| 12 #include "content/public/test/test_browser_context.h" | 12 #include "content/public/test/test_browser_context.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "third_party/WebKit/public/platform/WebIDBDatabase.h" | 14 #include "third_party/WebKit/public/platform/WebIDBDatabase.h" |
| 15 #include "webkit/base/origin_url_conversions.h" | 15 #include "webkit/common/base/origin_url_conversions.h" |
| 16 #include "webkit/browser/quota/mock_special_storage_policy.h" | 16 #include "webkit/browser/quota/mock_special_storage_policy.h" |
| 17 #include "webkit/browser/quota/quota_manager.h" | 17 #include "webkit/browser/quota/quota_manager.h" |
| 18 #include "webkit/browser/quota/special_storage_policy.h" | 18 #include "webkit/browser/quota/special_storage_policy.h" |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 | 21 |
| 22 class IndexedDBTest : public testing::Test { | 22 class IndexedDBTest : public testing::Test { |
| 23 public: | 23 public: |
| 24 IndexedDBTest() | 24 IndexedDBTest() |
| 25 : message_loop_(base::MessageLoop::TYPE_IO), | 25 : message_loop_(base::MessageLoop::TYPE_IO), |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 message_loop_.RunUntilIdle(); | 186 message_loop_.RunUntilIdle(); |
| 187 } | 187 } |
| 188 | 188 |
| 189 // Make sure we wait until the destructor has run. | 189 // Make sure we wait until the destructor has run. |
| 190 message_loop_.RunUntilIdle(); | 190 message_loop_.RunUntilIdle(); |
| 191 | 191 |
| 192 EXPECT_FALSE(file_util::DirectoryExists(test_path)); | 192 EXPECT_FALSE(file_util::DirectoryExists(test_path)); |
| 193 } | 193 } |
| 194 | 194 |
| 195 } // namespace content | 195 } // namespace content |
| OLD | NEW |