Skip to content

Commit

Permalink
Restyle
Browse files Browse the repository at this point in the history
  • Loading branch information
mlepage-google committed Oct 27, 2021
1 parent 53b52eb commit 1092210
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions src/access/tests/TestAccessControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,14 +346,20 @@ void TestCheck(nlTestSuite * inSuite, void * inContext)
Privilege privilege;
CHIP_ERROR expectedResult;
} checks[] = {
{ { .subject = 0x1122334455667788, .authMode = AuthMode::kCase, .fabricIndex = 1 },
{ .endpoint = kEndpoint1, .cluster = kOnOffCluster },
Privilege::kAdminister,
CHIP_NO_ERROR },
{ { .subject = 0x8877665544332211, .authMode = AuthMode::kCase, .fabricIndex = 1 },
{ .endpoint = kEndpoint1, .cluster = kOnOffCluster },
Privilege::kAdminister,
CHIP_ERROR_ACCESS_DENIED },
// clang-format off
{
{ .subject = 0x1122334455667788, .authMode = AuthMode::kCase, .fabricIndex = 1 },
{ .endpoint = kEndpoint1, .cluster = kOnOffCluster },
Privilege::kAdminister,
CHIP_NO_ERROR
},
{
{ .subject = 0x8877665544332211, .authMode = AuthMode::kCase, .fabricIndex = 1 },
{ .endpoint = kEndpoint1, .cluster = kOnOffCluster },
Privilege::kAdminister,
CHIP_ERROR_ACCESS_DENIED
},
// clang-format on
};

for (int i = 0; i < int(sizeof(checks) / sizeof(checks[0])); ++i)
Expand Down

0 comments on commit 1092210

Please sign in to comment.