OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include "base/files/file.h" | 7 #include "base/files/file.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/metrics/field_trial.h" | 9 #include "base/metrics/field_trial.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
12 #include "base/strings/string_split.h" | 12 #include "base/strings/string_split.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
15 #include "base/test/mock_entropy_provider.h" | 15 #include "base/test/mock_entropy_provider.h" |
16 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 16 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
17 #include "base/thread_task_runner_handle.h" | |
18 #include "base/threading/platform_thread.h" | 17 #include "base/threading/platform_thread.h" |
19 #include "base/threading/thread_restrictions.h" | 18 #include "base/threading/thread_restrictions.h" |
| 19 #include "base/threading/thread_task_runner_handle.h" |
20 #include "net/base/cache_type.h" | 20 #include "net/base/cache_type.h" |
21 #include "net/base/io_buffer.h" | 21 #include "net/base/io_buffer.h" |
22 #include "net/base/net_errors.h" | 22 #include "net/base/net_errors.h" |
23 #include "net/base/test_completion_callback.h" | 23 #include "net/base/test_completion_callback.h" |
24 #include "net/disk_cache/blockfile/backend_impl.h" | 24 #include "net/disk_cache/blockfile/backend_impl.h" |
25 #include "net/disk_cache/blockfile/entry_impl.h" | 25 #include "net/disk_cache/blockfile/entry_impl.h" |
26 #include "net/disk_cache/blockfile/experiments.h" | 26 #include "net/disk_cache/blockfile/experiments.h" |
27 #include "net/disk_cache/blockfile/histogram_macros.h" | 27 #include "net/disk_cache/blockfile/histogram_macros.h" |
28 #include "net/disk_cache/blockfile/mapped_file.h" | 28 #include "net/disk_cache/blockfile/mapped_file.h" |
29 #include "net/disk_cache/cache_util.h" | 29 #include "net/disk_cache/cache_util.h" |
(...skipping 3746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3776 // because that would advance the cache directory mtime and invalidate the | 3776 // because that would advance the cache directory mtime and invalidate the |
3777 // index. | 3777 // index. |
3778 entry2->Doom(); | 3778 entry2->Doom(); |
3779 entry2->Close(); | 3779 entry2->Close(); |
3780 | 3780 |
3781 DisableFirstCleanup(); | 3781 DisableFirstCleanup(); |
3782 InitCache(); | 3782 InitCache(); |
3783 EXPECT_EQ(disk_cache::SimpleIndex::INITIALIZE_METHOD_LOADED, | 3783 EXPECT_EQ(disk_cache::SimpleIndex::INITIALIZE_METHOD_LOADED, |
3784 simple_cache_impl_->index()->init_method()); | 3784 simple_cache_impl_->index()->init_method()); |
3785 } | 3785 } |
OLD | NEW |