OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_TEST_UTIL_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_TEST_UTIL_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_TEST_UTIL_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_TEST_UTIL_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/sync_file_system/sync_status_code.h" | 9 #include "chrome/browser/sync_file_system/sync_status_code.h" |
10 #include "google_apis/drive/gdata_errorcode.h" | 10 #include "google_apis/drive/gdata_errorcode.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 const std::string& title, | 36 const std::string& title, |
37 const std::string& md5); | 37 const std::string& md5); |
38 scoped_ptr<FileTracker> CreateTracker(const FileMetadata& metadata, | 38 scoped_ptr<FileTracker> CreateTracker(const FileMetadata& metadata, |
39 int64 tracker_id, | 39 int64 tracker_id, |
40 const FileTracker* parent_tracker); | 40 const FileTracker* parent_tracker); |
41 scoped_ptr<FileTracker> CreatePlaceholderTracker( | 41 scoped_ptr<FileTracker> CreatePlaceholderTracker( |
42 const std::string& file_id, | 42 const std::string& file_id, |
43 int64 tracker_id, | 43 int64 tracker_id, |
44 const FileTracker* parent_tracker); | 44 const FileTracker* parent_tracker); |
45 | 45 |
| 46 // The return value type of GetFileResourceKind(). |
| 47 enum FileResourceKind { |
| 48 RESOURCE_KIND_FILE, |
| 49 RESOURCE_KIND_FOLDER, |
| 50 }; |
| 51 |
| 52 // Returns the kind of the given FileResourceKind. |
| 53 FileResourceKind GetFileResourceKind(const google_apis::FileResource& resource); |
| 54 |
46 } // namespace test_util | 55 } // namespace test_util |
47 } // namespace drive_backend | 56 } // namespace drive_backend |
48 } // namespace sync_file_system | 57 } // namespace sync_file_system |
49 | 58 |
50 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_TEST_UTIL
_H_ | 59 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_TEST_UTIL
_H_ |
OLD | NEW |