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

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

Issue 10735059: gdata cleanup: Make GDataFileSystem::AddUploadedFile() take scoped_ptr<DocumentEntry>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase @ revision 146183. Created 8 years, 5 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_file_system.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 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/chromeos/gdata/gdata_file_system.h" 10 #include "chrome/browser/chromeos/gdata/gdata_file_system.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 const GetFileInfoCallback& callback)); 75 const GetFileInfoCallback& callback));
76 MOCK_METHOD2(GetEntryInfoByPath, void(const FilePath& file_path, 76 MOCK_METHOD2(GetEntryInfoByPath, void(const FilePath& file_path,
77 const GetEntryInfoCallback& callback)); 77 const GetEntryInfoCallback& callback));
78 MOCK_METHOD2(ReadDirectoryByPath, 78 MOCK_METHOD2(ReadDirectoryByPath,
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_METHOD6(AddUploadedFile, 85 // This function is not mockable by gmock because scoped_ptr is not supported.
86 void(UploadMode upload_mode, 86 virtual void AddUploadedFile(UploadMode upload_mode,
87 const FilePath& file, 87 const FilePath& file,
88 DocumentEntry* entry, 88 scoped_ptr<DocumentEntry> entry,
89 const FilePath& file_content_path, 89 const FilePath& file_content_path,
90 GDataCache::FileOperationType cache_operation, 90 GDataCache::FileOperationType cache_operation,
91 const base::Closure& callback)); 91 const base::Closure& callback) OVERRIDE {}
92 }; 92 };
93 93
94 } // namespace gdata 94 } // namespace gdata
95 95
96 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ 96 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698