summaryrefslogtreecommitdiff
path: root/libdexfile/dex/string_reference_test.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2020-07-23 11:04:39 +0000
committer Vladimir Marko <vmarko@google.com> 2020-07-23 14:15:33 +0000
commitc2208272f24e921b808af53721d2ca821d76503c (patch)
tree924a1ca0e42c8a59947c4c86e5d26ac4f9d8d71b /libdexfile/dex/string_reference_test.cc
parent50a454b23485ceb8fe37e102abc0e41e2857876a (diff)
Replace "dummy" with "fake" in some tests.
Test: m test-art-host-gtest Test: testrunner.py --host --optimizing -t 004-JniTest Bug: 161336379 Change-Id: Ifab653fbf66af8ea3bd4a35ca116c7cc91be51bd
Diffstat (limited to 'libdexfile/dex/string_reference_test.cc')
-rw-r--r--libdexfile/dex/string_reference_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libdexfile/dex/string_reference_test.cc b/libdexfile/dex/string_reference_test.cc
index b9cbf48978..6c10f22e6c 100644
--- a/libdexfile/dex/string_reference_test.cc
+++ b/libdexfile/dex/string_reference_test.cc
@@ -33,14 +33,14 @@ TEST(StringReference, ValueComparator) {
// that it's the wrong string. Without the fix the strings would then compare equal.
TestDexFileBuilder builder1;
builder1.AddString("String1");
- std::unique_ptr<const DexFile> dex_file1 = builder1.Build("dummy location 1");
+ std::unique_ptr<const DexFile> dex_file1 = builder1.Build("fake location 1");
ASSERT_EQ(1u, dex_file1->NumStringIds());
ASSERT_STREQ("String1", dex_file1->GetStringData(dex_file1->GetStringId(dex::StringIndex(0))));
StringReference sr1(dex_file1.get(), dex::StringIndex(0));
TestDexFileBuilder builder2;
builder2.AddString("String2");
- std::unique_ptr<const DexFile> dex_file2 = builder2.Build("dummy location 2");
+ std::unique_ptr<const DexFile> dex_file2 = builder2.Build("fake location 2");
ASSERT_EQ(1u, dex_file2->NumStringIds());
ASSERT_STREQ("String2", dex_file2->GetStringData(dex_file2->GetStringId(dex::StringIndex(0))));
StringReference sr2(dex_file2.get(), dex::StringIndex(0));
@@ -78,7 +78,7 @@ TEST(StringReference, ValueComparator2) {
for (const char* s : kDexFile1Strings) {
builder1.AddString(s);
}
- std::unique_ptr<const DexFile> dex_file1 = builder1.Build("dummy location 1");
+ std::unique_ptr<const DexFile> dex_file1 = builder1.Build("fake location 1");
ASSERT_EQ(arraysize(kDexFile1Strings), dex_file1->NumStringIds());
for (size_t index = 0; index != arraysize(kDexFile1Strings); ++index) {
ASSERT_STREQ(kDexFile1Strings[index],
@@ -89,7 +89,7 @@ TEST(StringReference, ValueComparator2) {
for (const char* s : kDexFile2Strings) {
builder2.AddString(s);
}
- std::unique_ptr<const DexFile> dex_file2 = builder2.Build("dummy location 1");
+ std::unique_ptr<const DexFile> dex_file2 = builder2.Build("fake location 1");
ASSERT_EQ(arraysize(kDexFile2Strings), dex_file2->NumStringIds());
for (size_t index = 0; index != arraysize(kDexFile2Strings); ++index) {
ASSERT_STREQ(kDexFile2Strings[index],