Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1413)

Side by Side Diff: chrome/browser/chromeos/gdata/mock_gdata_file_system.h

Issue 10116044: gdata: Support mounting archive files in GData cache. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: gdata: Support mounting archive files in GData cache. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 MOCK_METHOD1(CancelOperation, bool(const FilePath& file_path)); 59 MOCK_METHOD1(CancelOperation, bool(const FilePath& file_path));
60 MOCK_METHOD1(AddOperationObserver, 60 MOCK_METHOD1(AddOperationObserver,
61 void(GDataOperationRegistry::Observer* observer)); 61 void(GDataOperationRegistry::Observer* observer));
62 MOCK_METHOD1(RemoveOperationObserver, 62 MOCK_METHOD1(RemoveOperationObserver,
63 void(GDataOperationRegistry::Observer* observer)); 63 void(GDataOperationRegistry::Observer* observer));
64 MOCK_METHOD3(GetCacheState, void(const std::string& resource_id, 64 MOCK_METHOD3(GetCacheState, void(const std::string& resource_id,
65 const std::string& md5, 65 const std::string& md5,
66 const GetCacheStateCallback& callback)); 66 const GetCacheStateCallback& callback));
67 MOCK_METHOD2(GetFileInfoFromPath, bool(const FilePath& gdata_file_path, 67 MOCK_METHOD2(GetFileInfoFromPath, bool(const FilePath& gdata_file_path,
68 GDataFileProperties* properties)); 68 GDataFileProperties* properties));
69 MOCK_CONST_METHOD1(IsUnderGDataCacheDirectory, bool(const FilePath& path));
69 MOCK_CONST_METHOD0(GetGDataCacheTmpDirectory, FilePath()); 70 MOCK_CONST_METHOD0(GetGDataCacheTmpDirectory, FilePath());
70 MOCK_CONST_METHOD0(GetGDataTempDownloadFolderPath, FilePath()); 71 MOCK_CONST_METHOD0(GetGDataTempDownloadFolderPath, FilePath());
71 MOCK_CONST_METHOD0(GetGDataTempDocumentFolderPath, FilePath()); 72 MOCK_CONST_METHOD0(GetGDataTempDocumentFolderPath, FilePath());
72 MOCK_CONST_METHOD0(GetGDataCachePinnedDirectory, FilePath()); 73 MOCK_CONST_METHOD0(GetGDataCachePinnedDirectory, FilePath());
73 MOCK_CONST_METHOD0(GetGDataCachePersistentDirectory, FilePath()); 74 MOCK_CONST_METHOD0(GetGDataCachePersistentDirectory, FilePath());
74 MOCK_CONST_METHOD4(GetCacheFilePath, FilePath( 75 MOCK_CONST_METHOD4(GetCacheFilePath, FilePath(
75 const std::string&, 76 const std::string&,
76 const std::string&, 77 const std::string&,
77 GDataRootDirectory::CacheSubDirectoryType, 78 GDataRootDirectory::CacheSubDirectoryType,
78 CachedFileOrigin)); 79 CachedFileOrigin));
79 MOCK_METHOD1(GetAvailableSpace, 80 MOCK_METHOD1(GetAvailableSpace,
80 void(const GetAvailableSpaceCallback& callback)); 81 void(const GetAvailableSpaceCallback& callback));
81 MOCK_METHOD3(SetPinState, void(const FilePath&, 82 MOCK_METHOD3(SetPinState, void(const FilePath&,
82 bool, 83 bool,
83 const FileOperationCallback& callback)); 84 const FileOperationCallback& callback));
85 MOCK_METHOD3(SetMountedState, void(const FilePath&,
86 bool,
87 const SetMountedStateCallback& callback));
84 MOCK_METHOD4(AddUploadedFile, void(const FilePath& file, 88 MOCK_METHOD4(AddUploadedFile, void(const FilePath& file,
85 DocumentEntry* entry, 89 DocumentEntry* entry,
86 const FilePath& file_content_path, 90 const FilePath& file_content_path,
87 FileOperationType cache_operation)); 91 FileOperationType cache_operation));
88 MOCK_METHOD0(hide_hosted_documents, bool()); 92 MOCK_METHOD0(hide_hosted_documents, bool());
89 }; 93 };
90 94
91 } // namespace gdata 95 } // namespace gdata
92 96
93 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ 97 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698