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

Commit bc0a06c1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix BufferHubBufferTest test crash"

parents f6d3044c 750c8878
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -214,8 +214,8 @@ TEST_F(BufferHubBufferTest, ImportInvalidToken) {
    native_handle_t* token = native_handle_create(/*numFds=*/0, /*numInts=*/1);
    token->data[0] = 0;

    auto b1 = BufferHubBuffer::import(NativeHandle::create(token, /*ownHandle=*/true));
    native_handle_delete(token);
    sp<NativeHandle> tokenHandle = NativeHandle::create(token, /*ownHandle=*/true);
    auto b1 = BufferHubBuffer::import(tokenHandle);

    EXPECT_THAT(b1, IsNull());
}