OLD | NEW |
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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/process_util.h" | |
9 #include "chrome/browser/renderer_host/web_cache_manager.h" | 8 #include "chrome/browser/renderer_host/web_cache_manager.h" |
10 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
11 #include "chrome/browser/ui/browser_commands.h" | 10 #include "chrome/browser/ui/browser_commands.h" |
12 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 11 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
13 #include "chrome/test/base/in_process_browser_test.h" | 12 #include "chrome/test/base/in_process_browser_test.h" |
14 #include "chrome/test/base/ui_test_utils.h" | 13 #include "chrome/test/base/ui_test_utils.h" |
15 #include "content/public/browser/render_process_host.h" | 14 #include "content/public/browser/render_process_host.h" |
16 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
17 #include "content/public/common/result_codes.h" | 16 #include "content/public/common/result_codes.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 57 |
59 ui_test_utils::NavigateToURL(browser(), url); | 58 ui_test_utils::NavigateToURL(browser(), url); |
60 | 59 |
61 EXPECT_EQ( | 60 EXPECT_EQ( |
62 WebCacheManager::GetInstance()->active_renderers_.size(), 1U); | 61 WebCacheManager::GetInstance()->active_renderers_.size(), 1U); |
63 EXPECT_EQ( | 62 EXPECT_EQ( |
64 WebCacheManager::GetInstance()->inactive_renderers_.size(), 0U); | 63 WebCacheManager::GetInstance()->inactive_renderers_.size(), 0U); |
65 EXPECT_EQ( | 64 EXPECT_EQ( |
66 WebCacheManager::GetInstance()->stats_.size(), 1U); | 65 WebCacheManager::GetInstance()->stats_.size(), 1U); |
67 } | 66 } |
OLD | NEW |