Skip to content

Commit

Permalink
temp stuff to debug darwin.
Browse files Browse the repository at this point in the history
  • Loading branch information
cecille committed Jun 29, 2021
1 parent 82ee47e commit c90483f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/mdns/minimal/tests/TestResponseSender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class CheckOnlyServer : public ServerBase, public ParserDelegate
void OnResource(ResourceType type, const ResourceData & data) override
{
bool recordIsExpected = false;
ChipLogProgress(Discovery, "Received Record type = %u", (unsigned int)data.GetType());
for (size_t i = 0; i < kMaxExpectedRecords; ++i)
{
if (expectedRecord[i] == nullptr)
Expand All @@ -61,6 +62,7 @@ class CheckOnlyServer : public ServerBase, public ParserDelegate
// For now, types and names are sufficient for checking that the response sender is sending out the correct records.
if (data.GetType() == expectedRecord[i]->GetType() && data.GetName() == expectedRecord[i]->GetName())
{
ChipLogProgress(Discovery, "Matches %d", (int)i);
foundRecord[i] = true;
recordIsExpected = true;
break;
Expand Down Expand Up @@ -129,6 +131,7 @@ class CheckOnlyServer : public ServerBase, public ParserDelegate
{
for (size_t i = 0; i < kMaxExpectedRecords; ++i)
{
ChipLogProgress(Discovery, "checking for record %d", (int)i);
NL_TEST_ASSERT(mInSuite, foundRecord[i] == true);
}
}
Expand Down

0 comments on commit c90483f

Please sign in to comment.