| OLD | NEW |
| 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 // This file contains mocks for classes in drive_service_interface.h | 5 // This file contains mocks for classes in drive_service_interface.h |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_MOCK_DRIVE_SERVICE_H_ | 7 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_MOCK_DRIVE_SERVICE_H_ |
| 8 #define CHROME_BROWSER_CHROMEOS_GDATA_MOCK_DRIVE_SERVICE_H_ | 8 #define CHROME_BROWSER_CHROMEOS_GDATA_MOCK_DRIVE_SERVICE_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "chrome/browser/chromeos/gdata/drive_service_interface.h" | 13 #include "chrome/browser/google_apis/drive_service_interface.h" |
| 14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
| 15 | 15 |
| 16 class FilePath; | 16 class FilePath; |
| 17 | 17 |
| 18 namespace gdata { | 18 namespace gdata { |
| 19 | 19 |
| 20 class MockDriveService : public DriveServiceInterface { | 20 class MockDriveService : public DriveServiceInterface { |
| 21 public: | 21 public: |
| 22 // DriveService is usually owned and created by DriveFileSystem. | 22 // DriveService is usually owned and created by DriveFileSystem. |
| 23 MockDriveService(); | 23 MockDriveService(); |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 scoped_ptr<base::Value> search_result_; | 188 scoped_ptr<base::Value> search_result_; |
| 189 | 189 |
| 190 // File data to be written to the local temporary file when | 190 // File data to be written to the local temporary file when |
| 191 // DownloadDocumentStub is called. | 191 // DownloadDocumentStub is called. |
| 192 scoped_ptr<std::string> file_data_; | 192 scoped_ptr<std::string> file_data_; |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 } // namespace gdata | 195 } // namespace gdata |
| 196 | 196 |
| 197 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_DRIVE_SERVICE_H_ | 197 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_DRIVE_SERVICE_H_ |
| OLD | NEW |