Remove String16::remove tests. am: dc334a7c8f
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/14508384
Change-Id: Ia7b6aa12097e0ce5151f849c7d395bb7f4d12482
diff --git a/libutils/String16_test.cpp b/libutils/String16_test.cpp
index 788da8e..54662ac 100644
--- a/libutils/String16_test.cpp
+++ b/libutils/String16_test.cpp
@@ -90,27 +90,6 @@
EXPECT_STR16EQ(u"VerifyInsert me", tmp);
}
-TEST(String16Test, RemoveDefault) {
- String16 tmp("Verify me");
- tmp.remove(4);
- EXPECT_EQ(4U, tmp.size());
- EXPECT_STR16EQ(u"Veri", tmp);
-}
-
-TEST(String16Test, Remove) {
- String16 tmp("Verify me");
- tmp.remove(2, 6);
- EXPECT_EQ(2U, tmp.size());
- EXPECT_STR16EQ(u" m", tmp);
-}
-
-TEST(String16Test, RemoveOutOfBounds) {
- String16 tmp("Verify me");
- tmp.remove(100, 6);
- EXPECT_EQ(3U, tmp.size());
- EXPECT_STR16EQ(u" me", tmp);
-}
-
TEST(String16Test, ReplaceAll) {
String16 tmp("Verify verify Verify");
tmp.replaceAll(u'r', u'!');
@@ -175,14 +154,6 @@
EXPECT_FALSE(tmp.isStaticString());
}
-TEST(String16Test, StaticStringRemove) {
- StaticString16 tmp(u"Verify me");
- tmp.remove(2, 6);
- EXPECT_EQ(2U, tmp.size());
- EXPECT_STR16EQ(u" m", tmp);
- EXPECT_FALSE(tmp.isStaticString());
-}
-
TEST(String16Test, StaticStringReplaceAll) {
StaticString16 tmp(u"Verify verify Verify");
tmp.replaceAll(u'r', u'!');