Skip to content

Commit

Permalink
fix test outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
achaulk-goog committed Aug 16, 2022
1 parent 9a5d3b7 commit 035b8a5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ struct DemoClusterCluster : public CommonCluster
{


static constexpr chip::ClusterId kClusterId = ZCL_DEMO_CLUSTER_CLUSTER_ID;
static constexpr chip::ClusterId kClusterId = 10;

chip::ClusterId GetClusterId() override { return kClusterId; }

Expand Down Expand Up @@ -117,7 +117,7 @@ struct ClusterInfo
} static const kKnownClusters[] = {

{
ZCL_DEMO_CLUSTER_CLUSTER_ID,
10,
"DemoCluster",
sizeof(DemoClusterCluster),
[](void *mem) -> CommonCluster* {
Expand All @@ -140,8 +140,8 @@ struct AttrInfo
const char *name;
} static const kKnownAttributes[] = {

{ZCL_DEMO_CLUSTER_CLUSTER_ID, 5, "SingleFailSafe" },
{ZCL_DEMO_CLUSTER_CLUSTER_ID, 100, "ArmFailsafes" },
{ 10, 5, "SingleFailSafe" },
{ 10, 100, "ArmFailsafes" },

};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct DemoClusterCluster : public CommonCluster
{


static constexpr chip::ClusterId kClusterId = ZCL_DEMO_CLUSTER_CLUSTER_ID;
static constexpr chip::ClusterId kClusterId = 18;

chip::ClusterId GetClusterId() override { return kClusterId; }

Expand Down Expand Up @@ -140,7 +140,7 @@ struct ClusterInfo
} static const kKnownClusters[] = {

{
ZCL_DEMO_CLUSTER_CLUSTER_ID,
18,
"DemoCluster",
sizeof(DemoClusterCluster),
[](void *mem) -> CommonCluster* {
Expand All @@ -163,8 +163,8 @@ struct AttrInfo
const char *name;
} static const kKnownAttributes[] = {

{ZCL_DEMO_CLUSTER_CLUSTER_ID, 32, "SingleLabel" },
{ZCL_DEMO_CLUSTER_CLUSTER_ID, 33, "SomeLabels" },
{ 18, 32, "SingleLabel" },
{ 18, 33, "SomeLabels" },

};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ struct FirstCluster : public CommonCluster
{


static constexpr chip::ClusterId kClusterId = ZCL_FIRST_CLUSTER_ID;
static constexpr chip::ClusterId kClusterId = 1;

chip::ClusterId GetClusterId() override { return kClusterId; }

Expand Down Expand Up @@ -98,7 +98,7 @@ struct SecondCluster : public CommonCluster
{


static constexpr chip::ClusterId kClusterId = ZCL_SECOND_CLUSTER_ID;
static constexpr chip::ClusterId kClusterId = 2;

chip::ClusterId GetClusterId() override { return kClusterId; }

Expand Down Expand Up @@ -187,7 +187,7 @@ struct ThirdCluster : public CommonCluster
{


static constexpr chip::ClusterId kClusterId = ZCL_THIRD_CLUSTER_ID;
static constexpr chip::ClusterId kClusterId = 3;

chip::ClusterId GetClusterId() override { return kClusterId; }

Expand Down Expand Up @@ -282,23 +282,23 @@ struct ClusterInfo
} static const kKnownClusters[] = {

{
ZCL_FIRST_CLUSTER_ID,
1,
"First",
sizeof(FirstCluster),
[](void *mem) -> CommonCluster* {
return new(mem) FirstCluster();
},
},
{
ZCL_SECOND_CLUSTER_ID,
2,
"Second",
sizeof(SecondCluster),
[](void *mem) -> CommonCluster* {
return new(mem) SecondCluster();
},
},
{
ZCL_THIRD_CLUSTER_ID,
3,
"Third",
sizeof(ThirdCluster),
[](void *mem) -> CommonCluster* {
Expand All @@ -325,9 +325,9 @@ struct AttrInfo
const char *name;
} static const kKnownAttributes[] = {

{ZCL_FIRST_CLUSTER_ID, 1, "SomeInteger" },
{ZCL_SECOND_CLUSTER_ID, 123, "SomeBytes" },
{ZCL_THIRD_CLUSTER_ID, 10, "SomeEnum" },
{ 1, 1, "SomeInteger" },
{ 2, 123, "SomeBytes" },
{ 3, 10, "SomeEnum" },

};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ struct MyClusterCluster : public CommonCluster
{


static constexpr chip::ClusterId kClusterId = ZCL_MY_CLUSTER_CLUSTER_ID;
static constexpr chip::ClusterId kClusterId = 123;

chip::ClusterId GetClusterId() override { return kClusterId; }

Expand Down Expand Up @@ -104,7 +104,7 @@ struct ClusterInfo
} static const kKnownClusters[] = {

{
ZCL_MY_CLUSTER_CLUSTER_ID,
123,
"MyCluster",
sizeof(MyClusterCluster),
[](void *mem) -> CommonCluster* {
Expand All @@ -127,7 +127,7 @@ struct AttrInfo
const char *name;
} static const kKnownAttributes[] = {

{ZCL_MY_CLUSTER_CLUSTER_ID, 1, "ClusterAttr" },
{ 123, 1, "ClusterAttr" },

};

Expand Down

0 comments on commit 035b8a5

Please sign in to comment.