| 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 "chrome/browser/chromeos/gdata/gdata_file_system.h" | 9 #include "chrome/browser/chromeos/gdata/gdata_file_system.h" |
| 10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 const GetCacheStateCallback& callback)); | 66 const GetCacheStateCallback& callback)); |
| 67 MOCK_METHOD2(GetFileInfoByPathAsync, | 67 MOCK_METHOD2(GetFileInfoByPathAsync, |
| 68 void(const FilePath& file_path, | 68 void(const FilePath& file_path, |
| 69 const GetFileInfoCallback& callback)); | 69 const GetFileInfoCallback& callback)); |
| 70 MOCK_METHOD2(GetEntryInfoByPathAsync, | 70 MOCK_METHOD2(GetEntryInfoByPathAsync, |
| 71 void(const FilePath& file_path, | 71 void(const FilePath& file_path, |
| 72 const GetEntryInfoCallback& callback)); | 72 const GetEntryInfoCallback& callback)); |
| 73 MOCK_METHOD2(ReadDirectoryByPathAsync, | 73 MOCK_METHOD2(ReadDirectoryByPathAsync, |
| 74 void(const FilePath& file_path, | 74 void(const FilePath& file_path, |
| 75 const ReadDirectoryCallback& callback)); | 75 const ReadDirectoryCallback& callback)); |
| 76 MOCK_METHOD1(RequestDirectoryRefresh, |
| 77 void(const FilePath& file_path)); |
| 76 MOCK_METHOD2(GetFileInfoByPath, bool(const FilePath& file_path, | 78 MOCK_METHOD2(GetFileInfoByPath, bool(const FilePath& file_path, |
| 77 GDataFileProperties* properties)); | 79 GDataFileProperties* properties)); |
| 78 MOCK_CONST_METHOD1(IsUnderGDataCacheDirectory, bool(const FilePath& path)); | 80 MOCK_CONST_METHOD1(IsUnderGDataCacheDirectory, bool(const FilePath& path)); |
| 79 MOCK_CONST_METHOD1(GetCacheDirectoryPath, FilePath( | 81 MOCK_CONST_METHOD1(GetCacheDirectoryPath, FilePath( |
| 80 GDataRootDirectory::CacheSubDirectoryType)); | 82 GDataRootDirectory::CacheSubDirectoryType)); |
| 81 MOCK_CONST_METHOD4(GetCacheFilePath, FilePath( | 83 MOCK_CONST_METHOD4(GetCacheFilePath, FilePath( |
| 82 const std::string&, | 84 const std::string&, |
| 83 const std::string&, | 85 const std::string&, |
| 84 GDataRootDirectory::CacheSubDirectoryType, | 86 GDataRootDirectory::CacheSubDirectoryType, |
| 85 CachedFileOrigin)); | 87 CachedFileOrigin)); |
| 86 MOCK_METHOD1(GetAvailableSpace, | 88 MOCK_METHOD1(GetAvailableSpace, |
| 87 void(const GetAvailableSpaceCallback& callback)); | 89 void(const GetAvailableSpaceCallback& callback)); |
| 88 MOCK_METHOD3(SetPinState, void(const FilePath&, | 90 MOCK_METHOD3(SetPinState, void(const FilePath&, |
| 89 bool, | 91 bool, |
| 90 const FileOperationCallback& callback)); | 92 const FileOperationCallback& callback)); |
| 91 MOCK_METHOD3(SetMountedState, void(const FilePath&, | 93 MOCK_METHOD3(SetMountedState, void(const FilePath&, |
| 92 bool, | 94 bool, |
| 93 const SetMountedStateCallback& callback)); | 95 const SetMountedStateCallback& callback)); |
| 94 MOCK_METHOD4(AddUploadedFile, void(const FilePath& file, | 96 MOCK_METHOD4(AddUploadedFile, void(const FilePath& file, |
| 95 DocumentEntry* entry, | 97 DocumentEntry* entry, |
| 96 const FilePath& file_content_path, | 98 const FilePath& file_content_path, |
| 97 FileOperationType cache_operation)); | 99 FileOperationType cache_operation)); |
| 98 MOCK_METHOD0(hide_hosted_documents, bool()); | 100 MOCK_METHOD0(hide_hosted_documents, bool()); |
| 99 }; | 101 }; |
| 100 | 102 |
| 101 } // namespace gdata | 103 } // namespace gdata |
| 102 | 104 |
| 103 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ | 105 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ |
| OLD | NEW |