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/public/browser/storage_partition.h" | 9 #include "content/public/browser/storage_partition.h" |
10 #include "content/public/common/url_constants.h" | 10 #include "content/public/common/url_constants.h" |
11 #include "content/public/test/test_browser_context.h" | 11 #include "content/public/test/test_browser_context.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebIDBDatabase.h" | 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebIDBDatabase.h" |
14 #include "webkit/base/origin_url_conversions.h" | 14 #include "webkit/base/origin_url_conversions.h" |
15 #include "webkit/quota/mock_special_storage_policy.h" | 15 #include "webkit/browser/quota/mock_special_storage_policy.h" |
16 #include "webkit/quota/quota_manager.h" | 16 #include "webkit/browser/quota/quota_manager.h" |
17 #include "webkit/quota/special_storage_policy.h" | 17 #include "webkit/browser/quota/special_storage_policy.h" |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 class IndexedDBTest : public testing::Test { | 21 class IndexedDBTest : public testing::Test { |
22 public: | 22 public: |
23 IndexedDBTest() | 23 IndexedDBTest() |
24 : message_loop_(base::MessageLoop::TYPE_IO), | 24 : message_loop_(base::MessageLoop::TYPE_IO), |
25 webkit_thread_(BrowserThread::WEBKIT_DEPRECATED, &message_loop_), | 25 webkit_thread_(BrowserThread::WEBKIT_DEPRECATED, &message_loop_), |
26 file_thread_(BrowserThread::FILE_USER_BLOCKING, &message_loop_), | 26 file_thread_(BrowserThread::FILE_USER_BLOCKING, &message_loop_), |
27 io_thread_(BrowserThread::IO, &message_loop_) {} | 27 io_thread_(BrowserThread::IO, &message_loop_) {} |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 message_loop_.RunUntilIdle(); | 191 message_loop_.RunUntilIdle(); |
192 } | 192 } |
193 | 193 |
194 // Make sure we wait until the destructor has run. | 194 // Make sure we wait until the destructor has run. |
195 message_loop_.RunUntilIdle(); | 195 message_loop_.RunUntilIdle(); |
196 | 196 |
197 EXPECT_FALSE(file_util::DirectoryExists(test_path)); | 197 EXPECT_FALSE(file_util::DirectoryExists(test_path)); |
198 } | 198 } |
199 | 199 |
200 } // namespace content | 200 } // namespace content |
OLD | NEW |