summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-04-26 19:29:46 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-04-26 19:29:46 +0200
commitafd224bf3b209076068694e99bc66ddc7d0368fa (patch)
tree837e2f91744785a3ed862f809a28f48effbf7382 /tests
parentMerge "applypatch: Add determine the return value of ApplyDiffPatch and capture the error flow." am: ac78ed8915 am: 282c863524 am: 3dcc24490b (diff)
parentMerge "applypatch: Remove the obsolete support for "applypatch -s"." am: d5ae4253c1 am: 22b1fa7d61 (diff)
downloadandroid_bootable_recovery-afd224bf3b209076068694e99bc66ddc7d0368fa.tar
android_bootable_recovery-afd224bf3b209076068694e99bc66ddc7d0368fa.tar.gz
android_bootable_recovery-afd224bf3b209076068694e99bc66ddc7d0368fa.tar.bz2
android_bootable_recovery-afd224bf3b209076068694e99bc66ddc7d0368fa.tar.lz
android_bootable_recovery-afd224bf3b209076068694e99bc66ddc7d0368fa.tar.xz
android_bootable_recovery-afd224bf3b209076068694e99bc66ddc7d0368fa.tar.zst
android_bootable_recovery-afd224bf3b209076068694e99bc66ddc7d0368fa.zip
Diffstat (limited to '')
-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" }));
}