Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(770)

Side by Side Diff: net/disk_cache/simple/simple_index_file_unittest.cc

Issue 18054009: Use a direct include of time headers in net/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/disk_cache/simple/simple_index.cc ('k') | net/disk_cache/simple/simple_index_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/disk_cache/simple/simple_index.cc ('k') | net/disk_cache/simple/simple_index_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698