Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: content/browser/in_process_webkit/indexed_db_browsertest.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_path.h" 7 #include "base/file_path.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/scoped_temp_dir.h" 10 #include "base/scoped_temp_dir.h"
11 #include "base/test/thread_test_helper.h" 11 #include "base/test/thread_test_helper.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "chrome/browser/ui/browser.h" 13 #include "chrome/browser/ui/browser.h"
14 #include "chrome/test/base/in_process_browser_test.h" 14 #include "chrome/test/base/in_process_browser_test.h"
15 #include "chrome/test/base/testing_profile.h" 15 #include "chrome/test/base/testing_profile.h"
16 #include "chrome/test/base/ui_test_utils.h" 16 #include "chrome/test/base/ui_test_utils.h"
17 #include "content/browser/in_process_webkit/indexed_db_context.h" 17 #include "content/browser/in_process_webkit/indexed_db_context.h"
18 #include "content/browser/in_process_webkit/webkit_context.h" 18 #include "content/browser/in_process_webkit/webkit_context.h"
19 #include "content/browser/tab_contents/tab_contents.h" 19 #include "content/browser/tab_contents/tab_contents.h"
20 #include "content/public/common/content_switches.h" 20 #include "content/public/common/content_switches.h"
21 #include "webkit/database/database_util.h" 21 #include "webkit/database/database_util.h"
22 #include "webkit/quota/mock_special_storage_policy.h" 22 #include "webkit/quota/mock_special_storage_policy.h"
23 #include "webkit/quota/quota_manager.h" 23 #include "webkit/quota/quota_manager.h"
24 #include "webkit/quota/special_storage_policy.h" 24 #include "webkit/quota/special_storage_policy.h"
25 25
26 using content::BrowserThread;
26 using quota::QuotaManager; 27 using quota::QuotaManager;
27 using webkit_database::DatabaseUtil; 28 using webkit_database::DatabaseUtil;
28 29
29 // This browser test is aimed towards exercising the IndexedDB bindings and 30 // This browser test is aimed towards exercising the IndexedDB bindings and
30 // the actual implementation that lives in the browser side (in_process_webkit). 31 // the actual implementation that lives in the browser side (in_process_webkit).
31 class IndexedDBBrowserTest : public InProcessBrowserTest { 32 class IndexedDBBrowserTest : public InProcessBrowserTest {
32 public: 33 public:
33 IndexedDBBrowserTest() { 34 IndexedDBBrowserTest() {
34 EnableDOMAutomation(); 35 EnableDOMAutomation();
35 } 36 }
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 virtual void SetUpCommandLine(CommandLine* command_line) { 244 virtual void SetUpCommandLine(CommandLine* command_line) {
244 command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc"); 245 command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc");
245 } 246 }
246 }; 247 };
247 248
248 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, 249 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed,
249 DatabaseCallbacksTest) { 250 DatabaseCallbacksTest) {
250 SimpleTest( 251 SimpleTest(
251 testUrl(FilePath(FILE_PATH_LITERAL("database_callbacks_first.html")))); 252 testUrl(FilePath(FILE_PATH_LITERAL("database_callbacks_first.html"))));
252 } 253 }
OLDNEW
« no previous file with comments | « content/browser/in_process_webkit/dom_storage_unittest.cc ('k') | content/browser/in_process_webkit/indexed_db_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698