| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 MOCK_METHOD1(RemoveOperationObserver, | 54 MOCK_METHOD1(RemoveOperationObserver, |
| 55 void(GDataOperationRegistry::Observer* observer)); | 55 void(GDataOperationRegistry::Observer* observer)); |
| 56 MOCK_METHOD3(GetCacheState, void(const std::string& resource_id, | 56 MOCK_METHOD3(GetCacheState, void(const std::string& resource_id, |
| 57 const std::string& md5, | 57 const std::string& md5, |
| 58 const GetCacheStateCallback& callback)); | 58 const GetCacheStateCallback& callback)); |
| 59 MOCK_METHOD2(GetFileInfoFromPath, bool(const FilePath& gdata_file_path, | 59 MOCK_METHOD2(GetFileInfoFromPath, bool(const FilePath& gdata_file_path, |
| 60 GDataFileProperties* properties)); | 60 GDataFileProperties* properties)); |
| 61 MOCK_CONST_METHOD0(GetGDataCacheTmpDirectory, FilePath()); | 61 MOCK_CONST_METHOD0(GetGDataCacheTmpDirectory, FilePath()); |
| 62 MOCK_CONST_METHOD0(GetGDataTempDownloadFolderPath, FilePath()); | 62 MOCK_CONST_METHOD0(GetGDataTempDownloadFolderPath, FilePath()); |
| 63 MOCK_CONST_METHOD0(GetGDataCachePinnedDirectory, FilePath()); | 63 MOCK_CONST_METHOD0(GetGDataCachePinnedDirectory, FilePath()); |
| 64 MOCK_CONST_METHOD0(GetGDataCachePersistentDirectory, FilePath()); |
| 65 MOCK_CONST_METHOD4(GetCacheFilePath, FilePath( |
| 66 const std::string&, |
| 67 const std::string&, |
| 68 GDataRootDirectory::CacheSubDirectoryType, |
| 69 CachedFileOrigin)); |
| 64 MOCK_METHOD1(GetAvailableSpace, | 70 MOCK_METHOD1(GetAvailableSpace, |
| 65 void(const GetAvailableSpaceCallback& callback)); | 71 void(const GetAvailableSpaceCallback& callback)); |
| 66 | 72 |
| 67 // scoped_ptr can't be copied. | 73 // scoped_ptr can't be copied. |
| 68 // TODO(achuith): Figure out how to mock this. | 74 // TODO(achuith): Figure out how to mock this. |
| 69 virtual void AddDownloadedFile(const FilePath&, | 75 virtual void AddDownloadedFile(const FilePath&, |
| 70 scoped_ptr<DocumentEntry> entry, | 76 scoped_ptr<DocumentEntry> entry, |
| 71 const FilePath& file_content_path) OVERRIDE {} | 77 const FilePath& file_content_path) OVERRIDE {} |
| 72 }; | 78 }; |
| 73 | 79 |
| 74 } // namespace gdata | 80 } // namespace gdata |
| 75 | 81 |
| 76 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ | 82 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ |
| OLD | NEW |