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

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

Issue 13513004: content: Move more constants into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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
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_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.h" 10 #include "base/message_loop.h"
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 // renderer/browser crash 383 // renderer/browser crash
384 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, 384 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest,
385 PRE_PRE_VersionChangeCrashResilience) { 385 PRE_PRE_VersionChangeCrashResilience) {
386 NavigateAndWaitForTitle(shell(), "version_change_crash.html", "#part1", 386 NavigateAndWaitForTitle(shell(), "version_change_crash.html", "#part1",
387 "pass - part1 - complete"); 387 "pass - part1 - complete");
388 } 388 }
389 389
390 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, PRE_VersionChangeCrashResilience) { 390 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, PRE_VersionChangeCrashResilience) {
391 NavigateAndWaitForTitle(shell(), "version_change_crash.html", "#part2", 391 NavigateAndWaitForTitle(shell(), "version_change_crash.html", "#part2",
392 "pass - part2 - crash me"); 392 "pass - part2 - crash me");
393 NavigateToURL(shell(), GURL(chrome::kChromeUIBrowserCrashHost)); 393 NavigateToURL(shell(), GURL(kChromeUIBrowserCrashHost));
394 } 394 }
395 395
396 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, VersionChangeCrashResilience) { 396 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, VersionChangeCrashResilience) {
397 NavigateAndWaitForTitle(shell(), "version_change_crash.html", "#part3", 397 NavigateAndWaitForTitle(shell(), "version_change_crash.html", "#part3",
398 "pass - part3 - rolled back"); 398 "pass - part3 - rolled back");
399 } 399 }
400 400
401 // Verify that open DB connections are closed when a tab is destroyed. 401 // Verify that open DB connections are closed when a tab is destroyed.
402 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, ConnectionsClosedOnTabClose) { 402 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, ConnectionsClosedOnTabClose) {
403 NavigateAndWaitForTitle(shell(), "version_change_blocked.html", "#tab1", 403 NavigateAndWaitForTitle(shell(), "version_change_blocked.html", "#tab1",
404 "setVersion(2) complete"); 404 "setVersion(2) complete");
405 405
406 // Start on a different URL to force a new renderer process. 406 // Start on a different URL to force a new renderer process.
407 Shell* new_shell = CreateBrowser(); 407 Shell* new_shell = CreateBrowser();
408 NavigateToURL(new_shell, GURL(chrome::kAboutBlankURL)); 408 NavigateToURL(new_shell, GURL(chrome::kAboutBlankURL));
409 NavigateAndWaitForTitle(new_shell, "version_change_blocked.html", "#tab2", 409 NavigateAndWaitForTitle(new_shell, "version_change_blocked.html", "#tab2",
410 "setVersion(3) blocked"); 410 "setVersion(3) blocked");
411 411
412 string16 expected_title16(ASCIIToUTF16("setVersion(3) complete")); 412 string16 expected_title16(ASCIIToUTF16("setVersion(3) complete"));
413 TitleWatcher title_watcher(new_shell->web_contents(), expected_title16); 413 TitleWatcher title_watcher(new_shell->web_contents(), expected_title16);
414 414
415 base::KillProcess( 415 base::KillProcess(
416 shell()->web_contents()->GetRenderProcessHost()->GetHandle(), 0, true); 416 shell()->web_contents()->GetRenderProcessHost()->GetHandle(), 0, true);
417 shell()->Close(); 417 shell()->Close();
418 418
419 EXPECT_EQ(expected_title16, title_watcher.WaitAndGetTitle()); 419 EXPECT_EQ(expected_title16, title_watcher.WaitAndGetTitle());
420 } 420 }
421 421
422 } // namespace content 422 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_internals_ui.cc ('k') | content/browser/indexed_db/indexed_db_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698