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

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: 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
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 const GetFileInfoCallback& callback)); 76 const GetFileInfoCallback& callback));
77 MOCK_METHOD2(GetEntryInfoByPath, void(const FilePath& file_path, 77 MOCK_METHOD2(GetEntryInfoByPath, void(const FilePath& file_path,
78 const GetEntryInfoCallback& callback)); 78 const GetEntryInfoCallback& callback));
79 MOCK_METHOD2(ReadDirectoryByPath, 79 MOCK_METHOD2(ReadDirectoryByPath,
80 void(const FilePath& file_path, 80 void(const FilePath& file_path,
81 const ReadDirectoryCallback& callback)); 81 const ReadDirectoryCallback& callback));
82 MOCK_METHOD1(RequestDirectoryRefresh, 82 MOCK_METHOD1(RequestDirectoryRefresh,
83 void(const FilePath& file_path)); 83 void(const FilePath& file_path));
84 MOCK_METHOD1(GetAvailableSpace, 84 MOCK_METHOD1(GetAvailableSpace,
85 void(const GetAvailableSpaceCallback& callback)); 85 void(const GetAvailableSpaceCallback& callback));
86 MOCK_METHOD6(AddUploadedFile, 86 // This function is not mockable by gmock because scoped_ptr is not supported.
87 void(UploadMode upload_mode, 87 virtual void AddUploadedFile(UploadMode upload_mode,
88 const FilePath& file, 88 const FilePath& file,
89 DocumentEntry* entry, 89 scoped_ptr<DocumentEntry> entry,
90 const FilePath& file_content_path, 90 const FilePath& file_content_path,
91 GDataCache::FileOperationType cache_operation, 91 GDataCache::FileOperationType cache_operation,
92 const base::Closure& callback)); 92 const base::Closure& callback) OVERRIDE {}
93 }; 93 };
94 94
95 } // namespace gdata 95 } // namespace gdata
96 96
97 #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