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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/operations/read_directory_unittest.cc

Issue 372163006: [fsp] Add an option for mounting in R/W mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed tests. Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/chromeos/file_system_provider/operations/read_directory .h" 5 #include "chrome/browser/chromeos/file_system_provider/operations/read_directory .h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/files/file.h" 9 #include "base/files/file.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 class FileSystemProviderOperationsReadDirectoryTest : public testing::Test { 77 class FileSystemProviderOperationsReadDirectoryTest : public testing::Test {
78 protected: 78 protected:
79 FileSystemProviderOperationsReadDirectoryTest() {} 79 FileSystemProviderOperationsReadDirectoryTest() {}
80 virtual ~FileSystemProviderOperationsReadDirectoryTest() {} 80 virtual ~FileSystemProviderOperationsReadDirectoryTest() {}
81 81
82 virtual void SetUp() OVERRIDE { 82 virtual void SetUp() OVERRIDE {
83 file_system_info_ = 83 file_system_info_ =
84 ProvidedFileSystemInfo(kExtensionId, 84 ProvidedFileSystemInfo(kExtensionId,
85 kFileSystemId, 85 kFileSystemId,
86 "" /* display_name */, 86 "" /* display_name */,
87 false /* writable */,
87 base::FilePath() /* mount_path */); 88 base::FilePath() /* mount_path */);
88 } 89 }
89 90
90 ProvidedFileSystemInfo file_system_info_; 91 ProvidedFileSystemInfo file_system_info_;
91 }; 92 };
92 93
93 TEST_F(FileSystemProviderOperationsReadDirectoryTest, Execute) { 94 TEST_F(FileSystemProviderOperationsReadDirectoryTest, Execute) {
94 util::LoggingDispatchEventImpl dispatcher(true /* dispatch_reply */); 95 util::LoggingDispatchEventImpl dispatcher(true /* dispatch_reply */);
95 CallbackLogger callback_logger; 96 CallbackLogger callback_logger;
96 97
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 238
238 ASSERT_EQ(1u, callback_logger.events().size()); 239 ASSERT_EQ(1u, callback_logger.events().size());
239 CallbackLogger::Event* event = callback_logger.events()[0]; 240 CallbackLogger::Event* event = callback_logger.events()[0];
240 EXPECT_EQ(base::File::FILE_ERROR_TOO_MANY_OPENED, event->result()); 241 EXPECT_EQ(base::File::FILE_ERROR_TOO_MANY_OPENED, event->result());
241 ASSERT_EQ(0u, event->entry_list().size()); 242 ASSERT_EQ(0u, event->entry_list().size());
242 } 243 }
243 244
244 } // namespace operations 245 } // namespace operations
245 } // namespace file_system_provider 246 } // namespace file_system_provider
246 } // namespace chromeos 247 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698