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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. 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
« no previous file with comments | « chrome/browser/renderer_host/offline_resource_handler.cc ('k') | chrome/browser/rlz/rlz.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/renderer_host/web_cache_manager.h" 8 #include "chrome/browser/renderer_host/web_cache_manager.h"
9 #include "content/test/test_browser_thread.h" 9 #include "content/test/test_browser_thread.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 using base::Time; 12 using base::Time;
13 using base::TimeDelta; 13 using base::TimeDelta;
14 using content::BrowserThread;
14 using WebKit::WebCache; 15 using WebKit::WebCache;
15 16
16 class WebCacheManagerTest : public testing::Test { 17 class WebCacheManagerTest : public testing::Test {
17 protected: 18 protected:
18 typedef WebCacheManager::StatsMap StatsMap; 19 typedef WebCacheManager::StatsMap StatsMap;
19 typedef WebCacheManager::Allocation Allocation; 20 typedef WebCacheManager::Allocation Allocation;
20 typedef WebCacheManager::AllocationStrategy AllocationStrategy; 21 typedef WebCacheManager::AllocationStrategy AllocationStrategy;
21 22
22 static const int kRendererID; 23 static const int kRendererID;
23 static const int kRendererID2; 24 static const int kRendererID2;
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 302
302 size_t expected_total_bytes = kExtraBytesToAllocate + 303 size_t expected_total_bytes = kExtraBytesToAllocate +
303 kStats.liveSize + kStats.deadSize + 304 kStats.liveSize + kStats.deadSize +
304 kStats2.liveSize + kStats2.deadSize; 305 kStats2.liveSize + kStats2.deadSize;
305 306
306 EXPECT_GE(expected_total_bytes, total_bytes); 307 EXPECT_GE(expected_total_bytes, total_bytes);
307 308
308 manager()->Remove(kRendererID); 309 manager()->Remove(kRendererID);
309 manager()->Remove(kRendererID2); 310 manager()->Remove(kRendererID2);
310 } 311 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/offline_resource_handler.cc ('k') | chrome/browser/rlz/rlz.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698