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

Unified Diff: net/disk_cache/flash/flash_cache_test_base.h

Issue 14265009: FlashCache refactorings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More refactorings. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/disk_cache/flash/flash_cache_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/flash/flash_cache_test_base.h
diff --git a/net/disk_cache/flash/flash_cache_test_base.h b/net/disk_cache/flash/flash_cache_test_base.h
index 09bc7a7937c62cc7ae3f877593b7c399a73c3fd4..eb08227617128ee42dff9cd65a0a04f87f13e3f3 100644
--- a/net/disk_cache/flash/flash_cache_test_base.h
+++ b/net/disk_cache/flash/flash_cache_test_base.h
@@ -9,12 +9,19 @@
#include "base/compiler_specific.h"
#include "base/files/scoped_temp_dir.h"
#include "base/memory/scoped_ptr.h"
+#include "net/disk_cache/flash/format.h"
#include "testing/gtest/include/gtest/gtest.h"
+namespace {
+
+const int32 kNumTestSegments = 10;
+const int32 kStorageSize = kNumTestSegments * disk_cache::kFlashSegmentSize;
+
+} // namespace
+
namespace disk_cache {
class LogStore;
-class Storage;
} // namespace disk_cache
@@ -26,10 +33,8 @@ class FlashCacheTest : public testing::Test {
virtual void SetUp() OVERRIDE;
virtual void TearDown() OVERRIDE;
- scoped_ptr<disk_cache::LogStore> log_store_;
- scoped_ptr<disk_cache::Storage> storage_;
base::ScopedTempDir temp_dir_;
- int32 num_segments_in_storage_;
+ base::FilePath path_;
private:
DISALLOW_COPY_AND_ASSIGN(FlashCacheTest);
« no previous file with comments | « no previous file | net/disk_cache/flash/flash_cache_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698