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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 class FileSystemProviderOperationsDeleteEntryTest : public testing::Test { | 33 class FileSystemProviderOperationsDeleteEntryTest : public testing::Test { |
34 protected: | 34 protected: |
35 FileSystemProviderOperationsDeleteEntryTest() {} | 35 FileSystemProviderOperationsDeleteEntryTest() {} |
36 virtual ~FileSystemProviderOperationsDeleteEntryTest() {} | 36 virtual ~FileSystemProviderOperationsDeleteEntryTest() {} |
37 | 37 |
38 virtual void SetUp() OVERRIDE { | 38 virtual void SetUp() OVERRIDE { |
39 file_system_info_ = | 39 file_system_info_ = |
40 ProvidedFileSystemInfo(kExtensionId, | 40 ProvidedFileSystemInfo(kExtensionId, |
41 kFileSystemId, | 41 kFileSystemId, |
42 "" /* file_system_name */, | 42 "" /* file_system_name */, |
| 43 false /* writable */, |
43 base::FilePath() /* mount_path */); | 44 base::FilePath() /* mount_path */); |
44 } | 45 } |
45 | 46 |
46 ProvidedFileSystemInfo file_system_info_; | 47 ProvidedFileSystemInfo file_system_info_; |
47 }; | 48 }; |
48 | 49 |
49 TEST_F(FileSystemProviderOperationsDeleteEntryTest, Execute) { | 50 TEST_F(FileSystemProviderOperationsDeleteEntryTest, Execute) { |
50 util::LoggingDispatchEventImpl dispatcher(true /* dispatch_reply */); | 51 util::LoggingDispatchEventImpl dispatcher(true /* dispatch_reply */); |
51 util::StatusCallbackLog callback_log; | 52 util::StatusCallbackLog callback_log; |
52 | 53 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 delete_entry.OnError(kRequestId, | 146 delete_entry.OnError(kRequestId, |
146 scoped_ptr<RequestValue>(new RequestValue()), | 147 scoped_ptr<RequestValue>(new RequestValue()), |
147 base::File::FILE_ERROR_TOO_MANY_OPENED); | 148 base::File::FILE_ERROR_TOO_MANY_OPENED); |
148 ASSERT_EQ(1u, callback_log.size()); | 149 ASSERT_EQ(1u, callback_log.size()); |
149 EXPECT_EQ(base::File::FILE_ERROR_TOO_MANY_OPENED, callback_log[0]); | 150 EXPECT_EQ(base::File::FILE_ERROR_TOO_MANY_OPENED, callback_log[0]); |
150 } | 151 } |
151 | 152 |
152 } // namespace operations | 153 } // namespace operations |
153 } // namespace file_system_provider | 154 } // namespace file_system_provider |
154 } // namespace chromeos | 155 } // namespace chromeos |
OLD | NEW |