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

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

Issue 10543037: gdata: Convert public synchronous functions in GDataFileSystem to asynchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Toni's comments @ 06/08/12 10:59AM PDT. Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_util.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 9 #include <string>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 void(const FilePath& file_path, 73 void(const FilePath& file_path,
74 const GetFileInfoCallback& callback)); 74 const GetFileInfoCallback& callback));
75 MOCK_METHOD2(GetEntryInfoByPathAsync, 75 MOCK_METHOD2(GetEntryInfoByPathAsync,
76 void(const FilePath& file_path, 76 void(const FilePath& file_path,
77 const GetEntryInfoCallback& callback)); 77 const GetEntryInfoCallback& callback));
78 MOCK_METHOD2(ReadDirectoryByPathAsync, 78 MOCK_METHOD2(ReadDirectoryByPathAsync,
79 void(const FilePath& file_path, 79 void(const FilePath& file_path,
80 const ReadDirectoryCallback& callback)); 80 const ReadDirectoryCallback& callback));
81 MOCK_METHOD1(RequestDirectoryRefresh, 81 MOCK_METHOD1(RequestDirectoryRefresh,
82 void(const FilePath& file_path)); 82 void(const FilePath& file_path));
83 MOCK_METHOD2(GetFileInfoByPath, bool(const FilePath& file_path,
84 GDataFileProperties* properties));
85 MOCK_CONST_METHOD1(IsUnderGDataCacheDirectory, bool(const FilePath& path)); 83 MOCK_CONST_METHOD1(IsUnderGDataCacheDirectory, bool(const FilePath& path));
86 MOCK_CONST_METHOD1(GetCacheDirectoryPath, FilePath( 84 MOCK_CONST_METHOD1(GetCacheDirectoryPath, FilePath(
87 GDataCache::CacheSubDirectoryType)); 85 GDataCache::CacheSubDirectoryType));
88 MOCK_CONST_METHOD4(GetCacheFilePath, FilePath( 86 MOCK_CONST_METHOD4(GetCacheFilePath, FilePath(
89 const std::string&, 87 const std::string&,
90 const std::string&, 88 const std::string&,
91 GDataCache::CacheSubDirectoryType, 89 GDataCache::CacheSubDirectoryType,
92 GDataCache::CachedFileOrigin)); 90 GDataCache::CachedFileOrigin));
93 MOCK_METHOD1(GetAvailableSpace, 91 MOCK_METHOD1(GetAvailableSpace,
94 void(const GetAvailableSpaceCallback& callback)); 92 void(const GetAvailableSpaceCallback& callback));
95 MOCK_METHOD3(SetPinState, void(const FilePath&, 93 MOCK_METHOD3(SetPinState, void(const FilePath&,
96 bool, 94 bool,
97 const FileOperationCallback& callback)); 95 const FileOperationCallback& callback));
98 MOCK_METHOD3(SetMountedState, void(const FilePath&, 96 MOCK_METHOD3(SetMountedState, void(const FilePath&,
99 bool, 97 bool,
100 const SetMountedStateCallback& callback)); 98 const SetMountedStateCallback& callback));
101 MOCK_METHOD4(AddUploadedFile, void(const FilePath& file, 99 MOCK_METHOD4(AddUploadedFile, void(const FilePath& file,
102 DocumentEntry* entry, 100 DocumentEntry* entry,
103 const FilePath& file_content_path, 101 const FilePath& file_content_path,
104 FileOperationType cache_operation)); 102 FileOperationType cache_operation));
105 MOCK_METHOD0(hide_hosted_documents, bool()); 103 MOCK_METHOD0(hide_hosted_documents, bool());
106 }; 104 };
107 105
108 } // namespace gdata 106 } // namespace gdata
109 107
110 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ 108 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698