| 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/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/message_loop/message_loop.h" |
| 10 #include "base/metrics/field_trial.h" | 11 #include "base/metrics/field_trial.h" |
| 11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 12 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 13 #include "base/strings/string_split.h" | 14 #include "base/strings/string_split.h" |
| 14 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
| 15 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
| 16 #include "base/test/mock_entropy_provider.h" | 17 #include "base/test/mock_entropy_provider.h" |
| 17 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 18 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
| 18 #include "base/threading/platform_thread.h" | 19 #include "base/threading/platform_thread.h" |
| 19 #include "base/threading/thread_restrictions.h" | 20 #include "base/threading/thread_restrictions.h" |
| (...skipping 4064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4084 disk_cache::SimpleBackendImpl::FlushWorkerPoolForTesting(); | 4085 disk_cache::SimpleBackendImpl::FlushWorkerPoolForTesting(); |
| 4085 base::RunLoop().RunUntilIdle(); | 4086 base::RunLoop().RunUntilIdle(); |
| 4086 | 4087 |
| 4087 disk_cache::Entry* reopen_entry1; | 4088 disk_cache::Entry* reopen_entry1; |
| 4088 ASSERT_THAT(OpenEntry(key1, &reopen_entry1), IsOk()); | 4089 ASSERT_THAT(OpenEntry(key1, &reopen_entry1), IsOk()); |
| 4089 | 4090 |
| 4090 // This shouldn't pick up entry2's write time incorrectly. | 4091 // This shouldn't pick up entry2's write time incorrectly. |
| 4091 EXPECT_LE(reopen_entry1->GetLastModified(), entry1_timestamp); | 4092 EXPECT_LE(reopen_entry1->GetLastModified(), entry1_timestamp); |
| 4092 reopen_entry1->Close(); | 4093 reopen_entry1->Close(); |
| 4093 } | 4094 } |
| OLD | NEW |