OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_TEST_BASE_H_ | 5 #ifndef NET_DISK_CACHE_DISK_CACHE_TEST_BASE_H_ |
6 #define NET_DISK_CACHE_DISK_CACHE_TEST_BASE_H_ | 6 #define NET_DISK_CACHE_DISK_CACHE_TEST_BASE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "testing/platform_test.h" | 10 #include "testing/platform_test.h" |
11 | 11 |
| 12 class FilePath; |
| 13 |
12 namespace disk_cache { | 14 namespace disk_cache { |
13 | 15 |
14 class Backend; | 16 class Backend; |
15 class BackendImpl; | 17 class BackendImpl; |
16 class MemBackendImpl; | 18 class MemBackendImpl; |
17 | 19 |
18 } // namespace disk_cache | 20 } // namespace disk_cache |
19 | 21 |
20 // These tests can use the path service, which uses autoreleased objects on the | 22 // These tests can use the path service, which uses autoreleased objects on the |
21 // Mac, so this needs to be a PlatformTest. Even tests that do not require a | 23 // Mac, so this needs to be a PlatformTest. Even tests that do not require a |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 bool force_creation_; | 85 bool force_creation_; |
84 bool new_eviction_; | 86 bool new_eviction_; |
85 bool first_cleanup_; | 87 bool first_cleanup_; |
86 bool integrity_; | 88 bool integrity_; |
87 // This is intentionally left uninitialized, to be used by any test. | 89 // This is intentionally left uninitialized, to be used by any test. |
88 bool success_; | 90 bool success_; |
89 | 91 |
90 private: | 92 private: |
91 void InitMemoryCache(); | 93 void InitMemoryCache(); |
92 void InitDiskCache(); | 94 void InitDiskCache(); |
93 void InitDiskCacheImpl(const std::wstring& path); | 95 void InitDiskCacheImpl(const FilePath& path); |
94 }; | 96 }; |
95 | 97 |
96 #endif // NET_DISK_CACHE_DISK_CACHE_TEST_BASE_H_ | 98 #endif // NET_DISK_CACHE_DISK_CACHE_TEST_BASE_H_ |
OLD | NEW |