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

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

Issue 10540132: gdata: Convert GDataFileSystem::AddUploadFile() to asynchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Satoru's comments. 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
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_METHOD1(GetAvailableSpace, 83 MOCK_METHOD1(GetAvailableSpace,
84 void(const GetAvailableSpaceCallback& callback)); 84 void(const GetAvailableSpaceCallback& callback));
85 MOCK_METHOD3(SetPinState, void(const FilePath&, 85 MOCK_METHOD3(SetPinState, void(const FilePath&,
86 bool, 86 bool,
87 const FileOperationCallback& callback)); 87 const FileOperationCallback& callback));
88 MOCK_METHOD3(SetMountedState, void(const FilePath&, 88 MOCK_METHOD5(AddUploadedFile,
89 bool,
90 const SetMountedStateCallback& callback));
91 MOCK_METHOD4(AddUploadedFile,
92 void(const FilePath& file, 89 void(const FilePath& file,
93 DocumentEntry* entry, 90 DocumentEntry* entry,
94 const FilePath& file_content_path, 91 const FilePath& file_content_path,
95 GDataCache::FileOperationType cache_operation)); 92 GDataCache::FileOperationType cache_operation,
93 const base::Closure& callback));
96 MOCK_METHOD0(hide_hosted_documents, bool()); 94 MOCK_METHOD0(hide_hosted_documents, bool());
97 }; 95 };
98 96
99 } // namespace gdata 97 } // namespace gdata
100 98
101 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ 99 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698