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/bind.h" | 5 #include "base/bind.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.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 "base/test/thread_test_helper.h" | 12 #include "base/test/thread_test_helper.h" |
13 #include "content/browser/browser_main_loop.h" | 13 #include "content/browser/browser_main_loop.h" |
14 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 14 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
15 #include "content/browser/web_contents/web_contents_impl.h" | 15 #include "content/browser/web_contents/web_contents_impl.h" |
16 #include "content/public/browser/browser_context.h" | 16 #include "content/public/browser/browser_context.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/render_process_host.h" | 18 #include "content/public/browser/render_process_host.h" |
19 #include "content/public/browser/storage_partition.h" | 19 #include "content/public/browser/storage_partition.h" |
20 #include "content/public/browser/web_contents.h" | 20 #include "content/public/browser/web_contents.h" |
21 #include "content/public/common/content_switches.h" | 21 #include "content/public/common/content_switches.h" |
22 #include "content/public/common/url_constants.h" | 22 #include "content/public/common/url_constants.h" |
23 #include "content/public/test/browser_test_utils.h" | 23 #include "content/public/test/browser_test_utils.h" |
24 #include "content/shell/browser/shell.h" | 24 #include "content/shell/browser/shell.h" |
25 #include "content/test/content_browser_test.h" | 25 #include "content/test/content_browser_test.h" |
26 #include "content/test/content_browser_test_utils.h" | 26 #include "content/test/content_browser_test_utils.h" |
27 #include "webkit/browser/database/database_util.h" | 27 #include "webkit/browser/database/database_util.h" |
28 #include "webkit/browser/quota/quota_manager.h" | 28 #include "webkit/browser/quota/quota_manager.h" |
29 | 29 |
| 30 using base::ASCIIToUTF16; |
30 using quota::QuotaManager; | 31 using quota::QuotaManager; |
31 using webkit_database::DatabaseUtil; | 32 using webkit_database::DatabaseUtil; |
32 | 33 |
33 namespace content { | 34 namespace content { |
34 | 35 |
35 // This browser test is aimed towards exercising the IndexedDB bindings and | 36 // This browser test is aimed towards exercising the IndexedDB bindings and |
36 // the actual implementation that lives in the browser side. | 37 // the actual implementation that lives in the browser side. |
37 class IndexedDBBrowserTest : public ContentBrowserTest { | 38 class IndexedDBBrowserTest : public ContentBrowserTest { |
38 public: | 39 public: |
39 IndexedDBBrowserTest() : disk_usage_(-1) {} | 40 IndexedDBBrowserTest() : disk_usage_(-1) {} |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 command_line->AppendSwitch(switches::kSingleProcess); | 458 command_line->AppendSwitch(switches::kSingleProcess); |
458 } | 459 } |
459 }; | 460 }; |
460 | 461 |
461 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess, | 462 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess, |
462 RenderThreadShutdownTest) { | 463 RenderThreadShutdownTest) { |
463 SimpleTest(GetTestUrl("indexeddb", "shutdown_with_requests.html")); | 464 SimpleTest(GetTestUrl("indexeddb", "shutdown_with_requests.html")); |
464 } | 465 } |
465 | 466 |
466 } // namespace content | 467 } // namespace content |
OLD | NEW |