summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-04-26 06:13:21 +0200
committerTao Bao <tbao@google.com>2017-04-26 06:23:12 +0200
commit8ab28082b77767cab144c3eeaee358598d8e3007 (patch)
tree1c412b7324bf8d768ff3d0fbaced67a8d10608b5 /tests
parentMerge "recovery: Remove the include of adb.h." (diff)
downloadandroid_bootable_recovery-8ab28082b77767cab144c3eeaee358598d8e3007.tar
android_bootable_recovery-8ab28082b77767cab144c3eeaee358598d8e3007.tar.gz
android_bootable_recovery-8ab28082b77767cab144c3eeaee358598d8e3007.tar.bz2
android_bootable_recovery-8ab28082b77767cab144c3eeaee358598d8e3007.tar.lz
android_bootable_recovery-8ab28082b77767cab144c3eeaee358598d8e3007.tar.xz
android_bootable_recovery-8ab28082b77767cab144c3eeaee358598d8e3007.tar.zst
android_bootable_recovery-8ab28082b77767cab144c3eeaee358598d8e3007.zip
Diffstat (limited to 'tests')
-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" }));
}