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/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 Storage; | 16 class Storage; |
17 | 17 |
18 } // namespace disk_cache | 18 } // namespace disk_cache |
19 | 19 |
20 class FlashCacheTest : public testing::Test { | 20 class FlashCacheTest : public testing::Test { |
21 protected: | 21 protected: |
22 FlashCacheTest(); | 22 FlashCacheTest(); |
23 virtual ~FlashCacheTest(); | 23 virtual ~FlashCacheTest(); |
24 | 24 |
25 virtual void SetUp() OVERRIDE; | 25 virtual void SetUp() OVERRIDE; |
26 virtual void TearDown() OVERRIDE; | 26 virtual void TearDown() OVERRIDE; |
27 | 27 |
28 scoped_ptr<disk_cache::Storage> storage_; | 28 scoped_ptr<disk_cache::Storage> storage_; |
29 ScopedTempDir temp_dir_; | 29 base::ScopedTempDir temp_dir_; |
30 int32 num_segments_in_storage_; | 30 int32 num_segments_in_storage_; |
31 | 31 |
32 private: | 32 private: |
33 DISALLOW_COPY_AND_ASSIGN(FlashCacheTest); | 33 DISALLOW_COPY_AND_ASSIGN(FlashCacheTest); |
34 }; | 34 }; |
35 | 35 |
36 #endif // NET_DISK_CACHE_DISK_CACHE_FLASH_TEST_BASE_H_ | 36 #endif // NET_DISK_CACHE_DISK_CACHE_FLASH_TEST_BASE_H_ |
OLD | NEW |