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

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

Issue 11269008: Cache backend for devices with flash storage (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: test Created 8 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 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
new file mode 100644
index 0000000000000000000000000000000000000000..1c8bae127e97736ed4447e1ffe48a46584d9c41d
--- /dev/null
+++ b/net/disk_cache/flash/flash_cache_test_base.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_DISK_CACHE_DISK_CACHE_FLASH_TEST_BASE_H_
+#define NET_DISK_CACHE_DISK_CACHE_FLASH_TEST_BASE_H_
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "base/scoped_temp_dir.h"
+#include "base/memory/scoped_ptr.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace disk_cache {
+
+class Storage;
+
+} // namespace disk_cache
+
+class FlashCacheTest : public testing::Test {
+ protected:
+ FlashCacheTest();
+ virtual ~FlashCacheTest();
+
+ virtual void SetUp() OVERRIDE;
+ virtual void TearDown() OVERRIDE;
+
+ scoped_ptr<disk_cache::Storage> storage_;
+ ScopedTempDir temp_dir_;
+ int32 num_segments_in_storage_;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(FlashCacheTest);
+};
+
+#endif // NET_DISK_CACHE_DISK_CACHE_FLASH_TEST_BASE_H_
« 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