Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3162ce05 authored by Pawan Wagh's avatar Pawan Wagh
Browse files

Fixing test failure on hwasan builds

Test: m binderRecordReplayTest && adb sync data && adb shell /data/nativetest64/binderRecordReplayTest/binderRecordReplayTest
Bug: 282448807
Change-Id: I68625329ee42ba680689505f0fe82156bf27d9f8
parent e8c6fa84
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -234,7 +234,7 @@ TEST_F(BinderRecordReplayTest, ReplayFloatArray) {
TEST_F(BinderRecordReplayTest, ReplayLongArray) {
    std::vector<int64_t> savedArray = {int64_t{1LL << 11}, int64_t{1LL << 55}, int64_t{1LL << 45}};
    std::vector<int64_t> changedArray = {int64_t{1LL << 1}, int64_t{1LL << 21}, int64_t{1LL << 33},
                                         int64_t{1LL << 63}};
                                         int64_t{1LL << 62}};
    recordReplay(&IBinderRecordReplayTest::setLongArray, savedArray,
                 &IBinderRecordReplayTest::getLongArray, changedArray);
}
@@ -251,7 +251,8 @@ TEST_F(BinderRecordReplayTest, ReplayStringArray) {
    std::vector<String16> savedArray = {String16("This is saved value"), String16(),
                                        String16("\0\0", 2), String16("\xF3\x01\xAC\xAD\x21\xAF")};

    std::vector<String16> changedArray = {String16("This is changed value"), String16("\1\2", 30)};
    std::vector<String16> changedArray = {String16("This is changed value"),
                                          String16("\xF0\x90\x90\xB7\xE2\x82\xAC")};
    recordReplay(&IBinderRecordReplayTest::setStringArray, savedArray,
                 &IBinderRecordReplayTest::getStringArray, changedArray);
}