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

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

Issue 294073007: [fsp] Let extensions decide about the file system id. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 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/close_file_unittest.cc
diff --git a/chrome/browser/chromeos/file_system_provider/operations/close_file_unittest.cc b/chrome/browser/chromeos/file_system_provider/operations/close_file_unittest.cc
index 12d0073d6cd120641cf92e5d5e3e461458d809d8..c11101b97b267405bbfc5d5e3ee960327c5408af 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/close_file_unittest.cc
+++ b/chrome/browser/chromeos/file_system_provider/operations/close_file_unittest.cc
@@ -23,7 +23,7 @@ namespace operations {
namespace {
const char kExtensionId[] = "mbflcebpggnecokmikipoihdbecnjfoj";
-const int kFileSystemId = 1;
+const char kFileSystemId[] = "testing-file-system";
const int kRequestId = 2;
const int kOpenRequestId = 3;
@@ -111,8 +111,8 @@ TEST_F(FileSystemProviderOperationsCloseFileTest, Execute) {
base::ListValue* event_args = event->event_args.get();
ASSERT_EQ(3u, event_args->GetSize());
- int event_file_system_id = -1;
- EXPECT_TRUE(event_args->GetInteger(0, &event_file_system_id));
+ std::string event_file_system_id;
+ EXPECT_TRUE(event_args->GetString(0, &event_file_system_id));
EXPECT_EQ(kFileSystemId, event_file_system_id);
int event_request_id = -1;
@@ -141,7 +141,6 @@ TEST_F(FileSystemProviderOperationsCloseFileTest, Execute_NoListener) {
}
TEST_F(FileSystemProviderOperationsCloseFileTest, OnSuccess) {
- using extensions::api::file_system_provider::EntryMetadata;
using extensions::api::file_system_provider_internal::
CloseFileRequestedSuccess::Params;
@@ -167,7 +166,6 @@ TEST_F(FileSystemProviderOperationsCloseFileTest, OnSuccess) {
}
TEST_F(FileSystemProviderOperationsCloseFileTest, OnError) {
- using extensions::api::file_system_provider::EntryMetadata;
using extensions::api::file_system_provider_internal::
CloseFileRequestedError::Params;

Powered by Google App Engine
This is Rietveld 408576698