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

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

Issue 3034038: GTTF: Move more test server code from net/url_request/url_request_unittest.h (Closed)
Patch Set: hopefully final Created 10 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
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 "chrome/browser/browser.h" 9 #include "chrome/browser/browser.h"
9 #include "chrome/browser/renderer_host/render_process_host.h" 10 #include "chrome/browser/renderer_host/render_process_host.h"
10 #include "chrome/browser/renderer_host/web_cache_manager.h" 11 #include "chrome/browser/renderer_host/web_cache_manager.h"
11 #include "chrome/browser/tab_contents/tab_contents.h" 12 #include "chrome/browser/tab_contents/tab_contents.h"
12 #include "chrome/test/in_process_browser_test.h" 13 #include "chrome/test/in_process_browser_test.h"
13 #include "chrome/test/ui_test_utils.h" 14 #include "chrome/test/ui_test_utils.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 16
16 class WebCacheManagerBrowserTest : public InProcessBrowserTest { 17 class WebCacheManagerBrowserTest : public InProcessBrowserTest {
17 }; 18 };
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 54
54 ui_test_utils::NavigateToURL(browser(), url); 55 ui_test_utils::NavigateToURL(browser(), url);
55 56
56 EXPECT_EQ( 57 EXPECT_EQ(
57 WebCacheManager::GetInstance()->active_renderers_.size(), 1U); 58 WebCacheManager::GetInstance()->active_renderers_.size(), 1U);
58 EXPECT_EQ( 59 EXPECT_EQ(
59 WebCacheManager::GetInstance()->inactive_renderers_.size(), 0U); 60 WebCacheManager::GetInstance()->inactive_renderers_.size(), 0U);
60 EXPECT_EQ( 61 EXPECT_EQ(
61 WebCacheManager::GetInstance()->stats_.size(), 1U); 62 WebCacheManager::GetInstance()->stats_.size(), 1U);
62 } 63 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698