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

Commit 1b78a3ab authored by Elie Kheirallah's avatar Elie Kheirallah Committed by Gerrit Code Review
Browse files

Merge "Removed unnecessary check. Replaced EXPECT_TRUE with EXPECT_NE."

parents 6f73923f b7246642
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -247,13 +247,11 @@ class BinderLibTest : public ::testing::Test {
        {
            int32_t id;
            Parcel data, reply;
            sp<IBinder> binder;

            EXPECT_THAT(m_server->transact(code, data, &reply), StatusEq(NO_ERROR));

            EXPECT_FALSE(binder != nullptr);
            binder = reply.readStrongBinder();
            EXPECT_TRUE(binder != nullptr);
            sp<IBinder> binder = reply.readStrongBinder();
            EXPECT_NE(nullptr, binder);
            EXPECT_THAT(reply.readInt32(&id), StatusEq(NO_ERROR));
            if (idPtr)
                *idPtr = id;