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/scoped_temp_dir.h" | 6 #include "base/scoped_temp_dir.h" |
7 #include "chrome/test/base/ui_test_utils.h" | |
8 #include "content/browser/browser_thread_impl.h" | 7 #include "content/browser/browser_thread_impl.h" |
9 #include "content/browser/in_process_webkit/indexed_db_context_impl.h" | 8 #include "content/browser/in_process_webkit/indexed_db_context_impl.h" |
10 #include "content/public/common/url_constants.h" | 9 #include "content/public/common/url_constants.h" |
11 #include "content/public/test/test_browser_context.h" | 10 #include "content/public/test/test_browser_context.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "webkit/database/database_util.h" | 12 #include "webkit/database/database_util.h" |
13 #include "webkit/quota/mock_special_storage_policy.h" | 13 #include "webkit/quota/mock_special_storage_policy.h" |
14 #include "webkit/quota/special_storage_policy.h" | 14 #include "webkit/quota/special_storage_policy.h" |
15 | 15 |
16 using content::BrowserContext; | 16 using content::BrowserContext; |
17 using content::BrowserThread; | 17 using content::BrowserThread; |
18 using content::BrowserThreadImpl; | 18 using content::BrowserThreadImpl; |
19 using webkit_database::DatabaseUtil; | 19 using webkit_database::DatabaseUtil; |
20 | 20 |
21 class IndexedDBTest : public testing::Test { | 21 class IndexedDBTest : public testing::Test { |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 message_loop_.RunAllPending(); | 119 message_loop_.RunAllPending(); |
120 } | 120 } |
121 | 121 |
122 // Make sure we wait until the destructor has run. | 122 // Make sure we wait until the destructor has run. |
123 message_loop_.RunAllPending(); | 123 message_loop_.RunAllPending(); |
124 | 124 |
125 // No data was cleared because of SetForceKeepSessionState. | 125 // No data was cleared because of SetForceKeepSessionState. |
126 EXPECT_TRUE(file_util::DirectoryExists(normal_path)); | 126 EXPECT_TRUE(file_util::DirectoryExists(normal_path)); |
127 EXPECT_TRUE(file_util::DirectoryExists(session_only_path)); | 127 EXPECT_TRUE(file_util::DirectoryExists(session_only_path)); |
128 } | 128 } |
OLD | NEW |