Remove String16::remove tests. am: dc334a7c8f

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/14508384

Change-Id: Ia7b6aa12097e0ce5151f849c7d395bb7f4d12482
This commit is contained in:
Elliott Hughes 2021-05-12 04:27:02 +00:00 committed by Automerger Merge Worker
commit 418e0e0c06

View file

@ -90,27 +90,6 @@ TEST(String16Test, Insert) {
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 @@ TEST(String16Test, StaticStringInsert) {
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'!');