| OLD | NEW |
| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 DISALLOW_COPY_AND_ASSIGN(CallbackLogger); | 69 DISALLOW_COPY_AND_ASSIGN(CallbackLogger); |
| 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_ = |
| 81 ProvidedFileSystemInfo(kExtensionId, | 81 ProvidedFileSystemInfo(kExtensionId, |
| 82 kFileSystemId, | 82 kFileSystemId, |
| 83 "" /* display_name */, | 83 "" /* display_name */, |
| 84 false /* writable */, | 84 false /* writable */, |
| 85 base::FilePath() /* mount_path */); | 85 base::FilePath() /* mount_path */); |
| 86 } | 86 } |
| 87 | 87 |
| 88 ProvidedFileSystemInfo file_system_info_; | 88 ProvidedFileSystemInfo file_system_info_; |
| 89 }; | 89 }; |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 base::File::FILE_ERROR_TOO_MANY_OPENED); | 305 base::File::FILE_ERROR_TOO_MANY_OPENED); |
| 306 | 306 |
| 307 ASSERT_EQ(1u, callback_logger.events().size()); | 307 ASSERT_EQ(1u, callback_logger.events().size()); |
| 308 CallbackLogger::Event* event = callback_logger.events()[0]; | 308 CallbackLogger::Event* event = callback_logger.events()[0]; |
| 309 EXPECT_EQ(base::File::FILE_ERROR_TOO_MANY_OPENED, event->result()); | 309 EXPECT_EQ(base::File::FILE_ERROR_TOO_MANY_OPENED, event->result()); |
| 310 } | 310 } |
| 311 | 311 |
| 312 } // namespace operations | 312 } // namespace operations |
| 313 } // namespace file_system_provider | 313 } // namespace file_system_provider |
| 314 } // namespace chromeos | 314 } // namespace chromeos |
| OLD | NEW |