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

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

Issue 7745011: Remove --unlimited-quota-for-indexeddb. Increase incognito quota. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another rebase Created 9 years, 4 months 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
« no previous file with comments | « no previous file | content/browser/in_process_webkit/indexed_db_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/command_line.h" 5 #include "base/command_line.h"
6 #include "base/file_path.h" 6 #include "base/file_path.h"
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/scoped_temp_dir.h" 9 #include "base/scoped_temp_dir.h"
10 #include "base/test/thread_test_helper.h" 10 #include "base/test/thread_test_helper.h"
(...skipping 14 matching lines...) Expand all
25 using webkit_database::DatabaseUtil; 25 using webkit_database::DatabaseUtil;
26 26
27 // This browser test is aimed towards exercising the IndexedDB bindings and 27 // This browser test is aimed towards exercising the IndexedDB bindings and
28 // the actual implementation that lives in the browser side (in_process_webkit). 28 // the actual implementation that lives in the browser side (in_process_webkit).
29 class IndexedDBBrowserTest : public InProcessBrowserTest { 29 class IndexedDBBrowserTest : public InProcessBrowserTest {
30 public: 30 public:
31 IndexedDBBrowserTest() { 31 IndexedDBBrowserTest() {
32 EnableDOMAutomation(); 32 EnableDOMAutomation();
33 } 33 }
34 34
35 virtual void SetUpCommandLine(CommandLine* command_line) {
36 command_line->AppendSwitch(switches::kUnlimitedQuotaForIndexedDB);
37 }
38
39 GURL testUrl(const FilePath& file_path) { 35 GURL testUrl(const FilePath& file_path) {
40 const FilePath kTestDir(FILE_PATH_LITERAL("indexeddb")); 36 const FilePath kTestDir(FILE_PATH_LITERAL("indexeddb"));
41 return ui_test_utils::GetTestUrl(kTestDir, file_path); 37 return ui_test_utils::GetTestUrl(kTestDir, file_path);
42 } 38 }
43 39
44 void SimpleTest(const GURL& test_url, bool incognito = false) { 40 void SimpleTest(const GURL& test_url, bool incognito = false) {
45 // The test page will perform tests on IndexedDB, then navigate to either 41 // The test page will perform tests on IndexedDB, then navigate to either
46 // a #pass or #fail ref. 42 // a #pass or #fail ref.
47 Browser* the_browser = incognito ? CreateIncognitoBrowser() : browser(); 43 Browser* the_browser = incognito ? CreateIncognitoBrowser() : browser();
48 44
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 virtual void SetUpCommandLine(CommandLine* command_line) { 216 virtual void SetUpCommandLine(CommandLine* command_line) {
221 command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc"); 217 command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc");
222 } 218 }
223 }; 219 };
224 220
225 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, 221 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed,
226 DatabaseCallbacksTest) { 222 DatabaseCallbacksTest) {
227 SimpleTest( 223 SimpleTest(
228 testUrl(FilePath(FILE_PATH_LITERAL("database_callbacks_first.html")))); 224 testUrl(FilePath(FILE_PATH_LITERAL("database_callbacks_first.html"))));
229 } 225 }
OLDNEW
« no previous file with comments | « no previous file | content/browser/in_process_webkit/indexed_db_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698