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

Commit 72ddb9c2 authored by Jason Macnak's avatar Jason Macnak
Browse files

Avoid using a format for the usage param in consumer test

Flag: TEST_ONLY
Bug: b/373667975
Test: atest libgui_test
Change-Id: I492a25eededac60f835831390de037bdc5f4eac7
parent 8ea4421c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ static constexpr int kWidth = 100;
static constexpr int kHeight = 100;
static constexpr int kMaxLockedBuffers = 3;
static constexpr int kFormat = HAL_PIXEL_FORMAT_RGBA_8888;
static constexpr int kUsage = GRALLOC_USAGE_SW_READ_RARELY;
static constexpr int kFrameSleepUs = 30 * 1000;

class BufferItemConsumerTest : public ::testing::Test {
@@ -56,7 +57,7 @@ class BufferItemConsumerTest : public ::testing::Test {
    };

    void SetUp() override {
        mBIC = new BufferItemConsumer(kFormat, kMaxLockedBuffers, true);
        mBIC = new BufferItemConsumer(kUsage, kMaxLockedBuffers, true);
        String8 name("BufferItemConsumer_Under_Test");
        mBIC->setName(name);
        mBFL = new BufferFreedListener(this);