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 "net/disk_cache/disk_cache_test_util.h" | 5 #include "net/disk_cache/disk_cache_test_util.h" |
6 | 6 |
| 7 #include "base/files/file_path.h" |
7 #include "base/logging.h" | 8 #include "base/logging.h" |
8 #include "base/file_util.h" | |
9 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop_proxy.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "net/base/net_errors.h" | 11 #include "net/base/net_errors.h" |
12 #include "net/disk_cache/backend_impl.h" | 12 #include "net/disk_cache/backend_impl.h" |
13 #include "net/disk_cache/cache_util.h" | 13 #include "net/disk_cache/cache_util.h" |
14 #include "net/disk_cache/file.h" | 14 #include "net/disk_cache/file.h" |
15 | 15 |
16 using base::Time; | 16 using base::Time; |
17 using base::TimeDelta; | 17 using base::TimeDelta; |
18 | 18 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 137 |
138 if (reuse_) { | 138 if (reuse_) { |
139 DCHECK_EQ(1, reuse_); | 139 DCHECK_EQ(1, reuse_); |
140 if (2 == reuse_) | 140 if (2 == reuse_) |
141 helper_->set_callback_reused_error(true); | 141 helper_->set_callback_reused_error(true); |
142 reuse_++; | 142 reuse_++; |
143 } | 143 } |
144 | 144 |
145 helper_->CallbackWasCalled(); | 145 helper_->CallbackWasCalled(); |
146 } | 146 } |
OLD | NEW |