summaryrefslogtreecommitdiffstats
path: root/tests/backup/src/com
diff options
context:
space:
mode:
authorJoe Onorato <joeo@android.com>2009-06-26 14:45:25 -0400
committerJoe Onorato <joeo@android.com>2009-06-26 14:45:25 -0400
commitdc355a90a3d9d34f66316928a53f61ac35ab4781 (patch)
tree7b9de72bba6ed97ff81b600073cbbed46a0cf7a1 /tests/backup/src/com
parentaae628b44518f0886a7f33b88c1131f47d853e70 (diff)
downloadframeworks_base-dc355a90a3d9d34f66316928a53f61ac35ab4781.zip
frameworks_base-dc355a90a3d9d34f66316928a53f61ac35ab4781.tar.gz
frameworks_base-dc355a90a3d9d34f66316928a53f61ac35ab4781.tar.bz2
Add a test for SharedPreferencesBackupHelper
(which nobody had ever tested. I like it when stuff just works the first time).
Diffstat (limited to 'tests/backup/src/com')
-rw-r--r--tests/backup/src/com/android/backuptest/BackupTestAgent.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/backup/src/com/android/backuptest/BackupTestAgent.java b/tests/backup/src/com/android/backuptest/BackupTestAgent.java
index 6acd90c..8e4fd39 100644
--- a/tests/backup/src/com/android/backuptest/BackupTestAgent.java
+++ b/tests/backup/src/com/android/backuptest/BackupTestAgent.java
@@ -18,6 +18,7 @@ package com.android.backuptest;
import android.backup.BackupHelperAgent;
import android.backup.FileBackupHelper;
+import android.backup.SharedPreferencesBackupHelper;
public class BackupTestAgent extends BackupHelperAgent
{
@@ -25,6 +26,7 @@ public class BackupTestAgent extends BackupHelperAgent
addHelper("data_files", new FileBackupHelper(this, BackupTestActivity.FILE_NAME));
addHelper("more_data_files", new FileBackupHelper(this, "another_file.txt", "3.txt",
"empty.txt"));
+ addHelper("shared_prefs", new SharedPreferencesBackupHelper(this, "settings", "raw"));
}
}