blob: cd6e54fd78f07eba5f38091b7209d4f1d9c733c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// 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/files/scoped_temp_dir.h"
#include "base/memory/scoped_ptr.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace disk_cache {
class LogStructuredStore;
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::LogStructuredStore> log_structured_store_;
scoped_ptr<disk_cache::Storage> storage_;
base::ScopedTempDir temp_dir_;
int32 num_segments_in_storage_;
private:
DISALLOW_COPY_AND_ASSIGN(FlashCacheTest);
};
#endif // NET_DISK_CACHE_DISK_CACHE_FLASH_TEST_BASE_H_
|