| 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/drive_cache.h" | 10 #include "chrome/browser/chromeos/drive/drive_cache.h" |
| 11 #include "chrome/browser/google_apis/gdata_errorcode.h" | 11 #include "chrome/browser/google_apis/gdata_errorcode.h" |
| 12 #include "chrome/browser/google_apis/gdata_test_util.h" | 12 #include "chrome/browser/google_apis/gdata_test_util.h" |
| 13 | 13 |
| 14 class FilePath; | 14 class FilePath; |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class Value; | 17 class Value; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace gdata { | 20 namespace drive { |
| 21 | 21 |
| 22 class DriveCacheEntry; | 22 class DriveCacheEntry; |
| 23 class DriveEntryProto; | 23 class DriveEntryProto; |
| 24 class DriveFileSystem; | 24 class DriveFileSystem; |
| 25 | 25 |
| 26 typedef std::vector<DriveEntryProto> DriveEntryProtoVector; | 26 typedef std::vector<DriveEntryProto> DriveEntryProtoVector; |
| 27 | 27 |
| 28 namespace test_util { | 28 namespace test_util { |
| 29 | 29 |
| 30 // This is a bitmask of cache states in DriveCacheEntry. Used only in tests. | 30 // This is a bitmask of cache states in DriveCacheEntry. Used only in tests. |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 bool success); | 98 bool success); |
| 99 | 99 |
| 100 // Loads a test json file as root ("/drive") element from a test file stored | 100 // Loads a test json file as root ("/drive") element from a test file stored |
| 101 // under chrome/test/data/chromeos. | 101 // under chrome/test/data/chromeos. |
| 102 void LoadChangeFeed(const std::string& relative_path, | 102 void LoadChangeFeed(const std::string& relative_path, |
| 103 DriveFileSystem* file_system, | 103 DriveFileSystem* file_system, |
| 104 int64 start_changestamp, | 104 int64 start_changestamp, |
| 105 int64 root_feed_changestamp); | 105 int64 root_feed_changestamp); |
| 106 | 106 |
| 107 } // namespace test_util | 107 } // namespace test_util |
| 108 } // namespace gdata | 108 } // namespace drive |
| 109 | 109 |
| 110 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_TEST_UTIL_H_ | 110 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_TEST_UTIL_H_ |
| OLD | NEW |