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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/truncate_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/operations/truncate_unittest.cc
diff --git a/chrome/browser/chromeos/file_system_provider/operations/truncate_unittest.cc b/chrome/browser/chromeos/file_system_provider/operations/truncate_unittest.cc
index 92e2d611c3a7f4b20a19e793cae29bcda36d9663..bb0fcbcfb6f16d6fe55d59ed1caa8c2f8f16c0a5 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/truncate_unittest.cc
+++ b/chrome/browser/chromeos/file_system_provider/operations/truncate_unittest.cc
@@ -38,13 +38,10 @@ class FileSystemProviderOperationsTruncateTest : public testing::Test {
virtual ~FileSystemProviderOperationsTruncateTest() {}
virtual void SetUp() override {
+ MountOptions mount_options(kFileSystemId, "" /* display_name */);
+ mount_options.writable = true;
file_system_info_ =
- ProvidedFileSystemInfo(kExtensionId,
- kFileSystemId,
- "" /* file_system_name */,
- true /* writable */,
- false /* supports_notify_tag */,
- base::FilePath() /* mount_path */);
+ ProvidedFileSystemInfo(kExtensionId, mount_options, base::FilePath());
}
ProvidedFileSystemInfo file_system_info_;
@@ -108,10 +105,7 @@ TEST_F(FileSystemProviderOperationsTruncateTest, Execute_ReadOnly) {
const ProvidedFileSystemInfo read_only_file_system_info(
kExtensionId,
- kFileSystemId,
- "" /* file_system_name */,
- false /* writable */,
- false /* supports_notify_tag */,
+ MountOptions(kFileSystemId, "" /* display_name */),
base::FilePath() /* mount_path */);
Truncate truncate(NULL,

Powered by Google App Engine
This is Rietveld 408576698