| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/browser/renderer_host/web_cache_manager.h" | 8 #include "chrome/browser/renderer_host/web_cache_manager.h" |
| 9 #include "chrome/test/testing_browser_process_test.h" | 9 #include "chrome/test/base/testing_browser_process_test.h" |
| 10 #include "content/browser/browser_thread.h" | 10 #include "content/browser/browser_thread.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 12 |
| 13 using base::Time; | 13 using base::Time; |
| 14 using base::TimeDelta; | 14 using base::TimeDelta; |
| 15 using WebKit::WebCache; | 15 using WebKit::WebCache; |
| 16 | 16 |
| 17 class WebCacheManagerTest : public TestingBrowserProcessTest { | 17 class WebCacheManagerTest : public TestingBrowserProcessTest { |
| 18 protected: | 18 protected: |
| 19 typedef WebCacheManager::StatsMap StatsMap; | 19 typedef WebCacheManager::StatsMap StatsMap; |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 | 302 |
| 303 size_t expected_total_bytes = kExtraBytesToAllocate + | 303 size_t expected_total_bytes = kExtraBytesToAllocate + |
| 304 kStats.liveSize + kStats.deadSize + | 304 kStats.liveSize + kStats.deadSize + |
| 305 kStats2.liveSize + kStats2.deadSize; | 305 kStats2.liveSize + kStats2.deadSize; |
| 306 | 306 |
| 307 EXPECT_GE(expected_total_bytes, total_bytes); | 307 EXPECT_GE(expected_total_bytes, total_bytes); |
| 308 | 308 |
| 309 manager()->Remove(kRendererID); | 309 manager()->Remove(kRendererID); |
| 310 manager()->Remove(kRendererID2); | 310 manager()->Remove(kRendererID2); |
| 311 } | 311 } |
| OLD | NEW |