Skip to content

Commit fb256ce

Browse files
committed
fix build issue
1 parent 575dd09 commit fb256ce

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/credentials/tests/TestDeviceAttestationCredentials.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static const ByteSpan kExpectedPaiPublicKey = DevelopmentCerts::kPaiPublicKey;
4949

5050
struct TestDeviceAttestationCredentials : public ::testing::Test
5151
{
52-
static void SetUpTestSuite() { ASSERT_EQ([error](chip::Platform::MemoryInit()), CHIP_NO_ERROR); }
52+
static void SetUpTestSuite() { ASSERT_EQ(chip::Platform::MemoryInit(), CHIP_NO_ERROR); }
5353
static void TearDownTestSuite() { chip::Platform::MemoryShutdown(); }
5454
};
5555

src/credentials/tests/TestFabricTable.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2247,7 +2247,7 @@ TEST_F(TestFabricTable, TestFabricLabelChange)
22472247
EXPECT_TRUE(fabricLabel.data_equal("acme fabric"_span));
22482248

22492249
// Update fabric label
2250-
CharSpan fabricLabel = "placeholder"_span;
2250+
fabricLabel = "placeholder"_span;
22512251
EXPECT_EQ(fabricTable.SetFabricLabel(1, "roboto fabric"_span), CHIP_NO_ERROR);
22522252

22532253
fabricLabel = "placeholder"_span;

src/credentials/tests/TestGroupDataProvider.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,6 @@ TEST_F(TestGroupDataProvider, TestEndpointIterator)
597597
it = provider->IterateEndpoints(kFabric2);
598598
ASSERT_TRUE(it);
599599
count = 0;
600-
GroupEndpoint output;
601600
EXPECT_EQ(expected_f2.size(), it->Count());
602601
while (it->Next(output) && count < expected_f2.size())
603602
{
@@ -963,7 +962,7 @@ TEST_F(TestGroupDataProvider, TestKeySetIterator)
963962

964963
it = provider->IterateKeySets(kFabric2);
965964
ASSERT_TRUE(it);
966-
size_t count = 0;
965+
count = 0;
967966
EXPECT_EQ(expected_f2.size(), it->Count());
968967

969968
while (it->Next(keyset) && count < expected_f2.size())

0 commit comments

Comments
 (0)