| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 void(const FilePath& file_path, | 74 void(const FilePath& file_path, |
| 75 const GetFileInfoCallback& callback)); | 75 const GetFileInfoCallback& callback)); |
| 76 MOCK_METHOD2(GetEntryInfoByPathAsync, | 76 MOCK_METHOD2(GetEntryInfoByPathAsync, |
| 77 void(const FilePath& file_path, | 77 void(const FilePath& file_path, |
| 78 const GetEntryInfoCallback& callback)); | 78 const GetEntryInfoCallback& callback)); |
| 79 MOCK_METHOD2(ReadDirectoryByPathAsync, | 79 MOCK_METHOD2(ReadDirectoryByPathAsync, |
| 80 void(const FilePath& file_path, | 80 void(const FilePath& file_path, |
| 81 const ReadDirectoryCallback& callback)); | 81 const ReadDirectoryCallback& callback)); |
| 82 MOCK_METHOD1(RequestDirectoryRefresh, | 82 MOCK_METHOD1(RequestDirectoryRefresh, |
| 83 void(const FilePath& file_path)); | 83 void(const FilePath& file_path)); |
| 84 MOCK_METHOD2(GetFileInfoByPath, bool(const FilePath& file_path, | |
| 85 GDataFileProperties* properties)); | |
| 86 MOCK_CONST_METHOD1(IsUnderGDataCacheDirectory, bool(const FilePath& path)); | 84 MOCK_CONST_METHOD1(IsUnderGDataCacheDirectory, bool(const FilePath& path)); |
| 87 MOCK_CONST_METHOD1(GetCacheDirectoryPath, FilePath( | 85 MOCK_CONST_METHOD1(GetCacheDirectoryPath, FilePath( |
| 88 GDataCache::CacheSubDirectoryType)); | 86 GDataCache::CacheSubDirectoryType)); |
| 89 MOCK_CONST_METHOD4(GetCacheFilePath, FilePath( | 87 MOCK_CONST_METHOD4(GetCacheFilePath, FilePath( |
| 90 const std::string&, | 88 const std::string&, |
| 91 const std::string&, | 89 const std::string&, |
| 92 GDataCache::CacheSubDirectoryType, | 90 GDataCache::CacheSubDirectoryType, |
| 93 CachedFileOrigin)); | 91 CachedFileOrigin)); |
| 94 MOCK_METHOD1(GetAvailableSpace, | 92 MOCK_METHOD1(GetAvailableSpace, |
| 95 void(const GetAvailableSpaceCallback& callback)); | 93 void(const GetAvailableSpaceCallback& callback)); |
| 96 MOCK_METHOD3(SetPinState, void(const FilePath&, | 94 MOCK_METHOD3(SetPinState, void(const FilePath&, |
| 97 bool, | 95 bool, |
| 98 const FileOperationCallback& callback)); | 96 const FileOperationCallback& callback)); |
| 99 MOCK_METHOD3(SetMountedState, void(const FilePath&, | 97 MOCK_METHOD3(SetMountedState, void(const FilePath&, |
| 100 bool, | 98 bool, |
| 101 const SetMountedStateCallback& callback)); | 99 const SetMountedStateCallback& callback)); |
| 102 MOCK_METHOD4(AddUploadedFile, void(const FilePath& file, | 100 MOCK_METHOD4(AddUploadedFile, void(const FilePath& file, |
| 103 DocumentEntry* entry, | 101 DocumentEntry* entry, |
| 104 const FilePath& file_content_path, | 102 const FilePath& file_content_path, |
| 105 FileOperationType cache_operation)); | 103 FileOperationType cache_operation)); |
| 106 MOCK_METHOD0(hide_hosted_documents, bool()); | 104 MOCK_METHOD0(hide_hosted_documents, bool()); |
| 107 }; | 105 }; |
| 108 | 106 |
| 109 } // namespace gdata | 107 } // namespace gdata |
| 110 | 108 |
| 111 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ | 109 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ |
| OLD | NEW |