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

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

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | 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 "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/public/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 content::BrowserThread;
15 using WebKit::WebCache; 15 using WebKit::WebCache;
16 16
17 class WebCacheManagerTest : public testing::Test { 17 class WebCacheManagerTest : public testing::Test {
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698