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

Side by Side Diff: chrome/browser/chromeos/drive/mock_drive_file_system.h

Issue 11106007: drive: Rename 'gdata' namespace to 'drive' in chrome/browser/chromeos/drive (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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_DRIVE_MOCK_DRIVE_FILE_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_FILE_SYSTEM_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_FILE_SYSTEM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/chromeos/drive/drive_file_system_interface.h" 10 #include "chrome/browser/chromeos/drive/drive_file_system_interface.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 12
13 namespace gdata { 13 namespace drive {
14 14
15 class DriveFileSystemObserver; 15 class DriveFileSystemObserver;
16 16
17 // Mock for DriveFileSystemInterface. 17 // Mock for DriveFileSystemInterface.
18 class MockDriveFileSystem : public DriveFileSystemInterface { 18 class MockDriveFileSystem : public DriveFileSystemInterface {
19 public: 19 public:
20 MockDriveFileSystem(); 20 MockDriveFileSystem();
21 virtual ~MockDriveFileSystem(); 21 virtual ~MockDriveFileSystem();
22 22
23 // DriveFileSystemInterface overrides. 23 // DriveFileSystemInterface overrides.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 bool is_exclusive, 63 bool is_exclusive,
64 bool is_recursive, 64 bool is_recursive,
65 const FileOperationCallback& callback)); 65 const FileOperationCallback& callback));
66 MOCK_METHOD3(CreateFile, 66 MOCK_METHOD3(CreateFile,
67 void(const FilePath& file_path, 67 void(const FilePath& file_path,
68 bool is_exclusive, 68 bool is_exclusive,
69 const FileOperationCallback& callback)); 69 const FileOperationCallback& callback));
70 MOCK_METHOD3(GetFileByPath, 70 MOCK_METHOD3(GetFileByPath,
71 void(const FilePath& file_path, 71 void(const FilePath& file_path,
72 const GetFileCallback& get_file_callback, 72 const GetFileCallback& get_file_callback,
73 const GetContentCallback& get_content_callback)); 73 const gdata::GetContentCallback& get_content_callback));
74 MOCK_METHOD3(GetFileByResourceId, 74 MOCK_METHOD3(GetFileByResourceId,
75 void(const std::string& resource_id, 75 void(const std::string& resource_id,
76 const GetFileCallback& get_file_callback, 76 const GetFileCallback& get_file_callback,
77 const GetContentCallback& get_content_callback)); 77 const gdata::GetContentCallback& get_content_callback));
78 MOCK_METHOD2(UpdateFileByResourceId, 78 MOCK_METHOD2(UpdateFileByResourceId,
79 void(const std::string& resource_id, 79 void(const std::string& resource_id,
80 const FileOperationCallback& callback)); 80 const FileOperationCallback& callback));
81 MOCK_METHOD2(GetEntryInfoByPath, void(const FilePath& file_path, 81 MOCK_METHOD2(GetEntryInfoByPath, void(const FilePath& file_path,
82 const GetEntryInfoCallback& callback)); 82 const GetEntryInfoCallback& callback));
83 MOCK_METHOD2(ReadDirectoryByPath, 83 MOCK_METHOD2(ReadDirectoryByPath,
84 void(const FilePath& file_path, 84 void(const FilePath& file_path,
85 const ReadDirectoryWithSettingCallback& callback)); 85 const ReadDirectoryWithSettingCallback& callback));
86 MOCK_METHOD1(RequestDirectoryRefresh, 86 MOCK_METHOD1(RequestDirectoryRefresh,
87 void(const FilePath& file_path)); 87 void(const FilePath& file_path));
88 MOCK_METHOD1(GetAvailableSpace, 88 MOCK_METHOD1(GetAvailableSpace,
89 void(const GetAvailableSpaceCallback& callback)); 89 void(const GetAvailableSpaceCallback& callback));
90 // This function is not mockable by gmock because scoped_ptr is not supported. 90 // This function is not mockable by gmock because scoped_ptr is not supported.
91 virtual void AddUploadedFile(UploadMode upload_mode, 91 virtual void AddUploadedFile(gdata::UploadMode upload_mode,
92 const FilePath& file, 92 const FilePath& file,
93 scoped_ptr<DocumentEntry> entry, 93 scoped_ptr<gdata::DocumentEntry> entry,
94 const FilePath& file_content_path, 94 const FilePath& file_content_path,
95 DriveCache::FileOperationType cache_operation, 95 DriveCache::FileOperationType cache_operation,
96 const base::Closure& callback) OVERRIDE {} 96 const base::Closure& callback) OVERRIDE {}
97 // This function is not mockable by gmock because scoped_ptr is not supported. 97 // This function is not mockable by gmock because scoped_ptr is not supported.
98 virtual void UpdateEntryData(const std::string& resource_id, 98 virtual void UpdateEntryData(const std::string& resource_id,
99 const std::string& md5, 99 const std::string& md5,
100 scoped_ptr<DocumentEntry> entry, 100 scoped_ptr<gdata::DocumentEntry> entry,
101 const FilePath& file_content_path, 101 const FilePath& file_content_path,
102 const base::Closure& callback) OVERRIDE {} 102 const base::Closure& callback) OVERRIDE {}
103 }; 103 };
104 104
105 } // namespace gdata 105 } // namespace drive
106 106
107 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_FILE_SYSTEM_H_ 107 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/mock_drive_cache_observer.cc ('k') | chrome/browser/chromeos/drive/mock_drive_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698