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

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

Issue 10833029: Move ui_test_utils::CrashTab to browser_test_utils so that it can be reused by content_browsertests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | « chrome/test/base/ui_test_utils.cc ('k') | content/public/test/browser_test_utils.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) 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_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/path_service.h" 10 #include "base/path_service.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 } 109 }
110 110
111 // Appears flaky/slow, see: http://crbug.com/120298 111 // Appears flaky/slow, see: http://crbug.com/120298
112 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, DISABLED_ValueSizeTest) { 112 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, DISABLED_ValueSizeTest) {
113 SimpleTest(GetTestURL(FilePath(FILE_PATH_LITERAL("value_size_test.html")))); 113 SimpleTest(GetTestURL(FilePath(FILE_PATH_LITERAL("value_size_test.html"))));
114 } 114 }
115 115
116 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, DoesntHangTest) { 116 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, DoesntHangTest) {
117 SimpleTest(GetTestURL(FilePath( 117 SimpleTest(GetTestURL(FilePath(
118 FILE_PATH_LITERAL("transaction_run_forever.html")))); 118 FILE_PATH_LITERAL("transaction_run_forever.html"))));
119 ui_test_utils::CrashTab(chrome::GetActiveWebContents(browser())); 119 content::CrashTab(chrome::GetActiveWebContents(browser()));
120 SimpleTest(GetTestURL(FilePath(FILE_PATH_LITERAL("transaction_test.html")))); 120 SimpleTest(GetTestURL(FilePath(FILE_PATH_LITERAL("transaction_test.html"))));
121 } 121 }
122 122
123 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, Bug84933Test) { 123 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, Bug84933Test) {
124 const GURL url = GetTestURL(FilePath(FILE_PATH_LITERAL("bug_84933.html"))); 124 const GURL url = GetTestURL(FilePath(FILE_PATH_LITERAL("bug_84933.html")));
125 125
126 // Just navigate to the URL. Test will crash if it fails. 126 // Just navigate to the URL. Test will crash if it fails.
127 ui_test_utils::NavigateToURLBlockUntilNavigationsComplete(browser(), url, 1); 127 ui_test_utils::NavigateToURLBlockUntilNavigationsComplete(browser(), url, 1);
128 } 128 }
129 129
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 virtual void SetUpCommandLine(CommandLine* command_line) { 180 virtual void SetUpCommandLine(CommandLine* command_line) {
181 command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc"); 181 command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc");
182 } 182 }
183 }; 183 };
184 184
185 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, 185 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed,
186 DatabaseCallbacksTest) { 186 DatabaseCallbacksTest) {
187 SimpleTest( 187 SimpleTest(
188 GetTestURL(FilePath(FILE_PATH_LITERAL("database_callbacks_first.html")))); 188 GetTestURL(FilePath(FILE_PATH_LITERAL("database_callbacks_first.html"))));
189 } 189 }
OLDNEW
« no previous file with comments | « chrome/test/base/ui_test_utils.cc ('k') | content/public/test/browser_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698