| 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 BASE_TEST_TEST_FILE_UTIL_H_ | 5 #ifndef BASE_TEST_TEST_FILE_UTIL_H_ |
| 6 #define BASE_TEST_TEST_FILE_UTIL_H_ | 6 #define BASE_TEST_TEST_FILE_UTIL_H_ |
| 7 | 7 |
| 8 // File utility functions used only by tests. | 8 // File utility functions used only by tests. |
| 9 | 9 |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 const FilePath path_; | 65 const FilePath path_; |
| 66 void* info_; // The opaque stored permission information. | 66 void* info_; // The opaque stored permission information. |
| 67 size_t length_; // The length of the stored permission information. | 67 size_t length_; // The length of the stored permission information. |
| 68 | 68 |
| 69 DISALLOW_COPY_AND_ASSIGN(FilePermissionRestorer); | 69 DISALLOW_COPY_AND_ASSIGN(FilePermissionRestorer); |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 #if defined(OS_ANDROID) | 72 #if defined(OS_ANDROID) |
| 73 // Register the ContentUriTestUrils JNI bindings. | |
| 74 bool RegisterContentUriTestUtils(JNIEnv* env); | |
| 75 | |
| 76 // Insert an image file into the MediaStore, and retrieve the content URI for | 73 // Insert an image file into the MediaStore, and retrieve the content URI for |
| 77 // testing purpose. | 74 // testing purpose. |
| 78 FilePath InsertImageIntoMediaStore(const FilePath& path); | 75 FilePath InsertImageIntoMediaStore(const FilePath& path); |
| 79 #endif // defined(OS_ANDROID) | 76 #endif // defined(OS_ANDROID) |
| 80 | 77 |
| 81 } // namespace base | 78 } // namespace base |
| 82 | 79 |
| 83 #endif // BASE_TEST_TEST_FILE_UTIL_H_ | 80 #endif // BASE_TEST_TEST_FILE_UTIL_H_ |
| OLD | NEW |