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

Side by Side Diff: net/disk_cache/flash/flash_cache_test_base.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/eviction.cc ('k') | net/disk_cache/in_flight_backend_io.h » ('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) 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 "net/disk_cache/flash/flash_cache_test_base.h" 5 #include "net/disk_cache/flash/flash_cache_test_base.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/time.h" 9 #include "base/time/time.h"
10 #include "net/disk_cache/flash/format.h" 10 #include "net/disk_cache/flash/format.h"
11 #include "net/disk_cache/flash/log_store.h" 11 #include "net/disk_cache/flash/log_store.h"
12 #include "net/disk_cache/flash/storage.h" 12 #include "net/disk_cache/flash/storage.h"
13 13
14 FlashCacheTest::FlashCacheTest() { 14 FlashCacheTest::FlashCacheTest() {
15 int seed = static_cast<int>(base::Time::Now().ToInternalValue()); 15 int seed = static_cast<int>(base::Time::Now().ToInternalValue());
16 srand(seed); 16 srand(seed);
17 } 17 }
18 18
19 FlashCacheTest::~FlashCacheTest() { 19 FlashCacheTest::~FlashCacheTest() {
20 } 20 }
21 21
22 void FlashCacheTest::SetUp() { 22 void FlashCacheTest::SetUp() {
23 const base::FilePath::StringType kCachePath = FILE_PATH_LITERAL("cache"); 23 const base::FilePath::StringType kCachePath = FILE_PATH_LITERAL("cache");
24 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); 24 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
25 path_ = temp_dir_.path().Append(kCachePath); 25 path_ = temp_dir_.path().Append(kCachePath);
26 } 26 }
27 27
28 void FlashCacheTest::TearDown() { 28 void FlashCacheTest::TearDown() {
29 } 29 }
OLDNEW
« no previous file with comments | « net/disk_cache/eviction.cc ('k') | net/disk_cache/in_flight_backend_io.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698