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

Side by Side Diff: chrome/browser/renderer_host/test/web_cache_manager_browsertest.cc

Issue 6304008: Disable WebCacheManagerBrowserTest.CrashOnceOnly, flakily times out.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | no next file » | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 <string> 5 #include <string>
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/process_util.h" 8 #include "base/process_util.h"
9 #include "chrome/browser/renderer_host/render_process_host.h" 9 #include "chrome/browser/renderer_host/render_process_host.h"
10 #include "chrome/browser/renderer_host/web_cache_manager.h" 10 #include "chrome/browser/renderer_host/web_cache_manager.h"
11 #include "chrome/browser/tab_contents/tab_contents.h" 11 #include "chrome/browser/tab_contents/tab_contents.h"
12 #include "chrome/browser/ui/browser.h" 12 #include "chrome/browser/ui/browser.h"
13 #include "chrome/common/result_codes.h" 13 #include "chrome/common/result_codes.h"
14 #include "chrome/test/in_process_browser_test.h" 14 #include "chrome/test/in_process_browser_test.h"
15 #include "chrome/test/ui_test_utils.h" 15 #include "chrome/test/ui_test_utils.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 class WebCacheManagerBrowserTest : public InProcessBrowserTest { 18 class WebCacheManagerBrowserTest : public InProcessBrowserTest {
19 }; 19 };
20 20
21 // Regression test for http://crbug.com/12362. If a renderer crashes and the 21 // Regression test for http://crbug.com/12362. If a renderer crashes and the
22 // user navigates to another tab and back, the browser doesn't crash. 22 // user navigates to another tab and back, the browser doesn't crash.
23 // Flaky, http://crbug.com/15288. 23 // Flaky, http://crbug.com/15288. Disabled, http://crbug.com/69918.
24 IN_PROC_BROWSER_TEST_F(WebCacheManagerBrowserTest, FLAKY_CrashOnceOnly) { 24 IN_PROC_BROWSER_TEST_F(WebCacheManagerBrowserTest, DISABLED_CrashOnceOnly) {
25 const FilePath kTestDir(FILE_PATH_LITERAL("google")); 25 const FilePath kTestDir(FILE_PATH_LITERAL("google"));
26 const FilePath kTestFile(FILE_PATH_LITERAL("google.html")); 26 const FilePath kTestFile(FILE_PATH_LITERAL("google.html"));
27 GURL url(ui_test_utils::GetTestUrl(kTestDir, kTestFile)); 27 GURL url(ui_test_utils::GetTestUrl(kTestDir, kTestFile));
28 28
29 ui_test_utils::NavigateToURL(browser(), url); 29 ui_test_utils::NavigateToURL(browser(), url);
30 30
31 browser()->NewTab(); 31 browser()->NewTab();
32 ui_test_utils::NavigateToURL(browser(), url); 32 ui_test_utils::NavigateToURL(browser(), url);
33 33
34 TabContents* tab = browser()->GetTabContentsAt(0); 34 TabContents* tab = browser()->GetTabContentsAt(0);
(...skipping 20 matching lines...) Expand all
55 55
56 ui_test_utils::NavigateToURL(browser(), url); 56 ui_test_utils::NavigateToURL(browser(), url);
57 57
58 EXPECT_EQ( 58 EXPECT_EQ(
59 WebCacheManager::GetInstance()->active_renderers_.size(), 1U); 59 WebCacheManager::GetInstance()->active_renderers_.size(), 1U);
60 EXPECT_EQ( 60 EXPECT_EQ(
61 WebCacheManager::GetInstance()->inactive_renderers_.size(), 0U); 61 WebCacheManager::GetInstance()->inactive_renderers_.size(), 0U);
62 EXPECT_EQ( 62 EXPECT_EQ(
63 WebCacheManager::GetInstance()->stats_.size(), 1U); 63 WebCacheManager::GetInstance()->stats_.size(), 1U);
64 } 64 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698