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

Side by Side Diff: net/disk_cache/flash/flash_cache_test_base.cc

Issue 11359217: Move scoped_temp_dir from base to base/files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « net/disk_cache/flash/flash_cache_test_base.h ('k') | net/disk_cache/flash/storage_unittest.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 #include "net/disk_cache/flash/flash_cache_test_base.h" 5 #include "net/disk_cache/flash/flash_cache_test_base.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "net/disk_cache/flash/format.h" 10 #include "net/disk_cache/flash/format.h"
11 #include "net/disk_cache/flash/storage.h" 11 #include "net/disk_cache/flash/storage.h"
12 12
13 namespace { 13 namespace {
14 14
15 const int32 kSegmentCount = 10; 15 const int32 kSegmentCount = 10;
16 const FilePath::StringType kCachePath = FILE_PATH_LITERAL("cache"); 16 const FilePath::StringType kCachePath = FILE_PATH_LITERAL("cache");
17 17
18 } // namespace 18 } // namespace
(...skipping 11 matching lines...) Expand all
30 const FilePath path(temp_dir_.path().Append(kCachePath)); 30 const FilePath path(temp_dir_.path().Append(kCachePath));
31 31
32 int32 storage_size = num_segments_in_storage_ * disk_cache::kFlashSegmentSize; 32 int32 storage_size = num_segments_in_storage_ * disk_cache::kFlashSegmentSize;
33 storage_.reset(new disk_cache::Storage(path, storage_size)); 33 storage_.reset(new disk_cache::Storage(path, storage_size));
34 ASSERT_TRUE(storage_->Init()); 34 ASSERT_TRUE(storage_->Init());
35 } 35 }
36 36
37 void FlashCacheTest::TearDown() { 37 void FlashCacheTest::TearDown() {
38 storage_.reset(); 38 storage_.reset();
39 } 39 }
OLDNEW
« no previous file with comments | « net/disk_cache/flash/flash_cache_test_base.h ('k') | net/disk_cache/flash/storage_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698