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 "base/file_util.h" | 5 #include "base/file_util.h" |
6 #include "base/files/scoped_temp_dir.h" | 6 #include "base/files/scoped_temp_dir.h" |
7 #include "base/hash.h" | 7 #include "base/hash.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
11 #include "base/pickle.h" | 11 #include "base/pickle.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 #include "base/time.h" | 14 #include "base/time/time.h" |
15 #include "net/disk_cache/simple/simple_entry_format.h" | 15 #include "net/disk_cache/simple/simple_entry_format.h" |
16 #include "net/disk_cache/simple/simple_index.h" | 16 #include "net/disk_cache/simple/simple_index.h" |
17 #include "net/disk_cache/simple/simple_index_file.h" | 17 #include "net/disk_cache/simple/simple_index_file.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 using base::Time; | 20 using base::Time; |
21 using disk_cache::SimpleIndexFile; | 21 using disk_cache::SimpleIndexFile; |
22 using disk_cache::SimpleIndex; | 22 using disk_cache::SimpleIndex; |
23 | 23 |
24 namespace disk_cache { | 24 namespace disk_cache { |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 GetCallback()); | 236 GetCallback()); |
237 base::RunLoop().RunUntilIdle(); | 237 base::RunLoop().RunUntilIdle(); |
238 | 238 |
239 EXPECT_FALSE(file_util::PathExists(index_path)); | 239 EXPECT_FALSE(file_util::PathExists(index_path)); |
240 ASSERT_TRUE(callback_result()); | 240 ASSERT_TRUE(callback_result()); |
241 EXPECT_TRUE(callback_result()->force_index_flush); | 241 EXPECT_TRUE(callback_result()->force_index_flush); |
242 EXPECT_TRUE(callback_result()->index_file_entries); | 242 EXPECT_TRUE(callback_result()->index_file_entries); |
243 } | 243 } |
244 | 244 |
245 } // namespace disk_cache | 245 } // namespace disk_cache |
OLD | NEW |