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

Unified Diff: chrome/browser/chromeos/file_system_provider/mount_path_util_unittest.cc

Issue 624903002: [fsp] Group arguments for mounting into a struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a bug. Created 6 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
Index: chrome/browser/chromeos/file_system_provider/mount_path_util_unittest.cc
diff --git a/chrome/browser/chromeos/file_system_provider/mount_path_util_unittest.cc b/chrome/browser/chromeos/file_system_provider/mount_path_util_unittest.cc
index 622df6ce5d38c269544889f0238458d0d49b4ee5..cc2bf5d949097d220f3103a2c62d4ac7bc24f853 100644
--- a/chrome/browser/chromeos/file_system_provider/mount_path_util_unittest.cc
+++ b/chrome/browser/chromeos/file_system_provider/mount_path_util_unittest.cc
@@ -128,11 +128,7 @@ TEST_F(FileSystemProviderMountPathUtilTest, IsFileSystemProviderLocalPath) {
TEST_F(FileSystemProviderMountPathUtilTest, Parser) {
const bool result = file_system_provider_service_->MountFileSystem(
- kExtensionId,
- kFileSystemId,
- kDisplayName,
- false /* writable */,
- false /* supports_notify_tag */);
+ kExtensionId, MountOptions(kFileSystemId, kDisplayName));
ASSERT_TRUE(result);
const ProvidedFileSystemInfo file_system_info =
file_system_provider_service_->GetProvidedFileSystem(kExtensionId,
@@ -156,11 +152,7 @@ TEST_F(FileSystemProviderMountPathUtilTest, Parser) {
TEST_F(FileSystemProviderMountPathUtilTest, Parser_RootPath) {
const bool result = file_system_provider_service_->MountFileSystem(
- kExtensionId,
- kFileSystemId,
- kDisplayName,
- false /* writable */,
- false /* supports_notify_tag */);
+ kExtensionId, MountOptions(kFileSystemId, kDisplayName));
ASSERT_TRUE(result);
const ProvidedFileSystemInfo file_system_info =
file_system_provider_service_->GetProvidedFileSystem(kExtensionId,
@@ -184,10 +176,7 @@ TEST_F(FileSystemProviderMountPathUtilTest, Parser_RootPath) {
TEST_F(FileSystemProviderMountPathUtilTest, Parser_WrongUrl) {
const ProvidedFileSystemInfo file_system_info(
kExtensionId,
- kFileSystemId,
- kDisplayName,
- false /* writable */,
- false /* supports_notify_tag */,
+ MountOptions(kFileSystemId, kDisplayName),
GetMountPath(profile_, kExtensionId, kFileSystemId));
const base::FilePath kFilePath = base::FilePath::FromUTF8Unsafe("/hello");
@@ -203,11 +192,7 @@ TEST_F(FileSystemProviderMountPathUtilTest, Parser_WrongUrl) {
TEST_F(FileSystemProviderMountPathUtilTest, Parser_IsolatedURL) {
const bool result = file_system_provider_service_->MountFileSystem(
- kExtensionId,
- kFileSystemId,
- kDisplayName,
- false /* writable */,
- false /* supports_notify_tag */);
+ kExtensionId, MountOptions(kFileSystemId, kDisplayName));
ASSERT_TRUE(result);
const ProvidedFileSystemInfo file_system_info =
file_system_provider_service_->GetProvidedFileSystem(kExtensionId,
@@ -253,11 +238,7 @@ TEST_F(FileSystemProviderMountPathUtilTest, Parser_IsolatedURL) {
TEST_F(FileSystemProviderMountPathUtilTest, LocalPathParser) {
const bool result = file_system_provider_service_->MountFileSystem(
- kExtensionId,
- kFileSystemId,
- kDisplayName,
- false /* writable */,
- false /* supports_notify_tag */);
+ kExtensionId, MountOptions(kFileSystemId, kDisplayName));
ASSERT_TRUE(result);
const ProvidedFileSystemInfo file_system_info =
file_system_provider_service_->GetProvidedFileSystem(kExtensionId,
@@ -281,11 +262,7 @@ TEST_F(FileSystemProviderMountPathUtilTest, LocalPathParser) {
TEST_F(FileSystemProviderMountPathUtilTest, LocalPathParser_RootPath) {
const bool result = file_system_provider_service_->MountFileSystem(
- kExtensionId,
- kFileSystemId,
- kDisplayName,
- false /* writable */,
- false /* supports_notify_tag */);
+ kExtensionId, MountOptions(kFileSystemId, kDisplayName));
ASSERT_TRUE(result);
const ProvidedFileSystemInfo file_system_info =
file_system_provider_service_->GetProvidedFileSystem(kExtensionId,

Powered by Google App Engine
This is Rietveld 408576698