| 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 #ifndef NET_DISK_CACHE_DISK_CACHE_FLASH_TEST_BASE_H_ | |
| 6 #define NET_DISK_CACHE_DISK_CACHE_FLASH_TEST_BASE_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/compiler_specific.h" | |
| 10 #include "base/files/scoped_temp_dir.h" | |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 #include "net/disk_cache/flash/format.h" | |
| 13 #include "testing/gtest/include/gtest/gtest.h" | |
| 14 | |
| 15 namespace { | |
| 16 | |
| 17 const int32 kNumTestSegments = 10; | |
| 18 const int32 kStorageSize = kNumTestSegments * disk_cache::kFlashSegmentSize; | |
| 19 | |
| 20 } // namespace | |
| 21 | |
| 22 namespace disk_cache { | |
| 23 | |
| 24 class LogStore; | |
| 25 | |
| 26 } // namespace disk_cache | |
| 27 | |
| 28 class FlashCacheTest : public testing::Test { | |
| 29 protected: | |
| 30 FlashCacheTest(); | |
| 31 virtual ~FlashCacheTest(); | |
| 32 | |
| 33 virtual void SetUp() OVERRIDE; | |
| 34 virtual void TearDown() OVERRIDE; | |
| 35 | |
| 36 base::ScopedTempDir temp_dir_; | |
| 37 base::FilePath path_; | |
| 38 | |
| 39 private: | |
| 40 DISALLOW_COPY_AND_ASSIGN(FlashCacheTest); | |
| 41 }; | |
| 42 | |
| 43 #endif // NET_DISK_CACHE_DISK_CACHE_FLASH_TEST_BASE_H_ | |
| OLD | NEW |