OLD | NEW |
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 #ifndef NET_DISK_CACHE_DISK_CACHE_FLASH_TEST_BASE_H_ | 5 #ifndef NET_DISK_CACHE_DISK_CACHE_FLASH_TEST_BASE_H_ |
6 #define NET_DISK_CACHE_DISK_CACHE_FLASH_TEST_BASE_H_ | 6 #define NET_DISK_CACHE_DISK_CACHE_FLASH_TEST_BASE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 namespace disk_cache { | 14 namespace disk_cache { |
15 | 15 |
16 class LogStructuredStore; | 16 class LogStore; |
17 class Storage; | 17 class Storage; |
18 | 18 |
19 } // namespace disk_cache | 19 } // namespace disk_cache |
20 | 20 |
21 class FlashCacheTest : public testing::Test { | 21 class FlashCacheTest : public testing::Test { |
22 protected: | 22 protected: |
23 FlashCacheTest(); | 23 FlashCacheTest(); |
24 virtual ~FlashCacheTest(); | 24 virtual ~FlashCacheTest(); |
25 | 25 |
26 virtual void SetUp() OVERRIDE; | 26 virtual void SetUp() OVERRIDE; |
27 virtual void TearDown() OVERRIDE; | 27 virtual void TearDown() OVERRIDE; |
28 | 28 |
29 scoped_ptr<disk_cache::LogStructuredStore> log_structured_store_; | 29 scoped_ptr<disk_cache::LogStore> log_store_; |
30 scoped_ptr<disk_cache::Storage> storage_; | 30 scoped_ptr<disk_cache::Storage> storage_; |
31 base::ScopedTempDir temp_dir_; | 31 base::ScopedTempDir temp_dir_; |
32 int32 num_segments_in_storage_; | 32 int32 num_segments_in_storage_; |
33 | 33 |
34 private: | 34 private: |
35 DISALLOW_COPY_AND_ASSIGN(FlashCacheTest); | 35 DISALLOW_COPY_AND_ASSIGN(FlashCacheTest); |
36 }; | 36 }; |
37 | 37 |
38 #endif // NET_DISK_CACHE_DISK_CACHE_FLASH_TEST_BASE_H_ | 38 #endif // NET_DISK_CACHE_DISK_CACHE_FLASH_TEST_BASE_H_ |
OLD | NEW |