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

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

Issue 6672070: Move the remaining files in chrome\common to content\common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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) 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/web_cache_manager.h" 9 #include "chrome/browser/renderer_host/web_cache_manager.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
11 #include "chrome/common/result_codes.h"
12 #include "chrome/test/in_process_browser_test.h" 11 #include "chrome/test/in_process_browser_test.h"
13 #include "chrome/test/ui_test_utils.h" 12 #include "chrome/test/ui_test_utils.h"
14 #include "content/browser/renderer_host/render_process_host.h" 13 #include "content/browser/renderer_host/render_process_host.h"
15 #include "content/browser/tab_contents/tab_contents.h" 14 #include "content/browser/tab_contents/tab_contents.h"
15 #include "content/common/result_codes.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. Disabled, http://crbug.com/69918. 23 // Flaky, http://crbug.com/15288. Disabled, http://crbug.com/69918.
24 IN_PROC_BROWSER_TEST_F(WebCacheManagerBrowserTest, DISABLED_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"));
(...skipping 29 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 | « chrome/browser/renderer_host/render_widget_host_view_win.cc ('k') | chrome/browser/sessions/session_restore_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698