Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Side by Side Diff: net/disk_cache/disk_cache_test_base.h

Issue 261045: Start migrating the disk cache to using FilePath. (Closed)
Patch Set: rebase Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/disk_cache/cache_util_win.cc ('k') | net/disk_cache/disk_cache_test_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « net/disk_cache/cache_util_win.cc ('k') | net/disk_cache/disk_cache_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698