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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/operations/get_metadata_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 unified diff | Download patch
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/get_metadata.h " 5 #include "chrome/browser/chromeos/file_system_provider/operations/get_metadata.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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 }; 70 };
71 71
72 } // namespace 72 } // namespace
73 73
74 class FileSystemProviderOperationsGetMetadataTest : public testing::Test { 74 class FileSystemProviderOperationsGetMetadataTest : public testing::Test {
75 protected: 75 protected:
76 FileSystemProviderOperationsGetMetadataTest() {} 76 FileSystemProviderOperationsGetMetadataTest() {}
77 virtual ~FileSystemProviderOperationsGetMetadataTest() {} 77 virtual ~FileSystemProviderOperationsGetMetadataTest() {}
78 78
79 virtual void SetUp() override { 79 virtual void SetUp() override {
80 file_system_info_ = 80 file_system_info_ = ProvidedFileSystemInfo(
81 ProvidedFileSystemInfo(kExtensionId, 81 kExtensionId,
82 kFileSystemId, 82 MountOptions(kFileSystemId, "" /* display_name */),
83 "" /* display_name */, 83 base::FilePath());
84 false /* writable */,
85 false /* supports_notify_tag */,
86 base::FilePath() /* mount_path */);
87 } 84 }
88 85
89 ProvidedFileSystemInfo file_system_info_; 86 ProvidedFileSystemInfo file_system_info_;
90 }; 87 };
91 88
92 TEST_F(FileSystemProviderOperationsGetMetadataTest, Execute) { 89 TEST_F(FileSystemProviderOperationsGetMetadataTest, Execute) {
93 using extensions::api::file_system_provider::GetMetadataRequestedOptions; 90 using extensions::api::file_system_provider::GetMetadataRequestedOptions;
94 91
95 util::LoggingDispatchEventImpl dispatcher(true /* dispatch_reply */); 92 util::LoggingDispatchEventImpl dispatcher(true /* dispatch_reply */);
96 CallbackLogger callback_logger; 93 CallbackLogger callback_logger;
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 base::File::FILE_ERROR_TOO_MANY_OPENED); 303 base::File::FILE_ERROR_TOO_MANY_OPENED);
307 304
308 ASSERT_EQ(1u, callback_logger.events().size()); 305 ASSERT_EQ(1u, callback_logger.events().size());
309 CallbackLogger::Event* event = callback_logger.events()[0]; 306 CallbackLogger::Event* event = callback_logger.events()[0];
310 EXPECT_EQ(base::File::FILE_ERROR_TOO_MANY_OPENED, event->result()); 307 EXPECT_EQ(base::File::FILE_ERROR_TOO_MANY_OPENED, event->result());
311 } 308 }
312 309
313 } // namespace operations 310 } // namespace operations
314 } // namespace file_system_provider 311 } // namespace file_system_provider
315 } // namespace chromeos 312 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698