summaryrefslogtreecommitdiffstats
path: root/tests/component
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-04-26 18:49:45 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-04-26 18:49:48 +0200
commitd5ae4253c15f727dbe06316cfeaa5feb6193513d (patch)
treed1822b36cf560fe072129f09172df3083d067ad0 /tests/component
parentMerge "applypatch: Add determine the return value of ApplyDiffPatch and capture the error flow." (diff)
parentapplypatch: Remove the obsolete support for "applypatch -s". (diff)
downloadandroid_bootable_recovery-d5ae4253c15f727dbe06316cfeaa5feb6193513d.tar
android_bootable_recovery-d5ae4253c15f727dbe06316cfeaa5feb6193513d.tar.gz
android_bootable_recovery-d5ae4253c15f727dbe06316cfeaa5feb6193513d.tar.bz2
android_bootable_recovery-d5ae4253c15f727dbe06316cfeaa5feb6193513d.tar.lz
android_bootable_recovery-d5ae4253c15f727dbe06316cfeaa5feb6193513d.tar.xz
android_bootable_recovery-d5ae4253c15f727dbe06316cfeaa5feb6193513d.tar.zst
android_bootable_recovery-d5ae4253c15f727dbe06316cfeaa5feb6193513d.zip
Diffstat (limited to 'tests/component')
-rw-r--r--tests/component/applypatch_test.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/component/applypatch_test.cpp b/tests/component/applypatch_test.cpp
index 6fdf78e47..016fed9b1 100644
--- a/tests/component/applypatch_test.cpp
+++ b/tests/component/applypatch_test.cpp
@@ -377,20 +377,6 @@ TEST(ApplyPatchModesTest, CheckModeInvalidArgs) {
ASSERT_EQ(2, applypatch_modes(2, (const char* []){ "applypatch", "-c" }));
}
-TEST(ApplyPatchModesTest, SpaceModeInvalidArgs) {
- // Insufficient args.
- ASSERT_EQ(2, applypatch_modes(2, (const char* []){ "applypatch", "-s" }));
-
- // Invalid bytes arg.
- ASSERT_EQ(1, applypatch_modes(3, (const char* []){ "applypatch", "-s", "x" }));
-
- // 0 is invalid.
- ASSERT_EQ(1, applypatch_modes(3, (const char* []){ "applypatch", "-s", "0" }));
-
- // 0x10 is fine.
- ASSERT_EQ(0, applypatch_modes(3, (const char* []){ "applypatch", "-s", "0x10" }));
-}
-
TEST(ApplyPatchModesTest, ShowLicenses) {
ASSERT_EQ(0, applypatch_modes(2, (const char* []){ "applypatch", "-l" }));
}