diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index 46ace0f3bb842f..4b9257b9ec3441 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -138,6 +138,7 @@ class TestList : public Command printf("TestDelayCommands\n"); printf("TestLogCommands\n"); printf("TestSaveAs\n"); + printf("TestConfigVariables\n"); printf("TestDescriptorCluster\n"); printf("TestBasicInformation\n"); printf("TestIdentifyCluster\n"); @@ -157,7 +158,11 @@ class TestList : public Command class Test_TC_BI_1_1 : public TestCommand { public: - Test_TC_BI_1_1() : TestCommand("Test_TC_BI_1_1"), mTestIndex(0) {} + Test_TC_BI_1_1() : TestCommand("Test_TC_BI_1_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -218,6 +223,9 @@ class Test_TC_BI_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 5; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -267,7 +275,7 @@ class Test_TC_BI_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -287,7 +295,7 @@ class Test_TC_BI_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeConstraintsClusterRevision_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -307,7 +315,7 @@ class Test_TC_BI_1_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -329,7 +337,7 @@ class Test_TC_BI_1_1 : public TestCommand CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -351,7 +359,11 @@ class Test_TC_BI_1_1 : public TestCommand class Test_TC_BI_2_1 : public TestCommand { public: - Test_TC_BI_2_1() : TestCommand("Test_TC_BI_2_1"), mTestIndex(0) {} + Test_TC_BI_2_1() : TestCommand("Test_TC_BI_2_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -442,6 +454,9 @@ class Test_TC_BI_2_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 12; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -555,7 +570,7 @@ class Test_TC_BI_2_1 : public TestCommand CHIP_ERROR TestReadMandatoryNonGlobalAttributeOutOfService_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -575,7 +590,7 @@ class Test_TC_BI_2_1 : public TestCommand CHIP_ERROR TestReadMandatoryNonGlobalAttributeConstraintsOutOfService_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -595,7 +610,7 @@ class Test_TC_BI_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryNonGlobalAttributeOutOfService_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -613,7 +628,7 @@ class Test_TC_BI_2_1 : public TestCommand CHIP_ERROR TestReadsBackTheMandatoryNonGlobalAttributeOutOfService_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -633,7 +648,7 @@ class Test_TC_BI_2_1 : public TestCommand CHIP_ERROR TestReadMandatoryNonGlobalAttributeConstraintsPresentValue_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -653,7 +668,7 @@ class Test_TC_BI_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryNonGlobalAttributePresentValue_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -671,7 +686,7 @@ class Test_TC_BI_2_1 : public TestCommand CHIP_ERROR TestReadsBackTheMandatoryNonGlobalAttributePresentValue_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -691,7 +706,7 @@ class Test_TC_BI_2_1 : public TestCommand CHIP_ERROR TestReadMandatoryNonGlobalAttributeStatusFlags_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -711,7 +726,7 @@ class Test_TC_BI_2_1 : public TestCommand CHIP_ERROR TestReadMandatoryNonGlobalAttributeConstraintsStatusFlags_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -732,7 +747,7 @@ class Test_TC_BI_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryNonGlobalAttributeStatusFlags_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -754,7 +769,7 @@ class Test_TC_BI_2_1 : public TestCommand CHIP_ERROR TestReadsBackTheMandatoryNonGlobalAttributeStatusFlags_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -776,7 +791,11 @@ class Test_TC_BI_2_1 : public TestCommand class Test_TC_BI_2_2 : public TestCommand { public: - Test_TC_BI_2_2() : TestCommand("Test_TC_BI_2_2"), mTestIndex(0) {} + Test_TC_BI_2_2() : TestCommand("Test_TC_BI_2_2"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -852,6 +871,9 @@ class Test_TC_BI_2_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 9; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -944,7 +966,7 @@ class Test_TC_BI_2_2 : public TestCommand CHIP_ERROR TestReadsPresentValueAttributeFromDut_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -964,7 +986,7 @@ class Test_TC_BI_2_2 : public TestCommand CHIP_ERROR TestReadsOutOfServiceAttributeFromDut_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -984,7 +1006,7 @@ class Test_TC_BI_2_2 : public TestCommand CHIP_ERROR TestReadsStatusFlagsAttributeFromDut_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -1004,7 +1026,7 @@ class Test_TC_BI_2_2 : public TestCommand CHIP_ERROR TestReadsPresentValueAttributeFromDut_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -1024,7 +1046,7 @@ class Test_TC_BI_2_2 : public TestCommand CHIP_ERROR TestReadsOutOfServiceAttributeFromDut_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -1044,7 +1066,7 @@ class Test_TC_BI_2_2 : public TestCommand CHIP_ERROR TestReadsStatusFlagsAttributeFromDut_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -1064,7 +1086,7 @@ class Test_TC_BI_2_2 : public TestCommand CHIP_ERROR TestReadsStatusFlagsAttributeFromDut_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -1084,7 +1106,7 @@ class Test_TC_BI_2_2 : public TestCommand CHIP_ERROR TestReadsStatusFlagsAttributeFromDut_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -1106,7 +1128,11 @@ class Test_TC_BI_2_2 : public TestCommand class Test_TC_BOOL_1_1 : public TestCommand { public: - Test_TC_BOOL_1_1() : TestCommand("Test_TC_BOOL_1_1"), mTestIndex(0) {} + Test_TC_BOOL_1_1() : TestCommand("Test_TC_BOOL_1_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -1167,6 +1193,9 @@ class Test_TC_BOOL_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 5; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -1216,7 +1245,7 @@ class Test_TC_BOOL_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BooleanStateClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -1236,7 +1265,7 @@ class Test_TC_BOOL_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeConstraintsClusterRevision_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BooleanStateClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -1256,7 +1285,7 @@ class Test_TC_BOOL_1_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BooleanStateClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -1278,7 +1307,7 @@ class Test_TC_BOOL_1_1 : public TestCommand CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BooleanStateClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -1300,7 +1329,11 @@ class Test_TC_BOOL_1_1 : public TestCommand class Test_TC_BOOL_2_1 : public TestCommand { public: - Test_TC_BOOL_2_1() : TestCommand("Test_TC_BOOL_2_1"), mTestIndex(0) {} + Test_TC_BOOL_2_1() : TestCommand("Test_TC_BOOL_2_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -1361,6 +1394,9 @@ class Test_TC_BOOL_2_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 5; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -1410,7 +1446,7 @@ class Test_TC_BOOL_2_1 : public TestCommand CHIP_ERROR TestReadMandatoryNonGlobalAttributeStateValue_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BooleanStateClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -1430,7 +1466,7 @@ class Test_TC_BOOL_2_1 : public TestCommand CHIP_ERROR TestReadMandatoryNonGlobalAttributeConstraintsStateValue_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BooleanStateClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -1450,7 +1486,7 @@ class Test_TC_BOOL_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValueToMandatoryNonGlobalAttributeStateValue_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BooleanStateClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -1472,7 +1508,7 @@ class Test_TC_BOOL_2_1 : public TestCommand CHIP_ERROR TestReadsBackTheMandatoryNonGlobalAttributeStateValue_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::BooleanStateClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -1494,7 +1530,11 @@ class Test_TC_BOOL_2_1 : public TestCommand class Test_TC_CC_1_1 : public TestCommand { public: - Test_TC_CC_1_1() : TestCommand("Test_TC_CC_1_1"), mTestIndex(0) {} + Test_TC_CC_1_1() : TestCommand("Test_TC_CC_1_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -1547,6 +1587,9 @@ class Test_TC_CC_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 3; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -1576,7 +1619,7 @@ class Test_TC_CC_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeConstraintsClusterRevision_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -1596,7 +1639,7 @@ class Test_TC_CC_1_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -1620,7 +1663,11 @@ class Test_TC_CC_1_1 : public TestCommand class Test_TC_CC_2_1 : public TestCommand { public: - Test_TC_CC_2_1() : TestCommand("Test_TC_CC_2_1"), mTestIndex(0) {} + Test_TC_CC_2_1() : TestCommand("Test_TC_CC_2_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -2253,6 +2300,9 @@ class Test_TC_CC_2_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 146; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -3598,7 +3648,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadsMandatoryAttributeCurrentHue_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -3618,7 +3668,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestValidateConstraintsOfAttributeCurrentHue_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -3639,7 +3689,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValueToMandatoryAttributeCurrentHue_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -3661,7 +3711,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadsBackMandatoryAttributeCurrentHue_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -3681,7 +3731,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadsMandatoryAttributeCurrentSaturation_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -3701,7 +3751,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestValidateConstraintsOfAttributeCurrentSaturation_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -3722,7 +3772,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValueToMandatoryAttributeCurrentSaturation_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -3744,7 +3794,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadsBackMandatoryAttributeCurrentSaturation_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -3764,7 +3814,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeCurrentX_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -3784,7 +3834,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestValidateConstraintsOfAttributeCurrentX_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -3805,7 +3855,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValueToMandatoryAttributeCurrentX_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -3827,7 +3877,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadsBackMandatoryAttributeCurrentX_12() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -3847,7 +3897,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeCurrentY_13() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -3867,7 +3917,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestValidateConstraintsOfAttributeCurrentY_14() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -3888,7 +3938,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeCurrentY_15() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -3910,7 +3960,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadsBackMandatoryAttributeCurrentY_16() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -3930,7 +3980,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestValidateConstraintsOfAttributeColorTemperatureMireds_17() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -3951,7 +4001,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestValidateConstraintsOfAttributeColorMode_18() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -3972,7 +4022,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeOptions_19() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -3992,7 +4042,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestValidateConstraintsOfAttributeOptions_20() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4012,7 +4062,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeOptions_21() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4030,7 +4080,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadsBackMandatoryAttributeOptions_22() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4050,7 +4100,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeEnhancedCurrentHue_23() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4070,7 +4120,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestValidateConstraintsOfAttributeEnhancedCurrentHue_24() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4090,7 +4140,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeEnhancedCurrentHue_25() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4112,7 +4162,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadsBackMandatoryAttributeEnhancedCurrentHue_26() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4132,7 +4182,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestValidateConstraintsOfAttributeEnhancedColorMode_27() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4152,7 +4202,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeColorLoopActive_28() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4172,7 +4222,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopActive_29() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4192,7 +4242,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorLoopActive_30() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4214,7 +4264,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopActive_31() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4234,7 +4284,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeColorLoopDirection_32() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4254,7 +4304,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopDirection_33() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4274,7 +4324,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorLoopDirection_34() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4296,7 +4346,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopDirection_35() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4316,7 +4366,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeColorLoopTime_36() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4336,7 +4386,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopTime_37() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4356,7 +4406,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorLoopTime_38() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4378,7 +4428,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopTime_39() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4398,7 +4448,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeColorLoopStartEnhancedHue_40() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4419,7 +4469,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopStartEnhancedHue_41() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4440,7 +4490,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorLoopStartEnhancedHue_42() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4463,7 +4513,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopStartEnhancedHue_43() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4484,7 +4534,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeColorLoopStoredEnhancedHue_44() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4505,7 +4555,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopStoredEnhancedHue_45() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4526,7 +4576,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorLoopStoredEnhancedHue_46() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4549,7 +4599,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopStoredEnhancedHue_47() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4570,7 +4620,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeColorCapabilities_48() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4590,7 +4640,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestValidateConstraintsOfAttributeColorCapabilities_49() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4611,7 +4661,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorCapabilities_50() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4633,7 +4683,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadsBackMandatoryAttributeColorCapabilities_51() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4653,7 +4703,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeColorTempPhysicalMinMireds_52() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4673,7 +4723,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestValidateConstraintsOfAttributeColorTempPhysicalMinMireds_53() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4694,7 +4744,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorTempPhysicalMinMireds_54() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4716,7 +4766,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadsBackMandatoryAttributeColorTempPhysicalMinMireds_55() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4736,7 +4786,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeColorTempPhysicalMaxMireds_56() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4756,7 +4806,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestValidateConstraintsOfAttributeColorTempPhysicalMaxMireds_57() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4777,7 +4827,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorTempPhysicalMaxMireds_58() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4799,7 +4849,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadsBackMandatoryAttributeColorTempPhysicalMaxMireds_59() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4819,7 +4869,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheOptionalAttributeCoupleColorTempToLevelMinMireds_60() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4840,7 +4890,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToOptionalAttributeCoupleColorTempToLevelMinMireds_61() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4863,7 +4913,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadsBackOptionalAttributeCoupleColorTempToLevelMinMireds_62() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4884,7 +4934,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheOptionalAttributeStartUpColorTemperatureMireds_63() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4906,7 +4956,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToOptionalAttributeStartUpColorTemperatureMireds_64() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4925,7 +4975,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadsBackOptionalAttributeStartUpColorTemperatureMireds_65() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4946,7 +4996,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheOptionalAttributeRemainingTime_66() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4966,7 +5016,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestValidateConstraintsOfAttributeRemainingTime_67() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -4987,7 +5037,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToOptionalAttributeRemainingTime_68() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5009,7 +5059,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadsBackOptionalAttributeRemainingTime_69() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5029,7 +5079,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheOptionalAttributeDriftCompensation_70() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5050,7 +5100,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToOptionalAttributeDriftCompensation_71() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5072,7 +5122,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadsBackOptionalAttributeDriftCompensation_72() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5092,7 +5142,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheOptionalAttributeCompensationText_73() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5113,7 +5163,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeNumberOfPrimaries_74() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5134,7 +5184,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultMandatoryAttributeNumberOfPrimaries_75() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5156,7 +5206,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadBackTheMandatoryAttributeNumberOfPrimaries_76() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5176,7 +5226,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributePrimary1X_77() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5197,7 +5247,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary1X_78() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5219,7 +5269,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadBackTheMandatoryAttributePrimary1X_79() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5239,7 +5289,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributePrimary1Y_80() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5260,7 +5310,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary1Y_81() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5282,7 +5332,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadBackTheMandatoryAttributePrimary1Y_82() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5302,7 +5352,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributePrimary1Intensity_83() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5322,7 +5372,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributePrimary2X_84() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5343,7 +5393,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary2X_85() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5365,7 +5415,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadBackTheMandatoryAttributePrimary2X_86() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5385,7 +5435,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributePrimary2Y_87() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5406,7 +5456,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary2Y_88() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5428,7 +5478,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadBackTheMandatoryAttributePrimary2Y_89() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5448,7 +5498,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestValidateConstraintsOfAttributePrimary2Intensity_90() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5468,7 +5518,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributePrimary3X_91() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5489,7 +5539,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary3X_92() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5511,7 +5561,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadBackTheMandatoryAttributePrimary3X_93() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5531,7 +5581,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributePrimary3Y_94() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5552,7 +5602,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary3Y_95() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5574,7 +5624,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadBackTheMandatoryAttributePrimary3Y_96() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5594,7 +5644,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributePrimary3Intensity_97() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5614,7 +5664,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributePrimary4X_98() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5635,7 +5685,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary4X_99() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5657,7 +5707,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadBackTheMandatoryAttributePrimary4X_100() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5677,7 +5727,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributePrimary4Y_101() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5698,7 +5748,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary4Y_102() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5720,7 +5770,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadBackTheMandatoryAttributePrimary4Y_103() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5740,7 +5790,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributePrimary4Intensity_104() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5760,7 +5810,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributePrimary5X_105() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5781,7 +5831,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary5X_106() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5803,7 +5853,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadBackTheMandatoryAttributePrimary5X_107() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5823,7 +5873,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributePrimary5Y_108() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5844,7 +5894,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary5Y_109() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5866,7 +5916,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadBackTheMandatoryAttributePrimary5Y_110() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5886,7 +5936,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributePrimary5Intensity_111() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5906,7 +5956,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributePrimary6X_112() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5927,7 +5977,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary6X_113() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5949,7 +5999,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadBackTheMandatoryAttributePrimary6X_114() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5969,7 +6019,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributePrimary6Y_115() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -5990,7 +6040,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary6Y_116() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6012,7 +6062,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadBackTheMandatoryAttributePrimary6Y_117() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6032,7 +6082,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributePrimary6Intensity_118() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6052,7 +6102,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheOptionalAttributeWhitePointX_119() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6073,7 +6123,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultOptionalAttributeWhitePointX_120() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6091,7 +6141,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadBackTheOptionalAttributeWhitePointX_121() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6111,7 +6161,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheOptionalAttributeWhitePointY_122() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6132,7 +6182,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultOptionalAttributeWhitePointY_123() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6150,7 +6200,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadBackTheOptionalAttributeWhitePointY_124() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6170,7 +6220,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheOptionalAttributeColorPointRX_125() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6191,7 +6241,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointRX_126() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6209,7 +6259,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadBackTheOptionalAttributeColorPointRX_127() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6229,7 +6279,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheOptionalAttributeColorPointRY_128() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6250,7 +6300,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointRY_129() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6268,7 +6318,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadBackTheOptionalAttributeColorPointRY_130() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6288,7 +6338,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheOptionalAttributeColorPointRIntensity_131() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6308,7 +6358,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheOptionalAttributeColorPointGX_132() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6329,7 +6379,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointGX_133() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6347,7 +6397,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadBackTheOptionalAttributeColorPointGX_134() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6367,7 +6417,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheOptionalAttributeColorPointGY_135() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6388,7 +6438,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointGY_136() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6406,7 +6456,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadBackTheOptionalAttributeColorPointGY_137() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6426,7 +6476,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheOptionalAttributeColorPointGIntensity_138() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6446,7 +6496,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheOptionalAttributeColorPointBX_139() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6467,7 +6517,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointBX_140() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6485,7 +6535,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadBackTheOptionalAttributeColorPointBX_141() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6505,7 +6555,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheOptionalAttributeColorPointBY_142() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6526,7 +6576,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointBY_143() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6544,7 +6594,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadBackTheOptionalAttributeColorPointBY_144() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6564,7 +6614,7 @@ class Test_TC_CC_2_1 : public TestCommand CHIP_ERROR TestReadTheOptionalAttributeColorPointBIntensity_145() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6586,7 +6636,11 @@ class Test_TC_CC_2_1 : public TestCommand class Test_TC_CC_3_1 : public TestCommand { public: - Test_TC_CC_3_1() : TestCommand("Test_TC_CC_3_1"), mTestIndex(0) {} + Test_TC_CC_3_1() : TestCommand("Test_TC_CC_3_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -6662,6 +6716,9 @@ class Test_TC_CC_3_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 9; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -6694,7 +6751,7 @@ class Test_TC_CC_3_1 : public TestCommand CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -6717,7 +6774,7 @@ class Test_TC_CC_3_1 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6737,7 +6794,7 @@ class Test_TC_CC_3_1 : public TestCommand CHIP_ERROR TestMoveToHueShortestDistanceCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToHue::Type; RequestType request; @@ -6765,7 +6822,7 @@ class Test_TC_CC_3_1 : public TestCommand CHIP_ERROR TestMoveToHueLongestDistanceCommand_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToHue::Type; RequestType request; @@ -6793,7 +6850,7 @@ class Test_TC_CC_3_1 : public TestCommand CHIP_ERROR TestMoveToHueUpCommand_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToHue::Type; RequestType request; @@ -6821,7 +6878,7 @@ class Test_TC_CC_3_1 : public TestCommand CHIP_ERROR TestMoveToHueDownCommand_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToHue::Type; RequestType request; @@ -6849,7 +6906,7 @@ class Test_TC_CC_3_1 : public TestCommand CHIP_ERROR TestTurnOffLightThatWeTurnedOn_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -6872,7 +6929,7 @@ class Test_TC_CC_3_1 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -6894,7 +6951,11 @@ class Test_TC_CC_3_1 : public TestCommand class Test_TC_CC_3_2 : public TestCommand { public: - Test_TC_CC_3_2() : TestCommand("Test_TC_CC_3_2"), mTestIndex(0) {} + Test_TC_CC_3_2() : TestCommand("Test_TC_CC_3_2"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -6970,6 +7031,9 @@ class Test_TC_CC_3_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 9; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -7002,7 +7066,7 @@ class Test_TC_CC_3_2 : public TestCommand CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -7025,7 +7089,7 @@ class Test_TC_CC_3_2 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -7045,7 +7109,7 @@ class Test_TC_CC_3_2 : public TestCommand CHIP_ERROR TestMoveHueUpCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveHue::Type; RequestType request; @@ -7072,7 +7136,7 @@ class Test_TC_CC_3_2 : public TestCommand CHIP_ERROR TestMoveHueStopCommand_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveHue::Type; RequestType request; @@ -7099,7 +7163,7 @@ class Test_TC_CC_3_2 : public TestCommand CHIP_ERROR TestMoveHueDownCommand_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveHue::Type; RequestType request; @@ -7126,7 +7190,7 @@ class Test_TC_CC_3_2 : public TestCommand CHIP_ERROR TestMoveHueStopCommand_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveHue::Type; RequestType request; @@ -7153,7 +7217,7 @@ class Test_TC_CC_3_2 : public TestCommand CHIP_ERROR TestTurnOffLightThatWeTurnedOn_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -7176,7 +7240,7 @@ class Test_TC_CC_3_2 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -7198,7 +7262,11 @@ class Test_TC_CC_3_2 : public TestCommand class Test_TC_CC_3_3 : public TestCommand { public: - Test_TC_CC_3_3() : TestCommand("Test_TC_CC_3_3"), mTestIndex(0) {} + Test_TC_CC_3_3() : TestCommand("Test_TC_CC_3_3"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -7266,6 +7334,9 @@ class Test_TC_CC_3_3 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 7; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -7298,7 +7369,7 @@ class Test_TC_CC_3_3 : public TestCommand CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -7321,7 +7392,7 @@ class Test_TC_CC_3_3 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -7341,7 +7412,7 @@ class Test_TC_CC_3_3 : public TestCommand CHIP_ERROR TestStepHueUpCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::StepHue::Type; RequestType request; @@ -7369,7 +7440,7 @@ class Test_TC_CC_3_3 : public TestCommand CHIP_ERROR TestStepHueDownCommand_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::StepHue::Type; RequestType request; @@ -7397,7 +7468,7 @@ class Test_TC_CC_3_3 : public TestCommand CHIP_ERROR TestTurnOffLightThatWeTurnedOn_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -7420,7 +7491,7 @@ class Test_TC_CC_3_3 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -7442,7 +7513,11 @@ class Test_TC_CC_3_3 : public TestCommand class Test_TC_CC_4_1 : public TestCommand { public: - Test_TC_CC_4_1() : TestCommand("Test_TC_CC_4_1"), mTestIndex(0) {} + Test_TC_CC_4_1() : TestCommand("Test_TC_CC_4_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -7506,6 +7581,9 @@ class Test_TC_CC_4_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 6; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -7538,7 +7616,7 @@ class Test_TC_CC_4_1 : public TestCommand CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -7561,7 +7639,7 @@ class Test_TC_CC_4_1 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -7581,7 +7659,7 @@ class Test_TC_CC_4_1 : public TestCommand CHIP_ERROR TestMoveToSaturationCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToSaturation::Type; RequestType request; @@ -7608,7 +7686,7 @@ class Test_TC_CC_4_1 : public TestCommand CHIP_ERROR TestTurnOffLightThatWeTurnedOn_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -7631,7 +7709,7 @@ class Test_TC_CC_4_1 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -7653,7 +7731,11 @@ class Test_TC_CC_4_1 : public TestCommand class Test_TC_CC_4_2 : public TestCommand { public: - Test_TC_CC_4_2() : TestCommand("Test_TC_CC_4_2"), mTestIndex(0) {} + Test_TC_CC_4_2() : TestCommand("Test_TC_CC_4_2"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -7737,6 +7819,9 @@ class Test_TC_CC_4_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 11; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -7769,7 +7854,7 @@ class Test_TC_CC_4_2 : public TestCommand CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -7792,7 +7877,7 @@ class Test_TC_CC_4_2 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -7812,7 +7897,7 @@ class Test_TC_CC_4_2 : public TestCommand CHIP_ERROR TestMoveSaturationUpCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type; RequestType request; @@ -7839,7 +7924,7 @@ class Test_TC_CC_4_2 : public TestCommand CHIP_ERROR TestMoveSaturationDownCommand_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type; RequestType request; @@ -7866,7 +7951,7 @@ class Test_TC_CC_4_2 : public TestCommand CHIP_ERROR TestMoveSaturationUpCommand_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type; RequestType request; @@ -7893,7 +7978,7 @@ class Test_TC_CC_4_2 : public TestCommand CHIP_ERROR TestMoveSaturationStopCommand_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type; RequestType request; @@ -7920,7 +8005,7 @@ class Test_TC_CC_4_2 : public TestCommand CHIP_ERROR TestMoveSaturationDownCommand_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type; RequestType request; @@ -7947,7 +8032,7 @@ class Test_TC_CC_4_2 : public TestCommand CHIP_ERROR TestMoveSaturationStopCommand_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type; RequestType request; @@ -7974,7 +8059,7 @@ class Test_TC_CC_4_2 : public TestCommand CHIP_ERROR TestTurnOffLightThatWeTurnedOn_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -7997,7 +8082,7 @@ class Test_TC_CC_4_2 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -8019,7 +8104,11 @@ class Test_TC_CC_4_2 : public TestCommand class Test_TC_CC_4_3 : public TestCommand { public: - Test_TC_CC_4_3() : TestCommand("Test_TC_CC_4_3"), mTestIndex(0) {} + Test_TC_CC_4_3() : TestCommand("Test_TC_CC_4_3"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -8087,6 +8176,9 @@ class Test_TC_CC_4_3 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 7; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -8119,7 +8211,7 @@ class Test_TC_CC_4_3 : public TestCommand CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -8142,7 +8234,7 @@ class Test_TC_CC_4_3 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -8162,7 +8254,7 @@ class Test_TC_CC_4_3 : public TestCommand CHIP_ERROR TestStepSaturationUpCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::StepSaturation::Type; RequestType request; @@ -8190,7 +8282,7 @@ class Test_TC_CC_4_3 : public TestCommand CHIP_ERROR TestStepSaturationDownCommand_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::StepSaturation::Type; RequestType request; @@ -8218,7 +8310,7 @@ class Test_TC_CC_4_3 : public TestCommand CHIP_ERROR TestTurnOffLightThatWeTurnedOn_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -8241,7 +8333,7 @@ class Test_TC_CC_4_3 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -8263,7 +8355,11 @@ class Test_TC_CC_4_3 : public TestCommand class Test_TC_CC_4_4 : public TestCommand { public: - Test_TC_CC_4_4() : TestCommand("Test_TC_CC_4_4"), mTestIndex(0) {} + Test_TC_CC_4_4() : TestCommand("Test_TC_CC_4_4"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -8327,6 +8423,9 @@ class Test_TC_CC_4_4 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 6; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -8359,7 +8458,7 @@ class Test_TC_CC_4_4 : public TestCommand CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -8382,7 +8481,7 @@ class Test_TC_CC_4_4 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -8402,7 +8501,7 @@ class Test_TC_CC_4_4 : public TestCommand CHIP_ERROR TestMoveToCurrentHueAndSaturationCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToHueAndSaturation::Type; RequestType request; @@ -8430,7 +8529,7 @@ class Test_TC_CC_4_4 : public TestCommand CHIP_ERROR TestTurnOffLightThatWeTurnedOn_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -8453,7 +8552,7 @@ class Test_TC_CC_4_4 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -8475,7 +8574,11 @@ class Test_TC_CC_4_4 : public TestCommand class Test_TC_CC_5_1 : public TestCommand { public: - Test_TC_CC_5_1() : TestCommand("Test_TC_CC_5_1"), mTestIndex(0) {} + Test_TC_CC_5_1() : TestCommand("Test_TC_CC_5_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -8539,6 +8642,9 @@ class Test_TC_CC_5_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 6; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -8571,7 +8677,7 @@ class Test_TC_CC_5_1 : public TestCommand CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -8594,7 +8700,7 @@ class Test_TC_CC_5_1 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -8614,7 +8720,7 @@ class Test_TC_CC_5_1 : public TestCommand CHIP_ERROR TestMoveToColorCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToColor::Type; RequestType request; @@ -8642,7 +8748,7 @@ class Test_TC_CC_5_1 : public TestCommand CHIP_ERROR TestTurnOffLightThatWeTurnedOn_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -8665,7 +8771,7 @@ class Test_TC_CC_5_1 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -8687,7 +8793,11 @@ class Test_TC_CC_5_1 : public TestCommand class Test_TC_CC_5_2 : public TestCommand { public: - Test_TC_CC_5_2() : TestCommand("Test_TC_CC_5_2"), mTestIndex(0) {} + Test_TC_CC_5_2() : TestCommand("Test_TC_CC_5_2"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -8755,6 +8865,9 @@ class Test_TC_CC_5_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 7; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -8787,7 +8900,7 @@ class Test_TC_CC_5_2 : public TestCommand CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -8810,7 +8923,7 @@ class Test_TC_CC_5_2 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -8830,7 +8943,7 @@ class Test_TC_CC_5_2 : public TestCommand CHIP_ERROR TestMoveColorCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveColor::Type; RequestType request; @@ -8857,7 +8970,7 @@ class Test_TC_CC_5_2 : public TestCommand CHIP_ERROR TestStopMoveStepCommand_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::StopMoveStep::Type; RequestType request; @@ -8882,7 +8995,7 @@ class Test_TC_CC_5_2 : public TestCommand CHIP_ERROR TestTurnOffLightThatWeTurnedOn_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -8905,7 +9018,7 @@ class Test_TC_CC_5_2 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -8927,7 +9040,11 @@ class Test_TC_CC_5_2 : public TestCommand class Test_TC_CC_5_3 : public TestCommand { public: - Test_TC_CC_5_3() : TestCommand("Test_TC_CC_5_3"), mTestIndex(0) {} + Test_TC_CC_5_3() : TestCommand("Test_TC_CC_5_3"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -8991,6 +9108,9 @@ class Test_TC_CC_5_3 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 6; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -9023,7 +9143,7 @@ class Test_TC_CC_5_3 : public TestCommand CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -9046,7 +9166,7 @@ class Test_TC_CC_5_3 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -9066,7 +9186,7 @@ class Test_TC_CC_5_3 : public TestCommand CHIP_ERROR TestStepColorCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::StepColor::Type; RequestType request; @@ -9094,7 +9214,7 @@ class Test_TC_CC_5_3 : public TestCommand CHIP_ERROR TestTurnOffLightThatWeTurnedOn_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -9117,7 +9237,7 @@ class Test_TC_CC_5_3 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -9139,7 +9259,11 @@ class Test_TC_CC_5_3 : public TestCommand class Test_TC_CC_6_1 : public TestCommand { public: - Test_TC_CC_6_1() : TestCommand("Test_TC_CC_6_1"), mTestIndex(0) {} + Test_TC_CC_6_1() : TestCommand("Test_TC_CC_6_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -9203,6 +9327,9 @@ class Test_TC_CC_6_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 6; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -9235,7 +9362,7 @@ class Test_TC_CC_6_1 : public TestCommand CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -9258,7 +9385,7 @@ class Test_TC_CC_6_1 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -9278,7 +9405,7 @@ class Test_TC_CC_6_1 : public TestCommand CHIP_ERROR TestMoveToColorTemperatureCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToColorTemperature::Type; RequestType request; @@ -9305,7 +9432,7 @@ class Test_TC_CC_6_1 : public TestCommand CHIP_ERROR TestTurnOffLightThatWeTurnedOn_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -9328,7 +9455,7 @@ class Test_TC_CC_6_1 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -9350,7 +9477,11 @@ class Test_TC_CC_6_1 : public TestCommand class Test_TC_CC_6_2 : public TestCommand { public: - Test_TC_CC_6_2() : TestCommand("Test_TC_CC_6_2"), mTestIndex(0) {} + Test_TC_CC_6_2() : TestCommand("Test_TC_CC_6_2"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -9422,6 +9553,9 @@ class Test_TC_CC_6_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 8; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -9454,7 +9588,7 @@ class Test_TC_CC_6_2 : public TestCommand CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -9477,7 +9611,7 @@ class Test_TC_CC_6_2 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -9497,7 +9631,7 @@ class Test_TC_CC_6_2 : public TestCommand CHIP_ERROR TestMoveUpColorTemperatureCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type; RequestType request; @@ -9526,7 +9660,7 @@ class Test_TC_CC_6_2 : public TestCommand CHIP_ERROR TestStopColorTemperatureCommand_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type; RequestType request; @@ -9555,7 +9689,7 @@ class Test_TC_CC_6_2 : public TestCommand CHIP_ERROR TestMoveDownColorTemperatureCommand_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type; RequestType request; @@ -9584,7 +9718,7 @@ class Test_TC_CC_6_2 : public TestCommand CHIP_ERROR TestTurnOffLightThatWeTurnedOn_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -9607,7 +9741,7 @@ class Test_TC_CC_6_2 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -9629,7 +9763,11 @@ class Test_TC_CC_6_2 : public TestCommand class Test_TC_CC_6_3 : public TestCommand { public: - Test_TC_CC_6_3() : TestCommand("Test_TC_CC_6_3"), mTestIndex(0) {} + Test_TC_CC_6_3() : TestCommand("Test_TC_CC_6_3"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -9697,6 +9835,9 @@ class Test_TC_CC_6_3 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 7; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -9729,7 +9870,7 @@ class Test_TC_CC_6_3 : public TestCommand CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -9752,7 +9893,7 @@ class Test_TC_CC_6_3 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -9772,7 +9913,7 @@ class Test_TC_CC_6_3 : public TestCommand CHIP_ERROR TestStepUpColorTemperatureCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::StepColorTemperature::Type; RequestType request; @@ -9802,7 +9943,7 @@ class Test_TC_CC_6_3 : public TestCommand CHIP_ERROR TestStepDownColorTemperatureCommand_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::StepColorTemperature::Type; RequestType request; @@ -9832,7 +9973,7 @@ class Test_TC_CC_6_3 : public TestCommand CHIP_ERROR TestTurnOffLightThatWeTurnedOn_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -9855,7 +9996,7 @@ class Test_TC_CC_6_3 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -9877,7 +10018,11 @@ class Test_TC_CC_6_3 : public TestCommand class Test_TC_CC_7_1 : public TestCommand { public: - Test_TC_CC_7_1() : TestCommand("Test_TC_CC_7_1"), mTestIndex(0) {} + Test_TC_CC_7_1() : TestCommand("Test_TC_CC_7_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -9946,6 +10091,9 @@ class Test_TC_CC_7_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 7; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -9988,7 +10136,7 @@ class Test_TC_CC_7_1 : public TestCommand CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -10011,7 +10159,7 @@ class Test_TC_CC_7_1 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -10031,7 +10179,7 @@ class Test_TC_CC_7_1 : public TestCommand CHIP_ERROR TestEnhancedMoveToHueCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type; RequestType request; @@ -10059,7 +10207,7 @@ class Test_TC_CC_7_1 : public TestCommand CHIP_ERROR TestCheckRemainingTimeAttributeValueMatchedTheValueSentByTheLastCommand_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -10079,7 +10227,7 @@ class Test_TC_CC_7_1 : public TestCommand CHIP_ERROR TestTurnOffLightThatWeTurnedOn_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -10102,7 +10250,7 @@ class Test_TC_CC_7_1 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -10124,7 +10272,11 @@ class Test_TC_CC_7_1 : public TestCommand class Test_TC_CC_7_2 : public TestCommand { public: - Test_TC_CC_7_2() : TestCommand("Test_TC_CC_7_2"), mTestIndex(0) {} + Test_TC_CC_7_2() : TestCommand("Test_TC_CC_7_2"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -10200,6 +10352,9 @@ class Test_TC_CC_7_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 9; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -10232,7 +10387,7 @@ class Test_TC_CC_7_2 : public TestCommand CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -10255,7 +10410,7 @@ class Test_TC_CC_7_2 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -10275,7 +10430,7 @@ class Test_TC_CC_7_2 : public TestCommand CHIP_ERROR TestEnhancedMoveHueDownCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type; RequestType request; @@ -10302,7 +10457,7 @@ class Test_TC_CC_7_2 : public TestCommand CHIP_ERROR TestEnhancedMoveHueStopCommand_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type; RequestType request; @@ -10329,7 +10484,7 @@ class Test_TC_CC_7_2 : public TestCommand CHIP_ERROR TestEnhancedMoveHueUpCommand_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type; RequestType request; @@ -10356,7 +10511,7 @@ class Test_TC_CC_7_2 : public TestCommand CHIP_ERROR TestEnhancedMoveHueStopCommand_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type; RequestType request; @@ -10383,7 +10538,7 @@ class Test_TC_CC_7_2 : public TestCommand CHIP_ERROR TestTurnOffLightThatWeTurnedOn_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -10406,7 +10561,7 @@ class Test_TC_CC_7_2 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -10428,7 +10583,11 @@ class Test_TC_CC_7_2 : public TestCommand class Test_TC_CC_7_3 : public TestCommand { public: - Test_TC_CC_7_3() : TestCommand("Test_TC_CC_7_3"), mTestIndex(0) {} + Test_TC_CC_7_3() : TestCommand("Test_TC_CC_7_3"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -10496,6 +10655,9 @@ class Test_TC_CC_7_3 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 7; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -10528,7 +10690,7 @@ class Test_TC_CC_7_3 : public TestCommand CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -10551,7 +10713,7 @@ class Test_TC_CC_7_3 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -10571,7 +10733,7 @@ class Test_TC_CC_7_3 : public TestCommand CHIP_ERROR TestEnhancedStepHueUpCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedStepHue::Type; RequestType request; @@ -10599,7 +10761,7 @@ class Test_TC_CC_7_3 : public TestCommand CHIP_ERROR TestEnhancedStepHueDownCommand_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedStepHue::Type; RequestType request; @@ -10627,7 +10789,7 @@ class Test_TC_CC_7_3 : public TestCommand CHIP_ERROR TestTurnOffLightThatWeTurnedOn_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -10650,7 +10812,7 @@ class Test_TC_CC_7_3 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -10672,7 +10834,11 @@ class Test_TC_CC_7_3 : public TestCommand class Test_TC_CC_7_4 : public TestCommand { public: - Test_TC_CC_7_4() : TestCommand("Test_TC_CC_7_4"), mTestIndex(0) {} + Test_TC_CC_7_4() : TestCommand("Test_TC_CC_7_4"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -10736,6 +10902,9 @@ class Test_TC_CC_7_4 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 6; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -10768,7 +10937,7 @@ class Test_TC_CC_7_4 : public TestCommand CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -10791,7 +10960,7 @@ class Test_TC_CC_7_4 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -10811,7 +10980,7 @@ class Test_TC_CC_7_4 : public TestCommand CHIP_ERROR TestEnhancedMoveToHueAndSaturationCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHueAndSaturation::Type; RequestType request; @@ -10839,7 +11008,7 @@ class Test_TC_CC_7_4 : public TestCommand CHIP_ERROR TestTurnOffLightThatWeTurnedOn_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -10862,7 +11031,7 @@ class Test_TC_CC_7_4 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -10884,7 +11053,11 @@ class Test_TC_CC_7_4 : public TestCommand class Test_TC_CC_8_1 : public TestCommand { public: - Test_TC_CC_8_1() : TestCommand("Test_TC_CC_8_1"), mTestIndex(0) {} + Test_TC_CC_8_1() : TestCommand("Test_TC_CC_8_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -10992,6 +11165,9 @@ class Test_TC_CC_8_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 17; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -11104,7 +11280,7 @@ class Test_TC_CC_8_1 : public TestCommand CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -11127,7 +11303,7 @@ class Test_TC_CC_8_1 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -11147,7 +11323,7 @@ class Test_TC_CC_8_1 : public TestCommand CHIP_ERROR TestColorLoopSetCommandSetAllAttributs_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -11177,7 +11353,7 @@ class Test_TC_CC_8_1 : public TestCommand CHIP_ERROR TestCheckColorLoopDirectionValue_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -11197,7 +11373,7 @@ class Test_TC_CC_8_1 : public TestCommand CHIP_ERROR TestCheckColorLoopTimeValue_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -11217,7 +11393,7 @@ class Test_TC_CC_8_1 : public TestCommand CHIP_ERROR TestCheckColorLoopStartEnhancedHueValue_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -11238,7 +11414,7 @@ class Test_TC_CC_8_1 : public TestCommand CHIP_ERROR TestCheckColorLoopActiveValue_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -11258,7 +11434,7 @@ class Test_TC_CC_8_1 : public TestCommand CHIP_ERROR TestColorLoopSetCommandStartColorLoop_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -11288,7 +11464,7 @@ class Test_TC_CC_8_1 : public TestCommand CHIP_ERROR TestCheckColorLoopActiveValue_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -11308,7 +11484,7 @@ class Test_TC_CC_8_1 : public TestCommand CHIP_ERROR TestColorLoopSetCommandSetDirectionAndTimeWhileRunning_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -11338,7 +11514,7 @@ class Test_TC_CC_8_1 : public TestCommand CHIP_ERROR TestCheckColorLoopDirectionValue_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -11358,7 +11534,7 @@ class Test_TC_CC_8_1 : public TestCommand CHIP_ERROR TestCheckColorLoopTimeValue_12() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -11378,7 +11554,7 @@ class Test_TC_CC_8_1 : public TestCommand CHIP_ERROR TestColorLoopSetCommandSetDirectionWhileRunning_13() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -11408,7 +11584,7 @@ class Test_TC_CC_8_1 : public TestCommand CHIP_ERROR TestCheckColorLoopDirectionValue_14() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -11428,7 +11604,7 @@ class Test_TC_CC_8_1 : public TestCommand CHIP_ERROR TestTurnOffLightThatWeTurnedOn_15() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -11451,7 +11627,7 @@ class Test_TC_CC_8_1 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_16() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -11473,7 +11649,11 @@ class Test_TC_CC_8_1 : public TestCommand class Test_TC_CC_9_1 : public TestCommand { public: - Test_TC_CC_9_1() : TestCommand("Test_TC_CC_9_1"), mTestIndex(0) {} + Test_TC_CC_9_1() : TestCommand("Test_TC_CC_9_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -11662,6 +11842,9 @@ class Test_TC_CC_9_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 37; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -11844,7 +12027,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestPreconditionTurnOnLightForColorControlTests_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -11867,7 +12050,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -11887,7 +12070,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -11917,7 +12100,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -11937,7 +12120,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -11967,7 +12150,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestReadColorLoopDirectionAttributeFromDut_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -11987,7 +12170,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -12017,7 +12200,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestReadColorLoopTimeAttributeFromDut_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -12037,7 +12220,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -12067,7 +12250,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestReadColorLoopStartEnhancedHueAttributeFromDut_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -12088,7 +12271,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -12118,7 +12301,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_12() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -12138,7 +12321,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_13() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -12168,7 +12351,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_14() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -12188,7 +12371,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_15() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -12218,7 +12401,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestReadColorLoopDirectionAttributeFromDut_16() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -12238,7 +12421,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_17() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -12268,7 +12451,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_18() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -12288,7 +12471,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_19() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -12318,7 +12501,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_20() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -12338,7 +12521,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestEnhancedMoveToHueCommand10_21() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type; RequestType request; @@ -12372,7 +12555,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestReadEnhancedCurrentHueAttributeFromDut_23() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -12392,7 +12575,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_24() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -12422,7 +12605,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestReadColorLoopDirectionAttributeFromDut_25() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -12442,7 +12625,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_26() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -12472,7 +12655,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_27() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -12492,7 +12675,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_28() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -12522,7 +12705,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_29() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -12542,7 +12725,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_30() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -12572,7 +12755,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestReadColorLoopDirectionAttributeFromDut_31() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -12592,7 +12775,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_32() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -12622,7 +12805,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_33() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -12642,7 +12825,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_34() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -12672,7 +12855,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_35() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -12692,7 +12875,7 @@ class Test_TC_CC_9_1 : public TestCommand CHIP_ERROR TestTurnOffLightForColorControlTests_36() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -12717,7 +12900,11 @@ class Test_TC_CC_9_1 : public TestCommand class Test_TC_CC_9_2 : public TestCommand { public: - Test_TC_CC_9_2() : TestCommand("Test_TC_CC_9_2"), mTestIndex(0) {} + Test_TC_CC_9_2() : TestCommand("Test_TC_CC_9_2"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -12817,6 +13004,9 @@ class Test_TC_CC_9_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 15; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -12909,7 +13099,7 @@ class Test_TC_CC_9_2 : public TestCommand CHIP_ERROR TestPreconditionTurnOnLightForColorControlTests_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -12932,7 +13122,7 @@ class Test_TC_CC_9_2 : public TestCommand CHIP_ERROR TestPreconditionCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -12952,7 +13142,7 @@ class Test_TC_CC_9_2 : public TestCommand CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -12982,7 +13172,7 @@ class Test_TC_CC_9_2 : public TestCommand CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -13002,7 +13192,7 @@ class Test_TC_CC_9_2 : public TestCommand CHIP_ERROR TestReadColorLoopDirectionAttributeFromDut_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -13022,7 +13212,7 @@ class Test_TC_CC_9_2 : public TestCommand CHIP_ERROR TestReadColorLoopTimeAttributeFromDut_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -13042,7 +13232,7 @@ class Test_TC_CC_9_2 : public TestCommand CHIP_ERROR TestReadColorLoopStartEnhancedHueAttributeFromDut_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -13063,7 +13253,7 @@ class Test_TC_CC_9_2 : public TestCommand CHIP_ERROR TestColorLoopSetCommandSetAllAttributes_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -13093,7 +13283,7 @@ class Test_TC_CC_9_2 : public TestCommand CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -13113,7 +13303,7 @@ class Test_TC_CC_9_2 : public TestCommand CHIP_ERROR TestColorLoopSetCommandStartColorLoop_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -13143,7 +13333,7 @@ class Test_TC_CC_9_2 : public TestCommand CHIP_ERROR TestReadColorLoopDirectionAttributeFromDut_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -13163,7 +13353,7 @@ class Test_TC_CC_9_2 : public TestCommand CHIP_ERROR TestColorLoopSetCommandStartColorLoop_12() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -13193,7 +13383,7 @@ class Test_TC_CC_9_2 : public TestCommand CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_13() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -13213,7 +13403,7 @@ class Test_TC_CC_9_2 : public TestCommand CHIP_ERROR TestTurnOffLightForColorControlTests_14() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -13238,7 +13428,11 @@ class Test_TC_CC_9_2 : public TestCommand class Test_TC_CC_9_3 : public TestCommand { public: - Test_TC_CC_9_3() : TestCommand("Test_TC_CC_9_3"), mTestIndex(0) {} + Test_TC_CC_9_3() : TestCommand("Test_TC_CC_9_3"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -13338,6 +13532,9 @@ class Test_TC_CC_9_3 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 15; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -13430,7 +13627,7 @@ class Test_TC_CC_9_3 : public TestCommand CHIP_ERROR TestPreconditionTurnOnLightForColorControlTests_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -13453,7 +13650,7 @@ class Test_TC_CC_9_3 : public TestCommand CHIP_ERROR TestPreconditionCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -13473,7 +13670,7 @@ class Test_TC_CC_9_3 : public TestCommand CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -13503,7 +13700,7 @@ class Test_TC_CC_9_3 : public TestCommand CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -13523,7 +13720,7 @@ class Test_TC_CC_9_3 : public TestCommand CHIP_ERROR TestReadColorLoopDirectionAttributeFromDut_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -13543,7 +13740,7 @@ class Test_TC_CC_9_3 : public TestCommand CHIP_ERROR TestReadColorLoopTimeAttributeFromDut_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -13563,7 +13760,7 @@ class Test_TC_CC_9_3 : public TestCommand CHIP_ERROR TestReadColorLoopStartEnhancedHueAttributeFromDut_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -13584,7 +13781,7 @@ class Test_TC_CC_9_3 : public TestCommand CHIP_ERROR TestColorLoopSetCommandSetAllAttributes_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -13614,7 +13811,7 @@ class Test_TC_CC_9_3 : public TestCommand CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -13634,7 +13831,7 @@ class Test_TC_CC_9_3 : public TestCommand CHIP_ERROR TestColorLoopSetCommandStartColorLoop_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -13664,7 +13861,7 @@ class Test_TC_CC_9_3 : public TestCommand CHIP_ERROR TestReadColorLoopTimeAttributeFromDut_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -13684,7 +13881,7 @@ class Test_TC_CC_9_3 : public TestCommand CHIP_ERROR TestColorLoopSetCommandStartColorLoop_12() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; RequestType request; @@ -13714,7 +13911,7 @@ class Test_TC_CC_9_3 : public TestCommand CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_13() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -13734,7 +13931,7 @@ class Test_TC_CC_9_3 : public TestCommand CHIP_ERROR TestTurnOffLightForColorControlTests_14() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -13759,7 +13956,11 @@ class Test_TC_CC_9_3 : public TestCommand class Test_TC_DM_1_1 : public TestCommand { public: - Test_TC_DM_1_1() : TestCommand("Test_TC_DM_1_1"), mTestIndex(0) {} + Test_TC_DM_1_1() : TestCommand("Test_TC_DM_1_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -13879,6 +14080,9 @@ class Test_TC_DM_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 20; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -14081,7 +14285,7 @@ class Test_TC_DM_1_1 : public TestCommand CHIP_ERROR TestQueryInteractionModelVersion_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14101,7 +14305,7 @@ class Test_TC_DM_1_1 : public TestCommand CHIP_ERROR TestQueryVendorName_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14122,7 +14326,7 @@ class Test_TC_DM_1_1 : public TestCommand CHIP_ERROR TestQueryVendorID_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14142,7 +14346,7 @@ class Test_TC_DM_1_1 : public TestCommand CHIP_ERROR TestQueryProductName_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14163,7 +14367,7 @@ class Test_TC_DM_1_1 : public TestCommand CHIP_ERROR TestQueryProductID_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14183,7 +14387,7 @@ class Test_TC_DM_1_1 : public TestCommand CHIP_ERROR TestQueryNodeLabel_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14204,7 +14408,7 @@ class Test_TC_DM_1_1 : public TestCommand CHIP_ERROR TestQueryUserLocation_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14226,7 +14430,7 @@ class Test_TC_DM_1_1 : public TestCommand CHIP_ERROR TestQueryHardwareVersion_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14246,7 +14450,7 @@ class Test_TC_DM_1_1 : public TestCommand CHIP_ERROR TestQueryHardwareVersionString_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14268,7 +14472,7 @@ class Test_TC_DM_1_1 : public TestCommand CHIP_ERROR TestQuerySoftwareVersion_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14288,7 +14492,7 @@ class Test_TC_DM_1_1 : public TestCommand CHIP_ERROR TestQuerySoftwareVersionString_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14311,7 +14515,7 @@ class Test_TC_DM_1_1 : public TestCommand CHIP_ERROR TestQueryManufacturingDate_12() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14337,7 +14541,7 @@ class Test_TC_DM_1_1 : public TestCommand CHIP_ERROR TestQueryPartNumber_13() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14361,7 +14565,7 @@ class Test_TC_DM_1_1 : public TestCommand CHIP_ERROR TestQueryProductURL_14() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14386,7 +14590,7 @@ class Test_TC_DM_1_1 : public TestCommand CHIP_ERROR TestQueryProductLabel_15() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14410,7 +14614,7 @@ class Test_TC_DM_1_1 : public TestCommand CHIP_ERROR TestQuerySerialNumber_16() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14434,7 +14638,7 @@ class Test_TC_DM_1_1 : public TestCommand CHIP_ERROR TestQueryLocalConfigDisabled_17() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14457,7 +14661,7 @@ class Test_TC_DM_1_1 : public TestCommand CHIP_ERROR TestQueryReachable_18() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14480,7 +14684,7 @@ class Test_TC_DM_1_1 : public TestCommand CHIP_ERROR TestQueryUniqueID_19() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14506,7 +14710,11 @@ class Test_TC_DM_1_1 : public TestCommand class Test_TC_DM_3_1 : public TestCommand { public: - Test_TC_DM_3_1() : TestCommand("Test_TC_DM_3_1"), mTestIndex(0) {} + Test_TC_DM_3_1() : TestCommand("Test_TC_DM_3_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -14550,6 +14758,9 @@ class Test_TC_DM_3_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -14564,7 +14775,11 @@ class Test_TC_DM_3_1 : public TestCommand class Test_TC_DM_2_2 : public TestCommand { public: - Test_TC_DM_2_2() : TestCommand("Test_TC_DM_2_2"), mTestIndex(0) {} + Test_TC_DM_2_2() : TestCommand("Test_TC_DM_2_2"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -14624,6 +14839,9 @@ class Test_TC_DM_2_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 5; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -14680,7 +14898,7 @@ class Test_TC_DM_2_2 : public TestCommand CHIP_ERROR TestQueryFabricsList_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::OperationalCredentialsClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14703,7 +14921,7 @@ class Test_TC_DM_2_2 : public TestCommand CHIP_ERROR TestQuerySupportedFabrics_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::OperationalCredentialsClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14724,7 +14942,7 @@ class Test_TC_DM_2_2 : public TestCommand CHIP_ERROR TestQueryCommissionedFabrics_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::OperationalCredentialsClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14745,7 +14963,7 @@ class Test_TC_DM_2_2 : public TestCommand CHIP_ERROR TestQueryUserTrustedRootCertificates_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::OperationalCredentialsClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14768,7 +14986,11 @@ class Test_TC_DM_2_2 : public TestCommand class Test_TC_EMR_1_1 : public TestCommand { public: - Test_TC_EMR_1_1() : TestCommand("Test_TC_EMR_1_1"), mTestIndex(0) {} + Test_TC_EMR_1_1() : TestCommand("Test_TC_EMR_1_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -14829,6 +15051,9 @@ class Test_TC_EMR_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 5; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -14878,7 +15103,7 @@ class Test_TC_EMR_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ElectricalMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14899,7 +15124,7 @@ class Test_TC_EMR_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeConstraintsClusterRevision_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ElectricalMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14920,7 +15145,7 @@ class Test_TC_EMR_1_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ElectricalMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14943,7 +15168,7 @@ class Test_TC_EMR_1_1 : public TestCommand CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ElectricalMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -14966,7 +15191,11 @@ class Test_TC_EMR_1_1 : public TestCommand class Test_TC_FLW_1_1 : public TestCommand { public: - Test_TC_FLW_1_1() : TestCommand("Test_TC_FLW_1_1"), mTestIndex(0) {} + Test_TC_FLW_1_1() : TestCommand("Test_TC_FLW_1_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -15019,6 +15248,9 @@ class Test_TC_FLW_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 3; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -15048,7 +15280,7 @@ class Test_TC_FLW_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeConstraintsClusterRevision_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -15068,7 +15300,7 @@ class Test_TC_FLW_1_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -15092,7 +15324,11 @@ class Test_TC_FLW_1_1 : public TestCommand class Test_TC_FLW_2_1 : public TestCommand { public: - Test_TC_FLW_2_1() : TestCommand("Test_TC_FLW_2_1"), mTestIndex(0) {} + Test_TC_FLW_2_1() : TestCommand("Test_TC_FLW_2_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -15168,6 +15404,9 @@ class Test_TC_FLW_2_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 9; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -15254,7 +15493,7 @@ class Test_TC_FLW_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -15274,7 +15513,7 @@ class Test_TC_FLW_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeMinMeasuredValue_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -15294,7 +15533,7 @@ class Test_TC_FLW_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeMaxMeasuredValue_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -15314,7 +15553,7 @@ class Test_TC_FLW_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValueToOptionalAttributeMinMeasuredValue_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -15336,7 +15575,7 @@ class Test_TC_FLW_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValueToOptionalAttributeMaxMeasuredValue_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -15358,7 +15597,7 @@ class Test_TC_FLW_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -15378,7 +15617,7 @@ class Test_TC_FLW_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeMinMeasuredValue_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -15398,7 +15637,7 @@ class Test_TC_FLW_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeMaxMeasuredValue_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -15420,7 +15659,11 @@ class Test_TC_FLW_2_1 : public TestCommand class Test_TC_FLW_2_2 : public TestCommand { public: - Test_TC_FLW_2_2() : TestCommand("Test_TC_FLW_2_2"), mTestIndex(0) {} + Test_TC_FLW_2_2() : TestCommand("Test_TC_FLW_2_2"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -15472,6 +15715,9 @@ class Test_TC_FLW_2_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 3; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -15504,7 +15750,7 @@ class Test_TC_FLW_2_2 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -15524,7 +15770,7 @@ class Test_TC_FLW_2_2 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -15546,7 +15792,11 @@ class Test_TC_FLW_2_2 : public TestCommand class Test_TC_ILL_1_1 : public TestCommand { public: - Test_TC_ILL_1_1() : TestCommand("Test_TC_ILL_1_1"), mTestIndex(0) {} + Test_TC_ILL_1_1() : TestCommand("Test_TC_ILL_1_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -15607,6 +15857,9 @@ class Test_TC_ILL_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 5; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -15656,7 +15909,7 @@ class Test_TC_ILL_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::IlluminanceMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -15677,7 +15930,7 @@ class Test_TC_ILL_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeConstraintsClusterRevision_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::IlluminanceMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -15698,7 +15951,7 @@ class Test_TC_ILL_1_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::IlluminanceMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -15721,7 +15974,7 @@ class Test_TC_ILL_1_1 : public TestCommand CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::IlluminanceMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -15744,7 +15997,11 @@ class Test_TC_ILL_1_1 : public TestCommand class Test_TC_LVL_1_1 : public TestCommand { public: - Test_TC_LVL_1_1() : TestCommand("Test_TC_LVL_1_1"), mTestIndex(0) {} + Test_TC_LVL_1_1() : TestCommand("Test_TC_LVL_1_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -15797,6 +16054,9 @@ class Test_TC_LVL_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 3; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -15826,7 +16086,7 @@ class Test_TC_LVL_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeConstraintsClusterRevision_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -15846,7 +16106,7 @@ class Test_TC_LVL_1_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -15870,7 +16130,11 @@ class Test_TC_LVL_1_1 : public TestCommand class Test_TC_LVL_2_1 : public TestCommand { public: - Test_TC_LVL_2_1() : TestCommand("Test_TC_LVL_2_1"), mTestIndex(0) {} + Test_TC_LVL_2_1() : TestCommand("Test_TC_LVL_2_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -15966,6 +16230,9 @@ class Test_TC_LVL_2_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 14; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -16028,7 +16295,7 @@ class Test_TC_LVL_2_1 : public TestCommand CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -16048,7 +16315,7 @@ class Test_TC_LVL_2_1 : public TestCommand CHIP_ERROR TestSendsAMoveToLevelCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type; RequestType request; @@ -16081,7 +16348,7 @@ class Test_TC_LVL_2_1 : public TestCommand CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -16101,7 +16368,7 @@ class Test_TC_LVL_2_1 : public TestCommand CHIP_ERROR TestSendsAMoveToLevelCommand_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type; RequestType request; @@ -16134,7 +16401,7 @@ class Test_TC_LVL_2_1 : public TestCommand CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -16154,7 +16421,7 @@ class Test_TC_LVL_2_1 : public TestCommand CHIP_ERROR TestReadsOnOffTransitionTimeAttributeFromDut_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -16174,7 +16441,7 @@ class Test_TC_LVL_2_1 : public TestCommand CHIP_ERROR TestSendsAMoveToLevelCommand_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type; RequestType request; @@ -16207,7 +16474,7 @@ class Test_TC_LVL_2_1 : public TestCommand CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -16227,7 +16494,7 @@ class Test_TC_LVL_2_1 : public TestCommand CHIP_ERROR TestResetLevelTo0_12() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type; RequestType request; @@ -16262,7 +16529,11 @@ class Test_TC_LVL_2_1 : public TestCommand class Test_TC_LVL_3_1 : public TestCommand { public: - Test_TC_LVL_3_1() : TestCommand("Test_TC_LVL_3_1"), mTestIndex(0) {} + Test_TC_LVL_3_1() : TestCommand("Test_TC_LVL_3_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -16362,6 +16633,9 @@ class Test_TC_LVL_3_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 15; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -16451,7 +16725,7 @@ class Test_TC_LVL_3_1 : public TestCommand CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -16471,7 +16745,7 @@ class Test_TC_LVL_3_1 : public TestCommand CHIP_ERROR TestReadsMaxLevelAttributeFromDut_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -16491,7 +16765,7 @@ class Test_TC_LVL_3_1 : public TestCommand CHIP_ERROR TestSendsAMoveUpCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::Move::Type; RequestType request; @@ -16524,7 +16798,7 @@ class Test_TC_LVL_3_1 : public TestCommand CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -16544,7 +16818,7 @@ class Test_TC_LVL_3_1 : public TestCommand CHIP_ERROR TestReadsMinLevelAttributeFromDut_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -16564,7 +16838,7 @@ class Test_TC_LVL_3_1 : public TestCommand CHIP_ERROR TestSendsAMoveDownCommand_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::Move::Type; RequestType request; @@ -16597,7 +16871,7 @@ class Test_TC_LVL_3_1 : public TestCommand CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -16617,7 +16891,7 @@ class Test_TC_LVL_3_1 : public TestCommand CHIP_ERROR TestWriteDefaultMoveRateAttributeFromDut_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -16635,7 +16909,7 @@ class Test_TC_LVL_3_1 : public TestCommand CHIP_ERROR TestReadsDefaultMoveRateAttributeFromDut_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -16656,7 +16930,7 @@ class Test_TC_LVL_3_1 : public TestCommand CHIP_ERROR TestSendsAMoveUpCommandAtDefaultMoveRate_12() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::Move::Type; RequestType request; @@ -16689,7 +16963,7 @@ class Test_TC_LVL_3_1 : public TestCommand CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_14() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -16711,7 +16985,11 @@ class Test_TC_LVL_3_1 : public TestCommand class Test_TC_LVL_4_1 : public TestCommand { public: - Test_TC_LVL_4_1() : TestCommand("Test_TC_LVL_4_1"), mTestIndex(0) {} + Test_TC_LVL_4_1() : TestCommand("Test_TC_LVL_4_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -16799,6 +17077,9 @@ class Test_TC_LVL_4_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 12; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_4(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(status); @@ -16841,7 +17122,7 @@ class Test_TC_LVL_4_1 : public TestCommand CHIP_ERROR TestSendingOnCommand_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -16864,7 +17145,7 @@ class Test_TC_LVL_4_1 : public TestCommand CHIP_ERROR TestPreconditionDutLevelIsSetTo0x80_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::Step::Type; RequestType request; @@ -16898,7 +17179,7 @@ class Test_TC_LVL_4_1 : public TestCommand CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -16918,7 +17199,7 @@ class Test_TC_LVL_4_1 : public TestCommand CHIP_ERROR TestSendsStepDownCommandToDut_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::Step::Type; RequestType request; @@ -16952,7 +17233,7 @@ class Test_TC_LVL_4_1 : public TestCommand CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -16972,7 +17253,7 @@ class Test_TC_LVL_4_1 : public TestCommand CHIP_ERROR TestSendsAStepUpCommand_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::Step::Type; RequestType request; @@ -17006,7 +17287,7 @@ class Test_TC_LVL_4_1 : public TestCommand CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -17026,7 +17307,7 @@ class Test_TC_LVL_4_1 : public TestCommand CHIP_ERROR TestSendingOffCommand_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -17051,7 +17332,11 @@ class Test_TC_LVL_4_1 : public TestCommand class Test_TC_LVL_5_1 : public TestCommand { public: - Test_TC_LVL_5_1() : TestCommand("Test_TC_LVL_5_1"), mTestIndex(0) {} + Test_TC_LVL_5_1() : TestCommand("Test_TC_LVL_5_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -17123,6 +17408,9 @@ class Test_TC_LVL_5_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 8; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -17135,7 +17423,7 @@ class Test_TC_LVL_5_1 : public TestCommand CHIP_ERROR TestSendingOnCommand_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -17158,7 +17446,7 @@ class Test_TC_LVL_5_1 : public TestCommand CHIP_ERROR TestPreconditionDutLevelIsSetTo0x80_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::Step::Type; RequestType request; @@ -17192,7 +17480,7 @@ class Test_TC_LVL_5_1 : public TestCommand CHIP_ERROR TestSendsAMoveUpCommandToDut_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::Move::Type; RequestType request; @@ -17225,7 +17513,7 @@ class Test_TC_LVL_5_1 : public TestCommand CHIP_ERROR TestSendsStopCommandToDut_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::Stop::Type; RequestType request; @@ -17250,7 +17538,7 @@ class Test_TC_LVL_5_1 : public TestCommand CHIP_ERROR TestSendingOffCommand_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -17275,7 +17563,11 @@ class Test_TC_LVL_5_1 : public TestCommand class Test_TC_MC_1_1 : public TestCommand { public: - Test_TC_MC_1_1() : TestCommand("Test_TC_MC_1_1"), mTestIndex(0) {} + Test_TC_MC_1_1() : TestCommand("Test_TC_MC_1_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -17328,6 +17620,9 @@ class Test_TC_MC_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 3; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -17357,7 +17652,7 @@ class Test_TC_MC_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeConstraintsClusterRevision_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::MediaInputClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -17377,7 +17672,7 @@ class Test_TC_MC_1_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::MediaInputClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -17401,7 +17696,11 @@ class Test_TC_MC_1_1 : public TestCommand class Test_TC_MC_2_1 : public TestCommand { public: - Test_TC_MC_2_1() : TestCommand("Test_TC_MC_2_1"), mTestIndex(0) {} + Test_TC_MC_2_1() : TestCommand("Test_TC_MC_2_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -17449,6 +17748,9 @@ class Test_TC_MC_2_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 2; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -17461,7 +17763,7 @@ class Test_TC_MC_2_1 : public TestCommand CHIP_ERROR TestPutTheDeviceIntoLowPowerMode_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::LowPower::Commands::Sleep::Type; RequestType request; @@ -17486,7 +17788,11 @@ class Test_TC_MC_2_1 : public TestCommand class Test_TC_MC_3_1 : public TestCommand { public: - Test_TC_MC_3_1() : TestCommand("Test_TC_MC_3_1"), mTestIndex(0) {} + Test_TC_MC_3_1() : TestCommand("Test_TC_MC_3_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -17530,6 +17836,9 @@ class Test_TC_MC_3_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -17544,7 +17853,11 @@ class Test_TC_MC_3_1 : public TestCommand class Test_TC_MC_3_2 : public TestCommand { public: - Test_TC_MC_3_2() : TestCommand("Test_TC_MC_3_2"), mTestIndex(0) {} + Test_TC_MC_3_2() : TestCommand("Test_TC_MC_3_2"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -17588,6 +17901,9 @@ class Test_TC_MC_3_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -17602,7 +17918,11 @@ class Test_TC_MC_3_2 : public TestCommand class Test_TC_MC_3_3 : public TestCommand { public: - Test_TC_MC_3_3() : TestCommand("Test_TC_MC_3_3"), mTestIndex(0) {} + Test_TC_MC_3_3() : TestCommand("Test_TC_MC_3_3"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -17646,6 +17966,9 @@ class Test_TC_MC_3_3 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -17660,7 +17983,11 @@ class Test_TC_MC_3_3 : public TestCommand class Test_TC_MC_3_4 : public TestCommand { public: - Test_TC_MC_3_4() : TestCommand("Test_TC_MC_3_4"), mTestIndex(0) {} + Test_TC_MC_3_4() : TestCommand("Test_TC_MC_3_4"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -17704,6 +18031,9 @@ class Test_TC_MC_3_4 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -17718,7 +18048,11 @@ class Test_TC_MC_3_4 : public TestCommand class Test_TC_MC_3_5 : public TestCommand { public: - Test_TC_MC_3_5() : TestCommand("Test_TC_MC_3_5"), mTestIndex(0) {} + Test_TC_MC_3_5() : TestCommand("Test_TC_MC_3_5"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -17762,6 +18096,9 @@ class Test_TC_MC_3_5 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -17776,7 +18113,11 @@ class Test_TC_MC_3_5 : public TestCommand class Test_TC_MC_3_6 : public TestCommand { public: - Test_TC_MC_3_6() : TestCommand("Test_TC_MC_3_6"), mTestIndex(0) {} + Test_TC_MC_3_6() : TestCommand("Test_TC_MC_3_6"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -17820,6 +18161,9 @@ class Test_TC_MC_3_6 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -17834,7 +18178,11 @@ class Test_TC_MC_3_6 : public TestCommand class Test_TC_MC_3_7 : public TestCommand { public: - Test_TC_MC_3_7() : TestCommand("Test_TC_MC_3_7"), mTestIndex(0) {} + Test_TC_MC_3_7() : TestCommand("Test_TC_MC_3_7"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -17878,6 +18226,9 @@ class Test_TC_MC_3_7 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -17892,7 +18243,11 @@ class Test_TC_MC_3_7 : public TestCommand class Test_TC_MC_3_8 : public TestCommand { public: - Test_TC_MC_3_8() : TestCommand("Test_TC_MC_3_8"), mTestIndex(0) {} + Test_TC_MC_3_8() : TestCommand("Test_TC_MC_3_8"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -17936,6 +18291,9 @@ class Test_TC_MC_3_8 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -17950,7 +18308,11 @@ class Test_TC_MC_3_8 : public TestCommand class Test_TC_MC_3_9 : public TestCommand { public: - Test_TC_MC_3_9() : TestCommand("Test_TC_MC_3_9"), mTestIndex(0) {} + Test_TC_MC_3_9() : TestCommand("Test_TC_MC_3_9"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -17994,6 +18356,9 @@ class Test_TC_MC_3_9 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -18008,7 +18373,11 @@ class Test_TC_MC_3_9 : public TestCommand class Test_TC_MC_3_10 : public TestCommand { public: - Test_TC_MC_3_10() : TestCommand("Test_TC_MC_3_10"), mTestIndex(0) {} + Test_TC_MC_3_10() : TestCommand("Test_TC_MC_3_10"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -18052,6 +18421,9 @@ class Test_TC_MC_3_10 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -18066,7 +18438,11 @@ class Test_TC_MC_3_10 : public TestCommand class Test_TC_MC_3_11 : public TestCommand { public: - Test_TC_MC_3_11() : TestCommand("Test_TC_MC_3_11"), mTestIndex(0) {} + Test_TC_MC_3_11() : TestCommand("Test_TC_MC_3_11"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -18110,6 +18486,9 @@ class Test_TC_MC_3_11 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -18124,7 +18503,11 @@ class Test_TC_MC_3_11 : public TestCommand class Test_TC_OCC_1_1 : public TestCommand { public: - Test_TC_OCC_1_1() : TestCommand("Test_TC_OCC_1_1"), mTestIndex(0) {} + Test_TC_OCC_1_1() : TestCommand("Test_TC_OCC_1_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -18181,6 +18564,9 @@ class Test_TC_OCC_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 4; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -18220,7 +18606,7 @@ class Test_TC_OCC_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -18240,7 +18626,7 @@ class Test_TC_OCC_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeConstraintsClusterRevision_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -18260,7 +18646,7 @@ class Test_TC_OCC_1_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -18284,7 +18670,11 @@ class Test_TC_OCC_1_1 : public TestCommand class Test_TC_OCC_2_1 : public TestCommand { public: - Test_TC_OCC_2_1() : TestCommand("Test_TC_OCC_2_1"), mTestIndex(0) {} + Test_TC_OCC_2_1() : TestCommand("Test_TC_OCC_2_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -18368,6 +18758,9 @@ class Test_TC_OCC_2_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 10; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -18461,7 +18854,7 @@ class Test_TC_OCC_2_1 : public TestCommand CHIP_ERROR TestReadsMandatoryAttributeConstrainsOccupancy_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -18482,7 +18875,7 @@ class Test_TC_OCC_2_1 : public TestCommand CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributeOccupancy_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -18504,7 +18897,7 @@ class Test_TC_OCC_2_1 : public TestCommand CHIP_ERROR TestReadsBackMandatoryAttributeOccupancy_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -18524,7 +18917,7 @@ class Test_TC_OCC_2_1 : public TestCommand CHIP_ERROR TestReadsMandatoryAttributeConstrainsOccupancySensorType_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -18546,7 +18939,7 @@ class Test_TC_OCC_2_1 : public TestCommand CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributeOccupancySensorType_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -18569,7 +18962,7 @@ class Test_TC_OCC_2_1 : public TestCommand CHIP_ERROR TestReadsBackMandatoryAttributeOccupancySensorType_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -18590,7 +18983,7 @@ class Test_TC_OCC_2_1 : public TestCommand CHIP_ERROR TestReadsMandatoryAttributeConstrainsOccupancySensorTypeBitmap_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -18613,7 +19006,7 @@ class Test_TC_OCC_2_1 : public TestCommand CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributeOccupancySensorTypeBitmap_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -18636,7 +19029,7 @@ class Test_TC_OCC_2_1 : public TestCommand CHIP_ERROR TestReadsBackMandatoryAttributeOccupancySensorTypeBitmap_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -18659,7 +19052,11 @@ class Test_TC_OCC_2_1 : public TestCommand class Test_TC_OCC_2_2 : public TestCommand { public: - Test_TC_OCC_2_2() : TestCommand("Test_TC_OCC_2_2"), mTestIndex(0) {} + Test_TC_OCC_2_2() : TestCommand("Test_TC_OCC_2_2"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -18711,6 +19108,9 @@ class Test_TC_OCC_2_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 3; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -18743,7 +19143,7 @@ class Test_TC_OCC_2_2 : public TestCommand CHIP_ERROR TestReadsOccupancyAttributeFromDut_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -18763,7 +19163,7 @@ class Test_TC_OCC_2_2 : public TestCommand CHIP_ERROR TestReadsOccupancyAttributeFromDut_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -18785,7 +19185,11 @@ class Test_TC_OCC_2_2 : public TestCommand class Test_TC_OO_1_1 : public TestCommand { public: - Test_TC_OO_1_1() : TestCommand("Test_TC_OO_1_1"), mTestIndex(0) {} + Test_TC_OO_1_1() : TestCommand("Test_TC_OO_1_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -18866,6 +19270,9 @@ class Test_TC_OO_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 10; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -18958,7 +19365,7 @@ class Test_TC_OO_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -18978,7 +19385,7 @@ class Test_TC_OO_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeConstraintsClusterRevision_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -18998,7 +19405,7 @@ class Test_TC_OO_1_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19020,7 +19427,7 @@ class Test_TC_OO_1_1 : public TestCommand CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19040,7 +19447,7 @@ class Test_TC_OO_1_1 : public TestCommand CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19060,7 +19467,7 @@ class Test_TC_OO_1_1 : public TestCommand CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19080,7 +19487,7 @@ class Test_TC_OO_1_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToOptionalGlobalAttributeFeatureMap_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19102,7 +19509,7 @@ class Test_TC_OO_1_1 : public TestCommand CHIP_ERROR TestReadsBackOptionalGlobalAttributeFeatureMap_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19124,7 +19531,11 @@ class Test_TC_OO_1_1 : public TestCommand class Test_TC_OO_2_1 : public TestCommand { public: - Test_TC_OO_2_1() : TestCommand("Test_TC_OO_2_1"), mTestIndex(0) {} + Test_TC_OO_2_1() : TestCommand("Test_TC_OO_2_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -19216,6 +19627,9 @@ class Test_TC_OO_2_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 13; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -19339,7 +19753,7 @@ class Test_TC_OO_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeOnOff_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19359,7 +19773,7 @@ class Test_TC_OO_2_1 : public TestCommand CHIP_ERROR TestReadsBackMandatoryAttributeOnOff_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19379,7 +19793,7 @@ class Test_TC_OO_2_1 : public TestCommand CHIP_ERROR TestReadLtAttributeGlobalSceneControl_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19399,7 +19813,7 @@ class Test_TC_OO_2_1 : public TestCommand CHIP_ERROR TestReadLtAttributeOnTime_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19419,7 +19833,7 @@ class Test_TC_OO_2_1 : public TestCommand CHIP_ERROR TestReadLtAttributeOffWaitTime_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19439,7 +19853,7 @@ class Test_TC_OO_2_1 : public TestCommand CHIP_ERROR TestReadLtAttributeStartUpOnOff_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19459,7 +19873,7 @@ class Test_TC_OO_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValueToLtAttributeOnTime_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19477,7 +19891,7 @@ class Test_TC_OO_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValueToLtAttributeOffWaitTime_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19495,7 +19909,7 @@ class Test_TC_OO_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValueToLtAttributeStartUpOnOff_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19513,7 +19927,7 @@ class Test_TC_OO_2_1 : public TestCommand CHIP_ERROR TestReadsBackLtAttributeOnTime_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19533,7 +19947,7 @@ class Test_TC_OO_2_1 : public TestCommand CHIP_ERROR TestReadsBackLtAttributeOffWaitTime_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19553,7 +19967,7 @@ class Test_TC_OO_2_1 : public TestCommand CHIP_ERROR TestReadsBackLtAttributeStartUpOnOff_12() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19575,7 +19989,11 @@ class Test_TC_OO_2_1 : public TestCommand class Test_TC_OO_2_2 : public TestCommand { public: - Test_TC_OO_2_2() : TestCommand("Test_TC_OO_2_2"), mTestIndex(0) {} + Test_TC_OO_2_2() : TestCommand("Test_TC_OO_2_2"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -19675,6 +20093,9 @@ class Test_TC_OO_2_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 15; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -19757,7 +20178,7 @@ class Test_TC_OO_2_2 : public TestCommand CHIP_ERROR TestSendOffCommand_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -19780,7 +20201,7 @@ class Test_TC_OO_2_2 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19800,7 +20221,7 @@ class Test_TC_OO_2_2 : public TestCommand CHIP_ERROR TestSendOnCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -19823,7 +20244,7 @@ class Test_TC_OO_2_2 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19843,7 +20264,7 @@ class Test_TC_OO_2_2 : public TestCommand CHIP_ERROR TestSendOffCommand_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -19866,7 +20287,7 @@ class Test_TC_OO_2_2 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19886,7 +20307,7 @@ class Test_TC_OO_2_2 : public TestCommand CHIP_ERROR TestSendToggleCommand_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Toggle::Type; RequestType request; @@ -19909,7 +20330,7 @@ class Test_TC_OO_2_2 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterToggleCommand_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19929,7 +20350,7 @@ class Test_TC_OO_2_2 : public TestCommand CHIP_ERROR TestSendToggleCommand_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Toggle::Type; RequestType request; @@ -19952,7 +20373,7 @@ class Test_TC_OO_2_2 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterToggleCommand_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -19972,7 +20393,7 @@ class Test_TC_OO_2_2 : public TestCommand CHIP_ERROR TestSendOnCommand_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -19995,7 +20416,7 @@ class Test_TC_OO_2_2 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_12() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -20015,7 +20436,7 @@ class Test_TC_OO_2_2 : public TestCommand CHIP_ERROR TestSendOffCommand_13() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -20038,7 +20459,7 @@ class Test_TC_OO_2_2 : public TestCommand CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_14() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -20060,7 +20481,11 @@ class Test_TC_OO_2_2 : public TestCommand class Test_TC_OO_2_3 : public TestCommand { public: - Test_TC_OO_2_3() : TestCommand("Test_TC_OO_2_3"), mTestIndex(0) {} + Test_TC_OO_2_3() : TestCommand("Test_TC_OO_2_3"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -20288,6 +20713,9 @@ class Test_TC_OO_2_3 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 47; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_3(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); @@ -20630,7 +21058,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestSendOnCommand_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -20659,7 +21087,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnOffAttributeFromDut_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -20679,7 +21107,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsGlobalSceneControlAttributeFromDut_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -20699,7 +21127,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestSendOnCommand_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -20728,7 +21156,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnOffAttributeFromDut_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -20748,7 +21176,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsGlobalSceneControlAttributeFromDut_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -20768,7 +21196,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestSendOnCommand_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -20797,7 +21225,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnOffAttributeFromDut_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -20817,7 +21245,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsGlobalSceneControlAttributeFromDut_12() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -20837,7 +21265,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnTimeAttributeFromDut_13() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -20857,7 +21285,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOffWaitTimeAttributeFromDut_14() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -20877,7 +21305,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestSendOnCommand_15() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -20900,7 +21328,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnOffAttributeFromDut_16() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -20920,7 +21348,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnTimeAttributeFromDut_17() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -20940,7 +21368,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOffWaitTimeAttributeFromDut_18() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -20960,7 +21388,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestSendOffCommand_19() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -20983,7 +21411,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnOffAttributeFromDut_20() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21003,7 +21431,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnTimeAttributeFromDut_21() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21023,7 +21451,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnOffAttributeFromDut_22() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21043,7 +21471,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnTimeAttributeFromDut_23() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21063,7 +21491,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOffWaitTimeAttributeFromDut_24() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21083,7 +21511,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestSendOnCommand_25() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -21106,7 +21534,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnTimeAttributeFromDut_26() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21126,7 +21554,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOffWaitTimeAttributeFromDut_27() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21146,7 +21574,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestSendOffCommand_28() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -21169,7 +21597,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnOffAttributeFromDut_29() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21189,7 +21617,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnTimeAttributeFromDut_30() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21209,7 +21637,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnOffAttributeFromDut_31() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21229,7 +21657,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnTimeAttributeFromDut_32() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21249,7 +21677,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestSendOnCommand_33() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -21272,7 +21700,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnOffAttributeFromDut_34() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21292,7 +21720,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnTimeAttributeFromDut_35() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21312,7 +21740,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOffWaitTimeAttributeFromDut_36() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21332,7 +21760,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestSendOffCommand_37() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -21355,7 +21783,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnOffAttributeFromDut_38() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21375,7 +21803,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnTimeAttributeFromDut_39() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21395,7 +21823,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnOffAttributeFromDut_40() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21415,7 +21843,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnTimeAttributeFromDut_41() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21435,7 +21863,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOffWaitTimeAttributeFromDut_42() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21455,7 +21883,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnOffAttributeFromDut_43() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21475,7 +21903,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOnTimeAttributeFromDut_44() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21495,7 +21923,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestReadsOffWaitTimeAttributeFromDut_45() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21515,7 +21943,7 @@ class Test_TC_OO_2_3 : public TestCommand CHIP_ERROR TestSendOffCommand_46() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -21540,7 +21968,11 @@ class Test_TC_OO_2_3 : public TestCommand class Test_TC_PRS_1_1 : public TestCommand { public: - Test_TC_PRS_1_1() : TestCommand("Test_TC_PRS_1_1"), mTestIndex(0) {} + Test_TC_PRS_1_1() : TestCommand("Test_TC_PRS_1_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -21593,6 +22025,9 @@ class Test_TC_PRS_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 3; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -21622,7 +22057,7 @@ class Test_TC_PRS_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeConstraintsClusterRevision_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21642,7 +22077,7 @@ class Test_TC_PRS_1_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21667,7 +22102,11 @@ class Test_TC_PRS_1_1 : public TestCommand class Test_TC_PRS_2_1 : public TestCommand { public: - Test_TC_PRS_2_1() : TestCommand("Test_TC_PRS_2_1"), mTestIndex(0) {} + Test_TC_PRS_2_1() : TestCommand("Test_TC_PRS_2_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -21747,6 +22186,9 @@ class Test_TC_PRS_2_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 10; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -21840,7 +22282,7 @@ class Test_TC_PRS_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeConstraintsMeasuredValue_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21860,7 +22302,7 @@ class Test_TC_PRS_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeMeasuredValue_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21882,7 +22324,7 @@ class Test_TC_PRS_2_1 : public TestCommand CHIP_ERROR TestReadsBackMandatoryAttributeMeasuredValue_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21902,7 +22344,7 @@ class Test_TC_PRS_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeConstraintsMinMeasuredValue_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21923,7 +22365,7 @@ class Test_TC_PRS_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeMinMeasuredValue_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21946,7 +22388,7 @@ class Test_TC_PRS_2_1 : public TestCommand CHIP_ERROR TestReadsBackMandatoryAttributeMinMeasuredValue_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21967,7 +22409,7 @@ class Test_TC_PRS_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeConstraintsMaxMeasuredValue_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -21988,7 +22430,7 @@ class Test_TC_PRS_2_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeMaxMeasuredValue_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -22011,7 +22453,7 @@ class Test_TC_PRS_2_1 : public TestCommand CHIP_ERROR TestReadsBackMandatoryAttributeMaxMeasuredValue_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -22034,7 +22476,11 @@ class Test_TC_PRS_2_1 : public TestCommand class Test_TC_PCC_1_1 : public TestCommand { public: - Test_TC_PCC_1_1() : TestCommand("Test_TC_PCC_1_1"), mTestIndex(0) {} + Test_TC_PCC_1_1() : TestCommand("Test_TC_PCC_1_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -22091,6 +22537,9 @@ class Test_TC_PCC_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 4; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -22130,7 +22579,7 @@ class Test_TC_PCC_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeConstraintsClusterRevision_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -22151,7 +22600,7 @@ class Test_TC_PCC_1_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -22174,7 +22623,7 @@ class Test_TC_PCC_1_1 : public TestCommand CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -22197,7 +22646,11 @@ class Test_TC_PCC_1_1 : public TestCommand class Test_TC_PCC_2_1 : public TestCommand { public: - Test_TC_PCC_2_1() : TestCommand("Test_TC_PCC_2_1"), mTestIndex(0) {} + Test_TC_PCC_2_1() : TestCommand("Test_TC_PCC_2_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -22273,6 +22726,9 @@ class Test_TC_PCC_2_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 9; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -22365,7 +22821,7 @@ class Test_TC_PCC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeMaxPressure_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -22386,7 +22842,7 @@ class Test_TC_PCC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeEffectiveOperationMode_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -22407,7 +22863,7 @@ class Test_TC_PCC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeEffectiveControlMode_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -22428,7 +22884,7 @@ class Test_TC_PCC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeCapacity_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -22449,7 +22905,7 @@ class Test_TC_PCC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeMaxPressure_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -22470,7 +22926,7 @@ class Test_TC_PCC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeEffectiveOperationMode_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -22491,7 +22947,7 @@ class Test_TC_PCC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeEffectiveControlMode_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -22512,7 +22968,7 @@ class Test_TC_PCC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeCapacity_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -22535,7 +22991,11 @@ class Test_TC_PCC_2_1 : public TestCommand class Test_TC_PCC_2_2 : public TestCommand { public: - Test_TC_PCC_2_2() : TestCommand("Test_TC_PCC_2_2"), mTestIndex(0) {} + Test_TC_PCC_2_2() : TestCommand("Test_TC_PCC_2_2"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -22591,6 +23051,9 @@ class Test_TC_PCC_2_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 4; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -22624,7 +23087,7 @@ class Test_TC_PCC_2_2 : public TestCommand CHIP_ERROR TestWrite1ToTheOperationModeAttributeToDutOperationMode_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -22643,7 +23106,7 @@ class Test_TC_PCC_2_2 : public TestCommand CHIP_ERROR TestWrite2ToTheOperationModeAttributeToDutOperationMode_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -22662,7 +23125,7 @@ class Test_TC_PCC_2_2 : public TestCommand CHIP_ERROR TestWrite3ToTheOperationModeAttributeToDutOperationMode_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -22683,7 +23146,11 @@ class Test_TC_PCC_2_2 : public TestCommand class Test_TC_PCC_2_3 : public TestCommand { public: - Test_TC_PCC_2_3() : TestCommand("Test_TC_PCC_2_3"), mTestIndex(0) {} + Test_TC_PCC_2_3() : TestCommand("Test_TC_PCC_2_3"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -22735,6 +23202,9 @@ class Test_TC_PCC_2_3 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 3; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -22764,7 +23234,7 @@ class Test_TC_PCC_2_3 : public TestCommand CHIP_ERROR TestWrite0ToTheOperationModeAttributeToDut_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -22783,7 +23253,7 @@ class Test_TC_PCC_2_3 : public TestCommand CHIP_ERROR TestReadsTheAttributeEffectiveOperationMode_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -22806,7 +23276,11 @@ class Test_TC_PCC_2_3 : public TestCommand class Test_TC_RH_1_1 : public TestCommand { public: - Test_TC_RH_1_1() : TestCommand("Test_TC_RH_1_1"), mTestIndex(0) {} + Test_TC_RH_1_1() : TestCommand("Test_TC_RH_1_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -22859,6 +23333,9 @@ class Test_TC_RH_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 3; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -22888,7 +23365,7 @@ class Test_TC_RH_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeConstraintsClusterRevision_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::RelativeHumidityMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -22909,7 +23386,7 @@ class Test_TC_RH_1_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::RelativeHumidityMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -22934,7 +23411,11 @@ class Test_TC_RH_1_1 : public TestCommand class Test_TC_RH_2_1 : public TestCommand { public: - Test_TC_RH_2_1() : TestCommand("Test_TC_RH_2_1"), mTestIndex(0) {} + Test_TC_RH_2_1() : TestCommand("Test_TC_RH_2_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -22986,6 +23467,9 @@ class Test_TC_RH_2_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 3; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -23018,7 +23502,7 @@ class Test_TC_RH_2_1 : public TestCommand CHIP_ERROR TestReadsConstraintsOfAttributeMeasuredValue_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::RelativeHumidityMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -23039,7 +23523,7 @@ class Test_TC_RH_2_1 : public TestCommand CHIP_ERROR TestReadsConstraintsOfAttributeMinMeasuredValue_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::RelativeHumidityMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -23063,7 +23547,11 @@ class Test_TC_RH_2_1 : public TestCommand class Test_TC_RH_2_2 : public TestCommand { public: - Test_TC_RH_2_2() : TestCommand("Test_TC_RH_2_2"), mTestIndex(0) {} + Test_TC_RH_2_2() : TestCommand("Test_TC_RH_2_2"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -23115,6 +23603,9 @@ class Test_TC_RH_2_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 3; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -23147,7 +23638,7 @@ class Test_TC_RH_2_2 : public TestCommand CHIP_ERROR TestReadsMeasuredValueAttributeFromDut_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::RelativeHumidityMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -23168,7 +23659,7 @@ class Test_TC_RH_2_2 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::RelativeHumidityMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -23191,7 +23682,11 @@ class Test_TC_RH_2_2 : public TestCommand class Test_TC_TM_1_1 : public TestCommand { public: - Test_TC_TM_1_1() : TestCommand("Test_TC_TM_1_1"), mTestIndex(0) {} + Test_TC_TM_1_1() : TestCommand("Test_TC_TM_1_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -23252,6 +23747,9 @@ class Test_TC_TM_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 5; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -23301,7 +23799,7 @@ class Test_TC_TM_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TemperatureMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -23322,7 +23820,7 @@ class Test_TC_TM_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeConstraintsClusterRevision_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TemperatureMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -23343,7 +23841,7 @@ class Test_TC_TM_1_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TemperatureMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -23366,7 +23864,7 @@ class Test_TC_TM_1_1 : public TestCommand CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TemperatureMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -23389,7 +23887,11 @@ class Test_TC_TM_1_1 : public TestCommand class Test_TC_TM_2_1 : public TestCommand { public: - Test_TC_TM_2_1() : TestCommand("Test_TC_TM_2_1"), mTestIndex(0) {} + Test_TC_TM_2_1() : TestCommand("Test_TC_TM_2_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -23437,6 +23939,9 @@ class Test_TC_TM_2_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 2; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -23459,7 +23964,7 @@ class Test_TC_TM_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TemperatureMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -23482,7 +23987,11 @@ class Test_TC_TM_2_1 : public TestCommand class Test_TC_TM_2_2 : public TestCommand { public: - Test_TC_TM_2_2() : TestCommand("Test_TC_TM_2_2"), mTestIndex(0) {} + Test_TC_TM_2_2() : TestCommand("Test_TC_TM_2_2"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -23534,6 +24043,9 @@ class Test_TC_TM_2_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 3; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -23566,7 +24078,7 @@ class Test_TC_TM_2_2 : public TestCommand CHIP_ERROR TestReadsMeasuredValueAttributeFromDut_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TemperatureMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -23587,7 +24099,7 @@ class Test_TC_TM_2_2 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TemperatureMeasurementClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -23610,7 +24122,11 @@ class Test_TC_TM_2_2 : public TestCommand class Test_TC_TSTAT_1_1 : public TestCommand { public: - Test_TC_TSTAT_1_1() : TestCommand("Test_TC_TSTAT_1_1"), mTestIndex(0) {} + Test_TC_TSTAT_1_1() : TestCommand("Test_TC_TSTAT_1_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -23667,6 +24183,9 @@ class Test_TC_TSTAT_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 4; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -23706,7 +24225,7 @@ class Test_TC_TSTAT_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeConstraintsClusterRevision_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -23726,7 +24245,7 @@ class Test_TC_TSTAT_1_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -23748,7 +24267,7 @@ class Test_TC_TSTAT_1_1 : public TestCommand CHIP_ERROR TestReadTheOptionalGlobalAttributeConstraintsFeatureMap_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -23770,7 +24289,11 @@ class Test_TC_TSTAT_1_1 : public TestCommand class Test_TC_TSTAT_2_1 : public TestCommand { public: - Test_TC_TSTAT_2_1() : TestCommand("Test_TC_TSTAT_2_1"), mTestIndex(0) {} + Test_TC_TSTAT_2_1() : TestCommand("Test_TC_TSTAT_2_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -24100,6 +24623,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 61; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -24664,7 +25190,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutLocalTemperature_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -24684,7 +25210,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsMandatoryAttributesFromDutAbsMinHeatSetpointLimit_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -24704,7 +25230,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutAbsMinHeatSetpointLimit_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -24726,7 +25252,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutAbsMinHeatSetpointLimit_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -24748,7 +25274,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadBackMandatoryAttributesFromDutAbsMinHeatSetpointLimit_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -24768,7 +25294,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsMandatoryAttributesFromDutAbsMaxHeatSetpointLimit_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -24788,7 +25314,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutAbsMaxHeatSetpointLimit_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -24810,7 +25336,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutAbsMaxHeatSetpointLimit_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -24832,7 +25358,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadBackMandatoryAttributesFromDutAbsMaxHeatSetpointLimit_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -24852,7 +25378,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsMandatoryAttributesFromDutAbsMinCoolSetpointLimit_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -24872,7 +25398,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutAbsMinCoolSetpointLimit_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -24894,7 +25420,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutAbsMinCoolSetpointLimit_12() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -24916,7 +25442,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadBackMandatoryAttributesFromDutAbsMinCoolSetpointLimit_13() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -24936,7 +25462,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsMandatoryAttributesFromDutAbsMaxCoolSetpointLimit_14() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -24956,7 +25482,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutAbsMaxCoolSetpointLimit_15() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -24978,7 +25504,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutAbsMaxCoolSetpointLimit_16() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25000,7 +25526,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadBackMandatoryAttributesFromDutAbsMaxCoolSetpointLimit_17() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25020,7 +25546,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsMandatoryAttributesFromDutOccupiedCoolingSetpoint_18() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25040,7 +25566,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutOccupiedCoolingSetpoint_19() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25062,7 +25588,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutOccupiedCoolingSetpoint_20() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25080,7 +25606,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadBackMandatoryAttributesFromDutOccupiedCoolingSetpoint_21() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25100,7 +25626,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsMandatoryAttributesFromDutOccupiedHeatingSetpoint_22() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25120,7 +25646,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutOccupiedHeatingSetpoint_23() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25142,7 +25668,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutOccupiedHeatingSetpoint_24() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25160,7 +25686,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadBackMandatoryAttributesFromDutOccupiedHeatingSetpoint_25() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25180,7 +25706,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsMandatoryAttributesFromDutMinHeatSetpointLimit_26() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25200,7 +25726,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutMinHeatSetpointLimit_27() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25222,7 +25748,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutMinHeatSetpointLimit_28() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25240,7 +25766,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadBackMandatoryAttributesFromDutMinHeatSetpointLimit_29() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25260,7 +25786,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsMandatoryAttributesFromDutMaxHeatSetpointLimit_30() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25280,7 +25806,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutMaxHeatSetpointLimit_31() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25302,7 +25828,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutMaxHeatSetpointLimit_32() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25320,7 +25846,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadBackMandatoryAttributesFromDutMaxHeatSetpointLimit_33() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25340,7 +25866,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsMandatoryAttributesFromDutMinCoolSetpointLimit_34() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25360,7 +25886,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutMinCoolSetpointLimit_35() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25382,7 +25908,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutMinCoolSetpointLimit_36() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25400,7 +25926,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadBackMandatoryAttributesFromDutMinCoolSetpointLimit_37() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25420,7 +25946,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsMandatoryAttributesFromDutMaxCoolSetpointLimit_38() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25440,7 +25966,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutMaxCoolSetpointLimit_39() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25462,7 +25988,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutMaxCoolSetpointLimit_40() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25480,7 +26006,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadBackMandatoryAttributesFromDutMaxCoolSetpointLimit_41() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25500,7 +26026,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsMandatoryAttributesFromDutControlSequenceOfOperation_42() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25521,7 +26047,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutControlSequenceOfOperation_43() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25543,7 +26069,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutControlSequenceOfOperation_44() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25562,7 +26088,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadBackMandatoryAttributesFromDutControlSequenceOfOperation_45() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25583,7 +26109,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsMandatoryAttributesFromDutSystemMode_46() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25603,7 +26129,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutSystemMode_47() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25624,7 +26150,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutSystemMode_48() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25642,7 +26168,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadBackMandatoryAttributesFromDutSystemMode_49() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25662,7 +26188,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsOptionalAttributesFromDutMinSetpointDeadBand_50() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25682,7 +26208,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutMinSetpointDeadBand_51() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25703,7 +26229,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestWritesTheRespectiveDefaultValueToOptionalAttributesToDutMinSetpointDeadBand_52() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25721,7 +26247,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadBackOptionalAttributesFromDutMinSetpointDeadBand_53() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25741,7 +26267,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutStartOfWeek_54() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25762,7 +26288,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestWritesTheRespectiveDefaultValueToOptionalAttributesToDutStartOfWeek_55() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25784,7 +26310,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadBackOptionalAttributesFromDutStartOfWeek_56() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25804,7 +26330,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutNumberOfWeeklyTransitions_57() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25825,7 +26351,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestWritesTheRespectiveDefaultValueToOptionalAttributesToDutNumberOfWeeklyTransitions_58() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25848,7 +26374,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutNumberOfDailyTransitions_59() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25868,7 +26394,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand CHIP_ERROR TestWritesTheRespectiveDefaultValueToOptionalAttributesToDutNumberOfDailyTransitions_60() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -25893,7 +26419,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand class Test_TC_TSTAT_2_2 : public TestCommand { public: - Test_TC_TSTAT_2_2() : TestCommand("Test_TC_TSTAT_2_2"), mTestIndex(0) {} + Test_TC_TSTAT_2_2() : TestCommand("Test_TC_TSTAT_2_2"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -26280,6 +26810,9 @@ class Test_TC_TSTAT_2_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 50; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -26677,7 +27210,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestReadsOccupiedCoolingSetpointAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -26697,7 +27230,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForOccupiedCoolingSetpointAttribute_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -26715,7 +27248,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfOccupiedCoolingSetpointAttribute_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -26735,7 +27268,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesTheLimitOfMinCoolSetpointLimitToOccupiedCoolingSetpointAttribute_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -26753,7 +27286,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesTheLimitOfMaxCoolSetpointLimitToOccupiedCoolingSetpointAttribute_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -26771,7 +27304,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestReadsOccupiedHeatingSetpointAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -26791,7 +27324,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForOccupiedHeatingSetpointAttribute_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -26809,7 +27342,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfOccupiedHeatingSetpointAttribute_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -26829,7 +27362,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesTheLimitOfMinHeatSetpointLimitToOccupiedHeatingSetpointAttribute_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -26847,7 +27380,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesTheLimitOfMaxHeatSetpointLimitToOccupiedHeatingSetpointAttribute_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -26865,7 +27398,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestReadsMinHeatSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -26885,7 +27418,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForMinHeatSetpointLimitAttribute_12() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -26903,7 +27436,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMinHeatSetpointLimitAttribute_13() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -26923,7 +27456,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesTheLimitOfAbsMinHeatSetpointLimitToMinHeatSetpointLimitAttribute_14() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -26941,7 +27474,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesTheLimitOfAbsMaxHeatSetpointLimitToMinHeatSetpointLimitAttribute_15() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -26959,7 +27492,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestReadsMaxHeatSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_16() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -26979,7 +27512,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForMaxHeatSetpointLimitAttribute_17() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -26997,7 +27530,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMaxHeatSetpointLimitAttribute_18() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27017,7 +27550,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesTheLimitOfAbsMinHeatSetpointLimitToMaxHeatSetpointLimitAttribute_19() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27035,7 +27568,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesTheLimitOfAbsMaxHeatSetpointLimitToMaxHeatSetpointLimitAttribute_20() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27053,7 +27586,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestReadsMinCoolSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_21() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27073,7 +27606,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForMinCoolSetpointLimitAttribute_22() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27091,7 +27624,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMinCoolSetpointLimitAttribute_23() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27111,7 +27644,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesTheLimitOfAbsMinCoolSetpointLimitToMinCoolSetpointLimitAttribute_24() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27129,7 +27662,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesTheLimitOfMaxCoolSetpointLimitToMinCoolSetpointLimitAttribute_25() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27147,7 +27680,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestReadsMaxCoolSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_26() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27167,7 +27700,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForMaxCoolSetpointLimitAttribute_27() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27185,7 +27718,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMaxCoolSetpointLimitAttribute_28() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27205,7 +27738,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesTheLimitOfAbsMinCoolSetpointLimitToMaxCoolSetpointLimitAttribute_29() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27223,7 +27756,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesTheLimitOfMaxCoolSetpointLimitToMaxCoolSetpointLimitAttribute_30() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27241,7 +27774,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesSetsBackTheLimitOfMinHeatSetpointLimitToMinHeatSetpointLimitAttribute_31() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27259,7 +27792,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesSetsBackTheLimitOfMaxHeatSetpointLimitToMinHeatSetpointLimitAttribute_32() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27277,7 +27810,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesSetsBackTheLimitOfMinHeatSetpointLimitToMaxHeatSetpointLimitAttribute_33() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27295,7 +27828,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesSetsBackTheLimitOfMaxHeatSetpointLimitToMaxHeatSetpointLimitAttribute_34() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27313,7 +27846,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesSetsBackTheLimitOfMinCoolSetpointLimitToMinCoolSetpointLimitAttribute_35() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27331,7 +27864,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesSetsBackTheLimitOfMaxCoolSetpointLimitToMinCoolSetpointLimitAttribute_36() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27349,7 +27882,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesSetsBackTheLimitOfMinCoolSetpointLimitToMaxCoolSetpointLimitAttribute_37() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27367,7 +27900,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWritesSetsBackTheLimitOfMaxCoolSetpointLimitToMaxCoolSetpointLimitAttribute_38() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27385,7 +27918,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestReadsControlSequenceOfOperationFromServerDutAndVerifiesThatTheValueIsValid_39() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27406,7 +27939,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestWriteAttributeCommandForControlSequenceOfOperationWithANewValidValue_40() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27425,7 +27958,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestReadItBackAgainToConfirmTheSuccessfulWrite_41() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27446,7 +27979,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestSetsOccupiedHeatingSetpointToDefaultValue_42() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27464,7 +27997,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestSetsOccupiedHeatingSetpointToDefaultValue_43() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27482,7 +28015,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestSetsOccupiedCoolingSetpointToDefaultValue_44() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27500,7 +28033,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestSetsOccupiedCoolingSetpointToDefaultValue_45() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27518,7 +28051,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestSetsOccupiedCoolingSetpointToDefaultValue_46() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27536,7 +28069,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestSetsOccupiedHeatingSetpointToDefaultValue_47() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27554,7 +28087,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestSetsOccupiedCoolingSetpointToDefaultValue_48() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27572,7 +28105,7 @@ class Test_TC_TSTAT_2_2 : public TestCommand CHIP_ERROR TestSetsOccupiedHeatingSetpointToDefaultValue_49() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27592,7 +28125,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand class Test_TC_TSUIC_1_1 : public TestCommand { public: - Test_TC_TSUIC_1_1() : TestCommand("Test_TC_TSUIC_1_1"), mTestIndex(0) {} + Test_TC_TSUIC_1_1() : TestCommand("Test_TC_TSUIC_1_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -27645,6 +28182,9 @@ class Test_TC_TSUIC_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 3; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -27674,7 +28214,7 @@ class Test_TC_TSUIC_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeConstraintsClusterRevision_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27695,7 +28235,7 @@ class Test_TC_TSUIC_1_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -27721,7 +28261,11 @@ class Test_TC_TSUIC_1_1 : public TestCommand class Test_TC_TSUIC_2_1 : public TestCommand { public: - Test_TC_TSUIC_2_1() : TestCommand("Test_TC_TSUIC_2_1"), mTestIndex(0) {} + Test_TC_TSUIC_2_1() : TestCommand("Test_TC_TSUIC_2_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -27825,6 +28369,9 @@ class Test_TC_TSUIC_2_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 16; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -27978,7 +28525,7 @@ class Test_TC_TSUIC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeTemperatureDisplayMode_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28000,7 +28547,7 @@ class Test_TC_TSUIC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeTemperatureDisplayMode_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28022,7 +28569,7 @@ class Test_TC_TSUIC_2_1 : public TestCommand CHIP_ERROR TestWriteToTheMandatoryAttributeTemperatureDisplayMode_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28042,7 +28589,7 @@ class Test_TC_TSUIC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeTemperatureDisplayMode_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28064,7 +28611,7 @@ class Test_TC_TSUIC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeTemperatureDisplayMode_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28086,7 +28633,7 @@ class Test_TC_TSUIC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeKeypadLockout_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28107,7 +28654,7 @@ class Test_TC_TSUIC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeKeypadLockout_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28128,7 +28675,7 @@ class Test_TC_TSUIC_2_1 : public TestCommand CHIP_ERROR TestWriteToTheMandatoryAttributeKeypadLockout_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28147,7 +28694,7 @@ class Test_TC_TSUIC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeKeypadLockout_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28168,7 +28715,7 @@ class Test_TC_TSUIC_2_1 : public TestCommand CHIP_ERROR TestReadTheMandatoryAttributeKeypadLockout_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28189,7 +28736,7 @@ class Test_TC_TSUIC_2_1 : public TestCommand CHIP_ERROR TestReadTheOptionalAttributeScheduleProgrammingVisibility_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28211,7 +28758,7 @@ class Test_TC_TSUIC_2_1 : public TestCommand CHIP_ERROR TestReadTheOptionalAttributeScheduleProgrammingVisibility_12() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28233,7 +28780,7 @@ class Test_TC_TSUIC_2_1 : public TestCommand CHIP_ERROR TestWriteToTheMandatoryAttributeScheduleProgrammingVisibility_13() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28253,7 +28800,7 @@ class Test_TC_TSUIC_2_1 : public TestCommand CHIP_ERROR TestReadTheOptionalAttributeScheduleProgrammingVisibility_14() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28275,7 +28822,7 @@ class Test_TC_TSUIC_2_1 : public TestCommand CHIP_ERROR TestReadTheOptionalAttributeScheduleProgrammingVisibility_15() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28299,7 +28846,11 @@ class Test_TC_TSUIC_2_1 : public TestCommand class Test_TC_TSUIC_2_2 : public TestCommand { public: - Test_TC_TSUIC_2_2() : TestCommand("Test_TC_TSUIC_2_2"), mTestIndex(0) {} + Test_TC_TSUIC_2_2() : TestCommand("Test_TC_TSUIC_2_2"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -28391,6 +28942,9 @@ class Test_TC_TSUIC_2_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 11; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -28473,7 +29027,7 @@ class Test_TC_TSUIC_2_2 : public TestCommand CHIP_ERROR TestWritesAValueOf0ToTemperatureDisplayModeAttributeOfDut_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28493,7 +29047,7 @@ class Test_TC_TSUIC_2_2 : public TestCommand CHIP_ERROR TestWritesAValueOf1ToTemperatureDisplayModeAttributeOfDut_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28513,7 +29067,7 @@ class Test_TC_TSUIC_2_2 : public TestCommand CHIP_ERROR TestWritesAValueOf0ToKeypadLockoutAttributeOfDut_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28532,7 +29086,7 @@ class Test_TC_TSUIC_2_2 : public TestCommand CHIP_ERROR TestWritesAValueOf1ToKeypadLockoutAttributeOfDut_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28551,7 +29105,7 @@ class Test_TC_TSUIC_2_2 : public TestCommand CHIP_ERROR TestWritesAValueOf2ToKeypadLockoutAttributeOfDut_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28570,7 +29124,7 @@ class Test_TC_TSUIC_2_2 : public TestCommand CHIP_ERROR TestWritesAValueOf3ToKeypadLockoutAttributeOfDut_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28589,7 +29143,7 @@ class Test_TC_TSUIC_2_2 : public TestCommand CHIP_ERROR TestWritesAValueOf4ToKeypadLockoutAttributeOfDut_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28608,7 +29162,7 @@ class Test_TC_TSUIC_2_2 : public TestCommand CHIP_ERROR TestWritesAValueOf5ToKeypadLockoutAttributeOfDut_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28627,7 +29181,7 @@ class Test_TC_TSUIC_2_2 : public TestCommand CHIP_ERROR TestWritesAValueOf0ToScheduleProgrammingVisibilityAttributeOfDut_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28647,7 +29201,7 @@ class Test_TC_TSUIC_2_2 : public TestCommand CHIP_ERROR TestWritesAValueOf1ToScheduleProgrammingVisibilityAttributeOfDut_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28669,7 +29223,11 @@ class Test_TC_TSUIC_2_2 : public TestCommand class Test_TC_DIAGTH_1_1 : public TestCommand { public: - Test_TC_DIAGTH_1_1() : TestCommand("Test_TC_DIAGTH_1_1"), mTestIndex(0) {} + Test_TC_DIAGTH_1_1() : TestCommand("Test_TC_DIAGTH_1_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -28730,6 +29288,9 @@ class Test_TC_DIAGTH_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 5; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -28779,7 +29340,7 @@ class Test_TC_DIAGTH_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::ThreadNetworkDiagnosticsClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28800,7 +29361,7 @@ class Test_TC_DIAGTH_1_1 : public TestCommand CHIP_ERROR TestReadTheGlobalAttributeConstraintsClusterRevision_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::ThreadNetworkDiagnosticsClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28821,7 +29382,7 @@ class Test_TC_DIAGTH_1_1 : public TestCommand CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::ThreadNetworkDiagnosticsClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28844,7 +29405,7 @@ class Test_TC_DIAGTH_1_1 : public TestCommand CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::ThreadNetworkDiagnosticsClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -28867,7 +29428,11 @@ class Test_TC_DIAGTH_1_1 : public TestCommand class Test_TC_WNCV_1_1 : public TestCommand { public: - Test_TC_WNCV_1_1() : TestCommand("Test_TC_WNCV_1_1"), mTestIndex(0) {} + Test_TC_WNCV_1_1() : TestCommand("Test_TC_WNCV_1_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -28937,6 +29502,9 @@ class Test_TC_WNCV_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 7; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -29003,7 +29571,7 @@ class Test_TC_WNCV_1_1 : public TestCommand CHIP_ERROR Test2ReadTheGlobalAttributeClusterRevision_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -29025,7 +29593,7 @@ class Test_TC_WNCV_1_1 : public TestCommand CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryGlobalAttributeClusterRevision_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -29047,7 +29615,7 @@ class Test_TC_WNCV_1_1 : public TestCommand CHIP_ERROR Test3bReadsBackGlobalAttributeClusterRevision_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -29068,7 +29636,7 @@ class Test_TC_WNCV_1_1 : public TestCommand CHIP_ERROR Test2ReadTheGlobalAttributeFeatureMap_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -29089,7 +29657,7 @@ class Test_TC_WNCV_1_1 : public TestCommand CHIP_ERROR Test3aWriteTheDefaultValueToOptionalGlobalAttributeFeatureMap_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -29111,7 +29679,7 @@ class Test_TC_WNCV_1_1 : public TestCommand CHIP_ERROR Test3bReadsBackGlobalAttributeFeatureMap_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -29134,7 +29702,11 @@ class Test_TC_WNCV_1_1 : public TestCommand class Test_TC_WNCV_2_1 : public TestCommand { public: - Test_TC_WNCV_2_1() : TestCommand("Test_TC_WNCV_2_1"), mTestIndex(0) {} + Test_TC_WNCV_2_1() : TestCommand("Test_TC_WNCV_2_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -29427,6 +29999,9 @@ class Test_TC_WNCV_2_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 55; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -29925,7 +30500,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultType_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -29946,7 +30521,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeType_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -29968,7 +30543,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeType_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -29989,7 +30564,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultConfigStatus_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30010,7 +30585,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeConfigStatus_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30032,7 +30607,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeConfigStatus_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30053,7 +30628,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultOperationalStatus_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30074,7 +30649,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeOperationalStatus_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30096,7 +30671,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeOperationalStatus_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30117,7 +30692,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultEndProductType_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30138,7 +30713,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeEndProductType_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30160,7 +30735,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeEndProductType_12() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30181,7 +30756,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test2ReadTheRwMandatoryAttributeDefaultMode_13() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30202,7 +30777,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3aWriteAValueIntoTheRwMandatoryAttributeMode_14() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30220,7 +30795,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3bReadsBackTheRwMandatoryAttributeMode_15() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30240,7 +30815,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultTargetPositionLiftPercent100ths_16() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30263,7 +30838,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionLiftPercent100ths_17() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30286,7 +30861,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeTargetPositionLiftPercent100ths_18() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30308,7 +30883,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultTargetPositionTiltPercent100ths_19() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30331,7 +30906,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionTiltPercent100ths_20() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30354,7 +30929,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeTargetPositionTiltPercent100ths_21() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30376,7 +30951,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercent100ths_22() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30399,7 +30974,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercent100ths_23() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30422,7 +30997,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercent100ths_24() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30444,7 +31019,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercent100ths_25() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30467,7 +31042,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercent100ths_26() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30490,7 +31065,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercent100ths_27() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30512,7 +31087,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitLift_28() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30534,7 +31109,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitLift_29() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30557,7 +31132,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitLift_30() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30579,7 +31154,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitLift_31() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30601,7 +31176,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitLift_32() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30624,7 +31199,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitLift_33() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30646,7 +31221,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitTilt_34() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30668,7 +31243,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitTilt_35() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30691,7 +31266,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitTilt_36() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30713,7 +31288,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitTilt_37() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30735,7 +31310,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitTilt_38() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30758,7 +31333,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitTilt_39() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30780,7 +31355,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test4ReadTheRoMandatoryAttributeDefaultSafetyStatus_40() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30801,7 +31376,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test5aWriteAValueIntoTheRoMandatoryAttributeSafetyStatus_41() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30823,7 +31398,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test5bReadsBackTheRoMandatoryAttributeSafetyStatus_42() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30844,7 +31419,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLift_43() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30865,7 +31440,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLift_44() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30887,7 +31462,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionLift_45() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30908,7 +31483,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTilt_46() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30929,7 +31504,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTilt_47() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30951,7 +31526,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionTilt_48() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30972,7 +31547,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercentage_49() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -30994,7 +31569,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercentage_50() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -31017,7 +31592,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercentage_51() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -31039,7 +31614,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercentage_52() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -31061,7 +31636,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercentage_53() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -31084,7 +31659,7 @@ class Test_TC_WNCV_2_1 : public TestCommand CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercentage_54() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -31108,7 +31683,11 @@ class Test_TC_WNCV_2_1 : public TestCommand class Test_TC_WNCV_2_2 : public TestCommand { public: - Test_TC_WNCV_2_2() : TestCommand("Test_TC_WNCV_2_2"), mTestIndex(0) {} + Test_TC_WNCV_2_2() : TestCommand("Test_TC_WNCV_2_2"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -31152,6 +31731,9 @@ class Test_TC_WNCV_2_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -31166,7 +31748,11 @@ class Test_TC_WNCV_2_2 : public TestCommand class Test_TC_WNCV_2_4 : public TestCommand { public: - Test_TC_WNCV_2_4() : TestCommand("Test_TC_WNCV_2_4"), mTestIndex(0) {} + Test_TC_WNCV_2_4() : TestCommand("Test_TC_WNCV_2_4"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -31218,6 +31804,9 @@ class Test_TC_WNCV_2_4 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 3; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -31250,7 +31839,7 @@ class Test_TC_WNCV_2_4 : public TestCommand CHIP_ERROR TestReadsTypeAttributeFromDut_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -31270,7 +31859,7 @@ class Test_TC_WNCV_2_4 : public TestCommand CHIP_ERROR TestReadsTypeAttributeConstraints_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -31293,7 +31882,11 @@ class Test_TC_WNCV_2_4 : public TestCommand class Test_TC_WNCV_2_5 : public TestCommand { public: - Test_TC_WNCV_2_5() : TestCommand("Test_TC_WNCV_2_5"), mTestIndex(0) {} + Test_TC_WNCV_2_5() : TestCommand("Test_TC_WNCV_2_5"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -31345,6 +31938,9 @@ class Test_TC_WNCV_2_5 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 3; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -31377,7 +31973,7 @@ class Test_TC_WNCV_2_5 : public TestCommand CHIP_ERROR TestReadsEndProductTypeAttributeFromDut_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -31397,7 +31993,7 @@ class Test_TC_WNCV_2_5 : public TestCommand CHIP_ERROR TestReadsEndProductTypeAttributeConstraintsFromDut_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -31420,7 +32016,11 @@ class Test_TC_WNCV_2_5 : public TestCommand class Test_TC_WNCV_3_1 : public TestCommand { public: - Test_TC_WNCV_3_1() : TestCommand("Test_TC_WNCV_3_1"), mTestIndex(0) {} + Test_TC_WNCV_3_1() : TestCommand("Test_TC_WNCV_3_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -31476,6 +32076,9 @@ class Test_TC_WNCV_3_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 4; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_3(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); @@ -31498,7 +32101,7 @@ class Test_TC_WNCV_3_1 : public TestCommand CHIP_ERROR Test1aThAdjustsTheTheDutToANonOpenPosition_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::WindowCovering::Commands::DownOrClose::Type; RequestType request; @@ -31521,7 +32124,7 @@ class Test_TC_WNCV_3_1 : public TestCommand CHIP_ERROR Test2aThSendsUpOrOpenCommandToDut_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Type; RequestType request; @@ -31544,7 +32147,7 @@ class Test_TC_WNCV_3_1 : public TestCommand CHIP_ERROR Test3aThReadsOperationalStatusAttributeFromDut_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -31566,7 +32169,11 @@ class Test_TC_WNCV_3_1 : public TestCommand class Test_TC_WNCV_3_2 : public TestCommand { public: - Test_TC_WNCV_3_2() : TestCommand("Test_TC_WNCV_3_2"), mTestIndex(0) {} + Test_TC_WNCV_3_2() : TestCommand("Test_TC_WNCV_3_2"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -31622,6 +32229,9 @@ class Test_TC_WNCV_3_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 4; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_3(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); @@ -31644,7 +32254,7 @@ class Test_TC_WNCV_3_2 : public TestCommand CHIP_ERROR Test1aThAdjustsTheTheDutToANonClosedPosition_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Type; RequestType request; @@ -31667,7 +32277,7 @@ class Test_TC_WNCV_3_2 : public TestCommand CHIP_ERROR Test2aThSendsDownOrCloseCommandToDut_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::WindowCovering::Commands::DownOrClose::Type; RequestType request; @@ -31690,7 +32300,7 @@ class Test_TC_WNCV_3_2 : public TestCommand CHIP_ERROR Test3aThReadsOperationalStatusAttributeFromDut_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -31712,7 +32322,11 @@ class Test_TC_WNCV_3_2 : public TestCommand class Test_TC_WNCV_3_3 : public TestCommand { public: - Test_TC_WNCV_3_3() : TestCommand("Test_TC_WNCV_3_3"), mTestIndex(0) {} + Test_TC_WNCV_3_3() : TestCommand("Test_TC_WNCV_3_3"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -31768,6 +32382,9 @@ class Test_TC_WNCV_3_3 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 4; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_3(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); @@ -31790,7 +32407,7 @@ class Test_TC_WNCV_3_3 : public TestCommand CHIP_ERROR Test1aThAdjustsTheTheDutToANonOpenPosition_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Type; RequestType request; @@ -31813,7 +32430,7 @@ class Test_TC_WNCV_3_3 : public TestCommand CHIP_ERROR Test2aThSendsStopMotionCommandToDut_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::WindowCovering::Commands::StopMotion::Type; RequestType request; @@ -31836,7 +32453,7 @@ class Test_TC_WNCV_3_3 : public TestCommand CHIP_ERROR Test2bThReadsOperationalStatusAttributeFromDut_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -31858,7 +32475,11 @@ class Test_TC_WNCV_3_3 : public TestCommand class TV_TargetNavigatorCluster : public TestCommand { public: - TV_TargetNavigatorCluster() : TestCommand("TV_TargetNavigatorCluster"), mTestIndex(0) {} + TV_TargetNavigatorCluster() : TestCommand("TV_TargetNavigatorCluster"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -31914,6 +32535,9 @@ class TV_TargetNavigatorCluster : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 4; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -31949,7 +32573,7 @@ class TV_TargetNavigatorCluster : public TestCommand CHIP_ERROR TestReadAttributeTargetNavigatorList_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TargetNavigatorClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -31978,7 +32602,7 @@ class TV_TargetNavigatorCluster : public TestCommand CHIP_ERROR TestReadAttributeCurrentNavigatorTarget_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TargetNavigatorClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -31999,7 +32623,7 @@ class TV_TargetNavigatorCluster : public TestCommand CHIP_ERROR TestNavigateTargetCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TargetNavigator::Commands::NavigateTarget::Type; RequestType request; @@ -32033,7 +32657,11 @@ class TV_TargetNavigatorCluster : public TestCommand class TV_AudioOutputCluster : public TestCommand { public: - TV_AudioOutputCluster() : TestCommand("TV_AudioOutputCluster"), mTestIndex(0) {} + TV_AudioOutputCluster() : TestCommand("TV_AudioOutputCluster"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -32093,6 +32721,9 @@ class TV_AudioOutputCluster : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 5; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -32128,7 +32759,7 @@ class TV_AudioOutputCluster : public TestCommand CHIP_ERROR TestReadAttributeAudioOutputList_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 2; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 2; chip::Controller::AudioOutputClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -32163,7 +32794,7 @@ class TV_AudioOutputCluster : public TestCommand CHIP_ERROR TestReadAttributeCurrentAudioOutput_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 2; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 2; chip::Controller::AudioOutputClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -32183,7 +32814,7 @@ class TV_AudioOutputCluster : public TestCommand CHIP_ERROR TestSelectOutputCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 2; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 2; using RequestType = chip::app::Clusters::AudioOutput::Commands::SelectOutput::Type; RequestType request; @@ -32207,7 +32838,7 @@ class TV_AudioOutputCluster : public TestCommand CHIP_ERROR TestRenameOutputCommand_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 2; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 2; using RequestType = chip::app::Clusters::AudioOutput::Commands::RenameOutput::Type; RequestType request; @@ -32234,7 +32865,11 @@ class TV_AudioOutputCluster : public TestCommand class TV_ApplicationLauncherCluster : public TestCommand { public: - TV_ApplicationLauncherCluster() : TestCommand("TV_ApplicationLauncherCluster"), mTestIndex(0) {} + TV_ApplicationLauncherCluster() : TestCommand("TV_ApplicationLauncherCluster"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -32294,6 +32929,9 @@ class TV_ApplicationLauncherCluster : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 5; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -32316,7 +32954,7 @@ class TV_ApplicationLauncherCluster : public TestCommand CHIP_ERROR TestReadAttributeApplicationLauncherList_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ApplicationLauncherClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -32342,7 +32980,7 @@ class TV_ApplicationLauncherCluster : public TestCommand CHIP_ERROR TestLaunchAppCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ApplicationLauncher::Commands::LaunchApp::Type; RequestType request; @@ -32376,7 +33014,7 @@ class TV_ApplicationLauncherCluster : public TestCommand CHIP_ERROR TestStopAppCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ApplicationLauncher::Commands::StopApp::Type; RequestType request; @@ -32409,7 +33047,7 @@ class TV_ApplicationLauncherCluster : public TestCommand CHIP_ERROR TestHideAppCommand_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ApplicationLauncher::Commands::HideApp::Type; RequestType request; @@ -32444,7 +33082,11 @@ class TV_ApplicationLauncherCluster : public TestCommand class TV_KeypadInputCluster : public TestCommand { public: - TV_KeypadInputCluster() : TestCommand("TV_KeypadInputCluster"), mTestIndex(0) {} + TV_KeypadInputCluster() : TestCommand("TV_KeypadInputCluster"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -32492,6 +33134,9 @@ class TV_KeypadInputCluster : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 2; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -32504,7 +33149,7 @@ class TV_KeypadInputCluster : public TestCommand CHIP_ERROR TestSendKeyCommand_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::KeypadInput::Commands::SendKey::Type; RequestType request; @@ -32535,7 +33180,11 @@ class TV_KeypadInputCluster : public TestCommand class TV_AccountLoginCluster : public TestCommand { public: - TV_AccountLoginCluster() : TestCommand("TV_AccountLoginCluster"), mTestIndex(0) {} + TV_AccountLoginCluster() : TestCommand("TV_AccountLoginCluster"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -32591,6 +33240,9 @@ class TV_AccountLoginCluster : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 4; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -32603,7 +33255,7 @@ class TV_AccountLoginCluster : public TestCommand CHIP_ERROR TestGetSetupPinCommand_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; using RequestType = chip::app::Clusters::AccountLogin::Commands::GetSetupPIN::Type; RequestType request; @@ -32627,7 +33279,7 @@ class TV_AccountLoginCluster : public TestCommand CHIP_ERROR TestLoginCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; using RequestType = chip::app::Clusters::AccountLogin::Commands::Login::Type; RequestType request; @@ -32652,7 +33304,7 @@ class TV_AccountLoginCluster : public TestCommand CHIP_ERROR TestLogoutCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; using RequestType = chip::app::Clusters::AccountLogin::Commands::Logout::Type; RequestType request; @@ -32677,7 +33329,11 @@ class TV_AccountLoginCluster : public TestCommand class TV_WakeOnLanCluster : public TestCommand { public: - TV_WakeOnLanCluster() : TestCommand("TV_WakeOnLanCluster"), mTestIndex(0) {} + TV_WakeOnLanCluster() : TestCommand("TV_WakeOnLanCluster"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -32725,6 +33381,9 @@ class TV_WakeOnLanCluster : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 2; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -32747,7 +33406,7 @@ class TV_WakeOnLanCluster : public TestCommand CHIP_ERROR TestReadMacAddress_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WakeOnLanClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -32769,7 +33428,11 @@ class TV_WakeOnLanCluster : public TestCommand class TV_ApplicationBasicCluster : public TestCommand { public: - TV_ApplicationBasicCluster() : TestCommand("TV_ApplicationBasicCluster"), mTestIndex(0) {} + TV_ApplicationBasicCluster() : TestCommand("TV_ApplicationBasicCluster"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -32841,6 +33504,9 @@ class TV_ApplicationBasicCluster : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 8; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); @@ -32913,7 +33579,7 @@ class TV_ApplicationBasicCluster : public TestCommand CHIP_ERROR TestChangeStatusCommand_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; using RequestType = chip::app::Clusters::ApplicationBasic::Commands::ChangeStatus::Type; RequestType request; @@ -32937,7 +33603,7 @@ class TV_ApplicationBasicCluster : public TestCommand CHIP_ERROR TestReadAttributeVendorName_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; chip::Controller::ApplicationBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -32957,7 +33623,7 @@ class TV_ApplicationBasicCluster : public TestCommand CHIP_ERROR TestReadAttributeVendorId_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; chip::Controller::ApplicationBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -32977,7 +33643,7 @@ class TV_ApplicationBasicCluster : public TestCommand CHIP_ERROR TestReadAttributeApplicationName_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; chip::Controller::ApplicationBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -32997,7 +33663,7 @@ class TV_ApplicationBasicCluster : public TestCommand CHIP_ERROR TestReadAttributeProductId_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; chip::Controller::ApplicationBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -33017,7 +33683,7 @@ class TV_ApplicationBasicCluster : public TestCommand CHIP_ERROR TestReadAttributeApplicationStatus_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; chip::Controller::ApplicationBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -33037,7 +33703,7 @@ class TV_ApplicationBasicCluster : public TestCommand CHIP_ERROR TestReadAttributeApplicationVersion_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; chip::Controller::ApplicationBasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -33059,7 +33725,11 @@ class TV_ApplicationBasicCluster : public TestCommand class TV_MediaPlaybackCluster : public TestCommand { public: - TV_MediaPlaybackCluster() : TestCommand("TV_MediaPlaybackCluster"), mTestIndex(0) {} + TV_MediaPlaybackCluster() : TestCommand("TV_MediaPlaybackCluster"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -33171,6 +33841,9 @@ class TV_MediaPlaybackCluster : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 18; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -33243,7 +33916,7 @@ class TV_MediaPlaybackCluster : public TestCommand CHIP_ERROR TestReadAttributePlaybackState_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; chip::Controller::MediaPlaybackClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -33263,7 +33936,7 @@ class TV_MediaPlaybackCluster : public TestCommand CHIP_ERROR TestReadAttributeStartTime_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; chip::Controller::MediaPlaybackClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -33283,7 +33956,7 @@ class TV_MediaPlaybackCluster : public TestCommand CHIP_ERROR TestReadAttributeDuration_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; chip::Controller::MediaPlaybackClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -33303,7 +33976,7 @@ class TV_MediaPlaybackCluster : public TestCommand CHIP_ERROR TestReadAttributePlaybackSpeed_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; chip::Controller::MediaPlaybackClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -33323,7 +33996,7 @@ class TV_MediaPlaybackCluster : public TestCommand CHIP_ERROR TestReadAttributeSeekRangeEnd_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; chip::Controller::MediaPlaybackClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -33343,7 +34016,7 @@ class TV_MediaPlaybackCluster : public TestCommand CHIP_ERROR TestReadAttributeSeekRangeStart_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; chip::Controller::MediaPlaybackClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -33363,7 +34036,7 @@ class TV_MediaPlaybackCluster : public TestCommand CHIP_ERROR TestMediaPlaybackPlayCommand_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaPlay::Type; RequestType request; @@ -33391,7 +34064,7 @@ class TV_MediaPlaybackCluster : public TestCommand CHIP_ERROR TestMediaPlaybackPauseCommand_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaPause::Type; RequestType request; @@ -33419,7 +34092,7 @@ class TV_MediaPlaybackCluster : public TestCommand CHIP_ERROR TestMediaPlaybackStopCommand_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaStop::Type; RequestType request; @@ -33447,7 +34120,7 @@ class TV_MediaPlaybackCluster : public TestCommand CHIP_ERROR TestMediaPlaybackStartOverCommand_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaStartOver::Type; RequestType request; @@ -33475,7 +34148,7 @@ class TV_MediaPlaybackCluster : public TestCommand CHIP_ERROR TestMediaPlaybackPreviousCommand_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaPrevious::Type; RequestType request; @@ -33503,7 +34176,7 @@ class TV_MediaPlaybackCluster : public TestCommand CHIP_ERROR TestMediaPlaybackNextCommand_12() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaNext::Type; RequestType request; @@ -33531,7 +34204,7 @@ class TV_MediaPlaybackCluster : public TestCommand CHIP_ERROR TestMediaPlaybackRewindCommand_13() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaRewind::Type; RequestType request; @@ -33559,7 +34232,7 @@ class TV_MediaPlaybackCluster : public TestCommand CHIP_ERROR TestMediaPlaybackFastForwardCommand_14() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaFastForward::Type; RequestType request; @@ -33587,7 +34260,7 @@ class TV_MediaPlaybackCluster : public TestCommand CHIP_ERROR TestMediaPlaybackSkipForwardCommand_15() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaSkipForward::Type; RequestType request; @@ -33616,7 +34289,7 @@ class TV_MediaPlaybackCluster : public TestCommand CHIP_ERROR TestMediaPlaybackSkipBackwardCommand_16() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaSkipBackward::Type; RequestType request; @@ -33645,7 +34318,7 @@ class TV_MediaPlaybackCluster : public TestCommand CHIP_ERROR TestMediaPlaybackSeekCommand_17() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 3; using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaSeek::Type; RequestType request; @@ -33676,7 +34349,11 @@ class TV_MediaPlaybackCluster : public TestCommand class TV_ChannelCluster : public TestCommand { public: - TV_ChannelCluster() : TestCommand("TV_ChannelCluster"), mTestIndex(0) {} + TV_ChannelCluster() : TestCommand("TV_ChannelCluster"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -33736,6 +34413,9 @@ class TV_ChannelCluster : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 5; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -33760,7 +34440,7 @@ class TV_ChannelCluster : public TestCommand CHIP_ERROR TestReadAttributeChannelList_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ChannelClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -33796,7 +34476,7 @@ class TV_ChannelCluster : public TestCommand CHIP_ERROR TestChangeChannelCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Channel::Commands::ChangeChannel::Type; RequestType request; @@ -33833,7 +34513,7 @@ class TV_ChannelCluster : public TestCommand CHIP_ERROR TestChangeChannelByNumberCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Channel::Commands::ChangeChannelByNumber::Type; RequestType request; @@ -33858,7 +34538,7 @@ class TV_ChannelCluster : public TestCommand CHIP_ERROR TestSkipChannelCommand_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Channel::Commands::SkipChannel::Type; RequestType request; @@ -33884,7 +34564,11 @@ class TV_ChannelCluster : public TestCommand class TV_LowPowerCluster : public TestCommand { public: - TV_LowPowerCluster() : TestCommand("TV_LowPowerCluster"), mTestIndex(0) {} + TV_LowPowerCluster() : TestCommand("TV_LowPowerCluster"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -33932,6 +34616,9 @@ class TV_LowPowerCluster : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 2; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -33944,7 +34631,7 @@ class TV_LowPowerCluster : public TestCommand CHIP_ERROR TestSleepInputStatusCommand_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::LowPower::Commands::Sleep::Type; RequestType request; @@ -33969,7 +34656,11 @@ class TV_LowPowerCluster : public TestCommand class TV_ContentLauncherCluster : public TestCommand { public: - TV_ContentLauncherCluster() : TestCommand("TV_ContentLauncherCluster"), mTestIndex(0) {} + TV_ContentLauncherCluster() : TestCommand("TV_ContentLauncherCluster"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -34029,6 +34720,9 @@ class TV_ContentLauncherCluster : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 5; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -34061,7 +34755,7 @@ class TV_ContentLauncherCluster : public TestCommand CHIP_ERROR TestReadAttributeAcceptHeaderList_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ContentLauncherClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -34086,7 +34780,7 @@ class TV_ContentLauncherCluster : public TestCommand CHIP_ERROR TestReadAttributeSupportedStreamingProtocols_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ContentLauncherClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -34107,7 +34801,7 @@ class TV_ContentLauncherCluster : public TestCommand CHIP_ERROR TestLaunchContentCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ContentLauncher::Commands::LaunchContent::Type; RequestType request; @@ -34141,7 +34835,7 @@ class TV_ContentLauncherCluster : public TestCommand CHIP_ERROR TestLaunchUrlCommand_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ContentLauncher::Commands::LaunchURL::Type; RequestType request; @@ -34178,7 +34872,11 @@ class TV_ContentLauncherCluster : public TestCommand class TV_MediaInputCluster : public TestCommand { public: - TV_MediaInputCluster() : TestCommand("TV_MediaInputCluster"), mTestIndex(0) {} + TV_MediaInputCluster() : TestCommand("TV_MediaInputCluster"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -34246,6 +34944,9 @@ class TV_MediaInputCluster : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 7; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -34281,7 +34982,7 @@ class TV_MediaInputCluster : public TestCommand CHIP_ERROR TestReadAttributeMediaInputList_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::MediaInputClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -34316,7 +35017,7 @@ class TV_MediaInputCluster : public TestCommand CHIP_ERROR TestReadCurrentMediaInput_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::MediaInputClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -34336,7 +35037,7 @@ class TV_MediaInputCluster : public TestCommand CHIP_ERROR TestSelectInputCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::MediaInput::Commands::SelectInput::Type; RequestType request; @@ -34360,7 +35061,7 @@ class TV_MediaInputCluster : public TestCommand CHIP_ERROR TestHideInputStatusCommand_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::MediaInput::Commands::HideInputStatus::Type; RequestType request; @@ -34383,7 +35084,7 @@ class TV_MediaInputCluster : public TestCommand CHIP_ERROR TestShowInputStatusCommand_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::MediaInput::Commands::ShowInputStatus::Type; RequestType request; @@ -34406,7 +35107,7 @@ class TV_MediaInputCluster : public TestCommand CHIP_ERROR TestRenameInputCommand_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::MediaInput::Commands::RenameInput::Type; RequestType request; @@ -34433,7 +35134,11 @@ class TV_MediaInputCluster : public TestCommand class TestCluster : public TestCommand { public: - TestCluster() : TestCommand("TestCluster"), mTestIndex(0) {} + TestCluster() : TestCommand("TestCluster"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -36372,6 +37077,9 @@ class TestCluster : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 446; + chip::Optional mCluster; + chip::Optional mEndpoint; + typedef void (*Test_TestCluster_list_int8u_ReportCallback)(void * context, const chip::app::DataModel::DecodableList & value); Test_TestCluster_list_int8u_ReportCallback mTest_TestCluster_list_int8u_Reported = nullptr; @@ -40011,7 +40719,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestCommand_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::Test::Type; RequestType request; @@ -40034,7 +40742,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestNotHandledCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestNotHandled::Type; RequestType request; @@ -40061,7 +40769,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestSpecificCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestSpecific::Type; RequestType request; @@ -40089,7 +40797,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestAddArgumentsCommand_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type; RequestType request; @@ -40119,7 +40827,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendFailingTestAddArgumentsCommand_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type; RequestType request; @@ -40148,7 +40856,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeBooleanDefaultValue_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40168,7 +40876,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeBooleanTrue_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40186,7 +40894,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeBooleanTrue_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40206,7 +40914,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeBooleanFalse_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40224,7 +40932,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeBooleanFalse_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40244,7 +40952,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeBitmap8DefaultValue_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40264,7 +40972,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeBitmap8MaxValue_12() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40282,7 +40990,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeBitmap8MaxValue_13() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40302,7 +41010,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeBitmap8MinValue_14() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40320,7 +41028,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeBitmap8MinValue_15() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40340,7 +41048,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeBitmap16DefaultValue_16() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40360,7 +41068,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeBitmap16MaxValue_17() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40378,7 +41086,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeBitmap16MaxValue_18() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40398,7 +41106,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeBitmap16MinValue_19() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40416,7 +41124,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeBitmap16MinValue_20() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40436,7 +41144,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeBitmap32DefaultValue_21() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40456,7 +41164,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeBitmap32MaxValue_22() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40474,7 +41182,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeBitmap32MaxValue_23() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40494,7 +41202,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeBitmap32MinValue_24() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40512,7 +41220,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeBitmap32MinValue_25() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40532,7 +41240,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeBitmap64DefaultValue_26() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40552,7 +41260,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeBitmap64MaxValue_27() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40570,7 +41278,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeBitmap64MaxValue_28() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40590,7 +41298,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeBitmap64MinValue_29() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40608,7 +41316,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeBitmap64MinValue_30() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40628,7 +41336,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt8uDefaultValue_31() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40648,7 +41356,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeInt8uMaxValue_32() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40666,7 +41374,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt8uMaxValue_33() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40686,7 +41394,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeInt8uMinValue_34() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40704,7 +41412,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt8uMinValue_35() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40724,7 +41432,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt16uDefaultValue_36() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40744,7 +41452,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeInt16uMaxValue_37() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40762,7 +41470,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt16uMaxValue_38() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40782,7 +41490,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeInt16uMinValue_39() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40800,7 +41508,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt16uMinValue_40() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40820,7 +41528,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt32uDefaultValue_41() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40840,7 +41548,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeInt32uMaxValue_42() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40858,7 +41566,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt32uMaxValue_43() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40878,7 +41586,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeInt32uMinValue_44() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40896,7 +41604,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt32uMinValue_45() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40916,7 +41624,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt64uDefaultValue_46() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40936,7 +41644,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeInt64uMaxValue_47() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40954,7 +41662,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt64uMaxValue_48() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40974,7 +41682,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeInt64uMinValue_49() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -40992,7 +41700,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt64uMinValue_50() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41012,7 +41720,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt8sDefaultValue_51() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41032,7 +41740,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeInt8sMaxValue_52() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41050,7 +41758,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt8sMaxValue_53() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41070,7 +41778,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeInt8sMinValue_54() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41088,7 +41796,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt8sMinValue_55() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41108,7 +41816,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeInt8sDefaultValue_56() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41126,7 +41834,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt8sDefaultValue_57() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41146,7 +41854,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt16sDefaultValue_58() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41166,7 +41874,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeInt16sMaxValue_59() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41184,7 +41892,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt16sMaxValue_60() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41204,7 +41912,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeInt16sMinValue_61() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41222,7 +41930,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt16sMinValue_62() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41242,7 +41950,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeInt16sDefaultValue_63() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41260,7 +41968,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt16sDefaultValue_64() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41280,7 +41988,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt32sDefaultValue_65() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41300,7 +42008,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeInt32sMaxValue_66() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41318,7 +42026,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt32sMaxValue_67() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41338,7 +42046,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeInt32sMinValue_68() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41356,7 +42064,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt32sMinValue_69() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41376,7 +42084,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeInt32sDefaultValue_70() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41394,7 +42102,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt32sDefaultValue_71() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41414,7 +42122,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt64sDefaultValue_72() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41434,7 +42142,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeInt64sMaxValue_73() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41452,7 +42160,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt64sMaxValue_74() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41472,7 +42180,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeInt64sMinValue_75() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41490,7 +42198,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt64sMinValue_76() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41510,7 +42218,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeInt64sDefaultValue_77() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41528,7 +42236,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeInt64sDefaultValue_78() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41548,7 +42256,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeSingleDefaultValue_79() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41568,7 +42276,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeSingleMediumValue_80() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41586,7 +42294,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeSingleMediumValue_81() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41606,7 +42314,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeSingleLargeValue_82() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41624,7 +42332,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeSingleLargeValue_83() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41644,7 +42352,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeSingleSmallValue_84() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41662,7 +42370,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeSingleSmallValue_85() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41682,7 +42390,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeSingleDefaultValue_86() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41700,7 +42408,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeSingleDefaultValue_87() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41720,7 +42428,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeDoubleDefaultValue_88() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41740,7 +42448,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeDoubleMediumValue_89() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41758,7 +42466,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeDoubleMediumValue_90() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41778,7 +42486,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeDoubleLargeValue_91() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41796,7 +42504,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeDoubleLargeValue_92() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41816,7 +42524,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeDoubleSmallValue_93() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41834,7 +42542,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeDoubleSmallValue_94() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41854,7 +42562,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeDoubleDefaultValue_95() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41872,7 +42580,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeDoubleDefaultValue_96() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41892,7 +42600,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeEnum8DefaultValue_97() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41912,7 +42620,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeEnum8MaxValue_98() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41930,7 +42638,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeEnum8MaxValue_99() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41950,7 +42658,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeEnum8MinValue_100() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41968,7 +42676,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeEnum8MinValue_101() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -41988,7 +42696,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeEnum16DefaultValue_102() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42008,7 +42716,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeEnum16MaxValue_103() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42026,7 +42734,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeEnum16MaxValue_104() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42046,7 +42754,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeEnum16MinValue_105() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42064,7 +42772,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeEnum16MinValue_106() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42084,7 +42792,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeOctetStringDefaultValue_107() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42104,7 +42812,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeOctetStringWithEmbeddedNull_108() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42122,7 +42830,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeOctetStringWithEmbeddedNull_109() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42143,7 +42851,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeOctetString_110() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42161,7 +42869,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeOctetString_111() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42182,7 +42890,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeOctetString_112() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42205,7 +42913,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeOctetString_113() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42226,7 +42934,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeOctetString_114() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42244,7 +42952,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeLongOctetStringDefaultValue_115() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42264,7 +42972,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeLongOctetString_116() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42287,7 +42995,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeLongOctetString_117() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42314,7 +43022,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeLongOctetString_118() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42332,7 +43040,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeCharStringDefaultValue_119() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42352,7 +43060,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeCharString_120() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42370,7 +43078,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeCharString_121() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42390,7 +43098,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeCharStringValueTooLong_122() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42412,7 +43120,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeCharString_123() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42432,7 +43140,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeCharStringEmpty_124() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42450,7 +43158,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeLongCharStringDefaultValue_125() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42470,7 +43178,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeLongCharString_126() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42492,7 +43200,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeLongCharString_127() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42517,7 +43225,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeLongCharString_128() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42535,7 +43243,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeListLongOctetString_129() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42600,7 +43308,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeEpochUsDefaultValue_130() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42620,7 +43328,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeEpochUsMaxValue_131() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42638,7 +43346,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeEpochUsMaxValue_132() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42658,7 +43366,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeEpochUsMinValue_133() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42676,7 +43384,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeEpochUsMinValue_134() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42696,7 +43404,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeEpochSDefaultValue_135() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42716,7 +43424,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeEpochSMaxValue_136() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42734,7 +43442,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeEpochSMaxValue_137() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42754,7 +43462,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeEpochSMinValue_138() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42772,7 +43480,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeEpochSMinValue_139() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42792,7 +43500,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeUnsupported_140() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42815,7 +43523,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteattributeUnsupported_141() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42836,7 +43544,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestCommandToUnsupportedEndpoint_142() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 200; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 200; using RequestType = chip::app::Clusters::TestCluster::Commands::Test::Type; RequestType request; @@ -42863,7 +43571,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestCommandToUnsupportedCluster_143() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; using RequestType = chip::app::Clusters::TestCluster::Commands::Test::Type; RequestType request; @@ -42890,7 +43598,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeVendorIdDefaultValue_144() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42910,7 +43618,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeVendorId_145() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42928,7 +43636,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeVendorId_146() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42948,7 +43656,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestRestoreAttributeVendorId_147() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -42966,7 +43674,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendACommandWithAVendorIdAndEnum_148() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestEnumsRequest::Type; RequestType request; @@ -42998,7 +43706,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestCommandWithStructArgumentAndArg1bIsTrue_149() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestStructArgumentRequest::Type; RequestType request; @@ -43035,7 +43743,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestCommandWithStructArgumentAndArg1bIsFalse_150() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestStructArgumentRequest::Type; RequestType request; @@ -43072,7 +43780,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestCommandWithNestedStructArgumentAndArg1cbIsTrue_151() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestNestedStructArgumentRequest::Type; RequestType request; @@ -43112,7 +43820,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestCommandWithNestedStructArgumentArg1cbIsFalse_152() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestNestedStructArgumentRequest::Type; RequestType request; @@ -43152,7 +43860,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestCommandWithNestedStructListArgumentAndAllFieldsBOfArg1dAreTrue_153() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestNestedStructListArgumentRequest::Type; RequestType request; @@ -43231,7 +43939,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestCommandWithNestedStructListArgumentAndSomeFieldsBOfArg1dAreFalse_154() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestNestedStructListArgumentRequest::Type; RequestType request; @@ -43310,7 +44018,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestCommandWithStructArgumentAndSeeWhatWeGetBack_155() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::SimpleStructEchoRequest::Type; RequestType request; @@ -43354,7 +44062,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestCommandWithListOfInt8uAndNoneOfThemIsSetTo0_156() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestListInt8UArgumentRequest::Type; RequestType request; @@ -43394,7 +44102,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestCommandWithListOfInt8uAndOneOfThemIsSetTo0_157() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestListInt8UArgumentRequest::Type; RequestType request; @@ -43435,7 +44143,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestCommandWithListOfInt8uAndGetItReversed_158() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseRequest::Type; RequestType request; @@ -43494,7 +44202,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestCommandWithEmptyListOfInt8uAndGetAnEmptyListBack_159() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseRequest::Type; RequestType request; @@ -43525,7 +44233,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestCommandWithListOfStructArgumentAndArg1bOfFirstItemIsTrue_160() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestListStructArgumentRequest::Type; RequestType request; @@ -43575,7 +44283,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestCommandWithListOfStructArgumentAndArg1bOfFirstItemIsFalse_161() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestListStructArgumentRequest::Type; RequestType request; @@ -43625,7 +44333,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestCommandWithListOfNestedStructListArgumentAndAllFieldsBOfElementsOfArg1dAreTrue_162() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestListNestedStructListArgumentRequest::Type; RequestType request; @@ -43708,7 +44416,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestCommandWithNestedStructListArgumentAndSomeFieldsBOfElementsOfArg1dAreFalse_163() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestListNestedStructListArgumentRequest::Type; RequestType request; @@ -43791,7 +44499,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeListWithListOfInt8uAndNoneOfThemIsSetTo0_164() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -43815,7 +44523,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeListWithListOfInt8u_165() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -43844,7 +44552,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeListWithListOfOctetString_166() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -43868,7 +44576,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeListWithListOfOctetString_167() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -43901,7 +44609,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeListWithListOfListStructOctetString_168() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -43939,7 +44647,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeListWithListOfListStructOctetString_169() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -43978,7 +44686,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestCommandWithOptionalArgSet_170() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type; RequestType request; @@ -44019,7 +44727,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendTestCommandWithoutItsOptionalArg_171() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type; RequestType request; @@ -44049,7 +44757,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableBooleanNull_172() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44067,7 +44775,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableBooleanNull_173() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44087,7 +44795,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableBooleanTrue_174() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44105,7 +44813,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableBooleanTrue_175() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44126,7 +44834,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableBitmap8MaxValue_176() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44144,7 +44852,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableBitmap8MaxValue_177() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44165,7 +44873,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableBitmap8InvalidValue_178() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44187,7 +44895,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableBitmap8UnchangedValue_179() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44208,7 +44916,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableBitmap8NullValue_180() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44226,7 +44934,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableBitmap8NullValue_181() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44246,7 +44954,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableBitmap16MaxValue_182() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44264,7 +44972,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableBitmap16MaxValue_183() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44285,7 +44993,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableBitmap16InvalidValue_184() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44307,7 +45015,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableBitmap16UnchangedValue_185() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44328,7 +45036,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableBitmap16NullValue_186() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44346,7 +45054,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableBitmap16NullValue_187() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44366,7 +45074,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableBitmap32MaxValue_188() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44384,7 +45092,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableBitmap32MaxValue_189() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44405,7 +45113,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableBitmap32InvalidValue_190() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44427,7 +45135,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableBitmap32UnchangedValue_191() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44448,7 +45156,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableBitmap32NullValue_192() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44466,7 +45174,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableBitmap32NullValue_193() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44486,7 +45194,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableBitmap64MaxValue_194() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44504,7 +45212,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableBitmap64MaxValue_195() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44525,7 +45233,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableBitmap64InvalidValue_196() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44547,7 +45255,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableBitmap64UnchangedValue_197() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44568,7 +45276,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableBitmap64NullValue_198() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44586,7 +45294,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableBitmap64NullValue_199() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44606,7 +45314,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt8uMaxValue_200() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44624,7 +45332,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt8uMaxValue_201() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44645,7 +45353,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt8uInvalidValue_202() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44667,7 +45375,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt8uUnchangedValue_203() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44688,7 +45396,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt8uNullValue_204() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44706,7 +45414,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt8uNullValue_205() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44726,7 +45434,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt8uNullValueRange_206() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44746,7 +45454,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt8uNullValueNot_207() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44766,7 +45474,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt8uValue_208() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44784,7 +45492,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt8uValueInRange_209() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44804,7 +45512,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt8uNotValueOk_210() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44824,7 +45532,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt16uMaxValue_211() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44842,7 +45550,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt16uMaxValue_212() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44863,7 +45571,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt16uInvalidValue_213() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44885,7 +45593,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt16uUnchangedValue_214() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44906,7 +45614,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt16uNullValue_215() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44924,7 +45632,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt16uNullValue_216() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44944,7 +45652,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt16uNullValueRange_217() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44964,7 +45672,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt16uNullValueNot_218() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -44984,7 +45692,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt16uValue_219() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45002,7 +45710,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt16uValueInRange_220() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45022,7 +45730,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt16uNotValueOk_221() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45042,7 +45750,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt32uMaxValue_222() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45060,7 +45768,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt32uMaxValue_223() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45081,7 +45789,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt32uInvalidValue_224() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45103,7 +45811,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt32uUnchangedValue_225() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45124,7 +45832,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt32uNullValue_226() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45142,7 +45850,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt32uNullValue_227() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45162,7 +45870,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt32uNullValueRange_228() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45182,7 +45890,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt32uNullValueNot_229() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45202,7 +45910,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt32uValue_230() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45220,7 +45928,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt32uValueInRange_231() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45240,7 +45948,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt32uNotValueOk_232() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45260,7 +45968,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt64uMaxValue_233() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45278,7 +45986,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt64uMaxValue_234() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45299,7 +46007,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt64uInvalidValue_235() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45321,7 +46029,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt64uUnchangedValue_236() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45342,7 +46050,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt64uNullValue_237() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45360,7 +46068,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt64uNullValue_238() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45478,7 +46186,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt8sMinValue_244() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45496,7 +46204,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt8sMinValue_245() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45517,7 +46225,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt8sInvalidValue_246() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45539,7 +46247,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt8sUnchangedValue_247() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45560,7 +46268,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt8sNullValue_248() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45578,7 +46286,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt8sNullValue_249() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45598,7 +46306,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt8sNullValueRange_250() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45619,7 +46327,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt8sNullValueNot_251() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45639,7 +46347,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt8sValue_252() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45657,7 +46365,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt8sValueInRange_253() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45678,7 +46386,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt8sNotValueOk_254() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45698,7 +46406,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt16sMinValue_255() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45716,7 +46424,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt16sMinValue_256() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45737,7 +46445,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt16sInvalidValue_257() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45759,7 +46467,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt16sUnchangedValue_258() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45780,7 +46488,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt16sNullValue_259() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45798,7 +46506,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt16sNullValue_260() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45818,7 +46526,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt16sNullValueRange_261() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45839,7 +46547,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt16sNullValueNot_262() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45859,7 +46567,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt16sValue_263() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45877,7 +46585,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt16sValueInRange_264() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45898,7 +46606,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt16sNotValueOk_265() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45918,7 +46626,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt32sMinValue_266() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45936,7 +46644,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt32sMinValue_267() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45957,7 +46665,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt32sInvalidValue_268() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -45979,7 +46687,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt32sUnchangedValue_269() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46000,7 +46708,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt32sNullValue_270() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46018,7 +46726,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt32sNullValue_271() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46038,7 +46746,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt32sNullValueRange_272() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46059,7 +46767,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt32sNullValueNot_273() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46079,7 +46787,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt32sValue_274() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46097,7 +46805,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt32sValueInRange_275() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46118,7 +46826,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt32sNotValueOk_276() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46138,7 +46846,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt64sMinValue_277() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46156,7 +46864,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt64sMinValue_278() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46177,7 +46885,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt64sInvalidValue_279() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46199,7 +46907,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt64sUnchangedValue_280() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46220,7 +46928,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableInt64sNullValue_281() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46238,7 +46946,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableInt64sNullValue_282() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46358,7 +47066,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableSingleMediumValue_288() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46376,7 +47084,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableSingleMediumValue_289() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46397,7 +47105,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableSingleLargestValue_290() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46415,7 +47123,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableSingleLargestValue_291() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46436,7 +47144,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableSingleSmallestValue_292() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46454,7 +47162,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableSingleSmallestValue_293() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46475,7 +47183,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableSingleNullValue_294() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46493,7 +47201,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableSingleNullValue_295() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46513,7 +47221,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableSingle0Value_296() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46531,7 +47239,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableSingle0Value_297() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46552,7 +47260,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableDoubleMediumValue_298() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46570,7 +47278,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableDoubleMediumValue_299() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46591,7 +47299,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableDoubleLargestValue_300() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46609,7 +47317,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableDoubleLargestValue_301() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46630,7 +47338,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableDoubleSmallestValue_302() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46648,7 +47356,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableDoubleSmallestValue_303() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46669,7 +47377,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableDoubleNullValue_304() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46687,7 +47395,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableDoubleNullValue_305() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46707,7 +47415,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableDouble0Value_306() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46725,7 +47433,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableDouble0Value_307() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46746,7 +47454,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableEnum8MaxValue_308() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46764,7 +47472,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableEnum8MaxValue_309() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46785,7 +47493,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableEnum8InvalidValue_310() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46807,7 +47515,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableEnum8UnchangedValue_311() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46828,7 +47536,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableEnum8NullValue_312() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46846,7 +47554,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableEnum8NullValue_313() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46866,7 +47574,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableEnum16MaxValue_314() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46884,7 +47592,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableEnum16MaxValue_315() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46905,7 +47613,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableEnum16InvalidValue_316() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46927,7 +47635,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableEnum16UnchangedValue_317() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46948,7 +47656,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableEnum16NullValue_318() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46966,7 +47674,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableEnum16NullValue_319() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -46986,7 +47694,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableOctetStringDefaultValue_320() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47008,7 +47716,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableOctetString_321() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47027,7 +47735,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableOctetString_322() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47049,7 +47757,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableOctetString_323() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47067,7 +47775,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableOctetString_324() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47087,7 +47795,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableOctetString_325() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47106,7 +47814,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableOctetString_326() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47128,7 +47836,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableCharStringDefaultValue_327() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47149,7 +47857,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableCharString_328() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47167,7 +47875,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableCharString_329() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47188,7 +47896,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableCharStringValueTooLong_330() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47206,7 +47914,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableCharString_331() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47226,7 +47934,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteAttributeNullableCharStringEmpty_332() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47244,7 +47952,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeNullableCharString_333() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47265,7 +47973,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeFromNonexistentEndpoint_334() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 200; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 200; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47284,7 +47992,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadAttributeFromNonexistentCluster_335() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47303,7 +48011,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendACommandThatTakesAnOptionalParameterButDoNotSetIt_336() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestSimpleOptionalArgumentRequest::Type; RequestType request; @@ -47330,7 +48038,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSendACommandThatTakesAnOptionalParameterButDoNotSetIt_337() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestSimpleOptionalArgumentRequest::Type; RequestType request; @@ -47354,7 +48062,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReportSubscribeToListAttribute_338() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47382,7 +48090,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestSubscribeToListAttribute_339() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47417,7 +48125,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteSubscribedToListAttribute_340() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47441,7 +48149,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestCheckForListAttributeReport_341() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47471,7 +48179,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadRangeRestrictedUnsigned8BitInteger_342() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47491,7 +48199,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMinValueToARangeRestrictedUnsigned8BitInteger_343() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47513,7 +48221,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteJustBelowRangeValueToARangeRestrictedUnsigned8BitInteger_344() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47535,7 +48243,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteJustAboveRangeValueToARangeRestrictedUnsigned8BitInteger_345() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47557,7 +48265,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMaxValueToARangeRestrictedUnsigned8BitInteger_346() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47579,7 +48287,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyRangeRestrictedUnsigned8BitIntegerValueHasNotChanged_347() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47599,7 +48307,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMinValidValueToARangeRestrictedUnsigned8BitInteger_348() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47617,7 +48325,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyRangeRestrictedUnsigned8BitIntegerValueIsAtMinValid_349() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47637,7 +48345,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMaxValidValueToARangeRestrictedUnsigned8BitInteger_350() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47655,7 +48363,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyRangeRestrictedUnsigned8BitIntegerValueIsAtMaxValid_351() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47675,7 +48383,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMiddleValidValueToARangeRestrictedUnsigned8BitInteger_352() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47693,7 +48401,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyRangeRestrictedUnsigned8BitIntegerValueIsAtMidValid_353() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47713,7 +48421,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadRangeRestrictedUnsigned16BitInteger_354() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47733,7 +48441,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMinValueToARangeRestrictedUnsigned16BitInteger_355() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47755,7 +48463,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteJustBelowRangeValueToARangeRestrictedUnsigned16BitInteger_356() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47777,7 +48485,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteJustAboveRangeValueToARangeRestrictedUnsigned16BitInteger_357() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47799,7 +48507,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMaxValueToARangeRestrictedUnsigned16BitInteger_358() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47821,7 +48529,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyRangeRestrictedUnsigned16BitIntegerValueHasNotChanged_359() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47841,7 +48549,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMinValidValueToARangeRestrictedUnsigned16BitInteger_360() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47859,7 +48567,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyRangeRestrictedUnsigned16BitIntegerValueIsAtMinValid_361() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47879,7 +48587,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMaxValidValueToARangeRestrictedUnsigned16BitInteger_362() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47897,7 +48605,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyRangeRestrictedUnsigned16BitIntegerValueIsAtMaxValid_363() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47917,7 +48625,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMiddleValidValueToARangeRestrictedUnsigned16BitInteger_364() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47935,7 +48643,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyRangeRestrictedUnsigned16BitIntegerValueIsAtMidValid_365() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47955,7 +48663,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadRangeRestrictedSigned8BitInteger_366() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47975,7 +48683,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMinValueToARangeRestrictedSigned8BitInteger_367() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -47997,7 +48705,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteJustBelowRangeValueToARangeRestrictedSigned8BitInteger_368() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48019,7 +48727,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteJustAboveRangeValueToARangeRestrictedSigned8BitInteger_369() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48041,7 +48749,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMaxValueToARangeRestrictedSigned8BitInteger_370() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48063,7 +48771,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyRangeRestrictedSigned8BitIntegerValueHasNotChanged_371() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48083,7 +48791,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMinValidValueToARangeRestrictedSigned8BitInteger_372() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48101,7 +48809,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyRangeRestrictedSigned8BitIntegerValueIsAtMinValid_373() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48121,7 +48829,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMaxValidValueToARangeRestrictedSigned8BitInteger_374() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48139,7 +48847,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyRangeRestrictedSigned8BitIntegerValueIsAtMaxValid_375() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48159,7 +48867,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMiddleValidValueToARangeRestrictedSigned8BitInteger_376() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48177,7 +48885,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyRangeRestrictedSigned8BitIntegerValueIsAtMidValid_377() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48197,7 +48905,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadRangeRestrictedSigned16BitInteger_378() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48217,7 +48925,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMinValueToARangeRestrictedSigned16BitInteger_379() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48239,7 +48947,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteJustBelowRangeValueToARangeRestrictedSigned16BitInteger_380() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48261,7 +48969,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteJustAboveRangeValueToARangeRestrictedSigned16BitInteger_381() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48283,7 +48991,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMaxValueToARangeRestrictedSigned16BitInteger_382() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48305,7 +49013,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyRangeRestrictedSigned16BitIntegerValueHasNotChanged_383() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48325,7 +49033,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMinValidValueToARangeRestrictedSigned16BitInteger_384() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48343,7 +49051,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyRangeRestrictedSigned16BitIntegerValueIsAtMinValid_385() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48363,7 +49071,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMaxValidValueToARangeRestrictedSigned16BitInteger_386() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48381,7 +49089,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyRangeRestrictedSigned16BitIntegerValueIsAtMaxValid_387() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48401,7 +49109,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMiddleValidValueToARangeRestrictedSigned16BitInteger_388() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48419,7 +49127,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyRangeRestrictedSigned16BitIntegerValueIsAtMidValid_389() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48439,7 +49147,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadNullableRangeRestrictedUnsigned8BitInteger_390() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48461,7 +49169,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMinValueToANullableRangeRestrictedUnsigned8BitInteger_391() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48484,7 +49192,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteJustBelowRangeValueToANullableRangeRestrictedUnsigned8BitInteger_392() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48507,7 +49215,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteJustAboveRangeValueToANullableRangeRestrictedUnsigned8BitInteger_393() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48530,7 +49238,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMaxValueToANullableRangeRestrictedUnsigned8BitInteger_394() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48553,7 +49261,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueHasNotChanged_395() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48575,7 +49283,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMinValidValueToANullableRangeRestrictedUnsigned8BitInteger_396() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48594,7 +49302,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsAtMinValid_397() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48616,7 +49324,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMaxValidValueToANullableRangeRestrictedUnsigned8BitInteger_398() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48635,7 +49343,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsAtMaxValid_399() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48657,7 +49365,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMiddleValidValueToANullableRangeRestrictedUnsigned8BitInteger_400() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48676,7 +49384,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsAtMidValid_401() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48698,7 +49406,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteNullValueToANullableRangeRestrictedUnsigned8BitInteger_402() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48717,7 +49425,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsNull_403() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48738,7 +49446,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadNullableRangeRestrictedUnsigned16BitInteger_404() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48760,7 +49468,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMinValueToANullableRangeRestrictedUnsigned16BitInteger_405() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48783,7 +49491,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteJustBelowRangeValueToANullableRangeRestrictedUnsigned16BitInteger_406() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48806,7 +49514,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteJustAboveRangeValueToANullableRangeRestrictedUnsigned16BitInteger_407() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48829,7 +49537,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMaxValueToANullableRangeRestrictedUnsigned16BitInteger_408() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48852,7 +49560,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueHasNotChanged_409() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48874,7 +49582,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMinValidValueToANullableRangeRestrictedUnsigned16BitInteger_410() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48893,7 +49601,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsAtMinValid_411() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48915,7 +49623,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMaxValidValueToANullableRangeRestrictedUnsigned16BitInteger_412() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48934,7 +49642,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsAtMaxValid_413() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48956,7 +49664,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMiddleValidValueToANullableRangeRestrictedUnsigned16BitInteger_414() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48975,7 +49683,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsAtMidValid_415() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -48997,7 +49705,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteNullValueToANullableRangeRestrictedUnsigned16BitInteger_416() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49016,7 +49724,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsNull_417() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49037,7 +49745,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadNullableRangeRestrictedSigned8BitInteger_418() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49059,7 +49767,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMinValueToANullableRangeRestrictedSigned8BitInteger_419() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49082,7 +49790,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteJustBelowRangeValueToANullableRangeRestrictedSigned8BitInteger_420() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49105,7 +49813,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteJustAboveRangeValueToANullableRangeRestrictedSigned8BitInteger_421() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49128,7 +49836,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMaxValueToANullableRangeRestrictedSigned8BitInteger_422() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49151,7 +49859,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueHasNotChanged_423() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49173,7 +49881,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMinValidValueToANullableRangeRestrictedSigned8BitInteger_424() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49192,7 +49900,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtMinValid_425() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49214,7 +49922,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMaxValidValueToANullableRangeRestrictedSigned8BitInteger_426() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49233,7 +49941,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtMaxValid_427() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49255,7 +49963,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMiddleValidValueToANullableRangeRestrictedSigned8BitInteger_428() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49274,7 +49982,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtMidValid_429() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49296,7 +50004,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteNullValueToANullableRangeRestrictedSigned8BitInteger_430() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49315,7 +50023,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtNull_431() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49336,7 +50044,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestReadNullableRangeRestrictedSigned16BitInteger_432() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49358,7 +50066,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMinValueToANullableRangeRestrictedSigned16BitInteger_433() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49381,7 +50089,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteJustBelowRangeValueToANullableRangeRestrictedSigned16BitInteger_434() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49404,7 +50112,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteJustAboveRangeValueToANullableRangeRestrictedSigned16BitInteger_435() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49427,7 +50135,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMaxValueToANullableRangeRestrictedSigned16BitInteger_436() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49450,7 +50158,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueHasNotChanged_437() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49472,7 +50180,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMinValidValueToANullableRangeRestrictedSigned16BitInteger_438() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49491,7 +50199,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsAtMinValid_439() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49513,7 +50221,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMaxValidValueToANullableRangeRestrictedSigned16BitInteger_440() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49532,7 +50240,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsAtMaxValid_441() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49554,7 +50262,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteMiddleValidValueToANullableRangeRestrictedSigned16BitInteger_442() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49573,7 +50281,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsAtMidValid_443() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49595,7 +50303,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestWriteNullValueToANullableRangeRestrictedSigned16BitInteger_444() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49614,7 +50322,7 @@ class TestCluster : public TestCommand CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsNull_445() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -49637,7 +50345,11 @@ class TestCluster : public TestCommand class TestClusterComplexTypes : public TestCommand { public: - TestClusterComplexTypes() : TestCommand("TestClusterComplexTypes"), mTestIndex(0) {} + TestClusterComplexTypes() : TestCommand("TestClusterComplexTypes"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -49766,6 +50478,9 @@ class TestClusterComplexTypes : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 21; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_7(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_7(status); @@ -49897,7 +50612,7 @@ class TestClusterComplexTypes : public TestCommand CHIP_ERROR TestSendTestCommandWithOptionalArgSetToNull_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type; RequestType request; @@ -49934,7 +50649,7 @@ class TestClusterComplexTypes : public TestCommand CHIP_ERROR TestSendCommandThatNeedsTimedInvokeWithoutATimeoutValue_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TimedInvokeRequest::Type; RequestType request; @@ -49962,7 +50677,7 @@ class TestClusterComplexTypes : public TestCommand CHIP_ERROR TestSendCommandThatNeedsTimedInvokeWithALongTimeoutValue_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TimedInvokeRequest::Type; RequestType request; @@ -49986,7 +50701,7 @@ class TestClusterComplexTypes : public TestCommand CHIP_ERROR TestSendCommandThatNeedsTimedInvokeWithATooShortTimeoutValue_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TimedInvokeRequest::Type; RequestType request; @@ -50022,7 +50737,7 @@ class TestClusterComplexTypes : public TestCommand CHIP_ERROR TestSendCommandThatDoesNotNeedTimedInvokeWithALongTimeoutValue_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::Test::Type; RequestType request; @@ -50046,7 +50761,7 @@ class TestClusterComplexTypes : public TestCommand CHIP_ERROR TestSendCommandThatDoesNotNeedTimedInvokeWithATooShortTimeoutValue_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::Test::Type; RequestType request; @@ -50082,7 +50797,7 @@ class TestClusterComplexTypes : public TestCommand CHIP_ERROR TestReadAttributeThatNeedsTimedWriteInitialState_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50102,7 +50817,7 @@ class TestClusterComplexTypes : public TestCommand CHIP_ERROR TestWriteAttributeThatNeedsTimedWriteWithoutATimeoutValue_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50124,7 +50839,7 @@ class TestClusterComplexTypes : public TestCommand CHIP_ERROR TestReadAttributeThatNeedsTimedWriteStateUnchanged1_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50144,7 +50859,7 @@ class TestClusterComplexTypes : public TestCommand CHIP_ERROR TestWriteAttributeThatNeedsTimedWriteWithATooShortTimeoutValue_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50174,7 +50889,7 @@ class TestClusterComplexTypes : public TestCommand CHIP_ERROR TestReadAttributeThatNeedsTimedWriteStateUnchanged2_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50194,7 +50909,7 @@ class TestClusterComplexTypes : public TestCommand CHIP_ERROR TestWriteAttributeThatNeedsTimedWriteWithALongTimeoutValue_12() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50212,7 +50927,7 @@ class TestClusterComplexTypes : public TestCommand CHIP_ERROR TestReadAttributeThatNeedsTimedWriteStateChanged_13() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50232,7 +50947,7 @@ class TestClusterComplexTypes : public TestCommand CHIP_ERROR TestWriteAttributeThatNeedsTimedWriteResetToDefault_14() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50250,7 +50965,7 @@ class TestClusterComplexTypes : public TestCommand CHIP_ERROR TestReadAttributeThatDoesNotNeedTimedWriteInitialValue_15() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50270,7 +50985,7 @@ class TestClusterComplexTypes : public TestCommand CHIP_ERROR TestWriteAttributeThatDoesNotNeedTimedWriteWithATooShortTimeoutValue_16() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50300,7 +51015,7 @@ class TestClusterComplexTypes : public TestCommand CHIP_ERROR TestReadAttributeThatDoesNotNeedTimedWriteUnchangedValue_17() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50320,7 +51035,7 @@ class TestClusterComplexTypes : public TestCommand CHIP_ERROR TestWriteAttributeThatDoesNotNeedTimedWriteWithALongTimeoutValue_18() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50338,7 +51053,7 @@ class TestClusterComplexTypes : public TestCommand CHIP_ERROR TestReadAttributeThatDoesNotNeedTimedWriteChangedValue_19() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50358,7 +51073,7 @@ class TestClusterComplexTypes : public TestCommand CHIP_ERROR TestWriteAttributeThatDoesNotNeedTimedWriteResetToDefault_20() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50378,7 +51093,11 @@ class TestClusterComplexTypes : public TestCommand class TestConstraints : public TestCommand { public: - TestConstraints() : TestCommand("TestConstraints"), mTestIndex(0) {} + TestConstraints() : TestCommand("TestConstraints"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -50466,6 +51185,9 @@ class TestConstraints : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 12; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -50576,7 +51298,7 @@ class TestConstraints : public TestCommand CHIP_ERROR TestWriteAttributeInt32uValue_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50594,7 +51316,7 @@ class TestConstraints : public TestCommand CHIP_ERROR TestReadAttributeInt32uValueMinValueConstraints_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50614,7 +51336,7 @@ class TestConstraints : public TestCommand CHIP_ERROR TestReadAttributeInt32uValueMaxValueConstraints_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50634,7 +51356,7 @@ class TestConstraints : public TestCommand CHIP_ERROR TestReadAttributeInt32uValueNotValueConstraints_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50654,7 +51376,7 @@ class TestConstraints : public TestCommand CHIP_ERROR TestWriteAttributeInt32uValueBackToDefaultValue_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50672,7 +51394,7 @@ class TestConstraints : public TestCommand CHIP_ERROR TestWriteAttributeCharStringValue_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50690,7 +51412,7 @@ class TestConstraints : public TestCommand CHIP_ERROR TestReadAttributeCharStringValueMinLengthConstraints_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50710,7 +51432,7 @@ class TestConstraints : public TestCommand CHIP_ERROR TestReadAttributeCharStringValueMaxLengthConstraints_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50730,7 +51452,7 @@ class TestConstraints : public TestCommand CHIP_ERROR TestReadAttributeCharStringValueStartsWithConstraints_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50750,7 +51472,7 @@ class TestConstraints : public TestCommand CHIP_ERROR TestReadAttributeCharStringValueEndsWithConstraints_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50770,7 +51492,7 @@ class TestConstraints : public TestCommand CHIP_ERROR TestWriteAttributeCharStringValueBackToDefaultValue_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -50790,7 +51512,11 @@ class TestConstraints : public TestCommand class TestDelayCommands : public TestCommand { public: - TestDelayCommands() : TestCommand("TestDelayCommands"), mTestIndex(0) {} + TestDelayCommands() : TestCommand("TestDelayCommands"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -50838,6 +51564,9 @@ class TestDelayCommands : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 2; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -50858,7 +51587,11 @@ class TestDelayCommands : public TestCommand class TestLogCommands : public TestCommand { public: - TestLogCommands() : TestCommand("TestLogCommands"), mTestIndex(0) {} + TestLogCommands() : TestCommand("TestLogCommands"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -50910,6 +51643,9 @@ class TestLogCommands : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 3; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -50936,7 +51672,11 @@ class TestLogCommands : public TestCommand class TestSaveAs : public TestCommand { public: - TestSaveAs() : TestCommand("TestSaveAs"), mTestIndex(0) {} + TestSaveAs() : TestCommand("TestSaveAs"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -51352,6 +52092,9 @@ class TestSaveAs : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 94; + chip::Optional mCluster; + chip::Optional mEndpoint; + uint8_t TestAddArgumentDefaultValue; bool readAttributeBooleanDefaultValue; uint8_t readAttributeBitmap8DefaultValue; @@ -52176,7 +52919,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestSendTestAddArgumentsCommand_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type; RequestType request; @@ -52207,7 +52950,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestSendTestAddArgumentsCommand_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type; RequestType request; @@ -52237,7 +52980,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestSendTestAddArgumentsCommand_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type; RequestType request; @@ -52267,7 +53010,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeBooleanDefaultValue_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52288,7 +53031,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeBooleanNotDefaultValue_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52306,7 +53049,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeBooleanNotDefaultValue_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52326,7 +53069,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeBooleanDefaultValue_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52344,7 +53087,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeBooleanFalse_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52364,7 +53107,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeBitmap8DefaultValue_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52385,7 +53128,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeBitmap8NotDefaultValue_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52403,7 +53146,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeBitmap8NotDefaultValue_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52423,7 +53166,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeBitmap8DefaultValue_12() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52441,7 +53184,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeBitmap8DefaultValue_13() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52461,7 +53204,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeBitmap16DefaultValue_14() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52482,7 +53225,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeBitmap16NotDefaultValue_15() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52500,7 +53243,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeBitmap16NotDefaultValue_16() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52520,7 +53263,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeBitmap16DefaultValue_17() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52538,7 +53281,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeBitmap16DefaultValue_18() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52558,7 +53301,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeBitmap32DefaultValue_19() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52579,7 +53322,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeBitmap32NotDefaultValue_20() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52597,7 +53340,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeBitmap32NotDefaultValue_21() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52617,7 +53360,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeBitmap32DefaultValue_22() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52635,7 +53378,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeBitmap32DefaultValue_23() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52655,7 +53398,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeBitmap64DefaultValue_24() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52676,7 +53419,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeBitmap64NotDefaultValue_25() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52694,7 +53437,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeBitmap64DefaultValue_26() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52714,7 +53457,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeBitmap64DefaultValue_27() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52732,7 +53475,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeBitmap64DefaultValue_28() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52752,7 +53495,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt8uDefaultValue_29() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52773,7 +53516,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeInt8uNotDefaultValue_30() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52791,7 +53534,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt8uNotDefaultValue_31() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52811,7 +53554,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeInt8uDefaultValue_32() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52829,7 +53572,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt8uDefaultValue_33() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52849,7 +53592,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt16uDefaultValue_34() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52870,7 +53613,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeInt16uNotDefaultValue_35() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52888,7 +53631,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt16uNotDefaultValue_36() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52908,7 +53651,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeInt16uDefaultValue_37() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52926,7 +53669,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt16uDefaultValue_38() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52946,7 +53689,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt32uDefaultValue_39() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52967,7 +53710,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeInt32uNotDefaultValue_40() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -52985,7 +53728,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt32uNotDefaultValue_41() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53005,7 +53748,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeInt32uDefaultValue_42() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53023,7 +53766,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt32uDefaultValue_43() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53043,7 +53786,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt64uDefaultValue_44() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53064,7 +53807,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeInt64uNotDefaultValue_45() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53082,7 +53825,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt64uNotDefaultValue_46() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53102,7 +53845,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeInt64uDefaultValue_47() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53120,7 +53863,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt64uDefaultValue_48() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53140,7 +53883,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt8sDefaultValue_49() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53161,7 +53904,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeInt8sNotDefaultValue_50() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53179,7 +53922,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt8sNotDefaultValue_51() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53199,7 +53942,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeInt8sDefaultValue_52() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53217,7 +53960,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt8sDefaultValue_53() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53237,7 +53980,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt16sDefaultValue_54() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53258,7 +54001,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeInt16sNotDefaultValue_55() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53276,7 +54019,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt16sNotDefaultValue_56() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53296,7 +54039,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeInt16sDefaultValue_57() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53314,7 +54057,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt16sDefaultValue_58() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53334,7 +54077,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt32sDefaultValue_59() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53355,7 +54098,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeInt32sNotDefaultValue_60() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53373,7 +54116,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt32sNotDefaultValue_61() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53393,7 +54136,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeInt32sDefaultValue_62() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53411,7 +54154,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt32sDefaultValue_63() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53431,7 +54174,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt64sDefaultValue_64() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53452,7 +54195,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeIntsNotDefaultValue_65() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53470,7 +54213,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt64sNotDefaultValue_66() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53490,7 +54233,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeInt64sDefaultValue_67() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53508,7 +54251,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeInt64sDefaultValue_68() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53528,7 +54271,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeEnum8DefaultValue_69() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53549,7 +54292,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeEnum8NotDefaultValue_70() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53567,7 +54310,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeEnum8NotDefaultValue_71() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53587,7 +54330,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeEnum8DefaultValue_72() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53605,7 +54348,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeEnum8DefaultValue_73() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53625,7 +54368,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeEnum16DefaultValue_74() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53646,7 +54389,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeEnum16NotDefaultValue_75() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53664,7 +54407,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeEnum16NotDefaultValue_76() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53684,7 +54427,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeEnum16DefaultValue_77() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53702,7 +54445,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeEnum16DefaultValue_78() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53722,7 +54465,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeEpochUsDefaultValue_79() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53743,7 +54486,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeEpochUsNotDefaultValue_80() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53761,7 +54504,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeEpochUsNotDefaultValue_81() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53781,7 +54524,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeEpochUsDefaultValue_82() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53799,7 +54542,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeEpochUsDefaultValue_83() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53819,7 +54562,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeEpochSDefaultValue_84() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53840,7 +54583,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeEpochSNotDefaultValue_85() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53858,7 +54601,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeEpochSNotDefaultValue_86() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53878,7 +54621,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeEpochSDefaultValue_87() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53896,7 +54639,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeEpochSDefaultValue_88() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53916,7 +54659,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeVendorIdDefaultValue_89() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53937,7 +54680,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeVendorIdNotDefaultValue_90() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53955,7 +54698,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeVendorIdNotDefaultValue_91() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53975,7 +54718,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestWriteAttributeVendorIdDefaultValue_92() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -53993,7 +54736,7 @@ class TestSaveAs : public TestCommand CHIP_ERROR TestReadAttributeVendorIdDefaultValue_93() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -54012,10 +54755,154 @@ class TestSaveAs : public TestCommand } }; +class TestConfigVariables : public TestCommand +{ +public: + TestConfigVariables() : TestCommand("TestConfigVariables"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + AddArgument("arg1", 0, UINT8_MAX, &mArg1); + AddArgument("returnValueWithArg1", 0, UINT8_MAX, &mReturnValueWithArg1); + } + + /////////// TestCommand Interface ///////// + void NextTest() override + { + CHIP_ERROR err = CHIP_NO_ERROR; + + if (0 == mTestIndex) + { + ChipLogProgress(chipTool, " **** Test Start: TestConfigVariables\n"); + } + + if (mTestCount == mTestIndex) + { + ChipLogProgress(chipTool, " **** Test Complete: TestConfigVariables\n"); + SetCommandExitStatus(CHIP_NO_ERROR); + return; + } + + Wait(); + + // Ensure we increment mTestIndex before we start running the relevant + // command. That way if we lose the timeslice after we send the message + // but before our function call returns, we won't end up with an + // incorrect mTestIndex value observed when we get the response. + switch (mTestIndex++) + { + case 0: + ChipLogProgress(chipTool, " ***** Test Step 0 : Wait for the commissioned device to be retrieved\n"); + err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); + break; + case 1: + ChipLogProgress(chipTool, " ***** Test Step 1 : Send Test Add Arguments Command\n"); + err = TestSendTestAddArgumentsCommand_1(); + break; + case 2: + ChipLogProgress(chipTool, " ***** Test Step 2 : Send Test Add Arguments Command\n"); + err = TestSendTestAddArgumentsCommand_2(); + break; + } + + if (CHIP_NO_ERROR != err) + { + ChipLogError(chipTool, " ***** Test Failure: %s\n", chip::ErrorStr(err)); + SetCommandExitStatus(err); + } + } + +private: + std::atomic_uint16_t mTestIndex; + const uint16_t mTestCount = 3; + + chip::Optional mCluster; + chip::Optional mEndpoint; + chip::Optional mArg1; + chip::Optional mReturnValueWithArg1; + + uint8_t TestAddArgumentDefaultValue; + + // + // Tests methods + // + + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() + { + SetIdentity(kIdentityAlpha); + return WaitForCommissionee(); + } + + CHIP_ERROR TestSendTestAddArgumentsCommand_1() + { + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; + using RequestType = chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type; + + RequestType request; + request.arg1 = 3; + request.arg2 = 17; + + auto success = [](void * context, const typename RequestType::ResponseType & data) { + (static_cast(context))->OnSuccessResponse_1(data.returnValue); + }; + + auto failure = [](void * context, EmberAfStatus status) { + (static_cast(context))->OnFailureResponse_1(status); + }; + + ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + + void OnSuccessResponse_1(uint8_t returnValue) + { + VerifyOrReturn(CheckValue("returnValue", returnValue, 20)); + + TestAddArgumentDefaultValue = returnValue; + NextTest(); + } + + CHIP_ERROR TestSendTestAddArgumentsCommand_2() + { + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; + using RequestType = chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type; + + RequestType request; + request.arg1 = mArg1.HasValue() ? mArg1.Value() : 5; + request.arg2 = TestAddArgumentDefaultValue; + + auto success = [](void * context, const typename RequestType::ResponseType & data) { + (static_cast(context))->OnSuccessResponse_2(data.returnValue); + }; + + auto failure = [](void * context, EmberAfStatus status) { + (static_cast(context))->OnFailureResponse_2(status); + }; + + ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + + void OnSuccessResponse_2(uint8_t returnValue) + { + VerifyOrReturn(CheckValue("returnValue", returnValue, mReturnValueWithArg1.HasValue() ? mReturnValueWithArg1.Value() : 25)); + + NextTest(); + } +}; + class TestDescriptorCluster : public TestCommand { public: - TestDescriptorCluster() : TestCommand("TestDescriptorCluster"), mTestIndex(0) {} + TestDescriptorCluster() : TestCommand("TestDescriptorCluster"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -54075,6 +54962,9 @@ class TestDescriptorCluster : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 5; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -54129,7 +55019,7 @@ class TestDescriptorCluster : public TestCommand CHIP_ERROR TestReadAttributeDeviceList_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::DescriptorClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -54154,7 +55044,7 @@ class TestDescriptorCluster : public TestCommand CHIP_ERROR TestReadAttributeServerList_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::DescriptorClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -54221,7 +55111,7 @@ class TestDescriptorCluster : public TestCommand CHIP_ERROR TestReadAttributeClientList_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::DescriptorClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -54242,7 +55132,7 @@ class TestDescriptorCluster : public TestCommand CHIP_ERROR TestReadAttributePartsList_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::DescriptorClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -54269,7 +55159,11 @@ class TestDescriptorCluster : public TestCommand class TestBasicInformation : public TestCommand { public: - TestBasicInformation() : TestCommand("TestBasicInformation"), mTestIndex(0) {} + TestBasicInformation() : TestCommand("TestBasicInformation"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -54333,6 +55227,9 @@ class TestBasicInformation : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 6; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -54389,7 +55286,7 @@ class TestBasicInformation : public TestCommand CHIP_ERROR TestReadLocation_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -54409,7 +55306,7 @@ class TestBasicInformation : public TestCommand CHIP_ERROR TestWriteLocation_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -54427,7 +55324,7 @@ class TestBasicInformation : public TestCommand CHIP_ERROR TestReadBackLocation_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -54447,7 +55344,7 @@ class TestBasicInformation : public TestCommand CHIP_ERROR TestRestoreInitialLocationValue_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -54465,7 +55362,7 @@ class TestBasicInformation : public TestCommand CHIP_ERROR TestReadAttributeListValue_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -54530,7 +55427,11 @@ class TestBasicInformation : public TestCommand class TestIdentifyCluster : public TestCommand { public: - TestIdentifyCluster() : TestCommand("TestIdentifyCluster"), mTestIndex(0) {} + TestIdentifyCluster() : TestCommand("TestIdentifyCluster"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -54578,6 +55479,9 @@ class TestIdentifyCluster : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 2; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -54590,7 +55494,7 @@ class TestIdentifyCluster : public TestCommand CHIP_ERROR TestSendIdentifyCommandAndExpectSuccessResponse_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; using RequestType = chip::app::Clusters::Identify::Commands::Identify::Type; RequestType request; @@ -54616,7 +55520,11 @@ class TestIdentifyCluster : public TestCommand class TestGroupsCluster : public TestCommand { public: - TestGroupsCluster() : TestCommand("TestGroupsCluster"), mTestIndex(0) {} + TestGroupsCluster() : TestCommand("TestGroupsCluster"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -54764,6 +55672,9 @@ class TestGroupsCluster : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 27; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -54776,7 +55687,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestViewGroup0Invalid_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; RequestType request; @@ -54807,7 +55718,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestViewGroup1NotFound_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; RequestType request; @@ -54838,7 +55749,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestAddGroup1New_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::AddGroup::Type; RequestType request; @@ -54870,7 +55781,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestViewGroup1New_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; RequestType request; @@ -54903,7 +55814,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestViewGroup2NotFound_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; RequestType request; @@ -54934,7 +55845,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestGetGroupMembership1All_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::GetGroupMembership::Type; RequestType request; @@ -54969,7 +55880,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestAddGroup2New_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::AddGroup::Type; RequestType request; @@ -55001,7 +55912,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestViewGroup2New_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; RequestType request; @@ -55034,7 +55945,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestViewGroup3NotFound_9() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; RequestType request; @@ -55065,7 +55976,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestAddGroup3New_10() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::AddGroup::Type; RequestType request; @@ -55097,7 +56008,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestViewGroup1Existing_11() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; RequestType request; @@ -55130,7 +56041,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestViewGroup2Existing_12() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; RequestType request; @@ -55163,7 +56074,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestGetGroupMembership2_13() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::GetGroupMembership::Type; RequestType request; @@ -55202,7 +56113,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestViewGroup3New_14() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; RequestType request; @@ -55235,7 +56146,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestRemoveGroup0Invalid_15() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::RemoveGroup::Type; RequestType request; @@ -55266,7 +56177,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestRemoveGroup4NotFound_16() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::RemoveGroup::Type; RequestType request; @@ -55297,7 +56208,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestRemoveGroup2Existing_17() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::RemoveGroup::Type; RequestType request; @@ -55328,7 +56239,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestViewGroup1NotRemoved_18() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; RequestType request; @@ -55361,7 +56272,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestViewGroup2Removed_19() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; RequestType request; @@ -55392,7 +56303,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestViewGroup3NotRemoved_20() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; RequestType request; @@ -55425,7 +56336,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestGetGroupMembership3_21() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::GetGroupMembership::Type; RequestType request; @@ -55465,7 +56376,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestRemoveAll_22() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::RemoveAllGroups::Type; RequestType request; @@ -55488,7 +56399,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestViewGroup1Removed_23() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; RequestType request; @@ -55519,7 +56430,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestViewGroup2StillRemoved_24() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; RequestType request; @@ -55550,7 +56461,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestViewGroup3Removed_25() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; RequestType request; @@ -55581,7 +56492,7 @@ class TestGroupsCluster : public TestCommand CHIP_ERROR TestGetGroupMembership4_26() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::GetGroupMembership::Type; RequestType request; @@ -55622,7 +56533,11 @@ class TestGroupsCluster : public TestCommand class TestOperationalCredentialsCluster : public TestCommand { public: - TestOperationalCredentialsCluster() : TestCommand("TestOperationalCredentialsCluster"), mTestIndex(0) {} + TestOperationalCredentialsCluster() : TestCommand("TestOperationalCredentialsCluster"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -55678,6 +56593,9 @@ class TestOperationalCredentialsCluster : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 4; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -55720,7 +56638,7 @@ class TestOperationalCredentialsCluster : public TestCommand CHIP_ERROR TestReadNumberOfSupportedFabrics_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::OperationalCredentialsClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -55742,7 +56660,7 @@ class TestOperationalCredentialsCluster : public TestCommand CHIP_ERROR TestReadNumberOfCommissionedFabrics_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::OperationalCredentialsClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -55764,7 +56682,7 @@ class TestOperationalCredentialsCluster : public TestCommand CHIP_ERROR TestReadCurrentFabricIndex_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::OperationalCredentialsClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -55788,7 +56706,11 @@ class TestOperationalCredentialsCluster : public TestCommand class TestModeSelectCluster : public TestCommand { public: - TestModeSelectCluster() : TestCommand("TestModeSelectCluster"), mTestIndex(0) {} + TestModeSelectCluster() : TestCommand("TestModeSelectCluster"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -55864,6 +56786,9 @@ class TestModeSelectCluster : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 9; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -55939,7 +56864,7 @@ class TestModeSelectCluster : public TestCommand CHIP_ERROR TestReadCurrentMode_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ModeSelectClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -55959,7 +56884,7 @@ class TestModeSelectCluster : public TestCommand CHIP_ERROR TestReadOnMode_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ModeSelectClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -55979,7 +56904,7 @@ class TestModeSelectCluster : public TestCommand CHIP_ERROR TestReadStartUpMode_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ModeSelectClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -55999,7 +56924,7 @@ class TestModeSelectCluster : public TestCommand CHIP_ERROR TestReadDescription_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ModeSelectClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -56019,7 +56944,7 @@ class TestModeSelectCluster : public TestCommand CHIP_ERROR TestReadSupportedModes_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ModeSelectClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -56054,7 +56979,7 @@ class TestModeSelectCluster : public TestCommand CHIP_ERROR TestChangeToSupportedMode_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ModeSelect::Commands::ChangeToMode::Type; RequestType request; @@ -56078,7 +57003,7 @@ class TestModeSelectCluster : public TestCommand CHIP_ERROR TestVerifyCurrentModeChange_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::ModeSelectClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -56098,7 +57023,7 @@ class TestModeSelectCluster : public TestCommand CHIP_ERROR TestChangeToUnsupportedMode_8() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::ModeSelect::Commands::ChangeToMode::Type; RequestType request; @@ -56128,7 +57053,11 @@ class TestModeSelectCluster : public TestCommand class TestGroupMessaging : public TestCommand { public: - TestGroupMessaging() : TestCommand("TestGroupMessaging"), mTestIndex(0) {} + TestGroupMessaging() : TestCommand("TestGroupMessaging"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -56188,6 +57117,9 @@ class TestGroupMessaging : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 5; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnDoneCallback_1(void * context) { (static_cast(context))->OnDoneResponse_1(); } static void OnFailureCallback_1(void * context, EmberAfStatus status) @@ -56258,7 +57190,7 @@ class TestGroupMessaging : public TestCommand CHIP_ERROR TestReadBackAttribute_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -56298,7 +57230,7 @@ class TestGroupMessaging : public TestCommand CHIP_ERROR TestReadBackAttribute_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -56320,7 +57252,11 @@ class TestGroupMessaging : public TestCommand class Test_TC_DIAGSW_1_1 : public TestCommand { public: - Test_TC_DIAGSW_1_1() : TestCommand("Test_TC_DIAGSW_1_1"), mTestIndex(0) {} + Test_TC_DIAGSW_1_1() : TestCommand("Test_TC_DIAGSW_1_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -56377,6 +57313,9 @@ class Test_TC_DIAGSW_1_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 4; + chip::Optional mCluster; + chip::Optional mEndpoint; + static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); @@ -56419,7 +57358,7 @@ class Test_TC_DIAGSW_1_1 : public TestCommand CHIP_ERROR TestReadsCurrentHeapFreeNonGlobalAttributeValueFromDut_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::SoftwareDiagnosticsClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -56442,7 +57381,7 @@ class Test_TC_DIAGSW_1_1 : public TestCommand CHIP_ERROR TestReadsCurrentHeapUsedNonGlobalAttributeValueFromDut_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::SoftwareDiagnosticsClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -56465,7 +57404,7 @@ class Test_TC_DIAGSW_1_1 : public TestCommand CHIP_ERROR TestReadsCurrentHeapHighWaterMarkNonGlobalAttributeValueFromDut_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::SoftwareDiagnosticsClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -56491,7 +57430,11 @@ class Test_TC_DIAGSW_1_1 : public TestCommand class Test_TC_DIAGSW_2_1 : public TestCommand { public: - Test_TC_DIAGSW_2_1() : TestCommand("Test_TC_DIAGSW_2_1"), mTestIndex(0) {} + Test_TC_DIAGSW_2_1() : TestCommand("Test_TC_DIAGSW_2_1"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -56531,6 +57474,9 @@ class Test_TC_DIAGSW_2_1 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 0; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -56539,7 +57485,11 @@ class Test_TC_DIAGSW_2_1 : public TestCommand class Test_TC_DIAGSW_3_2 : public TestCommand { public: - Test_TC_DIAGSW_3_2() : TestCommand("Test_TC_DIAGSW_3_2"), mTestIndex(0) {} + Test_TC_DIAGSW_3_2() : TestCommand("Test_TC_DIAGSW_3_2"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -56583,6 +57533,9 @@ class Test_TC_DIAGSW_3_2 : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 1; + chip::Optional mCluster; + chip::Optional mEndpoint; + // // Tests methods // @@ -56597,7 +57550,11 @@ class Test_TC_DIAGSW_3_2 : public TestCommand class TestSubscribe_OnOff : public TestCommand { public: - TestSubscribe_OnOff() : TestCommand("TestSubscribe_OnOff"), mTestIndex(0) {} + TestSubscribe_OnOff() : TestCommand("TestSubscribe_OnOff"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } /////////// TestCommand Interface ///////// void NextTest() override @@ -56669,6 +57626,9 @@ class TestSubscribe_OnOff : public TestCommand std::atomic_uint16_t mTestIndex; const uint16_t mTestCount = 8; + chip::Optional mCluster; + chip::Optional mEndpoint; + typedef void (*Test_TestSubscribe_OnOff_OnOff_ReportCallback)(void * context, bool value); Test_TestSubscribe_OnOff_OnOff_ReportCallback mTest_TestSubscribe_OnOff_OnOff_Reported = nullptr; @@ -56735,7 +57695,7 @@ class TestSubscribe_OnOff : public TestCommand CHIP_ERROR TestSetOnOffAttributeToFalse_1() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -56758,7 +57718,7 @@ class TestSubscribe_OnOff : public TestCommand CHIP_ERROR TestReportSubscribeOnOffAttribute_2() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -56777,7 +57737,7 @@ class TestSubscribe_OnOff : public TestCommand CHIP_ERROR TestSubscribeOnOffAttribute_3() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -56811,7 +57771,7 @@ class TestSubscribe_OnOff : public TestCommand CHIP_ERROR TestTurnOnTheLightToSeeAttributeChange_4() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; RequestType request; @@ -56834,7 +57794,7 @@ class TestSubscribe_OnOff : public TestCommand CHIP_ERROR TestCheckForAttributeReport_5() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -56855,7 +57815,7 @@ class TestSubscribe_OnOff : public TestCommand CHIP_ERROR TestTurnOffTheLightToSeeAttributeChange_6() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; RequestType request; @@ -56878,7 +57838,7 @@ class TestSubscribe_OnOff : public TestCommand CHIP_ERROR TestCheckForAttributeReport_7() { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); @@ -57010,6 +57970,7 @@ void registerCommandsTests(Commands & commands) make_unique(), make_unique(), make_unique(), + make_unique(), make_unique(), make_unique(), make_unique(),