| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "net/disk_cache/flash/flash_cache_test_base.h" | |
| 6 | |
| 7 #include "base/files/file_path.h" | |
| 8 #include "base/files/scoped_temp_dir.h" | |
| 9 #include "base/time/time.h" | |
| 10 #include "net/disk_cache/flash/format.h" | |
| 11 #include "net/disk_cache/flash/log_store.h" | |
| 12 #include "net/disk_cache/flash/storage.h" | |
| 13 | |
| 14 FlashCacheTest::FlashCacheTest() { | |
| 15 int seed = static_cast<int>(base::Time::Now().ToInternalValue()); | |
| 16 srand(seed); | |
| 17 } | |
| 18 | |
| 19 FlashCacheTest::~FlashCacheTest() { | |
| 20 } | |
| 21 | |
| 22 void FlashCacheTest::SetUp() { | |
| 23 const base::FilePath::StringType kCachePath = FILE_PATH_LITERAL("cache"); | |
| 24 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); | |
| 25 path_ = temp_dir_.path().Append(kCachePath); | |
| 26 } | |
| 27 | |
| 28 void FlashCacheTest::TearDown() { | |
| 29 } | |
| OLD | NEW |