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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/write_file_unittest.cc

Issue 1137383002: Show the eject button only for removabled and file handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests. Created 5 years, 7 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/write_file_unittest.cc
diff --git a/chrome/browser/chromeos/file_system_provider/operations/write_file_unittest.cc b/chrome/browser/chromeos/file_system_provider/operations/write_file_unittest.cc
index f1aac0af7fcb515465f184056ddb70e44f7c1a76..e6d576ff79b1cb4262b7b717fe922c935657aba4 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/write_file_unittest.cc
+++ b/chrome/browser/chromeos/file_system_provider/operations/write_file_unittest.cc
@@ -16,6 +16,7 @@
#include "base/values.h"
#include "chrome/browser/chromeos/file_system_provider/operations/test_util.h"
#include "chrome/common/extensions/api/file_system_provider.h"
+#include "chrome/common/extensions/api/file_system_provider_capabilities/file_system_provider_capabilities_handler.h"
#include "chrome/common/extensions/api/file_system_provider_internal.h"
#include "extensions/browser/event_router.h"
#include "net/base/io_buffer.h"
@@ -44,8 +45,9 @@ class FileSystemProviderOperationsWriteFileTest : public testing::Test {
void SetUp() override {
MountOptions mount_options(kFileSystemId, "" /* display_name */);
mount_options.writable = true;
- file_system_info_ =
- ProvidedFileSystemInfo(kExtensionId, mount_options, base::FilePath());
+ file_system_info_ = ProvidedFileSystemInfo(
+ kExtensionId, mount_options, base::FilePath(), false /* configurable */,
+ extensions::SOURCE_FILE);
io_buffer_ = make_scoped_refptr(new net::StringIOBuffer(kWriteData));
}
@@ -117,9 +119,9 @@ TEST_F(FileSystemProviderOperationsWriteFileTest, Execute_ReadOnly) {
util::StatusCallbackLog callback_log;
const ProvidedFileSystemInfo read_only_file_system_info(
- kExtensionId,
- MountOptions(kFileSystemId, "" /* display_name */),
- base::FilePath() /* mount_path */);
+ kExtensionId, MountOptions(kFileSystemId, "" /* display_name */),
+ base::FilePath() /* mount_path */, false /* configurable */,
+ extensions::SOURCE_FILE);
WriteFile write_file(NULL,
read_only_file_system_info,

Powered by Google App Engine
This is Rietveld 408576698