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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 void(const FilePath& directory_path, | 45 void(const FilePath& directory_path, |
46 bool is_exclusive, | 46 bool is_exclusive, |
47 bool is_recursive, | 47 bool is_recursive, |
48 const FileOperationCallback& callback)); | 48 const FileOperationCallback& callback)); |
49 MOCK_METHOD2(GetFileByPath, void(const FilePath& file_path, | 49 MOCK_METHOD2(GetFileByPath, void(const FilePath& file_path, |
50 const GetFileCallback& callback)); | 50 const GetFileCallback& callback)); |
51 MOCK_METHOD2(GetFileByResourceId, | 51 MOCK_METHOD2(GetFileByResourceId, |
52 void(const std::string& resource_id, | 52 void(const std::string& resource_id, |
53 const GetFileCallback& callback)); | 53 const GetFileCallback& callback)); |
54 MOCK_METHOD0(GetOperationRegistry, GDataOperationRegistry*()); | 54 MOCK_METHOD0(GetOperationRegistry, GDataOperationRegistry*()); |
55 MOCK_METHOD0(GetProgressStatusList, | |
56 std::vector<GDataOperationRegistry::ProgressStatus>()); | |
57 MOCK_METHOD1(CancelOperation, bool(const FilePath& file_path)); | |
58 MOCK_METHOD1(AddOperationObserver, | |
59 void(GDataOperationRegistry::Observer* observer)); | |
60 MOCK_METHOD1(RemoveOperationObserver, | |
61 void(GDataOperationRegistry::Observer* observer)); | |
62 MOCK_METHOD3(GetCacheState, void(const std::string& resource_id, | 55 MOCK_METHOD3(GetCacheState, void(const std::string& resource_id, |
63 const std::string& md5, | 56 const std::string& md5, |
64 const GetCacheStateCallback& callback)); | 57 const GetCacheStateCallback& callback)); |
65 MOCK_METHOD2(GetFileInfoByPath, bool(const FilePath& gdata_file_path, | 58 MOCK_METHOD2(GetFileInfoByPath, bool(const FilePath& gdata_file_path, |
66 GDataFileProperties* properties)); | 59 GDataFileProperties* properties)); |
67 MOCK_CONST_METHOD1(IsUnderGDataCacheDirectory, bool(const FilePath& path)); | 60 MOCK_CONST_METHOD1(IsUnderGDataCacheDirectory, bool(const FilePath& path)); |
68 MOCK_CONST_METHOD1(GetCacheDirectoryPath, FilePath( | 61 MOCK_CONST_METHOD1(GetCacheDirectoryPath, FilePath( |
69 GDataRootDirectory::CacheSubDirectoryType)); | 62 GDataRootDirectory::CacheSubDirectoryType)); |
70 MOCK_CONST_METHOD4(GetCacheFilePath, FilePath( | 63 MOCK_CONST_METHOD4(GetCacheFilePath, FilePath( |
71 const std::string&, | 64 const std::string&, |
(...skipping 11 matching lines...) Expand all Loading... |
83 MOCK_METHOD4(AddUploadedFile, void(const FilePath& file, | 76 MOCK_METHOD4(AddUploadedFile, void(const FilePath& file, |
84 DocumentEntry* entry, | 77 DocumentEntry* entry, |
85 const FilePath& file_content_path, | 78 const FilePath& file_content_path, |
86 FileOperationType cache_operation)); | 79 FileOperationType cache_operation)); |
87 MOCK_METHOD0(hide_hosted_documents, bool()); | 80 MOCK_METHOD0(hide_hosted_documents, bool()); |
88 }; | 81 }; |
89 | 82 |
90 } // namespace gdata | 83 } // namespace gdata |
91 | 84 |
92 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ | 85 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ |
OLD | NEW |