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

Side by Side Diff: net/disk_cache/disk_cache_perftest.cc

Issue 13052: Cleanup: move base/platform_test.h -> testing/ (Closed)
Patch Set: fix mark's comment Created 12 years 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
« no previous file with comments | « net/base/test_completion_callback_unittest.cc ('k') | net/disk_cache/disk_cache_test_base.h » ('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) 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 <fcntl.h> 5 #include <fcntl.h>
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/perftimer.h" 11 #include "base/perftimer.h"
12 #include "base/platform_test.h"
13 #if defined(OS_WIN) 12 #if defined(OS_WIN)
14 #include "base/scoped_handle.h" 13 #include "base/scoped_handle.h"
15 #endif 14 #endif
16 #include "base/string_util.h" 15 #include "base/string_util.h"
17 #include "base/timer.h" 16 #include "base/timer.h"
18 #include "net/base/net_errors.h" 17 #include "net/base/net_errors.h"
19 #include "net/disk_cache/block_files.h" 18 #include "net/disk_cache/block_files.h"
20 #include "net/disk_cache/disk_cache.h" 19 #include "net/disk_cache/disk_cache.h"
21 #include "net/disk_cache/disk_cache_test_util.h" 20 #include "net/disk_cache/disk_cache_test_util.h"
22 #include "net/disk_cache/hash.h" 21 #include "net/disk_cache/hash.h"
23 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 #include "testing/platform_test.h"
24 24
25 using base::Time; 25 using base::Time;
26 26
27 extern int g_cache_tests_max_id; 27 extern int g_cache_tests_max_id;
28 extern volatile int g_cache_tests_received; 28 extern volatile int g_cache_tests_received;
29 extern volatile bool g_cache_tests_error; 29 extern volatile bool g_cache_tests_error;
30 30
31 typedef PlatformTest DiskCacheTest; 31 typedef PlatformTest DiskCacheTest;
32 32
33 namespace { 33 namespace {
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 entry = 0; 303 entry = 0;
304 304
305 files.DeleteBlock(address[entry], false); 305 files.DeleteBlock(address[entry], false);
306 EXPECT_TRUE(files.CreateBlock(disk_cache::RANKINGS, BlockSize(), 306 EXPECT_TRUE(files.CreateBlock(disk_cache::RANKINGS, BlockSize(),
307 &address[entry])); 307 &address[entry]));
308 } 308 }
309 309
310 timer2.Done(); 310 timer2.Done();
311 MessageLoop::current()->RunAllPending(); 311 MessageLoop::current()->RunAllPending();
312 } 312 }
OLDNEW
« no previous file with comments | « net/base/test_completion_callback_unittest.cc ('k') | net/disk_cache/disk_cache_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698