| OLD | NEW |
| 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" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("transaction_test.html")))); | 117 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("transaction_test.html")))); |
| 118 } | 118 } |
| 119 | 119 |
| 120 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, Bug84933Test) { | 120 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, Bug84933Test) { |
| 121 const GURL url = testUrl(FilePath(FILE_PATH_LITERAL("bug_84933.html"))); | 121 const GURL url = testUrl(FilePath(FILE_PATH_LITERAL("bug_84933.html"))); |
| 122 | 122 |
| 123 // Just navigate to the URL. Test will crash if it fails. | 123 // Just navigate to the URL. Test will crash if it fails. |
| 124 ui_test_utils::NavigateToURLBlockUntilNavigationsComplete(browser(), url, 1); | 124 ui_test_utils::NavigateToURLBlockUntilNavigationsComplete(browser(), url, 1); |
| 125 } | 125 } |
| 126 | 126 |
| 127 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, Bug106883Test) { |
| 128 const GURL url = testUrl(FilePath(FILE_PATH_LITERAL("bug_106883.html"))); |
| 129 |
| 130 // Just navigate to the URL. Test will crash if it fails. |
| 131 ui_test_utils::NavigateToURLBlockUntilNavigationsComplete(browser(), url, 1); |
| 132 } |
| 133 |
| 127 // In proc browser test is needed here because ClearLocalState indirectly calls | 134 // In proc browser test is needed here because ClearLocalState indirectly calls |
| 128 // WebKit's isMainThread through WebSecurityOrigin->SecurityOrigin. | 135 // WebKit's isMainThread through WebSecurityOrigin->SecurityOrigin. |
| 129 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, ClearLocalState) { | 136 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, ClearLocalState) { |
| 130 ScopedTempDir temp_dir; | 137 ScopedTempDir temp_dir; |
| 131 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); | 138 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); |
| 132 | 139 |
| 133 FilePath protected_path; | 140 FilePath protected_path; |
| 134 FilePath unprotected_path; | 141 FilePath unprotected_path; |
| 135 | 142 |
| 136 // Create the scope which will ensure we run the destructor of the webkit | 143 // Create the scope which will ensure we run the destructor of the webkit |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 virtual void SetUpCommandLine(CommandLine* command_line) { | 313 virtual void SetUpCommandLine(CommandLine* command_line) { |
| 307 command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc"); | 314 command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc"); |
| 308 } | 315 } |
| 309 }; | 316 }; |
| 310 | 317 |
| 311 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, | 318 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, |
| 312 DatabaseCallbacksTest) { | 319 DatabaseCallbacksTest) { |
| 313 SimpleTest( | 320 SimpleTest( |
| 314 testUrl(FilePath(FILE_PATH_LITERAL("database_callbacks_first.html")))); | 321 testUrl(FilePath(FILE_PATH_LITERAL("database_callbacks_first.html")))); |
| 315 } | 322 } |
| OLD | NEW |