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

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

Issue 13517004: Test cache creation retry via public interface only. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: check cache integrity after destroying the backend Created 7 years, 8 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.h ('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) 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_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 "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // Provides basic support for cache related tests. 56 // Provides basic support for cache related tests.
57 class DiskCacheTestWithCache : public DiskCacheTest { 57 class DiskCacheTestWithCache : public DiskCacheTest {
58 protected: 58 protected:
59 DiskCacheTestWithCache(); 59 DiskCacheTestWithCache();
60 virtual ~DiskCacheTestWithCache(); 60 virtual ~DiskCacheTestWithCache();
61 61
62 void CreateBackend(uint32 flags, base::Thread* thread); 62 void CreateBackend(uint32 flags, base::Thread* thread);
63 63
64 void InitCache(); 64 void InitCache();
65 void InitDefaultCacheViaCreator();
66 void SimulateCrash(); 65 void SimulateCrash();
67 void SetTestMode(); 66 void SetTestMode();
68 67
69 void SetMemoryOnlyMode() { 68 void SetMemoryOnlyMode() {
70 memory_only_ = true; 69 memory_only_ = true;
71 } 70 }
72 71
73 void SetSimpleCacheMode() { 72 void SetSimpleCacheMode() {
74 simple_cache_mode_ = true; 73 simple_cache_mode_ = true;
75 } 74 }
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 160
162 private: 161 private:
163 void InitMemoryCache(); 162 void InitMemoryCache();
164 void InitDiskCache(); 163 void InitDiskCache();
165 164
166 base::Thread cache_thread_; 165 base::Thread cache_thread_;
167 DISALLOW_COPY_AND_ASSIGN(DiskCacheTestWithCache); 166 DISALLOW_COPY_AND_ASSIGN(DiskCacheTestWithCache);
168 }; 167 };
169 168
170 #endif // NET_DISK_CACHE_DISK_CACHE_TEST_BASE_H_ 169 #endif // NET_DISK_CACHE_DISK_CACHE_TEST_BASE_H_
OLDNEW
« no previous file with comments | « net/disk_cache/cache_util.h ('k') | net/disk_cache/disk_cache_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698