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

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

Issue 8515027: Define the public version of the browser side RenderProcessHost interface. This interface is not ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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) 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 <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/test/base/in_process_browser_test.h" 11 #include "chrome/test/base/in_process_browser_test.h"
12 #include "chrome/test/base/ui_test_utils.h" 12 #include "chrome/test/base/ui_test_utils.h"
13 #include "content/browser/renderer_host/render_process_host.h" 13 #include "content/browser/renderer_host/render_process_host_impl.h"
14 #include "content/browser/tab_contents/tab_contents.h" 14 #include "content/browser/tab_contents/tab_contents.h"
15 #include "content/public/common/result_codes.h" 15 #include "content/public/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.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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/web_cache_manager.cc ('k') | chrome/browser/safe_browsing/client_side_detection_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698