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/unmount.h" | 5 #include "chrome/browser/chromeos/file_system_provider/operations/unmount.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 class FileSystemProviderOperationsUnmountTest : public testing::Test { | 31 class FileSystemProviderOperationsUnmountTest : public testing::Test { |
32 protected: | 32 protected: |
33 FileSystemProviderOperationsUnmountTest() {} | 33 FileSystemProviderOperationsUnmountTest() {} |
34 virtual ~FileSystemProviderOperationsUnmountTest() {} | 34 virtual ~FileSystemProviderOperationsUnmountTest() {} |
35 | 35 |
36 virtual void SetUp() OVERRIDE { | 36 virtual void SetUp() OVERRIDE { |
37 file_system_info_ = | 37 file_system_info_ = |
38 ProvidedFileSystemInfo(kExtensionId, | 38 ProvidedFileSystemInfo(kExtensionId, |
39 kFileSystemId, | 39 kFileSystemId, |
40 "" /* file_system_name */, | 40 "" /* display_name */, |
41 base::FilePath() /* mount_path */); | 41 base::FilePath() /* mount_path */); |
42 } | 42 } |
43 | 43 |
44 ProvidedFileSystemInfo file_system_info_; | 44 ProvidedFileSystemInfo file_system_info_; |
45 }; | 45 }; |
46 | 46 |
47 TEST_F(FileSystemProviderOperationsUnmountTest, Execute) { | 47 TEST_F(FileSystemProviderOperationsUnmountTest, Execute) { |
48 util::LoggingDispatchEventImpl dispatcher(true /* dispatch_reply */); | 48 util::LoggingDispatchEventImpl dispatcher(true /* dispatch_reply */); |
49 util::StatusCallbackLog callback_log; | 49 util::StatusCallbackLog callback_log; |
50 | 50 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 scoped_ptr<RequestValue>(new RequestValue()), | 132 scoped_ptr<RequestValue>(new RequestValue()), |
133 base::File::FILE_ERROR_NOT_FOUND); | 133 base::File::FILE_ERROR_NOT_FOUND); |
134 ASSERT_EQ(1u, callback_log.size()); | 134 ASSERT_EQ(1u, callback_log.size()); |
135 base::File::Error event_result = callback_log[0]; | 135 base::File::Error event_result = callback_log[0]; |
136 EXPECT_EQ(base::File::FILE_ERROR_NOT_FOUND, event_result); | 136 EXPECT_EQ(base::File::FILE_ERROR_NOT_FOUND, event_result); |
137 } | 137 } |
138 | 138 |
139 } // namespace operations | 139 } // namespace operations |
140 } // namespace file_system_provider | 140 } // namespace file_system_provider |
141 } // namespace chromeos | 141 } // namespace chromeos |
OLD | NEW |