| Index: base/test/test_file_util.h
|
| diff --git a/base/test/test_file_util.h b/base/test/test_file_util.h
|
| index cf20221d76e7c09a930117efe6ac4f1a757f63a0..656babd8d78c114160b47a2ce7364cd404673014 100644
|
| --- a/base/test/test_file_util.h
|
| +++ b/base/test/test_file_util.h
|
| @@ -12,6 +12,11 @@
|
| #include "base/compiler_specific.h"
|
| #include "base/files/file_path.h"
|
|
|
| +#if defined(OS_ANDROID)
|
| +#include <jni.h>
|
| +#include "base/basictypes.h"
|
| +#endif
|
| +
|
| namespace base {
|
|
|
| class FilePath;
|
| @@ -58,6 +63,15 @@ base::FilePath WStringAsFilePath(const std::wstring& path);
|
| bool MakeFileUnreadable(const base::FilePath& path) WARN_UNUSED_RESULT;
|
| bool MakeFileUnwritable(const base::FilePath& path) WARN_UNUSED_RESULT;
|
|
|
| +#if defined(OS_ANDROID)
|
| +// Register the ContentUriTestUrils JNI bindings.
|
| +bool RegisterContentUriTestUtils(JNIEnv* env);
|
| +
|
| +// Insert an image file into the MediaStore, and retrieve the content URI for
|
| +// testing purpose.
|
| +base::FilePath InsertImageIntoMediaStore(const base::FilePath& path);
|
| +#endif // defined(OS_ANDROID)
|
| +
|
| // Saves the current permissions for a path, and restores it on destruction.
|
| class PermissionRestorer {
|
| public:
|
|
|