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 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_TEST_UTIL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_TEST_UTIL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_TEST_UTIL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_TEST_UTIL_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/chromeos/drive/drive_resource_metadata.h" | 9 #include "chrome/browser/chromeos/drive/drive_resource_metadata.h" |
10 #include "chrome/browser/chromeos/drive/search_metadata.h" | 10 #include "chrome/browser/chromeos/drive/search_metadata.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
160 // of the current thread. Used to run asynchronous function that take | 160 // of the current thread. Used to run asynchronous function that take |
161 // CloseFileCallback. | 161 // CloseFileCallback. |
162 void CopyResultsFromCloseFileCallbackAndQuit(DriveFileError* out_error, | 162 void CopyResultsFromCloseFileCallbackAndQuit(DriveFileError* out_error, |
163 DriveFileError error); | 163 DriveFileError error); |
164 | 164 |
165 // Loads a test json file as root ("/drive") element from a test file stored | 165 // Loads a test json file as root ("/drive") element from a test file stored |
166 // under chrome/test/data/chromeos. Returns true on success. | 166 // under chrome/test/data/chromeos. Returns true on success. |
167 bool LoadChangeFeed(const std::string& relative_path, | 167 bool LoadChangeFeed(const std::string& relative_path, |
168 ChangeListLoader* change_list_loader, | 168 ChangeListLoader* change_list_loader, |
169 bool is_delta_feed, | 169 bool is_delta_feed, |
170 std::string toor_resource_id, | |
hidehiko
2013/03/18 07:09:50
s/toor/root/ ?
Haruki Sato
2013/03/18 07:31:17
Done. qwerty magic!
| |
170 int64 root_feed_changestamp); | 171 int64 root_feed_changestamp); |
171 | 172 |
172 // DriveCache has private destructor, so it is impossible to delete the | 173 // DriveCache has private destructor, so it is impossible to delete the |
173 // instance directly. This method delete it correctly. | 174 // instance directly. This method delete it correctly. |
174 void DeleteDriveCache(DriveCache* drive_cache); | 175 void DeleteDriveCache(DriveCache* drive_cache); |
175 | 176 |
176 } // namespace test_util | 177 } // namespace test_util |
177 } // namespace drive | 178 } // namespace drive |
178 | 179 |
179 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_TEST_UTIL_H_ | 180 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_TEST_UTIL_H_ |
OLD | NEW |