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

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

Issue 10834115: Drive: Mount/Unmount GoogleDrive on Files App when the file system is mounted/unmounted. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/chromeos/gdata/gdata_file_system_interface.h" 10 #include "chrome/browser/chromeos/gdata/gdata_file_system_interface.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 const FileOperationCallback& callback)); 73 const FileOperationCallback& callback));
74 MOCK_METHOD2(GetEntryInfoByPath, void(const FilePath& file_path, 74 MOCK_METHOD2(GetEntryInfoByPath, void(const FilePath& file_path,
75 const GetEntryInfoCallback& callback)); 75 const GetEntryInfoCallback& callback));
76 MOCK_METHOD2(ReadDirectoryByPath, 76 MOCK_METHOD2(ReadDirectoryByPath,
77 void(const FilePath& file_path, 77 void(const FilePath& file_path,
78 const ReadDirectoryCallback& callback)); 78 const ReadDirectoryCallback& callback));
79 MOCK_METHOD1(RequestDirectoryRefresh, 79 MOCK_METHOD1(RequestDirectoryRefresh,
80 void(const FilePath& file_path)); 80 void(const FilePath& file_path));
81 MOCK_METHOD1(GetAvailableSpace, 81 MOCK_METHOD1(GetAvailableSpace,
82 void(const GetAvailableSpaceCallback& callback)); 82 void(const GetAvailableSpaceCallback& callback));
83 MOCK_METHOD0(AddDriveMountPoint, void());
84 MOCK_METHOD0(RemoveDriveMountPoint, void());
83 // This function is not mockable by gmock because scoped_ptr is not supported. 85 // This function is not mockable by gmock because scoped_ptr is not supported.
84 virtual void AddUploadedFile(UploadMode upload_mode, 86 virtual void AddUploadedFile(UploadMode upload_mode,
85 const FilePath& file, 87 const FilePath& file,
86 scoped_ptr<DocumentEntry> entry, 88 scoped_ptr<DocumentEntry> entry,
87 const FilePath& file_content_path, 89 const FilePath& file_content_path,
88 GDataCache::FileOperationType cache_operation, 90 GDataCache::FileOperationType cache_operation,
89 const base::Closure& callback) OVERRIDE {} 91 const base::Closure& callback) OVERRIDE {}
90 }; 92 };
91 93
92 } // namespace gdata 94 } // namespace gdata
93 95
94 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_ 96 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_FILE_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698