| OLD | NEW |
| 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/basictypes.h" | |
| 8 #include "base/bind.h" | 7 #include "base/bind.h" |
| 9 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 10 #include "base/hash.h" | 9 #include "base/hash.h" |
| 11 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 12 #include "base/test/perf_time_logger.h" | 11 #include "base/test/perf_time_logger.h" |
| 13 #include "base/test/test_file_util.h" | 12 #include "base/test/test_file_util.h" |
| 14 #include "base/threading/thread.h" | 13 #include "base/threading/thread.h" |
| 15 #include "net/base/cache_type.h" | 14 #include "net/base/cache_type.h" |
| 16 #include "net/base/io_buffer.h" | 15 #include "net/base/io_buffer.h" |
| 17 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 251 |
| 253 files.DeleteBlock(address[entry], false); | 252 files.DeleteBlock(address[entry], false); |
| 254 EXPECT_TRUE(files.CreateBlock(disk_cache::RANKINGS, BlockSize(), | 253 EXPECT_TRUE(files.CreateBlock(disk_cache::RANKINGS, BlockSize(), |
| 255 &address[entry])); | 254 &address[entry])); |
| 256 } | 255 } |
| 257 | 256 |
| 258 timer2.Done(); | 257 timer2.Done(); |
| 259 base::MessageLoop::current()->RunUntilIdle(); | 258 base::MessageLoop::current()->RunUntilIdle(); |
| 260 delete[] address; | 259 delete[] address; |
| 261 } | 260 } |
| OLD | NEW |