diff options
| author | Joe Onorato <joeo@android.com> | 2009-06-10 17:07:15 -0700 |
|---|---|---|
| committer | Joe Onorato <joeo@android.com> | 2009-06-11 11:29:57 -0700 |
| commit | 23ecae3bbb60c5af940f3a22170d75eb6ac05b69 (patch) | |
| tree | 1138102ba856743cffd931121409a71c2bae37c3 /include | |
| parent | 0b77453076a22569f24318d194b378b68f11a63e (diff) | |
| download | frameworks_base-23ecae3bbb60c5af940f3a22170d75eb6ac05b69.zip frameworks_base-23ecae3bbb60c5af940f3a22170d75eb6ac05b69.tar.gz frameworks_base-23ecae3bbb60c5af940f3a22170d75eb6ac05b69.tar.bz2 | |
Fix SharedPrefsBackupHelper so it doesn't hard code the paths to the files.
This took quite a bit of refactoring.
Diffstat (limited to 'include')
| -rw-r--r-- | include/utils/BackupHelpers.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/utils/BackupHelpers.h b/include/utils/BackupHelpers.h index 24b6c9e..1d0daa7 100644 --- a/include/utils/BackupHelpers.h +++ b/include/utils/BackupHelpers.h @@ -118,7 +118,7 @@ private: }; int back_up_files(int oldSnapshotFD, BackupDataWriter* dataStream, int newSnapshotFD, - char const* fileBase, char const* const* files, int fileCount); + char const* const* files, char const* const *keys, int fileCount); #define TEST_BACKUP_HELPERS 1 @@ -127,6 +127,7 @@ int back_up_files(int oldSnapshotFD, BackupDataWriter* dataStream, int newSnapsh int backup_helper_test_empty(); int backup_helper_test_four(); int backup_helper_test_files(); +int backup_helper_test_null_base(); int backup_helper_test_data_writer(); int backup_helper_test_data_reader(); #endif |
