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

Side by Side Diff: content/browser/fileapi/file_system_context_unittest.cc

Issue 2618393003: Remove ScopedVector from ContentBrowserClient. (Closed)
Patch Set: rebase Created 3 years, 11 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "storage/browser/fileapi/file_system_context.h" 5 #include "storage/browser/fileapi/file_system_context.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 base::ThreadTaskRunnerHandle::Get().get(), storage_policy_.get()); 64 base::ThreadTaskRunnerHandle::Get().get(), storage_policy_.get());
65 } 65 }
66 66
67 protected: 67 protected:
68 FileSystemContext* CreateFileSystemContextForTest( 68 FileSystemContext* CreateFileSystemContextForTest(
69 storage::ExternalMountPoints* external_mount_points) { 69 storage::ExternalMountPoints* external_mount_points) {
70 return new FileSystemContext( 70 return new FileSystemContext(
71 base::ThreadTaskRunnerHandle::Get().get(), 71 base::ThreadTaskRunnerHandle::Get().get(),
72 base::ThreadTaskRunnerHandle::Get().get(), external_mount_points, 72 base::ThreadTaskRunnerHandle::Get().get(), external_mount_points,
73 storage_policy_.get(), mock_quota_manager_->proxy(), 73 storage_policy_.get(), mock_quota_manager_->proxy(),
74 ScopedVector<FileSystemBackend>(), 74 std::vector<std::unique_ptr<FileSystemBackend>>(),
75 std::vector<storage::URLRequestAutoMountHandler>(), data_dir_.GetPath(), 75 std::vector<storage::URLRequestAutoMountHandler>(), data_dir_.GetPath(),
76 CreateAllowFileAccessOptions()); 76 CreateAllowFileAccessOptions());
77 } 77 }
78 78
79 // Verifies a *valid* filesystem url has expected values. 79 // Verifies a *valid* filesystem url has expected values.
80 void ExpectFileSystemURLMatches(const FileSystemURL& url, 80 void ExpectFileSystemURLMatches(const FileSystemURL& url,
81 const GURL& expect_origin, 81 const GURL& expect_origin,
82 storage::FileSystemType expect_mount_type, 82 storage::FileSystemType expect_mount_type,
83 storage::FileSystemType expect_type, 83 storage::FileSystemType expect_type,
84 const base::FilePath& expect_path, 84 const base::FilePath& expect_path,
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 storage::kFileSystemTypeForTransientFile)); 382 storage::kFileSystemTypeForTransientFile));
383 EXPECT_TRUE(file_system_context->GetFileSystemBackend( 383 EXPECT_TRUE(file_system_context->GetFileSystemBackend(
384 storage::kFileSystemTypeNativeLocal)); 384 storage::kFileSystemTypeNativeLocal));
385 EXPECT_TRUE(file_system_context->GetFileSystemBackend( 385 EXPECT_TRUE(file_system_context->GetFileSystemBackend(
386 storage::kFileSystemTypeNativeForPlatformApp)); 386 storage::kFileSystemTypeNativeForPlatformApp));
387 } 387 }
388 388
389 } // namespace 389 } // namespace
390 390
391 } // namespace content 391 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698