Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build breakage #17421

Merged
merged 1 commit into from
Apr 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/controller/tests/TestEventCaching.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ class TestContext : public chip::Test::AppContext

auto * ctx = static_cast<TestContext *>(context);

if (ctx->mEventCounter.Init(0) != CHIP_NO_ERROR)
{
return FAILURE;
}

chip::app::LogStorageResources logStorageResources[] = {
{ &gDebugEventBuffer[0], sizeof(gDebugEventBuffer), chip::app::PriorityLevel::Debug },
{ &gInfoEventBuffer[0], sizeof(gInfoEventBuffer), chip::app::PriorityLevel::Info },
Expand All @@ -69,7 +74,7 @@ class TestContext : public chip::Test::AppContext

chip::app::EventManagement::CreateEventManagement(&ctx->GetExchangeManager(),
sizeof(logStorageResources) / sizeof(logStorageResources[0]),
gCircularEventBuffer, logStorageResources, nullptr, 0, nullptr);
gCircularEventBuffer, logStorageResources, &ctx->mEventCounter);

return SUCCESS;
}
Expand All @@ -83,6 +88,9 @@ class TestContext : public chip::Test::AppContext

return SUCCESS;
}

private:
MonotonicallyIncreasingCounter mEventCounter;
};

nlTestSuite * gSuite = nullptr;
Expand Down