From c7c8440eeb1b5fae1483e99af0f56f4e32649858 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas Date: Wed, 1 Dec 2021 12:36:44 +0100 Subject: [PATCH] [YAML] Update TestCommand.cpp so it does not automatically wait for the device to be retrieved but do it conditionally if WaitForCommissionee is used in the test (#11833) * Update TestCommand.cpp so it does not automatically wait for the device to be retrieved but do it conditionally if WaitForCommissionee is used in the test * Update the tests to use the WaitForCommissionee step * [Darwin] Add WaitForCommissionee support in tests * Update generated tests code --- .../chip-tool/commands/tests/TestCommand.cpp | 16 +- .../tests/suites/TV_AccountLoginCluster.yaml | 4 + .../suites/TV_ApplicationBasicCluster.yaml | 4 + .../suites/TV_ApplicationLauncherCluster.yaml | 4 + .../tests/suites/TV_AudioOutputCluster.yaml | 4 + .../tests/suites/TV_KeypadInputCluster.yaml | 4 + src/app/tests/suites/TV_LowPowerCluster.yaml | 4 + .../tests/suites/TV_MediaInputCluster.yaml | 4 + .../tests/suites/TV_MediaPlaybackCluster.yaml | 4 + .../suites/TV_TargetNavigatorCluster.yaml | 4 + src/app/tests/suites/TV_TvChannelCluster.yaml | 4 + src/app/tests/suites/TV_WakeOnLanCluster.yaml | 4 + .../tests/suites/TestBasicInformation.yaml | 4 + src/app/tests/suites/TestCluster.yaml | 4 + .../tests/suites/TestClusterComplexTypes.yaml | 4 + src/app/tests/suites/TestConstraints.yaml | 4 + src/app/tests/suites/TestDelayCommands.yaml | 4 + .../tests/suites/TestDescriptorCluster.yaml | 4 + src/app/tests/suites/TestGroupMessaging.yaml | 4 + src/app/tests/suites/TestGroupsCluster.yaml | 4 + src/app/tests/suites/TestIdentifyCluster.yaml | 4 + src/app/tests/suites/TestLogCommands.yaml | 4 + .../tests/suites/TestModeSelectCluster.yaml | 4 + .../TestOperationalCredentialsCluster.yaml | 4 + src/app/tests/suites/TestSaveAs.yaml | 4 + src/app/tests/suites/TestSubscribe_OnOff.yaml | 4 + .../suites/certification/Test_TC_BI_1_1.yaml | 4 + .../suites/certification/Test_TC_BI_2_1.yaml | 4 + .../suites/certification/Test_TC_BI_2_2.yaml | 4 + .../certification/Test_TC_BOOL_1_1.yaml | 4 + .../certification/Test_TC_BOOL_2_1.yaml | 4 + .../suites/certification/Test_TC_CC_1_1.yaml | 4 + .../suites/certification/Test_TC_CC_2_1.yaml | 4 + .../suites/certification/Test_TC_CC_3_1.yaml | 4 + .../suites/certification/Test_TC_CC_3_2.yaml | 4 + .../suites/certification/Test_TC_CC_3_3.yaml | 4 + .../suites/certification/Test_TC_CC_4_1.yaml | 4 + .../suites/certification/Test_TC_CC_4_2.yaml | 4 + .../suites/certification/Test_TC_CC_4_3.yaml | 4 + .../suites/certification/Test_TC_CC_4_4.yaml | 4 + .../suites/certification/Test_TC_CC_5_1.yaml | 4 + .../suites/certification/Test_TC_CC_5_2.yaml | 4 + .../suites/certification/Test_TC_CC_5_3.yaml | 4 + .../suites/certification/Test_TC_CC_6_1.yaml | 4 + .../suites/certification/Test_TC_CC_6_2.yaml | 4 + .../suites/certification/Test_TC_CC_6_3.yaml | 4 + .../suites/certification/Test_TC_CC_7_1.yaml | 4 + .../suites/certification/Test_TC_CC_7_2.yaml | 4 + .../suites/certification/Test_TC_CC_7_3.yaml | 4 + .../suites/certification/Test_TC_CC_7_4.yaml | 4 + .../suites/certification/Test_TC_CC_8_1.yaml | 4 + .../suites/certification/Test_TC_CC_9_1.yaml | 4 + .../suites/certification/Test_TC_CC_9_2.yaml | 4 + .../suites/certification/Test_TC_CC_9_3.yaml | 4 + .../certification/Test_TC_DIAGSW_1_1.yaml | 4 + .../certification/Test_TC_DIAGSW_3_2.yaml | 4 + .../certification/Test_TC_DIAGTH_1_1.yaml | 4 + .../suites/certification/Test_TC_DM_1_1.yaml | 4 + .../suites/certification/Test_TC_DM_2_2.yaml | 4 + .../suites/certification/Test_TC_DM_3_1.yaml | 4 + .../suites/certification/Test_TC_EMR_1_1.yaml | 4 + .../suites/certification/Test_TC_FLW_1_1.yaml | 4 + .../suites/certification/Test_TC_FLW_2_1.yaml | 4 + .../suites/certification/Test_TC_FLW_2_2.yaml | 4 + .../suites/certification/Test_TC_ILL_1_1.yaml | 4 + .../suites/certification/Test_TC_LVL_1_1.yaml | 4 + .../suites/certification/Test_TC_LVL_2_1.yaml | 4 + .../suites/certification/Test_TC_LVL_3_1.yaml | 4 + .../suites/certification/Test_TC_LVL_4_1.yaml | 4 + .../suites/certification/Test_TC_LVL_5_1.yaml | 4 + .../suites/certification/Test_TC_MC_1_1.yaml | 4 + .../suites/certification/Test_TC_MC_2_1.yaml | 4 + .../suites/certification/Test_TC_MC_3_1.yaml | 4 + .../suites/certification/Test_TC_MC_3_10.yaml | 4 + .../suites/certification/Test_TC_MC_3_11.yaml | 4 + .../suites/certification/Test_TC_MC_3_2.yaml | 4 + .../suites/certification/Test_TC_MC_3_3.yaml | 4 + .../suites/certification/Test_TC_MC_3_4.yaml | 4 + .../suites/certification/Test_TC_MC_3_5.yaml | 4 + .../suites/certification/Test_TC_MC_3_6.yaml | 4 + .../suites/certification/Test_TC_MC_3_7.yaml | 4 + .../suites/certification/Test_TC_MC_3_8.yaml | 4 + .../suites/certification/Test_TC_MC_3_9.yaml | 4 + .../suites/certification/Test_TC_OCC_1_1.yaml | 4 + .../suites/certification/Test_TC_OCC_2_1.yaml | 4 + .../suites/certification/Test_TC_OCC_2_2.yaml | 4 + .../suites/certification/Test_TC_OO_1_1.yaml | 8 + .../suites/certification/Test_TC_OO_2_1.yaml | 4 + .../suites/certification/Test_TC_OO_2_2.yaml | 4 + .../suites/certification/Test_TC_OO_2_3.yaml | 4 + .../suites/certification/Test_TC_PCC_1_1.yaml | 4 + .../suites/certification/Test_TC_PCC_2_1.yaml | 4 + .../suites/certification/Test_TC_PCC_2_2.yaml | 4 + .../suites/certification/Test_TC_PCC_2_3.yaml | 4 + .../suites/certification/Test_TC_PRS_1_1.yaml | 4 + .../suites/certification/Test_TC_PRS_2_1.yaml | 4 + .../suites/certification/Test_TC_RH_1_1.yaml | 4 + .../suites/certification/Test_TC_RH_2_1.yaml | 4 + .../suites/certification/Test_TC_RH_2_2.yaml | 4 + .../suites/certification/Test_TC_TM_1_1.yaml | 4 + .../suites/certification/Test_TC_TM_2_1.yaml | 4 + .../suites/certification/Test_TC_TM_2_2.yaml | 4 + .../certification/Test_TC_TSTAT_1_1.yaml | 4 + .../certification/Test_TC_TSTAT_2_1.yaml | 4 + .../certification/Test_TC_TSTAT_2_2.yaml | 4 + .../certification/Test_TC_TSUIC_1_1.yaml | 4 + .../certification/Test_TC_TSUIC_2_1.yaml | 4 + .../certification/Test_TC_TSUIC_2_2.yaml | 4 + .../certification/Test_TC_WNCV_1_1.yaml | 4 + .../certification/Test_TC_WNCV_2_1.yaml | 4 + .../certification/Test_TC_WNCV_2_2.yaml | 4 + .../certification/Test_TC_WNCV_2_4.yaml | 4 + .../certification/Test_TC_WNCV_2_5.yaml | 4 + .../certification/Test_TC_WNCV_3_1.yaml | 4 + .../certification/Test_TC_WNCV_3_2.yaml | 4 + .../certification/Test_TC_WNCV_3_3.yaml | 4 + .../simulated-clusters/TestDelayCommands.js | 13 +- .../CHIP/templates/clusters-tests.zapt | 49 +- .../Framework/CHIPTests/CHIPClustersTests.m | 8449 ++++-- .../chip-tool/zap-generated/test/Commands.h | 22174 ++++++++-------- 120 files changed, 17962 insertions(+), 13203 deletions(-) diff --git a/examples/chip-tool/commands/tests/TestCommand.cpp b/examples/chip-tool/commands/tests/TestCommand.cpp index d1c17636ce9572..b5224859b3941d 100644 --- a/examples/chip-tool/commands/tests/TestCommand.cpp +++ b/examples/chip-tool/commands/tests/TestCommand.cpp @@ -19,6 +19,18 @@ #include "TestCommand.h" CHIP_ERROR TestCommand::RunCommand() +{ + if (mPICSFilePath.HasValue()) + { + PICS.SetValue(PICSBooleanReader::Read(mPICSFilePath.Value())); + } + + NextTest(); + + return CHIP_NO_ERROR; +} + +CHIP_ERROR TestCommand::WaitForCommissionee() { return CurrentCommissioner().GetConnectedDevice(mNodeId, &mOnDeviceConnectedCallback, &mOnDeviceConnectionFailureCallback); } @@ -30,10 +42,6 @@ void TestCommand::OnDeviceConnectedFn(void * context, chip::OperationalDevicePro VerifyOrReturn(command != nullptr, ChipLogError(chipTool, "Device connected, but cannot run the test, as the context is null")); command->mDevice = device; - if (command->mPICSFilePath.HasValue()) - { - command->PICS.SetValue(PICSBooleanReader::Read(command->mPICSFilePath.Value())); - } command->NextTest(); } diff --git a/src/app/tests/suites/TV_AccountLoginCluster.yaml b/src/app/tests/suites/TV_AccountLoginCluster.yaml index a713295169922b..a4152e99c97402 100644 --- a/src/app/tests/suites/TV_AccountLoginCluster.yaml +++ b/src/app/tests/suites/TV_AccountLoginCluster.yaml @@ -19,6 +19,10 @@ config: endpoint: 3 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Get Setup PIN Command" command: "GetSetupPIN" arguments: diff --git a/src/app/tests/suites/TV_ApplicationBasicCluster.yaml b/src/app/tests/suites/TV_ApplicationBasicCluster.yaml index c3d6401e291174..3f1f3ec91ed178 100644 --- a/src/app/tests/suites/TV_ApplicationBasicCluster.yaml +++ b/src/app/tests/suites/TV_ApplicationBasicCluster.yaml @@ -19,6 +19,10 @@ config: endpoint: 3 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Change Status Command" command: "ChangeStatus" arguments: diff --git a/src/app/tests/suites/TV_ApplicationLauncherCluster.yaml b/src/app/tests/suites/TV_ApplicationLauncherCluster.yaml index 27c795a7a648e6..650110790d2c97 100644 --- a/src/app/tests/suites/TV_ApplicationLauncherCluster.yaml +++ b/src/app/tests/suites/TV_ApplicationLauncherCluster.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Read attribute Application Launcher list" command: "readAttribute" attribute: "Application Launcher List" diff --git a/src/app/tests/suites/TV_AudioOutputCluster.yaml b/src/app/tests/suites/TV_AudioOutputCluster.yaml index 642f02b61485b8..83a892eef632ab 100644 --- a/src/app/tests/suites/TV_AudioOutputCluster.yaml +++ b/src/app/tests/suites/TV_AudioOutputCluster.yaml @@ -19,6 +19,10 @@ config: endpoint: 2 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Read attribute Audio Output list" command: "readAttribute" attribute: "Audio Output List" diff --git a/src/app/tests/suites/TV_KeypadInputCluster.yaml b/src/app/tests/suites/TV_KeypadInputCluster.yaml index bddf3002db8819..4cfa2ba3c7b489 100644 --- a/src/app/tests/suites/TV_KeypadInputCluster.yaml +++ b/src/app/tests/suites/TV_KeypadInputCluster.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Send Key Command" command: "SendKey" arguments: diff --git a/src/app/tests/suites/TV_LowPowerCluster.yaml b/src/app/tests/suites/TV_LowPowerCluster.yaml index a100c7293cfea4..f14c9d47c6a713 100644 --- a/src/app/tests/suites/TV_LowPowerCluster.yaml +++ b/src/app/tests/suites/TV_LowPowerCluster.yaml @@ -19,5 +19,9 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Sleep Input Status Command" command: "Sleep" diff --git a/src/app/tests/suites/TV_MediaInputCluster.yaml b/src/app/tests/suites/TV_MediaInputCluster.yaml index fe7fe12e9a44ce..c98a675c7bfda3 100644 --- a/src/app/tests/suites/TV_MediaInputCluster.yaml +++ b/src/app/tests/suites/TV_MediaInputCluster.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Read attribute media input list" command: "readAttribute" attribute: "media input list" diff --git a/src/app/tests/suites/TV_MediaPlaybackCluster.yaml b/src/app/tests/suites/TV_MediaPlaybackCluster.yaml index 6607a3f21abea5..02353ed177354a 100644 --- a/src/app/tests/suites/TV_MediaPlaybackCluster.yaml +++ b/src/app/tests/suites/TV_MediaPlaybackCluster.yaml @@ -19,6 +19,10 @@ config: endpoint: 3 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Media Playback Play Command" command: "MediaPlay" response: diff --git a/src/app/tests/suites/TV_TargetNavigatorCluster.yaml b/src/app/tests/suites/TV_TargetNavigatorCluster.yaml index 045f4093c978d3..79e4665cc1df61 100644 --- a/src/app/tests/suites/TV_TargetNavigatorCluster.yaml +++ b/src/app/tests/suites/TV_TargetNavigatorCluster.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Read attribute Target Navigator list" command: "readAttribute" attribute: "Target Navigator List" diff --git a/src/app/tests/suites/TV_TvChannelCluster.yaml b/src/app/tests/suites/TV_TvChannelCluster.yaml index 289fb04de607d7..3caaae4ba93ad6 100644 --- a/src/app/tests/suites/TV_TvChannelCluster.yaml +++ b/src/app/tests/suites/TV_TvChannelCluster.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Read attribute TV Channel list" command: "readAttribute" attribute: "TV Channel list" diff --git a/src/app/tests/suites/TV_WakeOnLanCluster.yaml b/src/app/tests/suites/TV_WakeOnLanCluster.yaml index 04dad94731ef55..8ff550c752d46d 100644 --- a/src/app/tests/suites/TV_WakeOnLanCluster.yaml +++ b/src/app/tests/suites/TV_WakeOnLanCluster.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Read mac address" command: "readAttribute" attribute: "wake on lan mac address" diff --git a/src/app/tests/suites/TestBasicInformation.yaml b/src/app/tests/suites/TestBasicInformation.yaml index d1cc8e38ffc056..e964cb8c09cd4b 100644 --- a/src/app/tests/suites/TestBasicInformation.yaml +++ b/src/app/tests/suites/TestBasicInformation.yaml @@ -19,6 +19,10 @@ config: endpoint: 0 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Read location" command: "readAttribute" attribute: "location" diff --git a/src/app/tests/suites/TestCluster.yaml b/src/app/tests/suites/TestCluster.yaml index 6f0e588ecaae8f..f2e96583106049 100644 --- a/src/app/tests/suites/TestCluster.yaml +++ b/src/app/tests/suites/TestCluster.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Send Test Command" command: "test" diff --git a/src/app/tests/suites/TestClusterComplexTypes.yaml b/src/app/tests/suites/TestClusterComplexTypes.yaml index 440f80eebf1ecb..31afc12ba94677 100644 --- a/src/app/tests/suites/TestClusterComplexTypes.yaml +++ b/src/app/tests/suites/TestClusterComplexTypes.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Send Test Command with optional arg set to null." # Not in TestCluster.yaml for now because this test depends on # distinguishing "null" and "not sent" for a nullable+optional diff --git a/src/app/tests/suites/TestConstraints.yaml b/src/app/tests/suites/TestConstraints.yaml index e8234346f28b69..017d41a3b79b6c 100644 --- a/src/app/tests/suites/TestConstraints.yaml +++ b/src/app/tests/suites/TestConstraints.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + # Tests for INT32U attribute - label: "Write attribute INT32U Value" diff --git a/src/app/tests/suites/TestDelayCommands.yaml b/src/app/tests/suites/TestDelayCommands.yaml index b3f7839bdc93f3..9f1983fa88faad 100644 --- a/src/app/tests/suites/TestDelayCommands.yaml +++ b/src/app/tests/suites/TestDelayCommands.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Wait 100ms" cluster: "DelayCommands" command: "WaitForMs" diff --git a/src/app/tests/suites/TestDescriptorCluster.yaml b/src/app/tests/suites/TestDescriptorCluster.yaml index 3bb07a4c061a95..ec787d928d6802 100644 --- a/src/app/tests/suites/TestDescriptorCluster.yaml +++ b/src/app/tests/suites/TestDescriptorCluster.yaml @@ -19,6 +19,10 @@ config: endpoint: 0 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Read attribute Device list" command: "readAttribute" attribute: "Device List" diff --git a/src/app/tests/suites/TestGroupMessaging.yaml b/src/app/tests/suites/TestGroupMessaging.yaml index bb41572895f8c7..d80d32ebffc1ef 100644 --- a/src/app/tests/suites/TestGroupMessaging.yaml +++ b/src/app/tests/suites/TestGroupMessaging.yaml @@ -19,6 +19,10 @@ config: endpoint: 0 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + #TODO : Add Group membership command when implemented Issue #11077 # - label: "Add device to Group" # command: "TODO" diff --git a/src/app/tests/suites/TestGroupsCluster.yaml b/src/app/tests/suites/TestGroupsCluster.yaml index 678b7378761093..3293eb68806366 100644 --- a/src/app/tests/suites/TestGroupsCluster.yaml +++ b/src/app/tests/suites/TestGroupsCluster.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "View Group 0 (invalid)" command: "ViewGroup" arguments: diff --git a/src/app/tests/suites/TestIdentifyCluster.yaml b/src/app/tests/suites/TestIdentifyCluster.yaml index 883cd7fb6794a6..df27936293b4af 100644 --- a/src/app/tests/suites/TestIdentifyCluster.yaml +++ b/src/app/tests/suites/TestIdentifyCluster.yaml @@ -19,6 +19,10 @@ config: endpoint: 0 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Send Identify command and expect success response" command: "identify" arguments: diff --git a/src/app/tests/suites/TestLogCommands.yaml b/src/app/tests/suites/TestLogCommands.yaml index fa4acd47c2d12c..60e3cd7093f0dc 100644 --- a/src/app/tests/suites/TestLogCommands.yaml +++ b/src/app/tests/suites/TestLogCommands.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Log a simple message" cluster: "LogCommands" command: "Log" diff --git a/src/app/tests/suites/TestModeSelectCluster.yaml b/src/app/tests/suites/TestModeSelectCluster.yaml index 238cadd7b28f7c..65be9d48aa64a6 100644 --- a/src/app/tests/suites/TestModeSelectCluster.yaml +++ b/src/app/tests/suites/TestModeSelectCluster.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Read CurrentMode" command: "readAttribute" attribute: "CurrentMode" diff --git a/src/app/tests/suites/TestOperationalCredentialsCluster.yaml b/src/app/tests/suites/TestOperationalCredentialsCluster.yaml index dc290f8f16ccff..fd3563b7db1531 100644 --- a/src/app/tests/suites/TestOperationalCredentialsCluster.yaml +++ b/src/app/tests/suites/TestOperationalCredentialsCluster.yaml @@ -19,6 +19,10 @@ config: endpoint: 0 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Read number of supported fabrics" command: "readAttribute" attribute: "SupportedFabrics" diff --git a/src/app/tests/suites/TestSaveAs.yaml b/src/app/tests/suites/TestSaveAs.yaml index 73eb981d34ed76..1ba2e3559ddc0f 100644 --- a/src/app/tests/suites/TestSaveAs.yaml +++ b/src/app/tests/suites/TestSaveAs.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Send Test Add Arguments Command" command: "testAddArguments" arguments: diff --git a/src/app/tests/suites/TestSubscribe_OnOff.yaml b/src/app/tests/suites/TestSubscribe_OnOff.yaml index 1c909418379409..296eab196e7efc 100644 --- a/src/app/tests/suites/TestSubscribe_OnOff.yaml +++ b/src/app/tests/suites/TestSubscribe_OnOff.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Set OnOff Attribute to false" command: "Off" diff --git a/src/app/tests/suites/certification/Test_TC_BI_1_1.yaml b/src/app/tests/suites/certification/Test_TC_BI_1_1.yaml index 624c46b839d4ab..70b1ffd892af39 100644 --- a/src/app/tests/suites/certification/Test_TC_BI_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_BI_1_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the global attribute: ClusterRevision" command: "readAttribute" attribute: "ClusterRevision" diff --git a/src/app/tests/suites/certification/Test_TC_BI_2_1.yaml b/src/app/tests/suites/certification/Test_TC_BI_2_1.yaml index 544c61bf5bb798..0bfd1a5f5e8767 100644 --- a/src/app/tests/suites/certification/Test_TC_BI_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_BI_2_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Read mandatory non-global attribute: OutOfService" command: "readAttribute" attribute: "out of service" diff --git a/src/app/tests/suites/certification/Test_TC_BI_2_2.yaml b/src/app/tests/suites/certification/Test_TC_BI_2_2.yaml index 38b76e30fc9a62..0108f03e085a0e 100644 --- a/src/app/tests/suites/certification/Test_TC_BI_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_BI_2_2.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Reads PresentValue attribute from DUT" command: "readAttribute" attribute: "present value" diff --git a/src/app/tests/suites/certification/Test_TC_BOOL_1_1.yaml b/src/app/tests/suites/certification/Test_TC_BOOL_1_1.yaml index 31b3818ccdf7ed..1089f773962028 100644 --- a/src/app/tests/suites/certification/Test_TC_BOOL_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_BOOL_1_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the global attribute: ClusterRevision" command: "readAttribute" attribute: "ClusterRevision" diff --git a/src/app/tests/suites/certification/Test_TC_BOOL_2_1.yaml b/src/app/tests/suites/certification/Test_TC_BOOL_2_1.yaml index 86901b60b0a639..dfd3b6f986d7b4 100644 --- a/src/app/tests/suites/certification/Test_TC_BOOL_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_BOOL_2_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Read mandatory non-global attribute: StateValue" command: "readAttribute" attribute: "StateValue" diff --git a/src/app/tests/suites/certification/Test_TC_CC_1_1.yaml b/src/app/tests/suites/certification/Test_TC_CC_1_1.yaml index c1828d03fa53a8..82b2091501ba12 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_1_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the global attribute: ClusterRevision" disabled: true command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_CC_2_1.yaml b/src/app/tests/suites/certification/Test_TC_CC_2_1.yaml index 4051073ea3b27f..c90a42b5bb5597 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_2_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Reads mandatory attribute: CurrentHue" command: "readAttribute" attribute: "current hue" diff --git a/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml b/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml index adaf4f5507bd32..a656fc8246b0de 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_3_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Turn on light for color control tests" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_CC_3_2.yaml b/src/app/tests/suites/certification/Test_TC_CC_3_2.yaml index 4d041984abfac7..bf85a6238f32f8 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_3_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_3_2.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Turn on light for color control tests" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_CC_3_3.yaml b/src/app/tests/suites/certification/Test_TC_CC_3_3.yaml index 7a7aeb323ba236..0ee1e43cedb1f7 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_3_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_3_3.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Turn on light for color control tests" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_CC_4_1.yaml b/src/app/tests/suites/certification/Test_TC_CC_4_1.yaml index 7fde6110df1171..c162f181b97ab9 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_4_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_4_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Turn on light for color control tests" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_CC_4_2.yaml b/src/app/tests/suites/certification/Test_TC_CC_4_2.yaml index 067ff74e7ace2d..3e7b8a8e2511a3 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_4_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_4_2.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Turn on light for color control tests" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_CC_4_3.yaml b/src/app/tests/suites/certification/Test_TC_CC_4_3.yaml index 55941c4cc5b5bd..67353151f5a500 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_4_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_4_3.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Turn on light for color control tests" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_CC_4_4.yaml b/src/app/tests/suites/certification/Test_TC_CC_4_4.yaml index f222e8f5575dde..a22f77d6d0cd43 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_4_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_4_4.yaml @@ -20,6 +20,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Turn on light for color control tests" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_CC_5_1.yaml b/src/app/tests/suites/certification/Test_TC_CC_5_1.yaml index 1494c9519c5b61..20ff5bdfdd6bdd 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_5_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_5_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Turn on light for color control tests" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_CC_5_2.yaml b/src/app/tests/suites/certification/Test_TC_CC_5_2.yaml index fcee7edef32ab1..92d94127259042 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_5_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_5_2.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Turn on light for color control tests" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_CC_5_3.yaml b/src/app/tests/suites/certification/Test_TC_CC_5_3.yaml index 917405473806b1..00719c604a6076 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_5_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_5_3.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Turn on light for color control tests" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_CC_6_1.yaml b/src/app/tests/suites/certification/Test_TC_CC_6_1.yaml index 8b99f2c0d77fae..cf8b4ca0845f9c 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_6_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_6_1.yaml @@ -21,6 +21,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Turn on light for color control tests" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_CC_6_2.yaml b/src/app/tests/suites/certification/Test_TC_CC_6_2.yaml index d74d1506a94795..0b64005f24b6ac 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_6_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_6_2.yaml @@ -20,6 +20,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Turn on light for color control tests" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_CC_6_3.yaml b/src/app/tests/suites/certification/Test_TC_CC_6_3.yaml index ba9f0f546689af..b8eae71b4f590d 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_6_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_6_3.yaml @@ -20,6 +20,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Turn on light for color control tests" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_CC_7_1.yaml b/src/app/tests/suites/certification/Test_TC_CC_7_1.yaml index 221d9ef1452421..fe47f18d3e9c12 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_7_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_7_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Turn on light for color control tests" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_CC_7_2.yaml b/src/app/tests/suites/certification/Test_TC_CC_7_2.yaml index b99f17b8d2959c..17b4fc3bc61fe2 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_7_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_7_2.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Turn on light for color control tests" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_CC_7_3.yaml b/src/app/tests/suites/certification/Test_TC_CC_7_3.yaml index 8a8c94ee491893..17bc4a10f12c5f 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_7_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_7_3.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Turn on light for color control tests" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_CC_7_4.yaml b/src/app/tests/suites/certification/Test_TC_CC_7_4.yaml index 4bd9c71b3524cb..dba044d0d29509 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_7_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_7_4.yaml @@ -21,6 +21,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Turn on light for color control tests" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_CC_8_1.yaml b/src/app/tests/suites/certification/Test_TC_CC_8_1.yaml index 8dc94d083d5fa0..eac71c19b0cb3d 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_8_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_8_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Turn on light for color control tests" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_CC_9_1.yaml b/src/app/tests/suites/certification/Test_TC_CC_9_1.yaml index bb191c60cc2d0a..6c6245900cc205 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_9_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_9_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Precondition : Turn on light for color control tests" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_CC_9_2.yaml b/src/app/tests/suites/certification/Test_TC_CC_9_2.yaml index e5198e183ede03..fb97619b694534 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_9_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_9_2.yaml @@ -20,6 +20,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Precondition: Turn on light for color control tests" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_CC_9_3.yaml b/src/app/tests/suites/certification/Test_TC_CC_9_3.yaml index 953810b628a7b6..4a11e7a524d4d5 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_9_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_9_3.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Precondition: Turn on light for color control tests" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_DIAGSW_1_1.yaml b/src/app/tests/suites/certification/Test_TC_DIAGSW_1_1.yaml index 9682dfaad6613c..5b79695ab41dbd 100644 --- a/src/app/tests/suites/certification/Test_TC_DIAGSW_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DIAGSW_1_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + #Issue #11185 Disabled as ThreadMetrics attribute missing - label: "Reads a list of ThreadMetrics struct non-global attribute from DUT." diff --git a/src/app/tests/suites/certification/Test_TC_DIAGSW_3_2.yaml b/src/app/tests/suites/certification/Test_TC_DIAGSW_3_2.yaml index 3764d42123622d..5b1d1f2164ebc7 100644 --- a/src/app/tests/suites/certification/Test_TC_DIAGSW_3_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_DIAGSW_3_2.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + #issue #11578 ResetWatermarks command is Failing - label: "Sends ResetWatermarks to DUT" disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_DIAGTH_1_1.yaml b/src/app/tests/suites/certification/Test_TC_DIAGTH_1_1.yaml index 587de9dd1ee353..6a9869cb127f13 100644 --- a/src/app/tests/suites/certification/Test_TC_DIAGTH_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DIAGTH_1_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 0 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the global attribute: ClusterRevision" command: "readAttribute" attribute: "ClusterRevision" diff --git a/src/app/tests/suites/certification/Test_TC_DM_1_1.yaml b/src/app/tests/suites/certification/Test_TC_DM_1_1.yaml index d5113f36cf7001..fc1dda056f28a8 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_1_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 0 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Query Interaction Model Version" command: "readAttribute" attribute: "InteractionModelVersion" diff --git a/src/app/tests/suites/certification/Test_TC_DM_2_2.yaml b/src/app/tests/suites/certification/Test_TC_DM_2_2.yaml index 2260a43bee3ae2..2f45a63566526d 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_2_2.yaml @@ -19,6 +19,10 @@ config: endpoint: 0 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Query NOCs" command: "readAttribute" # TODO: Enabled and update value when SDK supports this. diff --git a/src/app/tests/suites/certification/Test_TC_DM_3_1.yaml b/src/app/tests/suites/certification/Test_TC_DM_3_1.yaml index 10f4fa343a04f1..9ca7f0c184812d 100644 --- a/src/app/tests/suites/certification/Test_TC_DM_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DM_3_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 0 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Query MaxNetworks" command: "readAttribute" attribute: "MaxNetworks" diff --git a/src/app/tests/suites/certification/Test_TC_EMR_1_1.yaml b/src/app/tests/suites/certification/Test_TC_EMR_1_1.yaml index d61b322f7c199d..ade63388a88833 100644 --- a/src/app/tests/suites/certification/Test_TC_EMR_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_EMR_1_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the global attribute: ClusterRevision" command: "readAttribute" attribute: "ClusterRevision" diff --git a/src/app/tests/suites/certification/Test_TC_FLW_1_1.yaml b/src/app/tests/suites/certification/Test_TC_FLW_1_1.yaml index 918d28cd25459e..68118f2dca26b5 100644 --- a/src/app/tests/suites/certification/Test_TC_FLW_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_FLW_1_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the global attribute: ClusterRevision" command: "readAttribute" disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_FLW_2_1.yaml b/src/app/tests/suites/certification/Test_TC_FLW_2_1.yaml index 513a58f0df4da3..b638a49d218745 100644 --- a/src/app/tests/suites/certification/Test_TC_FLW_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_FLW_2_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the mandatory attribute: MeasuredValue" command: "readAttribute" attribute: "MeasuredValue" diff --git a/src/app/tests/suites/certification/Test_TC_FLW_2_2.yaml b/src/app/tests/suites/certification/Test_TC_FLW_2_2.yaml index 2eac222866cb64..74221a6cb2749f 100644 --- a/src/app/tests/suites/certification/Test_TC_FLW_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_FLW_2_2.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the mandatory attribute: MeasuredValue" command: "readAttribute" attribute: "MeasuredValue" diff --git a/src/app/tests/suites/certification/Test_TC_ILL_1_1.yaml b/src/app/tests/suites/certification/Test_TC_ILL_1_1.yaml index f8180c0503c3f1..4702b9c4cccf0e 100644 --- a/src/app/tests/suites/certification/Test_TC_ILL_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_ILL_1_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the global attribute: ClusterRevision" command: "readAttribute" attribute: "ClusterRevision" diff --git a/src/app/tests/suites/certification/Test_TC_LVL_1_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_1_1.yaml index 27f2f4c707af63..4dfa43011ca16e 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_1_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the global attribute: ClusterRevision" disabled: true command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml index de45188e72fe21..05407ec4697ac9 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "reads current Level attribute from DUT" command: "readAttribute" attribute: "current Level" diff --git a/src/app/tests/suites/certification/Test_TC_LVL_3_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_3_1.yaml index 3fc1821e631d93..246ee1e3515685 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_3_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "reads current level attribute from DUT" command: "readAttribute" attribute: "current level" diff --git a/src/app/tests/suites/certification/Test_TC_LVL_4_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_4_1.yaml index b3e70af3767622..43da0afcf0dcea 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_4_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_4_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Sending on command" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_LVL_5_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_5_1.yaml index a8e58baa0d66e0..7e2cc8b2f28fd2 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_5_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_5_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Sending on command" cluster: "On/Off" command: "on" diff --git a/src/app/tests/suites/certification/Test_TC_MC_1_1.yaml b/src/app/tests/suites/certification/Test_TC_MC_1_1.yaml index f57d7c76555d6f..039e9834a7a3c9 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_1_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the global attribute: ClusterRevision" disabled: true command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_MC_2_1.yaml b/src/app/tests/suites/certification/Test_TC_MC_2_1.yaml index 3d3316b47f18e0..05fc231f891603 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_2_1.yaml @@ -19,5 +19,9 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Put the device into low power mode" command: "Sleep" diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_1.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_1.yaml index e8550620be8920..f6d7aea76115b4 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_3_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Send Select" disabled: true command: "SendKey" diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_10.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_10.yaml index 5bfdfd6c36e9bf..aab6a79e301e0d 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_3_10.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_3_10.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + # TDOD: Enable when SDK supports command - label: "Hide Input Status Command" disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_11.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_11.yaml index 485a6557f974c6..f4cb57463f895c 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_3_11.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_3_11.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + # Remove disable flag when SDK supports command. - label: "Rename Input Command" disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_2.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_2.yaml index ec7fcadb5bc25f..bf057bf86aca68 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_3_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_3_2.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Send RootMenu" disabled: true command: "SendKey" diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_3.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_3.yaml index 98a19b7053b985..25c388a72fc14e 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_3_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_3_3.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Send Numbers1" disabled: true command: "SendKey" diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_4.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_4.yaml index c50d216df7dc94..44bc6020b027dd 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_3_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_3_4.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Send RootMenu" disabled: true command: "SendKey" diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_5.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_5.yaml index 6c4a4cef6d63a5..4f1553697b0ab9 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_3_5.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_3_5.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + # TODO: Need to enable when we can properly verify vendor id and uint16 - label: "Read launch list attribute." disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_6.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_6.yaml index 48542c9e424273..6cf5c5dd1ded60 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_3_6.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_3_6.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + # TODO: Update the corresponding values when feature is supported - label: "Launch an app with the provided a application ID" disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_7.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_7.yaml index 305d8a58dc4e93..c56d5cbcf43185 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_3_7.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_3_7.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + # TODO: Update the corresponding values when feature is supported - label: "Launch an app with the provided a application ID" disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_8.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_8.yaml index 09a29a5bceff69..d49fb51e50fe72 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_3_8.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_3_8.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + # TODO: Enable test and update response value when SDK supports. - label: "Read attribute media input list" disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_MC_3_9.yaml b/src/app/tests/suites/certification/Test_TC_MC_3_9.yaml index 2b287b78c8ac80..5df5e901966186 100644 --- a/src/app/tests/suites/certification/Test_TC_MC_3_9.yaml +++ b/src/app/tests/suites/certification/Test_TC_MC_3_9.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + # Remove disable flag when SDK supports command. - label: "Select Input Command" disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_OCC_1_1.yaml b/src/app/tests/suites/certification/Test_TC_OCC_1_1.yaml index cc92469b06504a..3fd6cd4e728c26 100644 --- a/src/app/tests/suites/certification/Test_TC_OCC_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_OCC_1_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the global attribute: ClusterRevision" command: "readAttribute" attribute: "ClusterRevision" diff --git a/src/app/tests/suites/certification/Test_TC_OCC_2_1.yaml b/src/app/tests/suites/certification/Test_TC_OCC_2_1.yaml index 9ef3efec118120..fdb07cbe73655c 100644 --- a/src/app/tests/suites/certification/Test_TC_OCC_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_OCC_2_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Reads mandatory attribute: Occupancy" disabled: true command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_OCC_2_2.yaml b/src/app/tests/suites/certification/Test_TC_OCC_2_2.yaml index 208a16f9b46d3d..53422d376a7f4d 100644 --- a/src/app/tests/suites/certification/Test_TC_OCC_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_OCC_2_2.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + #Issue #10816 Disabled as values needs to be stored for comparison - label: "Reads Occupancy attribute from DUT" disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_OO_1_1.yaml b/src/app/tests/suites/certification/Test_TC_OO_1_1.yaml index 189f8d1246d472..0e9fac8680af70 100644 --- a/src/app/tests/suites/certification/Test_TC_OO_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_OO_1_1.yaml @@ -19,6 +19,14 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the global attribute: ClusterRevision" command: "readAttribute" attribute: "ClusterRevision" diff --git a/src/app/tests/suites/certification/Test_TC_OO_2_1.yaml b/src/app/tests/suites/certification/Test_TC_OO_2_1.yaml index 489501e63d9fa6..e45dc96cf1d81e 100644 --- a/src/app/tests/suites/certification/Test_TC_OO_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_OO_2_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the mandatory attribute: OnOff" command: "readAttribute" attribute: "OnOff" diff --git a/src/app/tests/suites/certification/Test_TC_OO_2_2.yaml b/src/app/tests/suites/certification/Test_TC_OO_2_2.yaml index 8f770aa0f74e4e..5827f47894abdf 100644 --- a/src/app/tests/suites/certification/Test_TC_OO_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_OO_2_2.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Send Off Command" command: "Off" diff --git a/src/app/tests/suites/certification/Test_TC_OO_2_3.yaml b/src/app/tests/suites/certification/Test_TC_OO_2_3.yaml index 49b79183e2fa04..f0417aca5401aa 100644 --- a/src/app/tests/suites/certification/Test_TC_OO_2_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_OO_2_3.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Send On Command" command: "On" diff --git a/src/app/tests/suites/certification/Test_TC_PCC_1_1.yaml b/src/app/tests/suites/certification/Test_TC_PCC_1_1.yaml index c0b6266c1b09d2..5d164d23b8a017 100644 --- a/src/app/tests/suites/certification/Test_TC_PCC_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_PCC_1_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the global attribute: ClusterRevision" disabled: true command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_PCC_2_1.yaml b/src/app/tests/suites/certification/Test_TC_PCC_2_1.yaml index 0ba0be5ed96b63..3bad8bcb5d569d 100644 --- a/src/app/tests/suites/certification/Test_TC_PCC_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_PCC_2_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the mandatory attribute: MaxPressure" disabled: true command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_PCC_2_2.yaml b/src/app/tests/suites/certification/Test_TC_PCC_2_2.yaml index a36a2319fb884b..81469e0cc019eb 100644 --- a/src/app/tests/suites/certification/Test_TC_PCC_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_PCC_2_2.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Write 1 to the OperationMode attribute to DUT: OperationMode" command: "writeAttribute" attribute: "OperationMode" diff --git a/src/app/tests/suites/certification/Test_TC_PCC_2_3.yaml b/src/app/tests/suites/certification/Test_TC_PCC_2_3.yaml index 7d1da7c169ebab..a6aff112b914b1 100644 --- a/src/app/tests/suites/certification/Test_TC_PCC_2_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_PCC_2_3.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Write 0 to the OperationMode attribute to DUT" command: "writeAttribute" attribute: "OperationMode" diff --git a/src/app/tests/suites/certification/Test_TC_PRS_1_1.yaml b/src/app/tests/suites/certification/Test_TC_PRS_1_1.yaml index c918eab4e769e3..64d3475f8ba7b5 100644 --- a/src/app/tests/suites/certification/Test_TC_PRS_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_PRS_1_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Read the global attribute: ClusterRevision" command: "readAttribute" attribute: "ClusterRevision" diff --git a/src/app/tests/suites/certification/Test_TC_PRS_2_1.yaml b/src/app/tests/suites/certification/Test_TC_PRS_2_1.yaml index 17b2e336d74d1d..d38d3a4dc2b9f5 100644 --- a/src/app/tests/suites/certification/Test_TC_PRS_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_PRS_2_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Read the mandatory attribute constraints: MeasuredValue" command: "readAttribute" attribute: "MeasuredValue" diff --git a/src/app/tests/suites/certification/Test_TC_RH_1_1.yaml b/src/app/tests/suites/certification/Test_TC_RH_1_1.yaml index 3c86ae17041679..6b6c1fdf54c50b 100644 --- a/src/app/tests/suites/certification/Test_TC_RH_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_RH_1_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the global attribute: ClusterRevision" disabled: true command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_RH_2_1.yaml b/src/app/tests/suites/certification/Test_TC_RH_2_1.yaml index 1ccf2d58cba84a..6e3c87b1c8ebff 100644 --- a/src/app/tests/suites/certification/Test_TC_RH_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_RH_2_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Reads the mandatory attribute: MeasuredValue" disabled: true command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_RH_2_2.yaml b/src/app/tests/suites/certification/Test_TC_RH_2_2.yaml index f3013ffe38db9f..8061b0336ca119 100644 --- a/src/app/tests/suites/certification/Test_TC_RH_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_RH_2_2.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + #Disabled as values needs to be stored for comparison - label: "Reads MeasuredValue attribute from DUT" disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_TM_1_1.yaml b/src/app/tests/suites/certification/Test_TC_TM_1_1.yaml index 8af5e442c5af94..451dd52777f662 100644 --- a/src/app/tests/suites/certification/Test_TC_TM_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_TM_1_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the global attribute: ClusterRevision" command: "readAttribute" attribute: "ClusterRevision" diff --git a/src/app/tests/suites/certification/Test_TC_TM_2_1.yaml b/src/app/tests/suites/certification/Test_TC_TM_2_1.yaml index a6baa4720263b3..74e41103215c0b 100644 --- a/src/app/tests/suites/certification/Test_TC_TM_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_TM_2_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the mandatory attribute: MeasuredValue" command: "readAttribute" attribute: "MeasuredValue" diff --git a/src/app/tests/suites/certification/Test_TC_TM_2_2.yaml b/src/app/tests/suites/certification/Test_TC_TM_2_2.yaml index 8be5cc689de372..90c272595407da 100644 --- a/src/app/tests/suites/certification/Test_TC_TM_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_TM_2_2.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + #Disabled as values needs to be stored for comparison - label: "Reads MeasuredValue attribute from DUT" disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_TSTAT_1_1.yaml b/src/app/tests/suites/certification/Test_TC_TSTAT_1_1.yaml index 60630c24c85614..f19caa4ecd8b9d 100644 --- a/src/app/tests/suites/certification/Test_TC_TSTAT_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_TSTAT_1_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the global attribute: ClusterRevision" disabled: true command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml b/src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml index 1167226de7f301..b169356f25024a 100644 --- a/src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + #issue #11524 disabled steps are for attributes not supported in YAML framework - label: "Reads mandatory attributes from DUT: LocalTemperature" disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_TSTAT_2_2.yaml b/src/app/tests/suites/certification/Test_TC_TSTAT_2_2.yaml index fe6b5c8f0aa842..2091a1a3972f07 100644 --- a/src/app/tests/suites/certification/Test_TC_TSTAT_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_TSTAT_2_2.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Reads OccupiedCoolingSetpoint attribute from Server DUT and verifies that the value is within range" diff --git a/src/app/tests/suites/certification/Test_TC_TSUIC_1_1.yaml b/src/app/tests/suites/certification/Test_TC_TSUIC_1_1.yaml index 41c37c5248deeb..afb9e851aaeccd 100644 --- a/src/app/tests/suites/certification/Test_TC_TSUIC_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_TSUIC_1_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the global attribute: ClusterRevision" disabled: true command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_TSUIC_2_1.yaml b/src/app/tests/suites/certification/Test_TC_TSUIC_2_1.yaml index 83989269a01bb4..7905fd64ee805e 100644 --- a/src/app/tests/suites/certification/Test_TC_TSUIC_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_TSUIC_2_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "read the mandatory attribute: TemperatureDisplayMode" command: "readAttribute" attribute: "temperature display mode" diff --git a/src/app/tests/suites/certification/Test_TC_TSUIC_2_2.yaml b/src/app/tests/suites/certification/Test_TC_TSUIC_2_2.yaml index de77153951dddf..25e7337fc1f51a 100644 --- a/src/app/tests/suites/certification/Test_TC_TSUIC_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_TSUIC_2_2.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Writes a value of 0 to TemperatureDisplayMode attribute of DUT" command: "writeAttribute" attribute: "temperature display mode" diff --git a/src/app/tests/suites/certification/Test_TC_WNCV_1_1.yaml b/src/app/tests/suites/certification/Test_TC_WNCV_1_1.yaml index 82b3e5351c31f7..c7279e812b4288 100644 --- a/src/app/tests/suites/certification/Test_TC_WNCV_1_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_WNCV_1_1.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + ### MANDATORY GLOBAL Attributes ### Attribute[0xFFFD]: ClusterRevision ======================================= - label: "2: read the global attribute: ClusterRevision" diff --git a/src/app/tests/suites/certification/Test_TC_WNCV_2_1.yaml b/src/app/tests/suites/certification/Test_TC_WNCV_2_1.yaml index 307a32b99a58b1..bcccec313e5243 100644 --- a/src/app/tests/suites/certification/Test_TC_WNCV_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_WNCV_2_1.yaml @@ -21,6 +21,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + ### MANDATORY Attributes ### Attribute[ 0]: Type ======================================= - label: "2: read the RO mandatory attribute default: Type" diff --git a/src/app/tests/suites/certification/Test_TC_WNCV_2_2.yaml b/src/app/tests/suites/certification/Test_TC_WNCV_2_2.yaml index 6fbb7050fe2980..1e18e7e10ca0ce 100644 --- a/src/app/tests/suites/certification/Test_TC_WNCV_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_WNCV_2_2.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + #Issue #10811 if condition is required, need YAML support for this - label: "Reads ConfigStatus attribute from DUT" disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_WNCV_2_4.yaml b/src/app/tests/suites/certification/Test_TC_WNCV_2_4.yaml index d0a0a145f7a51a..6a1d1482b4c253 100644 --- a/src/app/tests/suites/certification/Test_TC_WNCV_2_4.yaml +++ b/src/app/tests/suites/certification/Test_TC_WNCV_2_4.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + #Issue #10811 if condition is required, need YAML support for this - label: "Reads Type attribute from DUT" command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_WNCV_2_5.yaml b/src/app/tests/suites/certification/Test_TC_WNCV_2_5.yaml index a04387c800208a..17c9d2fc1e8240 100644 --- a/src/app/tests/suites/certification/Test_TC_WNCV_2_5.yaml +++ b/src/app/tests/suites/certification/Test_TC_WNCV_2_5.yaml @@ -19,6 +19,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + - label: "Reads EndProductType attribute from DUT" command: "readAttribute" attribute: "EndProductType" diff --git a/src/app/tests/suites/certification/Test_TC_WNCV_3_1.yaml b/src/app/tests/suites/certification/Test_TC_WNCV_3_1.yaml index e2be049d3e4bf5..5eeb10070edec9 100644 --- a/src/app/tests/suites/certification/Test_TC_WNCV_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_WNCV_3_1.yaml @@ -21,6 +21,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + ### Step 1x -> Initialize Position ### MANDATORY Command - label: "1a: TH adjusts the the DUT to a non-open position" diff --git a/src/app/tests/suites/certification/Test_TC_WNCV_3_2.yaml b/src/app/tests/suites/certification/Test_TC_WNCV_3_2.yaml index 5ce21bd067de37..9efc3c573255fd 100644 --- a/src/app/tests/suites/certification/Test_TC_WNCV_3_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_WNCV_3_2.yaml @@ -21,6 +21,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + ### Step 1x -> Initialize Position ### MANDATORY Command - label: "1a: TH adjusts the the DUT to a non-closed position" diff --git a/src/app/tests/suites/certification/Test_TC_WNCV_3_3.yaml b/src/app/tests/suites/certification/Test_TC_WNCV_3_3.yaml index 679eb86a997a31..066368d8e50412 100644 --- a/src/app/tests/suites/certification/Test_TC_WNCV_3_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_WNCV_3_3.yaml @@ -21,6 +21,10 @@ config: endpoint: 1 tests: + - label: "Wait for the commissioned device to be retrieved" + cluster: "DelayCommands" + command: "WaitForCommissionee" + ### Step 1x -> Initialize Position ### MANDATORY Command - label: "1a: TH adjusts the the DUT to a non-open position" diff --git a/src/app/zap-templates/common/simulated-clusters/TestDelayCommands.js b/src/app/zap-templates/common/simulated-clusters/TestDelayCommands.js index 24320284991a1b..e02d1796353b87 100644 --- a/src/app/zap-templates/common/simulated-clusters/TestDelayCommands.js +++ b/src/app/zap-templates/common/simulated-clusters/TestDelayCommands.js @@ -36,9 +36,18 @@ const WaitForCommissioning = { response : { arguments : [] } }; +const WaitForCommissionee = { + name : 'WaitForCommissionee', + arguments : [], + response : { arguments : [] } +}; + +const name = 'DelayCommands'; +const commands = [ WaitForMs, WaitForCommissioning, WaitForCommissionee ]; + const DelayCommands = { - name : 'DelayCommands', - commands : [ WaitForMs, WaitForCommissioning ], + name, + commands }; // diff --git a/src/darwin/Framework/CHIP/templates/clusters-tests.zapt b/src/darwin/Framework/CHIP/templates/clusters-tests.zapt index 673997bacd1bf9..a06e488525695a 100644 --- a/src/darwin/Framework/CHIP/templates/clusters-tests.zapt +++ b/src/darwin/Framework/CHIP/templates/clusters-tests.zapt @@ -37,6 +37,20 @@ void WaitForMs(XCTestExpectation * expectation, dispatch_queue_t queue, unsigned }); } +void WaitForCommissionee(XCTestExpectation * expectation, dispatch_queue_t queue) +{ + CHIPDeviceController * controller = [CHIPDeviceController sharedController]; + XCTAssertNotNil(controller); + + [controller getConnectedDevice:kDeviceId + queue:dispatch_get_main_queue() + completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertEqual(error.code, 0); + [expectation fulfill]; + mConnectedDevice = device; + }]; +} + CHIPDevice * GetConnectedDevice() { XCTAssertNotNil(mConnectedDevice); @@ -116,7 +130,6 @@ CHIPDevice * GetConnectedDevice() XCTAssertEqual(error.code, 0); [connectionExpectation fulfill]; connectionExpectation = nil; - mConnectedDevice = device; }]; [self waitForExpectationsWithTimeout:kCASESetupTimeoutInSeconds handler:nil]; } @@ -136,9 +149,23 @@ CHIPDevice * GetConnectedDevice() - (void)testReuseChipClusterObject { + CHIPDeviceController * controller = [CHIPDeviceController sharedController]; + XCTAssertNotNil(controller); + + __block CHIPDevice * device; + __block XCTestExpectation * connectionExpectation = [self expectationWithDescription:@"CASE established"]; + [controller getConnectedDevice:kDeviceId + queue:dispatch_get_main_queue() + completionHandler:^(CHIPDevice * _Nullable retrievedDevice, NSError * _Nullable error) { + XCTAssertEqual(error.code, 0); + [connectionExpectation fulfill]; + connectionExpectation = nil; + device = retrievedDevice; + }]; + [self waitForExpectationsWithTimeout:kCASESetupTimeoutInSeconds handler:nil]; + XCTestExpectation * expectation = [self expectationWithDescription:@"ReuseCHIPClusterObjectFirstCall"]; - CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -174,13 +201,18 @@ CHIPDevice * GetConnectedDevice() {{#unless (isStrEqual chipCallback.name "Unsupported")}} - (void)testSendCluster{{asUpperCamelCase parent.name}}ReadAttribute{{asUpperCamelCase name}}WithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"{{asUpperCamelCase parent.name}}ReadAttribute{{asUpperCamelCase name}}WithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIP{{asUpperCamelCase parent.name}} * cluster = [[CHIP{{asUpperCamelCase parent.name}} alloc] initWithDevice:device endpoint:{{asExpectedEndpointForCluster (asUpperCamelCase parent.name)}} queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"{{asUpperCamelCase parent.name}}ReadAttribute{{asUpperCamelCase name}}WithCompletionHandler"]; + [cluster readAttribute{{asUpperCamelCase name}}WithCompletionHandler:^({{asObjectiveCClass type parent.name}} * _Nullable value, NSError * _Nullable err) { NSLog(@"{{asUpperCamelCase parent.name}} {{asUpperCamelCase name}} Error: %@", err); XCTAssertEqual(err.code, 0); @@ -193,13 +225,18 @@ CHIPDevice * GetConnectedDevice() {{#if isWritableAttribute}} - (void)testSendCluster{{asUpperCamelCase parent.name}}WriteAttribute{{asUpperCamelCase name}}WithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"{{asUpperCamelCase parent.name}}WriteAttribute{{asUpperCamelCase name}}WithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIP{{asUpperCamelCase parent.name}} * cluster = [[CHIP{{asUpperCamelCase parent.name}} alloc] initWithDevice:device endpoint:{{asExpectedEndpointForCluster (asUpperCamelCase parent.name)}} queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"{{asUpperCamelCase parent.name}}WriteAttribute{{asUpperCamelCase name}}WithValue"]; + {{asObjectiveCType type parent.name}} value = {{asTestValue}}; [cluster writeAttribute{{asUpperCamelCase name}}WithValue:value completionHandler:^(NSError * _Nullable err) { NSLog(@"{{asUpperCamelCase parent.name}} {{asUpperCamelCase name}} Error: %@", err); diff --git a/src/darwin/Framework/CHIPTests/CHIPClustersTests.m b/src/darwin/Framework/CHIPTests/CHIPClustersTests.m index 2fe0c92aca9fd1..b6e1b2075260fb 100644 --- a/src/darwin/Framework/CHIPTests/CHIPClustersTests.m +++ b/src/darwin/Framework/CHIPTests/CHIPClustersTests.m @@ -54,6 +54,20 @@ void WaitForMs(XCTestExpectation * expectation, dispatch_queue_t queue, unsigned }); } +void WaitForCommissionee(XCTestExpectation * expectation, dispatch_queue_t queue) +{ + CHIPDeviceController * controller = [CHIPDeviceController sharedController]; + XCTAssertNotNil(controller); + + [controller getConnectedDevice:kDeviceId + queue:dispatch_get_main_queue() + completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertEqual(error.code, 0); + [expectation fulfill]; + mConnectedDevice = device; + }]; +} + CHIPDevice * GetConnectedDevice() { XCTAssertNotNil(mConnectedDevice); @@ -134,7 +148,6 @@ - (void)testInitStack XCTAssertEqual(error.code, 0); [connectionExpectation fulfill]; connectionExpectation = nil; - mConnectedDevice = device; }]; [self waitForExpectationsWithTimeout:kCASESetupTimeoutInSeconds handler:nil]; } @@ -154,9 +167,23 @@ - (void)testShutdownStack - (void)testReuseChipClusterObject { + CHIPDeviceController * controller = [CHIPDeviceController sharedController]; + XCTAssertNotNil(controller); + + __block CHIPDevice * device; + __block XCTestExpectation * connectionExpectation = [self expectationWithDescription:@"CASE established"]; + [controller getConnectedDevice:kDeviceId + queue:dispatch_get_main_queue() + completionHandler:^(CHIPDevice * _Nullable retrievedDevice, NSError * _Nullable error) { + XCTAssertEqual(error.code, 0); + [connectionExpectation fulfill]; + connectionExpectation = nil; + device = retrievedDevice; + }]; + [self waitForExpectationsWithTimeout:kCASESetupTimeoutInSeconds handler:nil]; + XCTestExpectation * expectation = [self expectationWithDescription:@"ReuseCHIPClusterObjectFirstCall"]; - CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -182,7 +209,15 @@ - (void)testReuseChipClusterObject [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_1_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_BI_1_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_BI_1_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the global attribute: ClusterRevision"]; @@ -206,7 +241,7 @@ - (void)testSendClusterTest_TC_BI_1_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_1_1_000001_WriteAttribute +- (void)testSendClusterTest_TC_BI_1_1_000002_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; @@ -229,7 +264,7 @@ - (void)testSendClusterTest_TC_BI_1_1_000001_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_1_1_000002_ReadAttribute +- (void)testSendClusterTest_TC_BI_1_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back global attribute: ClusterRevision"]; @@ -254,7 +289,15 @@ - (void)testSendClusterTest_TC_BI_1_1_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_2_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_BI_2_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_BI_2_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read mandatory non-global attribute: OutOfService"]; @@ -278,7 +321,7 @@ - (void)testSendClusterTest_TC_BI_2_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_2_1_000001_ReadAttribute +- (void)testSendClusterTest_TC_BI_2_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read mandatory non-global attribute constraints: OutOfService"]; @@ -298,7 +341,7 @@ - (void)testSendClusterTest_TC_BI_2_1_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_2_1_000002_WriteAttribute +- (void)testSendClusterTest_TC_BI_2_1_000003_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to mandatory non-global attribute: OutOfService"]; @@ -322,7 +365,7 @@ - (void)testSendClusterTest_TC_BI_2_1_000002_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_2_1_000003_ReadAttribute +- (void)testSendClusterTest_TC_BI_2_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back the mandatory non-global attribute: OutOfService"]; @@ -347,7 +390,7 @@ - (void)testSendClusterTest_TC_BI_2_1_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_2_1_000004_ReadAttribute +- (void)testSendClusterTest_TC_BI_2_1_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read mandatory non-global attribute constraints: PresentValue"]; @@ -367,7 +410,7 @@ - (void)testSendClusterTest_TC_BI_2_1_000004_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_2_1_000005_WriteAttribute +- (void)testSendClusterTest_TC_BI_2_1_000006_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to mandatory non-global attribute: PresentValue"]; @@ -391,7 +434,7 @@ - (void)testSendClusterTest_TC_BI_2_1_000005_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_2_1_000006_ReadAttribute +- (void)testSendClusterTest_TC_BI_2_1_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back the mandatory non-global attribute: PresentValue"]; @@ -416,7 +459,7 @@ - (void)testSendClusterTest_TC_BI_2_1_000006_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_2_1_000007_ReadAttribute +- (void)testSendClusterTest_TC_BI_2_1_000008_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read mandatory non-global attribute: StatusFlags"]; @@ -440,7 +483,7 @@ - (void)testSendClusterTest_TC_BI_2_1_000007_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_2_1_000008_ReadAttribute +- (void)testSendClusterTest_TC_BI_2_1_000009_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read mandatory non-global attribute constraints: StatusFlags"]; @@ -465,7 +508,7 @@ - (void)testSendClusterTest_TC_BI_2_1_000008_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_2_1_000009_WriteAttribute +- (void)testSendClusterTest_TC_BI_2_1_000010_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to mandatory non-global attribute: StatusFlags"]; @@ -487,7 +530,7 @@ - (void)testSendClusterTest_TC_BI_2_1_000009_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_2_1_000010_ReadAttribute +- (void)testSendClusterTest_TC_BI_2_1_000011_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back the mandatory non-global attribute: StatusFlags"]; @@ -513,7 +556,15 @@ - (void)testSendClusterTest_TC_BI_2_1_000010_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_2_2_000000_ReadAttribute +- (void)testSendClusterTest_TC_BI_2_2_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_BI_2_2_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads PresentValue attribute from DUT"]; @@ -537,7 +588,7 @@ - (void)testSendClusterTest_TC_BI_2_2_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_2_2_000001_ReadAttribute +- (void)testSendClusterTest_TC_BI_2_2_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OutOfService attribute from DUT"]; @@ -561,7 +612,7 @@ - (void)testSendClusterTest_TC_BI_2_2_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_2_2_000002_ReadAttribute +- (void)testSendClusterTest_TC_BI_2_2_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads StatusFlags attribute from DUT"]; @@ -585,7 +636,7 @@ - (void)testSendClusterTest_TC_BI_2_2_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_2_2_000003_ReadAttribute +- (void)testSendClusterTest_TC_BI_2_2_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads PresentValue attribute from DUT"]; @@ -609,7 +660,7 @@ - (void)testSendClusterTest_TC_BI_2_2_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_2_2_000004_ReadAttribute +- (void)testSendClusterTest_TC_BI_2_2_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OutOfService attribute from DUT"]; @@ -633,7 +684,7 @@ - (void)testSendClusterTest_TC_BI_2_2_000004_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_2_2_000005_ReadAttribute +- (void)testSendClusterTest_TC_BI_2_2_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads StatusFlags attribute from DUT"]; @@ -657,7 +708,7 @@ - (void)testSendClusterTest_TC_BI_2_2_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_2_2_000006_ReadAttribute +- (void)testSendClusterTest_TC_BI_2_2_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads StatusFlags attribute from DUT"]; @@ -681,7 +732,7 @@ - (void)testSendClusterTest_TC_BI_2_2_000006_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BI_2_2_000007_ReadAttribute +- (void)testSendClusterTest_TC_BI_2_2_000008_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads StatusFlags attribute from DUT"]; @@ -706,7 +757,15 @@ - (void)testSendClusterTest_TC_BI_2_2_000007_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BOOL_1_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_BOOL_1_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_BOOL_1_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the global attribute: ClusterRevision"]; @@ -730,7 +789,7 @@ - (void)testSendClusterTest_TC_BOOL_1_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BOOL_1_1_000001_WriteAttribute +- (void)testSendClusterTest_TC_BOOL_1_1_000002_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; @@ -753,7 +812,7 @@ - (void)testSendClusterTest_TC_BOOL_1_1_000001_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BOOL_1_1_000002_ReadAttribute +- (void)testSendClusterTest_TC_BOOL_1_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back global attribute: ClusterRevision"]; @@ -778,7 +837,15 @@ - (void)testSendClusterTest_TC_BOOL_1_1_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BOOL_2_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_BOOL_2_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_BOOL_2_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read mandatory non-global attribute: StateValue"]; @@ -802,7 +869,7 @@ - (void)testSendClusterTest_TC_BOOL_2_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BOOL_2_1_000001_ReadAttribute +- (void)testSendClusterTest_TC_BOOL_2_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read mandatory non-global attribute constraints: StateValue"]; @@ -822,7 +889,7 @@ - (void)testSendClusterTest_TC_BOOL_2_1_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BOOL_2_1_000002_WriteAttribute +- (void)testSendClusterTest_TC_BOOL_2_1_000003_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default value to mandatory non-global attribute: StateValue"]; @@ -844,7 +911,7 @@ - (void)testSendClusterTest_TC_BOOL_2_1_000002_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_BOOL_2_1_000003_ReadAttribute +- (void)testSendClusterTest_TC_BOOL_2_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back the mandatory non-global attribute: StateValue"]; @@ -870,7 +937,15 @@ - (void)testSendClusterTest_TC_BOOL_2_1_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_1_1_000000_WriteAttribute +- (void)testSendClusterTest_TC_CC_1_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_1_1_000001_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; @@ -894,7 +969,15 @@ - (void)testSendClusterTest_TC_CC_1_1_000000_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_2_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads mandatory attribute: CurrentHue"]; @@ -918,7 +1001,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Validate constraints of attribute: current hue"]; @@ -942,7 +1025,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000002_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000003_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default value to mandatory attribute: CurrentHue"]; @@ -964,7 +1047,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000002_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000003_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back mandatory attribute: CurrentHue"]; @@ -988,7 +1071,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000004_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads mandatory attribute: CurrentSaturation"]; @@ -1012,7 +1095,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000004_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000005_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Validate constraints of attribute: CurrentSaturation"]; @@ -1036,7 +1119,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000006_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000007_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default value to mandatory attribute: CurrentSaturation"]; @@ -1059,7 +1142,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000006_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000007_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000008_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back mandatory attribute: CurrentSaturation"]; @@ -1083,7 +1166,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000007_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000008_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000009_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: CurrentX"]; @@ -1107,7 +1190,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000008_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000009_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000010_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Validate constraints of attribute: CurrentX"]; @@ -1131,7 +1214,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000009_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000010_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000011_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default value to mandatory attribute: CurrentX"]; @@ -1152,7 +1235,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000010_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000011_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000012_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back mandatory attribute: CurrentX"]; @@ -1176,7 +1259,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000011_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000012_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000013_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: CurrentY"]; @@ -1200,7 +1283,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000012_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000013_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000014_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Validate constraints of attribute: CurrentY"]; @@ -1224,7 +1307,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000013_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000014_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000015_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to mandatory attribute: CurrentY"]; @@ -1246,7 +1329,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000014_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000015_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000016_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back mandatory attribute: CurrentY"]; @@ -1270,7 +1353,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000015_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000016_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000017_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Validate constraints of attribute: ColorTemperatureMireds"]; @@ -1295,7 +1378,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000016_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000017_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000018_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Validate constraints of attribute: ColorMode"]; @@ -1319,7 +1402,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000017_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000018_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000019_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: Options"]; @@ -1343,7 +1426,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000018_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000019_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000020_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Validate constraints of attribute: Options"]; @@ -1362,7 +1445,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000019_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000020_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000021_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to mandatory attribute: Options"]; @@ -1384,7 +1467,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000020_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000021_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000022_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back mandatory attribute: Options"]; @@ -1408,7 +1491,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000021_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000022_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000023_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: EnhancedCurrentHue"]; @@ -1432,7 +1515,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000022_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000023_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000024_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Validate constraints of attribute: EnhancedCurrentHue"]; @@ -1451,7 +1534,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000023_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000024_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000025_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to mandatory attribute: EnhancedCurrentHue"]; @@ -1475,7 +1558,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000024_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000025_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000026_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back mandatory attribute: EnhancedCurrentHue"]; @@ -1499,7 +1582,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000025_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000026_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000027_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Validate constraints of attribute: EnhancedColorMode"]; @@ -1518,7 +1601,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000026_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000027_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000028_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: ColorLoopActive"]; @@ -1542,7 +1625,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000027_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000028_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000029_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Validate constraints of attribute: ColorLoopActive"]; @@ -1561,7 +1644,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000028_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000029_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000030_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to mandatory attribute: ColorLoopActive"]; @@ -1584,7 +1667,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000029_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000030_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000031_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back mandatory attribute: ColorLoopActive"]; @@ -1608,7 +1691,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000030_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000031_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000032_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: ColorLoopDirection"]; @@ -1632,7 +1715,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000031_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000032_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000033_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Validate constraints of attribute: ColorLoopDirection"]; @@ -1651,7 +1734,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000032_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000033_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000034_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to mandatory attribute: ColorLoopDirection"]; @@ -1675,7 +1758,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000033_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000034_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000035_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back mandatory attribute: ColorLoopDirection"]; @@ -1699,7 +1782,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000034_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000035_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000036_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: ColorLoopTime"]; @@ -1723,7 +1806,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000035_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000036_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000037_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Validate constraints of attribute: ColorLoopTime"]; @@ -1742,7 +1825,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000036_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000037_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000038_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to mandatory attribute: ColorLoopTime"]; @@ -1765,7 +1848,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000037_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000038_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000039_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back mandatory attribute: ColorLoopTime"]; @@ -1789,7 +1872,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000038_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000039_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000040_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: ColorLoopStartEnhancedHue"]; @@ -1813,7 +1896,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000039_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000040_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000041_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Validate constraints of attribute: ColorLoopStartEnhancedHue"]; @@ -1833,7 +1916,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000040_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000041_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000042_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to mandatory attribute: ColorLoopStartEnhancedHue"]; @@ -1858,7 +1941,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000041_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000042_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000043_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back mandatory attribute: ColorLoopStartEnhancedHue"]; @@ -1883,7 +1966,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000042_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000043_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000044_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: ColorLoopStoredEnhancedHue"]; @@ -1907,7 +1990,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000043_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000044_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000045_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Validate constraints of attribute: ColorLoopStoredEnhancedHue"]; @@ -1927,7 +2010,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000044_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000045_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000046_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to mandatory attribute: ColorLoopStoredEnhancedHue"]; @@ -1952,7 +2035,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000045_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000046_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000047_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back mandatory attribute: ColorLoopStoredEnhancedHue"]; @@ -1977,7 +2060,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000046_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000047_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000048_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: ColorCapabilities"]; @@ -2001,7 +2084,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000047_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000048_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000049_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Validate constraints of attribute: ColorCapabilities"]; @@ -2025,7 +2108,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000048_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000049_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000050_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to mandatory attribute: ColorCapabilities"]; @@ -2048,7 +2131,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000049_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000050_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000051_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back mandatory attribute: ColorCapabilities"]; @@ -2072,7 +2155,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000050_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000051_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000052_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: ColorTempPhysicalMinMireds"]; @@ -2096,7 +2179,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000051_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000052_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000053_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Validate constraints of attribute: ColorTempPhysicalMinMireds"]; @@ -2121,7 +2204,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000052_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000053_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000054_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to mandatory attribute: ColorTempPhysicalMinMireds"]; @@ -2147,7 +2230,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000053_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000054_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000055_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back mandatory attribute: ColorTempPhysicalMinMireds"]; @@ -2172,7 +2255,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000054_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000055_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000056_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: ColorTempPhysicalMaxMireds"]; @@ -2196,7 +2279,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000055_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000056_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000057_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Validate constraints of attribute: ColorTempPhysicalMaxMireds"]; @@ -2221,7 +2304,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000056_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000057_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000058_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to mandatory attribute: ColorTempPhysicalMaxMireds"]; @@ -2247,7 +2330,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000057_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000058_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000059_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back mandatory attribute: ColorTempPhysicalMaxMireds"]; @@ -2272,7 +2355,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000058_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000059_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000060_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the optional attribute: CoupleColorTempToLevelMinMireds"]; @@ -2293,7 +2376,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000059_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000060_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000061_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to optional attribute: CoupleColorTempToLevelMinMireds"]; @@ -2318,7 +2401,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000060_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000061_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000062_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back optional attribute: CoupleColorTempToLevelMinMireds"]; @@ -2344,7 +2427,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000061_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000062_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000063_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the optional attribute: StartUpColorTemperatureMireds"]; @@ -2370,7 +2453,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000062_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000063_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000064_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to optional attribute: StartUpColorTemperatureMireds"]; @@ -2395,7 +2478,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000063_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000064_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000065_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back optional attribute: StartUpColorTemperatureMireds"]; @@ -2421,7 +2504,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000064_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000065_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000066_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the Optional attribute: RemainingTime"]; @@ -2445,7 +2528,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000065_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000066_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000067_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Validate constraints of attribute: RemainingTime"]; @@ -2469,7 +2552,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000066_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000067_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000068_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to optional attribute: RemainingTime"]; @@ -2492,7 +2575,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000067_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000068_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000069_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back optional attribute: RemainingTime"]; @@ -2516,7 +2599,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000068_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000069_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000070_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the optional attribute: DriftCompensation"]; @@ -2540,7 +2623,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000069_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000070_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000071_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to optional attribute: DriftCompensation"]; @@ -2563,7 +2646,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000070_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000071_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000072_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back optional attribute: DriftCompensation"]; @@ -2587,7 +2670,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000071_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000072_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000073_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the optional attribute: CompensationText"]; @@ -2611,7 +2694,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000072_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000073_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000074_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: NumberOfPrimaries"]; @@ -2635,7 +2718,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000073_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000074_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000075_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default mandatory attribute: NumberOfPrimaries"]; @@ -2657,7 +2740,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000074_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000075_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000076_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back the mandatory attribute: NumberOfPrimaries"]; @@ -2681,7 +2764,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000075_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000076_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000077_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: Primary1X"]; @@ -2705,7 +2788,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000076_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000077_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000078_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default mandatory attribute: Primary1X"]; @@ -2726,7 +2809,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000077_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000078_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000079_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back the mandatory attribute: Primary1X"]; @@ -2750,7 +2833,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000078_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000079_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000080_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: Primary1Y"]; @@ -2774,7 +2857,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000079_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000080_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000081_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default mandatory attribute: Primary1Y"]; @@ -2795,7 +2878,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000080_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000081_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000082_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back the mandatory attribute: Primary1Y"]; @@ -2819,7 +2902,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000081_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000082_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000083_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: Primary1Intensity"]; @@ -2838,7 +2921,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000082_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000083_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000084_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: Primary2X"]; @@ -2862,7 +2945,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000083_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000084_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000085_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default mandatory attribute: Primary2X"]; @@ -2883,7 +2966,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000084_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000085_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000086_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back the mandatory attribute: Primary2X"]; @@ -2907,7 +2990,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000085_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000086_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000087_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: Primary2Y"]; @@ -2931,7 +3014,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000086_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000087_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000088_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default mandatory attribute: Primary2Y"]; @@ -2952,7 +3035,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000087_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000088_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000089_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back the mandatory attribute: Primary2Y"]; @@ -2976,7 +3059,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000088_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000089_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000090_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Validate constraints of attribute: Primary2Intensity"]; @@ -2995,7 +3078,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000089_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000090_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000091_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: Primary3X"]; @@ -3019,7 +3102,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000090_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000091_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000092_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default mandatory attribute: Primary3X"]; @@ -3040,7 +3123,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000091_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000092_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000093_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back the mandatory attribute: Primary3X"]; @@ -3064,7 +3147,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000092_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000093_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000094_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: Primary3Y"]; @@ -3088,7 +3171,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000093_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000094_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000095_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default mandatory attribute: Primary3Y"]; @@ -3109,7 +3192,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000094_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000095_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000096_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back the mandatory attribute: Primary3Y"]; @@ -3133,7 +3216,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000095_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000096_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000097_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: Primary3Intensity"]; @@ -3152,7 +3235,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000096_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000097_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000098_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: Primary4X"]; @@ -3176,7 +3259,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000097_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000098_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000099_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default mandatory attribute: Primary4X"]; @@ -3197,7 +3280,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000098_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000099_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000100_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back the mandatory attribute: Primary4X"]; @@ -3221,7 +3304,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000099_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000100_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000101_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: Primary4Y"]; @@ -3245,7 +3328,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000100_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000101_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000102_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default mandatory attribute: Primary4Y"]; @@ -3266,7 +3349,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000101_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000102_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000103_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back the mandatory attribute: Primary4Y"]; @@ -3290,7 +3373,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000102_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000103_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000104_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: Primary4Intensity"]; @@ -3309,7 +3392,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000103_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000104_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000105_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: Primary5X"]; @@ -3333,7 +3416,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000104_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000105_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000106_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default mandatory attribute: Primary5X"]; @@ -3354,7 +3437,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000105_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000106_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000107_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back the mandatory attribute: Primary5X"]; @@ -3378,7 +3461,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000106_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000107_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000108_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: Primary5Y"]; @@ -3402,7 +3485,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000107_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000108_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000109_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default mandatory attribute: Primary5Y"]; @@ -3423,7 +3506,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000108_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000109_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000110_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back the mandatory attribute: Primary5Y"]; @@ -3447,7 +3530,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000109_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000110_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000111_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: Primary5Intensity"]; @@ -3466,7 +3549,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000110_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000111_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000112_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: Primary6X"]; @@ -3490,7 +3573,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000111_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000112_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000113_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default mandatory attribute: Primary6X"]; @@ -3511,7 +3594,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000112_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000113_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000114_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back the mandatory attribute: Primary6X"]; @@ -3535,7 +3618,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000113_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000114_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000115_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: Primary6Y"]; @@ -3559,7 +3642,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000114_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000115_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000116_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default mandatory attribute: Primary6Y"]; @@ -3580,7 +3663,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000115_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000116_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000117_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back the mandatory attribute: Primary6Y"]; @@ -3604,7 +3687,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000116_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000117_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000118_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: Primary6Intensity"]; @@ -3623,7 +3706,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000117_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000118_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000119_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the optional attribute: WhitePointX"]; @@ -3647,7 +3730,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000118_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000119_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000120_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default optional attribute: WhitePointX"]; @@ -3669,7 +3752,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000119_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000120_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000121_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back the optional attribute: WhitePointX"]; @@ -3693,7 +3776,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000120_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000121_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000122_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the optional attribute: WhitePointY"]; @@ -3717,7 +3800,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000121_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000122_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000123_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default optional attribute: WhitePointY"]; @@ -3739,7 +3822,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000122_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000123_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000124_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back the optional attribute: WhitePointY"]; @@ -3763,7 +3846,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000123_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000124_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000125_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the optional attribute: ColorPointRX"]; @@ -3787,7 +3870,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000124_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000125_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000126_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default optional attribute: ColorPointRX"]; @@ -3809,7 +3892,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000125_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000126_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000127_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back the optional attribute: ColorPointRX"]; @@ -3833,7 +3916,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000126_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000127_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000128_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the optional attribute: ColorPointRY"]; @@ -3857,7 +3940,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000127_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000128_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000129_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default optional attribute: ColorPointRY"]; @@ -3879,7 +3962,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000128_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000129_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000130_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back the optional attribute: ColorPointRY"]; @@ -3903,7 +3986,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000129_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000130_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000131_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the optional attribute: ColorPointRIntensity"]; @@ -3922,7 +4005,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000130_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000131_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000132_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the optional attribute: ColorPointGX"]; @@ -3946,7 +4029,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000131_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000132_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000133_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default optional attribute: ColorPointGX"]; @@ -3968,7 +4051,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000132_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000133_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000134_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back the optional attribute: ColorPointGX"]; @@ -3992,7 +4075,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000133_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000134_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000135_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the optional attribute: ColorPointGY"]; @@ -4016,7 +4099,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000134_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000135_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000136_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default optional attribute: ColorPointGY"]; @@ -4038,7 +4121,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000135_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000136_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000137_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back the optional attribute: ColorPointGY"]; @@ -4062,7 +4145,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000136_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000137_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000138_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the optional attribute: ColorPointGIntensity"]; @@ -4081,7 +4164,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000137_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000138_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000139_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the optional attribute: ColorPointBX"]; @@ -4105,7 +4188,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000138_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000139_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000140_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default optional attribute: ColorPointBX"]; @@ -4127,7 +4210,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000139_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000140_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000141_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back the optional attribute: ColorPointBX"]; @@ -4151,7 +4234,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000140_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000141_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000142_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the optional attribute: ColorPointBY"]; @@ -4175,7 +4258,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000141_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000142_WriteAttribute +- (void)testSendClusterTest_TC_CC_2_1_000143_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default optional attribute: ColorPointBY"]; @@ -4197,7 +4280,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000142_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000143_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000144_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back the optional attribute: ColorPointBY"]; @@ -4221,7 +4304,7 @@ - (void)testSendClusterTest_TC_CC_2_1_000143_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_2_1_000144_ReadAttribute +- (void)testSendClusterTest_TC_CC_2_1_000145_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the optional attribute: ColorPointBIntensity"]; @@ -4241,7 +4324,15 @@ - (void)testSendClusterTest_TC_CC_2_1_000144_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_1_000000_On +- (void)testSendClusterTest_TC_CC_3_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_3_1_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; @@ -4260,7 +4351,7 @@ - (void)testSendClusterTest_TC_CC_3_1_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_1_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_3_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; @@ -4284,7 +4375,7 @@ - (void)testSendClusterTest_TC_CC_3_1_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_1_000002_MoveToHue +- (void)testSendClusterTest_TC_CC_3_1_000003_MoveToHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Move to hue shortest distance command"]; @@ -4310,7 +4401,7 @@ - (void)testSendClusterTest_TC_CC_3_1_000002_MoveToHue [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_1_000003_MoveToHue +- (void)testSendClusterTest_TC_CC_3_1_000004_MoveToHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Move to hue longest distance command"]; @@ -4336,7 +4427,7 @@ - (void)testSendClusterTest_TC_CC_3_1_000003_MoveToHue [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_1_000004_MoveToHue +- (void)testSendClusterTest_TC_CC_3_1_000005_MoveToHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Move to hue up command"]; @@ -4362,7 +4453,7 @@ - (void)testSendClusterTest_TC_CC_3_1_000004_MoveToHue [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_1_000005_MoveToHue +- (void)testSendClusterTest_TC_CC_3_1_000006_MoveToHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Move to hue down command"]; @@ -4388,7 +4479,7 @@ - (void)testSendClusterTest_TC_CC_3_1_000005_MoveToHue [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_1_000006_Off +- (void)testSendClusterTest_TC_CC_3_1_000007_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; @@ -4407,7 +4498,7 @@ - (void)testSendClusterTest_TC_CC_3_1_000006_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_1_000007_ReadAttribute +- (void)testSendClusterTest_TC_CC_3_1_000008_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; @@ -4432,7 +4523,15 @@ - (void)testSendClusterTest_TC_CC_3_1_000007_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_2_000000_On +- (void)testSendClusterTest_TC_CC_3_2_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_3_2_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; @@ -4451,7 +4550,7 @@ - (void)testSendClusterTest_TC_CC_3_2_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_2_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_3_2_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; @@ -4475,7 +4574,7 @@ - (void)testSendClusterTest_TC_CC_3_2_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_2_000002_MoveHue +- (void)testSendClusterTest_TC_CC_3_2_000003_MoveHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Move hue up command"]; @@ -4500,7 +4599,7 @@ - (void)testSendClusterTest_TC_CC_3_2_000002_MoveHue [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_2_000003_MoveHue +- (void)testSendClusterTest_TC_CC_3_2_000004_MoveHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Move hue stop command"]; @@ -4525,7 +4624,7 @@ - (void)testSendClusterTest_TC_CC_3_2_000003_MoveHue [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_2_000004_MoveHue +- (void)testSendClusterTest_TC_CC_3_2_000005_MoveHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Move hue down command"]; @@ -4550,7 +4649,7 @@ - (void)testSendClusterTest_TC_CC_3_2_000004_MoveHue [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_2_000005_MoveHue +- (void)testSendClusterTest_TC_CC_3_2_000006_MoveHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Move hue stop command"]; @@ -4575,7 +4674,7 @@ - (void)testSendClusterTest_TC_CC_3_2_000005_MoveHue [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_2_000006_Off +- (void)testSendClusterTest_TC_CC_3_2_000007_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; @@ -4594,7 +4693,7 @@ - (void)testSendClusterTest_TC_CC_3_2_000006_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_2_000007_ReadAttribute +- (void)testSendClusterTest_TC_CC_3_2_000008_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; @@ -4619,7 +4718,15 @@ - (void)testSendClusterTest_TC_CC_3_2_000007_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_3_000000_On +- (void)testSendClusterTest_TC_CC_3_3_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_3_3_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; @@ -4638,7 +4745,7 @@ - (void)testSendClusterTest_TC_CC_3_3_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_3_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_3_3_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; @@ -4662,7 +4769,7 @@ - (void)testSendClusterTest_TC_CC_3_3_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_3_000002_StepHue +- (void)testSendClusterTest_TC_CC_3_3_000003_StepHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Step hue up command"]; @@ -4688,7 +4795,7 @@ - (void)testSendClusterTest_TC_CC_3_3_000002_StepHue [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_3_000003_StepHue +- (void)testSendClusterTest_TC_CC_3_3_000004_StepHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Step hue down command"]; @@ -4714,7 +4821,7 @@ - (void)testSendClusterTest_TC_CC_3_3_000003_StepHue [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_3_000004_Off +- (void)testSendClusterTest_TC_CC_3_3_000005_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; @@ -4733,7 +4840,7 @@ - (void)testSendClusterTest_TC_CC_3_3_000004_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_3_3_000005_ReadAttribute +- (void)testSendClusterTest_TC_CC_3_3_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; @@ -4758,7 +4865,15 @@ - (void)testSendClusterTest_TC_CC_3_3_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_1_000000_On +- (void)testSendClusterTest_TC_CC_4_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_4_1_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; @@ -4777,7 +4892,7 @@ - (void)testSendClusterTest_TC_CC_4_1_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_1_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_4_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; @@ -4801,7 +4916,7 @@ - (void)testSendClusterTest_TC_CC_4_1_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_1_000002_MoveToSaturation +- (void)testSendClusterTest_TC_CC_4_1_000003_MoveToSaturation { XCTestExpectation * expectation = [self expectationWithDescription:@"Move to saturation command"]; @@ -4826,7 +4941,7 @@ - (void)testSendClusterTest_TC_CC_4_1_000002_MoveToSaturation [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_1_000003_Off +- (void)testSendClusterTest_TC_CC_4_1_000004_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; @@ -4845,7 +4960,7 @@ - (void)testSendClusterTest_TC_CC_4_1_000003_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_1_000004_ReadAttribute +- (void)testSendClusterTest_TC_CC_4_1_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; @@ -4870,7 +4985,15 @@ - (void)testSendClusterTest_TC_CC_4_1_000004_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_2_000000_On +- (void)testSendClusterTest_TC_CC_4_2_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_4_2_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; @@ -4889,7 +5012,7 @@ - (void)testSendClusterTest_TC_CC_4_2_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_2_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_4_2_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; @@ -4913,7 +5036,7 @@ - (void)testSendClusterTest_TC_CC_4_2_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_2_000002_MoveSaturation +- (void)testSendClusterTest_TC_CC_4_2_000003_MoveSaturation { XCTestExpectation * expectation = [self expectationWithDescription:@"Move saturation up command"]; @@ -4938,7 +5061,7 @@ - (void)testSendClusterTest_TC_CC_4_2_000002_MoveSaturation [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_2_000003_MoveSaturation +- (void)testSendClusterTest_TC_CC_4_2_000004_MoveSaturation { XCTestExpectation * expectation = [self expectationWithDescription:@"Move saturation down command"]; @@ -4963,7 +5086,7 @@ - (void)testSendClusterTest_TC_CC_4_2_000003_MoveSaturation [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_2_000004_Off +- (void)testSendClusterTest_TC_CC_4_2_000005_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; @@ -4982,7 +5105,7 @@ - (void)testSendClusterTest_TC_CC_4_2_000004_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_2_000005_ReadAttribute +- (void)testSendClusterTest_TC_CC_4_2_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; @@ -5007,7 +5130,15 @@ - (void)testSendClusterTest_TC_CC_4_2_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_3_000000_On +- (void)testSendClusterTest_TC_CC_4_3_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_4_3_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; @@ -5026,7 +5157,7 @@ - (void)testSendClusterTest_TC_CC_4_3_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_3_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_4_3_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; @@ -5050,7 +5181,7 @@ - (void)testSendClusterTest_TC_CC_4_3_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_3_000002_StepSaturation +- (void)testSendClusterTest_TC_CC_4_3_000003_StepSaturation { XCTestExpectation * expectation = [self expectationWithDescription:@"Step saturation up command"]; @@ -5076,7 +5207,7 @@ - (void)testSendClusterTest_TC_CC_4_3_000002_StepSaturation [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_3_000003_StepSaturation +- (void)testSendClusterTest_TC_CC_4_3_000004_StepSaturation { XCTestExpectation * expectation = [self expectationWithDescription:@"Step saturation down command"]; @@ -5102,7 +5233,7 @@ - (void)testSendClusterTest_TC_CC_4_3_000003_StepSaturation [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_3_000004_Off +- (void)testSendClusterTest_TC_CC_4_3_000005_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; @@ -5121,7 +5252,7 @@ - (void)testSendClusterTest_TC_CC_4_3_000004_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_3_000005_ReadAttribute +- (void)testSendClusterTest_TC_CC_4_3_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; @@ -5146,7 +5277,15 @@ - (void)testSendClusterTest_TC_CC_4_3_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_4_000000_On +- (void)testSendClusterTest_TC_CC_4_4_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_4_4_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; @@ -5165,7 +5304,7 @@ - (void)testSendClusterTest_TC_CC_4_4_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_4_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_4_4_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; @@ -5189,7 +5328,7 @@ - (void)testSendClusterTest_TC_CC_4_4_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_4_000002_MoveToHueAndSaturation +- (void)testSendClusterTest_TC_CC_4_4_000003_MoveToHueAndSaturation { XCTestExpectation * expectation = [self expectationWithDescription:@"Move To current hue and saturation command"]; @@ -5215,7 +5354,7 @@ - (void)testSendClusterTest_TC_CC_4_4_000002_MoveToHueAndSaturation [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_4_000003_Off +- (void)testSendClusterTest_TC_CC_4_4_000004_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; @@ -5234,7 +5373,7 @@ - (void)testSendClusterTest_TC_CC_4_4_000003_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_4_4_000004_ReadAttribute +- (void)testSendClusterTest_TC_CC_4_4_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; @@ -5259,7 +5398,15 @@ - (void)testSendClusterTest_TC_CC_4_4_000004_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_5_1_000000_On +- (void)testSendClusterTest_TC_CC_5_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_5_1_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; @@ -5278,7 +5425,7 @@ - (void)testSendClusterTest_TC_CC_5_1_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_5_1_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_5_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; @@ -5302,7 +5449,7 @@ - (void)testSendClusterTest_TC_CC_5_1_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_5_1_000002_MoveToColor +- (void)testSendClusterTest_TC_CC_5_1_000003_MoveToColor { XCTestExpectation * expectation = [self expectationWithDescription:@"Move to Color command"]; @@ -5328,7 +5475,7 @@ - (void)testSendClusterTest_TC_CC_5_1_000002_MoveToColor [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_5_1_000003_Off +- (void)testSendClusterTest_TC_CC_5_1_000004_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; @@ -5347,7 +5494,7 @@ - (void)testSendClusterTest_TC_CC_5_1_000003_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_5_1_000004_ReadAttribute +- (void)testSendClusterTest_TC_CC_5_1_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; @@ -5372,7 +5519,15 @@ - (void)testSendClusterTest_TC_CC_5_1_000004_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_5_2_000000_On +- (void)testSendClusterTest_TC_CC_5_2_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_5_2_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; @@ -5391,7 +5546,7 @@ - (void)testSendClusterTest_TC_CC_5_2_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_5_2_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_5_2_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; @@ -5415,7 +5570,7 @@ - (void)testSendClusterTest_TC_CC_5_2_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_5_2_000002_MoveColor +- (void)testSendClusterTest_TC_CC_5_2_000003_MoveColor { XCTestExpectation * expectation = [self expectationWithDescription:@"Move Color command"]; @@ -5440,7 +5595,7 @@ - (void)testSendClusterTest_TC_CC_5_2_000002_MoveColor [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_5_2_000003_StopMoveStep +- (void)testSendClusterTest_TC_CC_5_2_000004_StopMoveStep { XCTestExpectation * expectation = [self expectationWithDescription:@"Stop Move Step command"]; @@ -5463,7 +5618,7 @@ - (void)testSendClusterTest_TC_CC_5_2_000003_StopMoveStep [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_5_2_000004_Off +- (void)testSendClusterTest_TC_CC_5_2_000005_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; @@ -5482,7 +5637,7 @@ - (void)testSendClusterTest_TC_CC_5_2_000004_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_5_2_000005_ReadAttribute +- (void)testSendClusterTest_TC_CC_5_2_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; @@ -5507,7 +5662,15 @@ - (void)testSendClusterTest_TC_CC_5_2_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_5_3_000000_On +- (void)testSendClusterTest_TC_CC_5_3_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_5_3_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; @@ -5526,7 +5689,7 @@ - (void)testSendClusterTest_TC_CC_5_3_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_5_3_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_5_3_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; @@ -5550,7 +5713,7 @@ - (void)testSendClusterTest_TC_CC_5_3_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_5_3_000002_StepColor +- (void)testSendClusterTest_TC_CC_5_3_000003_StepColor { XCTestExpectation * expectation = [self expectationWithDescription:@"Step Color command"]; @@ -5576,7 +5739,7 @@ - (void)testSendClusterTest_TC_CC_5_3_000002_StepColor [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_5_3_000003_Off +- (void)testSendClusterTest_TC_CC_5_3_000004_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; @@ -5595,7 +5758,7 @@ - (void)testSendClusterTest_TC_CC_5_3_000003_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_5_3_000004_ReadAttribute +- (void)testSendClusterTest_TC_CC_5_3_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; @@ -5620,7 +5783,15 @@ - (void)testSendClusterTest_TC_CC_5_3_000004_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_6_1_000000_On +- (void)testSendClusterTest_TC_CC_6_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_6_1_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; @@ -5639,7 +5810,7 @@ - (void)testSendClusterTest_TC_CC_6_1_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_6_1_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_6_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; @@ -5663,7 +5834,7 @@ - (void)testSendClusterTest_TC_CC_6_1_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_6_1_000002_MoveToColorTemperature +- (void)testSendClusterTest_TC_CC_6_1_000003_MoveToColorTemperature { XCTestExpectation * expectation = [self expectationWithDescription:@"Move To Color Temperature command"]; @@ -5688,7 +5859,7 @@ - (void)testSendClusterTest_TC_CC_6_1_000002_MoveToColorTemperature [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_6_1_000003_Off +- (void)testSendClusterTest_TC_CC_6_1_000004_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; @@ -5707,7 +5878,7 @@ - (void)testSendClusterTest_TC_CC_6_1_000003_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_6_1_000004_ReadAttribute +- (void)testSendClusterTest_TC_CC_6_1_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; @@ -5732,7 +5903,15 @@ - (void)testSendClusterTest_TC_CC_6_1_000004_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_6_2_000000_On +- (void)testSendClusterTest_TC_CC_6_2_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_6_2_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; @@ -5751,7 +5930,7 @@ - (void)testSendClusterTest_TC_CC_6_2_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_6_2_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_6_2_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; @@ -5775,7 +5954,7 @@ - (void)testSendClusterTest_TC_CC_6_2_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_6_2_000002_MoveColorTemperature +- (void)testSendClusterTest_TC_CC_6_2_000003_MoveColorTemperature { XCTestExpectation * expectation = [self expectationWithDescription:@"Move up color temperature command"]; @@ -5802,7 +5981,7 @@ - (void)testSendClusterTest_TC_CC_6_2_000002_MoveColorTemperature [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_6_2_000003_MoveColorTemperature +- (void)testSendClusterTest_TC_CC_6_2_000004_MoveColorTemperature { XCTestExpectation * expectation = [self expectationWithDescription:@"Stop Color Temperature command"]; @@ -5829,7 +6008,7 @@ - (void)testSendClusterTest_TC_CC_6_2_000003_MoveColorTemperature [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_6_2_000004_MoveColorTemperature +- (void)testSendClusterTest_TC_CC_6_2_000005_MoveColorTemperature { XCTestExpectation * expectation = [self expectationWithDescription:@"Move down color temperature command"]; @@ -5856,7 +6035,7 @@ - (void)testSendClusterTest_TC_CC_6_2_000004_MoveColorTemperature [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_6_2_000005_Off +- (void)testSendClusterTest_TC_CC_6_2_000006_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; @@ -5875,7 +6054,7 @@ - (void)testSendClusterTest_TC_CC_6_2_000005_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_6_2_000006_ReadAttribute +- (void)testSendClusterTest_TC_CC_6_2_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; @@ -5900,7 +6079,15 @@ - (void)testSendClusterTest_TC_CC_6_2_000006_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_6_3_000000_On +- (void)testSendClusterTest_TC_CC_6_3_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_6_3_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; @@ -5919,7 +6106,7 @@ - (void)testSendClusterTest_TC_CC_6_3_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_6_3_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_6_3_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; @@ -5943,7 +6130,7 @@ - (void)testSendClusterTest_TC_CC_6_3_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_6_3_000002_StepColorTemperature +- (void)testSendClusterTest_TC_CC_6_3_000003_StepColorTemperature { XCTestExpectation * expectation = [self expectationWithDescription:@"Step up color temperature command"]; @@ -5971,7 +6158,7 @@ - (void)testSendClusterTest_TC_CC_6_3_000002_StepColorTemperature [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_6_3_000003_StepColorTemperature +- (void)testSendClusterTest_TC_CC_6_3_000004_StepColorTemperature { XCTestExpectation * expectation = [self expectationWithDescription:@"Step down color temperature command"]; @@ -5999,7 +6186,7 @@ - (void)testSendClusterTest_TC_CC_6_3_000003_StepColorTemperature [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_6_3_000004_Off +- (void)testSendClusterTest_TC_CC_6_3_000005_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; @@ -6018,7 +6205,7 @@ - (void)testSendClusterTest_TC_CC_6_3_000004_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_6_3_000005_ReadAttribute +- (void)testSendClusterTest_TC_CC_6_3_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; @@ -6043,7 +6230,15 @@ - (void)testSendClusterTest_TC_CC_6_3_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_1_000000_On +- (void)testSendClusterTest_TC_CC_7_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_7_1_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; @@ -6062,7 +6257,7 @@ - (void)testSendClusterTest_TC_CC_7_1_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_1_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_7_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; @@ -6086,7 +6281,7 @@ - (void)testSendClusterTest_TC_CC_7_1_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_1_000002_EnhancedMoveToHue +- (void)testSendClusterTest_TC_CC_7_1_000003_EnhancedMoveToHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Enhanced Move To Hue command"]; @@ -6112,7 +6307,7 @@ - (void)testSendClusterTest_TC_CC_7_1_000002_EnhancedMoveToHue [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_1_000003_ReadAttribute +- (void)testSendClusterTest_TC_CC_7_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check Remaining time attribute value matched the value sent by the last command"]; @@ -6137,7 +6332,7 @@ - (void)testSendClusterTest_TC_CC_7_1_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_1_000004_Off +- (void)testSendClusterTest_TC_CC_7_1_000005_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; @@ -6156,7 +6351,7 @@ - (void)testSendClusterTest_TC_CC_7_1_000004_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_1_000005_ReadAttribute +- (void)testSendClusterTest_TC_CC_7_1_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; @@ -6181,7 +6376,15 @@ - (void)testSendClusterTest_TC_CC_7_1_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_2_000000_On +- (void)testSendClusterTest_TC_CC_7_2_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_7_2_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; @@ -6200,7 +6403,7 @@ - (void)testSendClusterTest_TC_CC_7_2_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_2_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_7_2_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; @@ -6224,7 +6427,7 @@ - (void)testSendClusterTest_TC_CC_7_2_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_2_000002_EnhancedMoveHue +- (void)testSendClusterTest_TC_CC_7_2_000003_EnhancedMoveHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Enhanced Move Hue Down command "]; @@ -6249,7 +6452,7 @@ - (void)testSendClusterTest_TC_CC_7_2_000002_EnhancedMoveHue [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_2_000003_EnhancedMoveHue +- (void)testSendClusterTest_TC_CC_7_2_000004_EnhancedMoveHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Enhanced Move Hue Stop command"]; @@ -6274,7 +6477,7 @@ - (void)testSendClusterTest_TC_CC_7_2_000003_EnhancedMoveHue [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_2_000004_EnhancedMoveHue +- (void)testSendClusterTest_TC_CC_7_2_000005_EnhancedMoveHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Enhanced Move Hue Up command"]; @@ -6299,7 +6502,7 @@ - (void)testSendClusterTest_TC_CC_7_2_000004_EnhancedMoveHue [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_2_000005_EnhancedMoveHue +- (void)testSendClusterTest_TC_CC_7_2_000006_EnhancedMoveHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Enhanced Move Hue Stop command"]; @@ -6324,7 +6527,7 @@ - (void)testSendClusterTest_TC_CC_7_2_000005_EnhancedMoveHue [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_2_000006_Off +- (void)testSendClusterTest_TC_CC_7_2_000007_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; @@ -6343,7 +6546,7 @@ - (void)testSendClusterTest_TC_CC_7_2_000006_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_2_000007_ReadAttribute +- (void)testSendClusterTest_TC_CC_7_2_000008_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; @@ -6368,7 +6571,15 @@ - (void)testSendClusterTest_TC_CC_7_2_000007_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_3_000000_On +- (void)testSendClusterTest_TC_CC_7_3_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_7_3_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; @@ -6387,7 +6598,7 @@ - (void)testSendClusterTest_TC_CC_7_3_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_3_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_7_3_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; @@ -6411,7 +6622,7 @@ - (void)testSendClusterTest_TC_CC_7_3_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_3_000002_EnhancedStepHue +- (void)testSendClusterTest_TC_CC_7_3_000003_EnhancedStepHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Enhanced Step Hue Up command"]; @@ -6437,7 +6648,7 @@ - (void)testSendClusterTest_TC_CC_7_3_000002_EnhancedStepHue [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_3_000003_EnhancedStepHue +- (void)testSendClusterTest_TC_CC_7_3_000004_EnhancedStepHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Enhanced Step Hue Down command"]; @@ -6463,7 +6674,7 @@ - (void)testSendClusterTest_TC_CC_7_3_000003_EnhancedStepHue [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_3_000004_Off +- (void)testSendClusterTest_TC_CC_7_3_000005_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; @@ -6482,7 +6693,7 @@ - (void)testSendClusterTest_TC_CC_7_3_000004_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_3_000005_ReadAttribute +- (void)testSendClusterTest_TC_CC_7_3_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; @@ -6507,7 +6718,15 @@ - (void)testSendClusterTest_TC_CC_7_3_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_4_000000_On +- (void)testSendClusterTest_TC_CC_7_4_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_7_4_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; @@ -6526,7 +6745,7 @@ - (void)testSendClusterTest_TC_CC_7_4_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_4_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_7_4_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; @@ -6550,7 +6769,7 @@ - (void)testSendClusterTest_TC_CC_7_4_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_4_000002_EnhancedMoveToHueAndSaturation +- (void)testSendClusterTest_TC_CC_7_4_000003_EnhancedMoveToHueAndSaturation { XCTestExpectation * expectation = [self expectationWithDescription:@"Enhanced move to hue and saturation command"]; @@ -6576,7 +6795,7 @@ - (void)testSendClusterTest_TC_CC_7_4_000002_EnhancedMoveToHueAndSaturation [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_4_000003_Off +- (void)testSendClusterTest_TC_CC_7_4_000004_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; @@ -6595,7 +6814,7 @@ - (void)testSendClusterTest_TC_CC_7_4_000003_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_7_4_000004_ReadAttribute +- (void)testSendClusterTest_TC_CC_7_4_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; @@ -6620,7 +6839,15 @@ - (void)testSendClusterTest_TC_CC_7_4_000004_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_8_1_000000_On +- (void)testSendClusterTest_TC_CC_8_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_8_1_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; @@ -6639,7 +6866,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_8_1_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_8_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; @@ -6663,7 +6890,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_8_1_000002_ColorLoopSet +- (void)testSendClusterTest_TC_CC_8_1_000003_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Color Loop Set Command - Set all Attributs"]; @@ -6691,7 +6918,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000002_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_8_1_000003_ReadAttribute +- (void)testSendClusterTest_TC_CC_8_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check ColorLoopDirection Value"]; @@ -6715,7 +6942,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_8_1_000004_ReadAttribute +- (void)testSendClusterTest_TC_CC_8_1_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check ColorLoopTime Value"]; @@ -6739,7 +6966,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000004_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_8_1_000005_ReadAttribute +- (void)testSendClusterTest_TC_CC_8_1_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check ColorLoopStartEnhancedHue Value"]; @@ -6763,7 +6990,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_8_1_000006_ReadAttribute +- (void)testSendClusterTest_TC_CC_8_1_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check ColorLoopActive Value"]; @@ -6787,7 +7014,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000006_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_8_1_000007_ColorLoopSet +- (void)testSendClusterTest_TC_CC_8_1_000008_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Color Loop Set Command - Start Color Loop"]; @@ -6815,7 +7042,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000007_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_8_1_000008_ReadAttribute +- (void)testSendClusterTest_TC_CC_8_1_000009_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check ColorLoopActive Value"]; @@ -6839,7 +7066,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000008_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_8_1_000009_ColorLoopSet +- (void)testSendClusterTest_TC_CC_8_1_000010_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Color Loop Set Command - Set direction and time while running"]; @@ -6868,7 +7095,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000009_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_8_1_000010_ReadAttribute +- (void)testSendClusterTest_TC_CC_8_1_000011_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check ColorLoopDirection Value"]; @@ -6892,7 +7119,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000010_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_8_1_000011_ReadAttribute +- (void)testSendClusterTest_TC_CC_8_1_000012_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check ColorLoopTime Value"]; @@ -6916,7 +7143,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000011_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_8_1_000012_ColorLoopSet +- (void)testSendClusterTest_TC_CC_8_1_000013_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Color Loop Set Command - Set direction while running"]; @@ -6944,7 +7171,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000012_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_8_1_000013_ReadAttribute +- (void)testSendClusterTest_TC_CC_8_1_000014_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check ColorLoopDirection Value"]; @@ -6968,7 +7195,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000013_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_8_1_000014_Off +- (void)testSendClusterTest_TC_CC_8_1_000015_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; @@ -6987,7 +7214,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000014_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_8_1_000015_ReadAttribute +- (void)testSendClusterTest_TC_CC_8_1_000016_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; @@ -7012,7 +7239,15 @@ - (void)testSendClusterTest_TC_CC_8_1_000015_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000000_On +- (void)testSendClusterTest_TC_CC_9_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_9_1_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Precondition : Turn on light for color control tests"]; @@ -7031,7 +7266,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; @@ -7055,7 +7290,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000002_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_1_000003_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Sends ColorLoopSet Command - Set all Attributes"]; @@ -7083,7 +7318,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000002_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000003_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopActive attribute from DUT"]; @@ -7107,7 +7342,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000004_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_1_000005_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Sends ColorLoopSet Command - Set all Attributes"]; @@ -7135,7 +7370,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000004_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000005_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_1_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopDirection attribute from DUT"]; @@ -7159,7 +7394,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000006_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_1_000007_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Sends ColorLoopSet Command - Set all Attributes"]; @@ -7187,7 +7422,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000006_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000007_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_1_000008_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopTime attribute from DUT"]; @@ -7211,7 +7446,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000007_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000008_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_1_000009_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Sends ColorLoopSet Command - Set all Attributes"]; @@ -7239,7 +7474,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000008_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000009_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_1_000010_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopStartEnhancedHue attribute from DUT"]; @@ -7263,7 +7498,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000009_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000010_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_1_000011_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Sends ColorLoopSet Command - Set all Attributes"]; @@ -7291,7 +7526,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000010_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000011_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_1_000012_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopActive attribute from DUT"]; @@ -7315,7 +7550,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000011_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000012_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_1_000013_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Sends ColorLoopSet Command - Set all Attributes"]; @@ -7343,7 +7578,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000012_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000013_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_1_000014_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopActive attribute from DUT"]; @@ -7367,7 +7602,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000013_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000014_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_1_000015_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Sends ColorLoopSet Command - Set all Attributes"]; @@ -7395,7 +7630,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000014_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000015_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_1_000016_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopDirection attribute from DUT"]; @@ -7419,7 +7654,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000015_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000016_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_1_000017_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Sends ColorLoopSet Command - Set all Attributes"]; @@ -7447,7 +7682,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000016_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000017_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_1_000018_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopActive attribute from DUT"]; @@ -7471,7 +7706,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000017_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000018_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_1_000019_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Sends ColorLoopSet Command - Set all Attributes"]; @@ -7499,7 +7734,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000018_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000019_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_1_000020_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopActive attribute from DUT"]; @@ -7523,7 +7758,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000019_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000020_EnhancedMoveToHue +- (void)testSendClusterTest_TC_CC_9_1_000021_EnhancedMoveToHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Enhanced Move To Hue command 10"]; @@ -7549,7 +7784,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000020_EnhancedMoveToHue [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000021_WaitForMs +- (void)testSendClusterTest_TC_CC_9_1_000022_WaitForMs { XCTestExpectation * expectation = [self expectationWithDescription:@"Wait 2000ms"]; @@ -7557,7 +7792,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000021_WaitForMs WaitForMs(expectation, queue, 2000); [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000022_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_1_000023_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read EnhancedCurrentHue attribute from DUT"]; @@ -7581,7 +7816,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000022_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000023_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_1_000024_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Sends ColorLoopSet Command - Set all Attributes"]; @@ -7609,7 +7844,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000023_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000024_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_1_000025_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopDirection attribute from DUT"]; @@ -7633,7 +7868,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000024_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000025_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_1_000026_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Sends ColorLoopSet Command - Set all Attributes"]; @@ -7661,7 +7896,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000025_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000026_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_1_000027_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopActive attribute from DUT"]; @@ -7685,7 +7920,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000026_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000027_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_1_000028_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Sends ColorLoopSet Command - Set all Attributes"]; @@ -7713,7 +7948,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000027_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000028_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_1_000029_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopActive attribute from DUT"]; @@ -7737,7 +7972,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000028_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000029_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_1_000030_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Sends ColorLoopSet Command - Set all Attributes"]; @@ -7765,7 +8000,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000029_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000030_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_1_000031_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopDirection attribute from DUT"]; @@ -7789,7 +8024,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000030_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000031_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_1_000032_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Sends ColorLoopSet Command - Set all Attributes"]; @@ -7817,7 +8052,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000031_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000032_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_1_000033_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopActive attribute from DUT"]; @@ -7841,7 +8076,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000032_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000033_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_1_000034_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Sends ColorLoopSet Command - Set all Attributes"]; @@ -7869,7 +8104,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000033_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000034_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_1_000035_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopActive attribute from DUT"]; @@ -7893,7 +8128,7 @@ - (void)testSendClusterTest_TC_CC_9_1_000034_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_1_000035_Off +- (void)testSendClusterTest_TC_CC_9_1_000036_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn Off light for color control tests"]; @@ -7913,7 +8148,15 @@ - (void)testSendClusterTest_TC_CC_9_1_000035_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_2_000000_On +- (void)testSendClusterTest_TC_CC_9_2_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_9_2_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Precondition: Turn on light for color control tests"]; @@ -7932,7 +8175,7 @@ - (void)testSendClusterTest_TC_CC_9_2_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_2_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_2_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Precondition: Check on/off attribute value is true after on command"]; @@ -7957,7 +8200,7 @@ - (void)testSendClusterTest_TC_CC_9_2_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_2_000002_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_2_000003_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Sends ColorLoopSet Command - Set all Attributes"]; @@ -7985,7 +8228,7 @@ - (void)testSendClusterTest_TC_CC_9_2_000002_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_2_000003_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_2_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopActive attribute from DUT"]; @@ -8009,7 +8252,7 @@ - (void)testSendClusterTest_TC_CC_9_2_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_2_000004_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_2_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopDirection attribute from DUT."]; @@ -8033,7 +8276,7 @@ - (void)testSendClusterTest_TC_CC_9_2_000004_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_2_000005_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_2_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopTime attribute from DUT."]; @@ -8057,7 +8300,7 @@ - (void)testSendClusterTest_TC_CC_9_2_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_2_000006_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_2_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopStartEnhancedHue attribute from DUT."]; @@ -8081,7 +8324,7 @@ - (void)testSendClusterTest_TC_CC_9_2_000006_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_2_000007_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_2_000008_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Color Loop Set Command - Set all Attributes"]; @@ -8109,7 +8352,7 @@ - (void)testSendClusterTest_TC_CC_9_2_000007_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_2_000008_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_2_000009_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopActive attribute from DUT."]; @@ -8133,7 +8376,7 @@ - (void)testSendClusterTest_TC_CC_9_2_000008_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_2_000009_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_2_000010_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Color Loop Set Command - Start Color Loop"]; @@ -8161,7 +8404,7 @@ - (void)testSendClusterTest_TC_CC_9_2_000009_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_2_000010_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_2_000011_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopDirection attribute from DUT."]; @@ -8185,7 +8428,7 @@ - (void)testSendClusterTest_TC_CC_9_2_000010_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_2_000011_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_2_000012_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Color Loop Set Command - Start Color Loop"]; @@ -8213,7 +8456,7 @@ - (void)testSendClusterTest_TC_CC_9_2_000011_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_2_000012_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_2_000013_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopActive attribute from DUT"]; @@ -8237,7 +8480,7 @@ - (void)testSendClusterTest_TC_CC_9_2_000012_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_2_000013_Off +- (void)testSendClusterTest_TC_CC_9_2_000014_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light for color control tests"]; @@ -8257,7 +8500,15 @@ - (void)testSendClusterTest_TC_CC_9_2_000013_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_3_000000_On +- (void)testSendClusterTest_TC_CC_9_3_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_CC_9_3_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Precondition: Turn on light for color control tests"]; @@ -8276,7 +8527,7 @@ - (void)testSendClusterTest_TC_CC_9_3_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_3_000001_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_3_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Precondition: Check on/off attribute value is true after on command"]; @@ -8301,7 +8552,7 @@ - (void)testSendClusterTest_TC_CC_9_3_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_3_000002_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_3_000003_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Sends ColorLoopSet Command - Set all Attributes"]; @@ -8329,7 +8580,7 @@ - (void)testSendClusterTest_TC_CC_9_3_000002_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_3_000003_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_3_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopActive attribute from DUT"]; @@ -8353,7 +8604,7 @@ - (void)testSendClusterTest_TC_CC_9_3_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_3_000004_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_3_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopDirection attribute from DUT."]; @@ -8377,7 +8628,7 @@ - (void)testSendClusterTest_TC_CC_9_3_000004_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_3_000005_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_3_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopTime attribute from DUT."]; @@ -8401,7 +8652,7 @@ - (void)testSendClusterTest_TC_CC_9_3_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_3_000006_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_3_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopStartEnhancedHue attribute from DUT."]; @@ -8425,7 +8676,7 @@ - (void)testSendClusterTest_TC_CC_9_3_000006_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_3_000007_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_3_000008_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Color Loop Set Command - Set all Attributes"]; @@ -8453,7 +8704,7 @@ - (void)testSendClusterTest_TC_CC_9_3_000007_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_3_000008_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_3_000009_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopActive attribute from DUT."]; @@ -8477,7 +8728,7 @@ - (void)testSendClusterTest_TC_CC_9_3_000008_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_3_000009_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_3_000010_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Color Loop Set Command - Start Color Loop"]; @@ -8505,7 +8756,7 @@ - (void)testSendClusterTest_TC_CC_9_3_000009_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_3_000010_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_3_000011_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopTime attribute from DUT."]; @@ -8529,7 +8780,7 @@ - (void)testSendClusterTest_TC_CC_9_3_000010_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_3_000011_ColorLoopSet +- (void)testSendClusterTest_TC_CC_9_3_000012_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Color Loop Set Command - Start Color Loop"]; @@ -8557,7 +8808,7 @@ - (void)testSendClusterTest_TC_CC_9_3_000011_ColorLoopSet [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_3_000012_ReadAttribute +- (void)testSendClusterTest_TC_CC_9_3_000013_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read ColorLoopActive attribute from DUT"]; @@ -8581,7 +8832,7 @@ - (void)testSendClusterTest_TC_CC_9_3_000012_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_CC_9_3_000013_Off +- (void)testSendClusterTest_TC_CC_9_3_000014_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light for color control tests"]; @@ -8601,7 +8852,15 @@ - (void)testSendClusterTest_TC_CC_9_3_000013_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DM_1_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_DM_1_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_DM_1_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query Interaction Model Version"]; @@ -8620,7 +8879,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DM_1_1_000001_ReadAttribute +- (void)testSendClusterTest_TC_DM_1_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query Vendor Name"]; @@ -8644,7 +8903,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DM_1_1_000002_ReadAttribute +- (void)testSendClusterTest_TC_DM_1_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query VendorID"]; @@ -8663,7 +8922,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DM_1_1_000003_ReadAttribute +- (void)testSendClusterTest_TC_DM_1_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query Product Name"]; @@ -8687,7 +8946,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DM_1_1_000004_ReadAttribute +- (void)testSendClusterTest_TC_DM_1_1_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query ProductID"]; @@ -8706,7 +8965,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000004_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DM_1_1_000005_ReadAttribute +- (void)testSendClusterTest_TC_DM_1_1_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query Node Label"]; @@ -8730,7 +8989,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DM_1_1_000006_ReadAttribute +- (void)testSendClusterTest_TC_DM_1_1_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query User Location"]; @@ -8754,7 +9013,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000006_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DM_1_1_000007_ReadAttribute +- (void)testSendClusterTest_TC_DM_1_1_000008_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query HardwareVersion"]; @@ -8773,7 +9032,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000007_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DM_1_1_000008_ReadAttribute +- (void)testSendClusterTest_TC_DM_1_1_000009_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query HardwareVersionString"]; @@ -8801,7 +9060,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000008_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DM_1_1_000009_ReadAttribute +- (void)testSendClusterTest_TC_DM_1_1_000010_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query SoftwareVersion"]; @@ -8820,7 +9079,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000009_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DM_1_1_000010_ReadAttribute +- (void)testSendClusterTest_TC_DM_1_1_000011_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query SoftwareVersionString"]; @@ -8848,7 +9107,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000010_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DM_1_1_000011_ReadAttribute +- (void)testSendClusterTest_TC_DM_1_1_000012_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query ManufacturingDate"]; @@ -8881,7 +9140,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000011_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DM_1_1_000012_ReadAttribute +- (void)testSendClusterTest_TC_DM_1_1_000013_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query PartNumber"]; @@ -8910,7 +9169,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000012_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DM_1_1_000013_ReadAttribute +- (void)testSendClusterTest_TC_DM_1_1_000014_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query ProductURL"]; @@ -8939,7 +9198,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000013_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DM_1_1_000014_ReadAttribute +- (void)testSendClusterTest_TC_DM_1_1_000015_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query ProductLabel"]; @@ -8968,7 +9227,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000014_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DM_1_1_000015_ReadAttribute +- (void)testSendClusterTest_TC_DM_1_1_000016_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query SerialNumber"]; @@ -8997,7 +9256,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000015_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DM_1_1_000016_ReadAttribute +- (void)testSendClusterTest_TC_DM_1_1_000017_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query LocalConfigDisabled"]; @@ -9021,7 +9280,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000016_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DM_1_1_000017_ReadAttribute +- (void)testSendClusterTest_TC_DM_1_1_000018_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query Reachable"]; @@ -9045,7 +9304,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000017_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DM_1_1_000018_ReadAttribute +- (void)testSendClusterTest_TC_DM_1_1_000019_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query UniqueID"]; @@ -9075,7 +9334,24 @@ - (void)testSendClusterTest_TC_DM_1_1_000018_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_EMR_1_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_DM_3_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} + +- (void)testSendClusterTest_TC_EMR_1_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_EMR_1_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the global attribute: ClusterRevision"]; @@ -9099,7 +9375,7 @@ - (void)testSendClusterTest_TC_EMR_1_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_EMR_1_1_000001_WriteAttribute +- (void)testSendClusterTest_TC_EMR_1_1_000002_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; @@ -9122,7 +9398,7 @@ - (void)testSendClusterTest_TC_EMR_1_1_000001_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_EMR_1_1_000002_ReadAttribute +- (void)testSendClusterTest_TC_EMR_1_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back global attribute: ClusterRevision"]; @@ -9147,7 +9423,15 @@ - (void)testSendClusterTest_TC_EMR_1_1_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_FLW_1_1_000000_WriteAttribute +- (void)testSendClusterTest_TC_FLW_1_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_FLW_1_1_000001_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; @@ -9171,7 +9455,15 @@ - (void)testSendClusterTest_TC_FLW_1_1_000000_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_FLW_2_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_FLW_2_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_FLW_2_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: MeasuredValue"]; @@ -9190,7 +9482,7 @@ - (void)testSendClusterTest_TC_FLW_2_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_FLW_2_1_000001_ReadAttribute +- (void)testSendClusterTest_TC_FLW_2_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: MinMeasuredValue"]; @@ -9209,7 +9501,7 @@ - (void)testSendClusterTest_TC_FLW_2_1_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_FLW_2_1_000002_ReadAttribute +- (void)testSendClusterTest_TC_FLW_2_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: MaxMeasuredValue"]; @@ -9228,7 +9520,7 @@ - (void)testSendClusterTest_TC_FLW_2_1_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_FLW_2_1_000003_WriteAttribute +- (void)testSendClusterTest_TC_FLW_2_1_000004_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default value to optional attribute: MinMeasuredValue"]; @@ -9251,7 +9543,7 @@ - (void)testSendClusterTest_TC_FLW_2_1_000003_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_FLW_2_1_000004_WriteAttribute +- (void)testSendClusterTest_TC_FLW_2_1_000005_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default value to optional attribute: MaxMeasuredValue"]; @@ -9274,7 +9566,7 @@ - (void)testSendClusterTest_TC_FLW_2_1_000004_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_FLW_2_1_000005_ReadAttribute +- (void)testSendClusterTest_TC_FLW_2_1_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: MeasuredValue"]; @@ -9293,7 +9585,7 @@ - (void)testSendClusterTest_TC_FLW_2_1_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_FLW_2_1_000006_ReadAttribute +- (void)testSendClusterTest_TC_FLW_2_1_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: MinMeasuredValue"]; @@ -9312,7 +9604,7 @@ - (void)testSendClusterTest_TC_FLW_2_1_000006_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_FLW_2_1_000007_ReadAttribute +- (void)testSendClusterTest_TC_FLW_2_1_000008_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: MaxMeasuredValue"]; @@ -9332,7 +9624,15 @@ - (void)testSendClusterTest_TC_FLW_2_1_000007_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_FLW_2_2_000000_ReadAttribute +- (void)testSendClusterTest_TC_FLW_2_2_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_FLW_2_2_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: MeasuredValue"]; @@ -9351,7 +9651,7 @@ - (void)testSendClusterTest_TC_FLW_2_2_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_FLW_2_2_000001_ReadAttribute +- (void)testSendClusterTest_TC_FLW_2_2_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: MeasuredValue"]; @@ -9371,7 +9671,15 @@ - (void)testSendClusterTest_TC_FLW_2_2_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_ILL_1_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_ILL_1_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_ILL_1_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the global attribute: ClusterRevision"]; @@ -9397,7 +9705,7 @@ - (void)testSendClusterTest_TC_ILL_1_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_ILL_1_1_000001_WriteAttribute +- (void)testSendClusterTest_TC_ILL_1_1_000002_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; @@ -9422,7 +9730,7 @@ - (void)testSendClusterTest_TC_ILL_1_1_000001_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_ILL_1_1_000002_ReadAttribute +- (void)testSendClusterTest_TC_ILL_1_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back global attribute: ClusterRevision"]; @@ -9449,7 +9757,15 @@ - (void)testSendClusterTest_TC_ILL_1_1_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_1_1_000000_WriteAttribute +- (void)testSendClusterTest_TC_LVL_1_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_LVL_1_1_000001_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; @@ -9473,7 +9789,15 @@ - (void)testSendClusterTest_TC_LVL_1_1_000000_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_2_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_LVL_2_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_LVL_2_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads current Level attribute from DUT"]; @@ -9497,7 +9821,7 @@ - (void)testSendClusterTest_TC_LVL_2_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_2_1_000001_MoveToLevel +- (void)testSendClusterTest_TC_LVL_2_1_000002_MoveToLevel { XCTestExpectation * expectation = [self expectationWithDescription:@"sends a Move to level command"]; @@ -9522,7 +9846,7 @@ - (void)testSendClusterTest_TC_LVL_2_1_000001_MoveToLevel [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_2_1_000002_WaitForMs +- (void)testSendClusterTest_TC_LVL_2_1_000003_WaitForMs { XCTestExpectation * expectation = [self expectationWithDescription:@"Wait 100ms"]; @@ -9530,7 +9854,7 @@ - (void)testSendClusterTest_TC_LVL_2_1_000002_WaitForMs WaitForMs(expectation, queue, 100); [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_2_1_000003_ReadAttribute +- (void)testSendClusterTest_TC_LVL_2_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads current Level attribute from DUT"]; @@ -9554,7 +9878,7 @@ - (void)testSendClusterTest_TC_LVL_2_1_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_2_1_000004_MoveToLevel +- (void)testSendClusterTest_TC_LVL_2_1_000005_MoveToLevel { XCTestExpectation * expectation = [self expectationWithDescription:@"sends a Move to level command"]; @@ -9579,7 +9903,7 @@ - (void)testSendClusterTest_TC_LVL_2_1_000004_MoveToLevel [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_2_1_000005_WaitForMs +- (void)testSendClusterTest_TC_LVL_2_1_000006_WaitForMs { XCTestExpectation * expectation = [self expectationWithDescription:@"Wait 200ms"]; @@ -9587,7 +9911,7 @@ - (void)testSendClusterTest_TC_LVL_2_1_000005_WaitForMs WaitForMs(expectation, queue, 200); [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_2_1_000006_ReadAttribute +- (void)testSendClusterTest_TC_LVL_2_1_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads current Level attribute from DUT"]; @@ -9611,7 +9935,7 @@ - (void)testSendClusterTest_TC_LVL_2_1_000006_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_2_1_000007_ReadAttribute +- (void)testSendClusterTest_TC_LVL_2_1_000008_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads On Off Transition Time attribute from DUT"]; @@ -9635,7 +9959,7 @@ - (void)testSendClusterTest_TC_LVL_2_1_000007_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_2_1_000008_MoveToLevel +- (void)testSendClusterTest_TC_LVL_2_1_000009_MoveToLevel { XCTestExpectation * expectation = [self expectationWithDescription:@"sends a Move to level command"]; @@ -9660,7 +9984,7 @@ - (void)testSendClusterTest_TC_LVL_2_1_000008_MoveToLevel [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_2_1_000009_WaitForMs +- (void)testSendClusterTest_TC_LVL_2_1_000010_WaitForMs { XCTestExpectation * expectation = [self expectationWithDescription:@"Wait 10ms"]; @@ -9668,7 +9992,7 @@ - (void)testSendClusterTest_TC_LVL_2_1_000009_WaitForMs WaitForMs(expectation, queue, 10); [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_2_1_000010_ReadAttribute +- (void)testSendClusterTest_TC_LVL_2_1_000011_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads current Level attribute from DUT"]; @@ -9692,7 +10016,7 @@ - (void)testSendClusterTest_TC_LVL_2_1_000010_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_2_1_000011_MoveToLevel +- (void)testSendClusterTest_TC_LVL_2_1_000012_MoveToLevel { XCTestExpectation * expectation = [self expectationWithDescription:@"Reset level to 0"]; @@ -9717,7 +10041,7 @@ - (void)testSendClusterTest_TC_LVL_2_1_000011_MoveToLevel [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_2_1_000012_WaitForMs +- (void)testSendClusterTest_TC_LVL_2_1_000013_WaitForMs { XCTestExpectation * expectation = [self expectationWithDescription:@"Wait 100ms"]; @@ -9726,7 +10050,15 @@ - (void)testSendClusterTest_TC_LVL_2_1_000012_WaitForMs [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_3_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_LVL_3_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_LVL_3_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads current level attribute from DUT"]; @@ -9750,7 +10082,7 @@ - (void)testSendClusterTest_TC_LVL_3_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_3_1_000001_ReadAttribute +- (void)testSendClusterTest_TC_LVL_3_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads max level attribute from DUT"]; @@ -9774,7 +10106,7 @@ - (void)testSendClusterTest_TC_LVL_3_1_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_3_1_000002_Move +- (void)testSendClusterTest_TC_LVL_3_1_000003_Move { XCTestExpectation * expectation = [self expectationWithDescription:@"sends a Move up command"]; @@ -9799,7 +10131,7 @@ - (void)testSendClusterTest_TC_LVL_3_1_000002_Move [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_3_1_000003_WaitForMs +- (void)testSendClusterTest_TC_LVL_3_1_000004_WaitForMs { XCTestExpectation * expectation = [self expectationWithDescription:@"Wait 3000ms"]; @@ -9807,7 +10139,7 @@ - (void)testSendClusterTest_TC_LVL_3_1_000003_WaitForMs WaitForMs(expectation, queue, 3000); [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_3_1_000004_ReadAttribute +- (void)testSendClusterTest_TC_LVL_3_1_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads current level attribute from DUT"]; @@ -9831,7 +10163,7 @@ - (void)testSendClusterTest_TC_LVL_3_1_000004_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_3_1_000005_ReadAttribute +- (void)testSendClusterTest_TC_LVL_3_1_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads min level attribute from DUT"]; @@ -9855,7 +10187,7 @@ - (void)testSendClusterTest_TC_LVL_3_1_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_3_1_000006_Move +- (void)testSendClusterTest_TC_LVL_3_1_000007_Move { XCTestExpectation * expectation = [self expectationWithDescription:@"sends a Move down command"]; @@ -9880,7 +10212,7 @@ - (void)testSendClusterTest_TC_LVL_3_1_000006_Move [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_3_1_000007_WaitForMs +- (void)testSendClusterTest_TC_LVL_3_1_000008_WaitForMs { XCTestExpectation * expectation = [self expectationWithDescription:@"Wait 3000ms"]; @@ -9888,7 +10220,7 @@ - (void)testSendClusterTest_TC_LVL_3_1_000007_WaitForMs WaitForMs(expectation, queue, 3000); [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_3_1_000008_ReadAttribute +- (void)testSendClusterTest_TC_LVL_3_1_000009_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads current level attribute from DUT"]; @@ -9912,7 +10244,7 @@ - (void)testSendClusterTest_TC_LVL_3_1_000008_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_3_1_000009_WriteAttribute +- (void)testSendClusterTest_TC_LVL_3_1_000010_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write default move rate attribute from DUT"]; @@ -9934,7 +10266,7 @@ - (void)testSendClusterTest_TC_LVL_3_1_000009_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_3_1_000010_ReadAttribute +- (void)testSendClusterTest_TC_LVL_3_1_000011_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads default move rate attribute from DUT"]; @@ -9959,7 +10291,7 @@ - (void)testSendClusterTest_TC_LVL_3_1_000010_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_3_1_000011_Move +- (void)testSendClusterTest_TC_LVL_3_1_000012_Move { XCTestExpectation * expectation = [self expectationWithDescription:@"sends a Move up command at default move rate"]; @@ -9984,7 +10316,7 @@ - (void)testSendClusterTest_TC_LVL_3_1_000011_Move [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_3_1_000012_WaitForMs +- (void)testSendClusterTest_TC_LVL_3_1_000013_WaitForMs { XCTestExpectation * expectation = [self expectationWithDescription:@"Wait 100ms"]; @@ -9992,7 +10324,7 @@ - (void)testSendClusterTest_TC_LVL_3_1_000012_WaitForMs WaitForMs(expectation, queue, 100); [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_3_1_000013_ReadAttribute +- (void)testSendClusterTest_TC_LVL_3_1_000014_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads current level attribute from DUT"]; @@ -10017,7 +10349,15 @@ - (void)testSendClusterTest_TC_LVL_3_1_000013_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_4_1_000000_On +- (void)testSendClusterTest_TC_LVL_4_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_LVL_4_1_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Sending on command"]; @@ -10036,7 +10376,7 @@ - (void)testSendClusterTest_TC_LVL_4_1_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_4_1_000001_Step +- (void)testSendClusterTest_TC_LVL_4_1_000002_Step { XCTestExpectation * expectation = [self expectationWithDescription:@"Precondition: DUT level is set to 0x80"]; @@ -10062,7 +10402,7 @@ - (void)testSendClusterTest_TC_LVL_4_1_000001_Step [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_4_1_000002_WaitForMs +- (void)testSendClusterTest_TC_LVL_4_1_000003_WaitForMs { XCTestExpectation * expectation = [self expectationWithDescription:@"Wait 3000ms"]; @@ -10070,7 +10410,7 @@ - (void)testSendClusterTest_TC_LVL_4_1_000002_WaitForMs WaitForMs(expectation, queue, 3000); [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_4_1_000003_ReadAttribute +- (void)testSendClusterTest_TC_LVL_4_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads current level attribute from DUT"]; @@ -10094,7 +10434,7 @@ - (void)testSendClusterTest_TC_LVL_4_1_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_4_1_000004_Step +- (void)testSendClusterTest_TC_LVL_4_1_000005_Step { XCTestExpectation * expectation = [self expectationWithDescription:@"Sends step down command to DUT"]; @@ -10120,7 +10460,7 @@ - (void)testSendClusterTest_TC_LVL_4_1_000004_Step [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_4_1_000005_WaitForMs +- (void)testSendClusterTest_TC_LVL_4_1_000006_WaitForMs { XCTestExpectation * expectation = [self expectationWithDescription:@"Wait 3000ms"]; @@ -10128,7 +10468,7 @@ - (void)testSendClusterTest_TC_LVL_4_1_000005_WaitForMs WaitForMs(expectation, queue, 3000); [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_4_1_000006_ReadAttribute +- (void)testSendClusterTest_TC_LVL_4_1_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads current level attribute from DUT"]; @@ -10152,7 +10492,7 @@ - (void)testSendClusterTest_TC_LVL_4_1_000006_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_4_1_000007_Step +- (void)testSendClusterTest_TC_LVL_4_1_000008_Step { XCTestExpectation * expectation = [self expectationWithDescription:@"Sends a Step up command"]; @@ -10178,7 +10518,7 @@ - (void)testSendClusterTest_TC_LVL_4_1_000007_Step [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_4_1_000008_WaitForMs +- (void)testSendClusterTest_TC_LVL_4_1_000009_WaitForMs { XCTestExpectation * expectation = [self expectationWithDescription:@"Wait 3000ms"]; @@ -10186,7 +10526,7 @@ - (void)testSendClusterTest_TC_LVL_4_1_000008_WaitForMs WaitForMs(expectation, queue, 3000); [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_4_1_000009_ReadAttribute +- (void)testSendClusterTest_TC_LVL_4_1_000010_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads current level attribute from DUT"]; @@ -10210,7 +10550,7 @@ - (void)testSendClusterTest_TC_LVL_4_1_000009_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_4_1_000010_Off +- (void)testSendClusterTest_TC_LVL_4_1_000011_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Sending off command"]; @@ -10230,7 +10570,15 @@ - (void)testSendClusterTest_TC_LVL_4_1_000010_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_5_1_000000_On +- (void)testSendClusterTest_TC_LVL_5_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_LVL_5_1_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Sending on command"]; @@ -10249,7 +10597,7 @@ - (void)testSendClusterTest_TC_LVL_5_1_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_5_1_000001_Step +- (void)testSendClusterTest_TC_LVL_5_1_000002_Step { XCTestExpectation * expectation = [self expectationWithDescription:@"Precondition: DUT level is set to 0x80"]; @@ -10275,7 +10623,7 @@ - (void)testSendClusterTest_TC_LVL_5_1_000001_Step [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_5_1_000002_WaitForMs +- (void)testSendClusterTest_TC_LVL_5_1_000003_WaitForMs { XCTestExpectation * expectation = [self expectationWithDescription:@"Wait 3000ms"]; @@ -10283,7 +10631,7 @@ - (void)testSendClusterTest_TC_LVL_5_1_000002_WaitForMs WaitForMs(expectation, queue, 3000); [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_5_1_000003_Move +- (void)testSendClusterTest_TC_LVL_5_1_000004_Move { XCTestExpectation * expectation = [self expectationWithDescription:@"Sends a move up command to DUT"]; @@ -10308,7 +10656,7 @@ - (void)testSendClusterTest_TC_LVL_5_1_000003_Move [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_5_1_000004_WaitForMs +- (void)testSendClusterTest_TC_LVL_5_1_000005_WaitForMs { XCTestExpectation * expectation = [self expectationWithDescription:@"Wait 3000ms"]; @@ -10316,7 +10664,7 @@ - (void)testSendClusterTest_TC_LVL_5_1_000004_WaitForMs WaitForMs(expectation, queue, 3000); [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_5_1_000005_Stop +- (void)testSendClusterTest_TC_LVL_5_1_000006_Stop { XCTestExpectation * expectation = [self expectationWithDescription:@"Sends stop command to DUT"]; @@ -10339,7 +10687,7 @@ - (void)testSendClusterTest_TC_LVL_5_1_000005_Stop [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_LVL_5_1_000006_Off +- (void)testSendClusterTest_TC_LVL_5_1_000007_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Sending off command"]; @@ -10359,7 +10707,15 @@ - (void)testSendClusterTest_TC_LVL_5_1_000006_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_MC_1_1_000000_WriteAttribute +- (void)testSendClusterTest_TC_MC_1_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_MC_1_1_000001_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; @@ -10385,7 +10741,15 @@ - (void)testSendClusterTest_TC_MC_1_1_000000_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_MC_2_1_000000_Sleep +- (void)testSendClusterTest_TC_MC_2_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_MC_2_1_000001_Sleep { XCTestExpectation * expectation = [self expectationWithDescription:@"Put the device into low power mode"]; @@ -10405,7 +10769,114 @@ - (void)testSendClusterTest_TC_MC_2_1_000000_Sleep [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OCC_1_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_MC_3_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} + +- (void)testSendClusterTest_TC_MC_3_2_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} + +- (void)testSendClusterTest_TC_MC_3_3_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} + +- (void)testSendClusterTest_TC_MC_3_4_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} + +- (void)testSendClusterTest_TC_MC_3_5_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} + +- (void)testSendClusterTest_TC_MC_3_6_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} + +- (void)testSendClusterTest_TC_MC_3_7_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} + +- (void)testSendClusterTest_TC_MC_3_8_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} + +- (void)testSendClusterTest_TC_MC_3_9_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} + +- (void)testSendClusterTest_TC_MC_3_10_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} + +- (void)testSendClusterTest_TC_MC_3_11_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} + +- (void)testSendClusterTest_TC_OCC_1_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_OCC_1_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the global attribute: ClusterRevision"]; @@ -10429,7 +10900,7 @@ - (void)testSendClusterTest_TC_OCC_1_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OCC_1_1_000001_WriteAttribute +- (void)testSendClusterTest_TC_OCC_1_1_000002_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; @@ -10453,7 +10924,15 @@ - (void)testSendClusterTest_TC_OCC_1_1_000001_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OCC_2_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_OCC_2_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_OCC_2_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads mandatory attribute constrains: Occupancy"]; @@ -10477,7 +10956,7 @@ - (void)testSendClusterTest_TC_OCC_2_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OCC_2_1_000001_WriteAttribute +- (void)testSendClusterTest_TC_OCC_2_1_000002_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the respective default value to mandatory attribute: Occupancy"]; @@ -10499,7 +10978,7 @@ - (void)testSendClusterTest_TC_OCC_2_1_000001_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OCC_2_1_000002_ReadAttribute +- (void)testSendClusterTest_TC_OCC_2_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back mandatory attribute: Occupancy"]; @@ -10523,7 +11002,7 @@ - (void)testSendClusterTest_TC_OCC_2_1_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OCC_2_1_000003_ReadAttribute +- (void)testSendClusterTest_TC_OCC_2_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads mandatory attribute constrains: OccupancySensorType"]; @@ -10548,7 +11027,7 @@ - (void)testSendClusterTest_TC_OCC_2_1_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OCC_2_1_000004_WriteAttribute +- (void)testSendClusterTest_TC_OCC_2_1_000005_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the respective default value to mandatory attribute: OccupancySensorType"]; @@ -10573,7 +11052,7 @@ - (void)testSendClusterTest_TC_OCC_2_1_000004_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OCC_2_1_000005_ReadAttribute +- (void)testSendClusterTest_TC_OCC_2_1_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back mandatory attribute: OccupancySensorType"]; @@ -10597,7 +11076,7 @@ - (void)testSendClusterTest_TC_OCC_2_1_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OCC_2_1_000006_ReadAttribute +- (void)testSendClusterTest_TC_OCC_2_1_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads mandatory attribute constrains: OccupancySensorTypeBitmap"]; @@ -10626,7 +11105,7 @@ - (void)testSendClusterTest_TC_OCC_2_1_000006_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OCC_2_1_000007_WriteAttribute +- (void)testSendClusterTest_TC_OCC_2_1_000008_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the respective default value to mandatory attribute: OccupancySensorTypeBitmap"]; @@ -10651,7 +11130,7 @@ - (void)testSendClusterTest_TC_OCC_2_1_000007_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OCC_2_1_000008_ReadAttribute +- (void)testSendClusterTest_TC_OCC_2_1_000009_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back mandatory attribute: OccupancySensorTypeBitmap"]; @@ -10677,7 +11156,15 @@ - (void)testSendClusterTest_TC_OCC_2_1_000008_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OCC_2_2_000000_ReadAttribute +- (void)testSendClusterTest_TC_OCC_2_2_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_OCC_2_2_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads Occupancy attribute from DUT"]; @@ -10696,7 +11183,7 @@ - (void)testSendClusterTest_TC_OCC_2_2_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OCC_2_2_000001_ReadAttribute +- (void)testSendClusterTest_TC_OCC_2_2_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads Occupancy attribute from DUT"]; @@ -10716,7 +11203,23 @@ - (void)testSendClusterTest_TC_OCC_2_2_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_1_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_OO_1_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_OO_1_1_000001_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_OO_1_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the global attribute: ClusterRevision"]; @@ -10740,7 +11243,7 @@ - (void)testSendClusterTest_TC_OO_1_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_1_1_000001_WriteAttribute +- (void)testSendClusterTest_TC_OO_1_1_000003_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; @@ -10763,7 +11266,7 @@ - (void)testSendClusterTest_TC_OO_1_1_000001_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_1_1_000002_ReadAttribute +- (void)testSendClusterTest_TC_OO_1_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back global attribute: ClusterRevision"]; @@ -10787,7 +11290,7 @@ - (void)testSendClusterTest_TC_OO_1_1_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_1_1_000003_ReadAttribute +- (void)testSendClusterTest_TC_OO_1_1_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the optional global attribute: FeatureMap"]; @@ -10811,7 +11314,7 @@ - (void)testSendClusterTest_TC_OO_1_1_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_1_1_000004_WriteAttribute +- (void)testSendClusterTest_TC_OO_1_1_000006_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to optional global attribute: FeatureMap"]; @@ -10833,7 +11336,7 @@ - (void)testSendClusterTest_TC_OO_1_1_000004_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_1_1_000005_ReadAttribute +- (void)testSendClusterTest_TC_OO_1_1_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back optional global attribute: FeatureMap"]; @@ -10858,7 +11361,15 @@ - (void)testSendClusterTest_TC_OO_1_1_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_OO_2_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: OnOff"]; @@ -10882,7 +11393,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_1_000001_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back mandatory attribute: OnOff"]; @@ -10906,7 +11417,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_1_000002_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read LT attribute: GlobalSceneControl"]; @@ -10930,7 +11441,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_1_000003_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read LT attribute: OnTime"]; @@ -10954,7 +11465,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_1_000004_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_1_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read LT attribute: OffWaitTime"]; @@ -10978,7 +11489,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000004_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_1_000005_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_1_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read LT attribute: StartUpOnOff"]; @@ -11002,7 +11513,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_1_000006_WriteAttribute +- (void)testSendClusterTest_TC_OO_2_1_000007_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default value to LT attribute: OnTime"]; @@ -11024,7 +11535,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000006_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_1_000007_WriteAttribute +- (void)testSendClusterTest_TC_OO_2_1_000008_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default value to LT attribute: OffWaitTime"]; @@ -11046,7 +11557,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000007_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_1_000008_WriteAttribute +- (void)testSendClusterTest_TC_OO_2_1_000009_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default value to LT attribute: StartUpOnOff"]; @@ -11068,7 +11579,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000008_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_1_000009_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_1_000010_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back LT attribute: OnTime"]; @@ -11092,7 +11603,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000009_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_1_000010_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_1_000011_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back LT attribute: OffWaitTime"]; @@ -11116,7 +11627,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000010_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_1_000011_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_1_000012_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back LT attribute: StartUpOnOff"]; @@ -11141,7 +11652,15 @@ - (void)testSendClusterTest_TC_OO_2_1_000011_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_2_000000_Off +- (void)testSendClusterTest_TC_OO_2_2_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_OO_2_2_000001_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Off Command"]; @@ -11160,7 +11679,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000000_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_2_000001_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_2_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; @@ -11184,7 +11703,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_2_000002_On +- (void)testSendClusterTest_TC_OO_2_2_000003_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Send On Command"]; @@ -11203,7 +11722,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000002_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_2_000003_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_2_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; @@ -11227,7 +11746,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_2_000004_Off +- (void)testSendClusterTest_TC_OO_2_2_000005_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Off Command"]; @@ -11246,7 +11765,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000004_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_2_000005_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_2_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; @@ -11270,7 +11789,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_2_000006_Toggle +- (void)testSendClusterTest_TC_OO_2_2_000007_Toggle { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Toggle Command"]; @@ -11289,7 +11808,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000006_Toggle [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_2_000007_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_2_000008_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after toggle command"]; @@ -11314,7 +11833,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000007_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_2_000008_Toggle +- (void)testSendClusterTest_TC_OO_2_2_000009_Toggle { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Toggle Command"]; @@ -11333,7 +11852,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000008_Toggle [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_2_000009_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_2_000010_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after toggle command"]; @@ -11358,7 +11877,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000009_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_2_000010_On +- (void)testSendClusterTest_TC_OO_2_2_000011_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Send On Command"]; @@ -11377,7 +11896,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000010_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_2_000011_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_2_000012_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; @@ -11401,7 +11920,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000011_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_2_000012_Off +- (void)testSendClusterTest_TC_OO_2_2_000013_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Off Command"]; @@ -11420,7 +11939,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000012_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_2_000013_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_2_000014_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; @@ -11445,7 +11964,15 @@ - (void)testSendClusterTest_TC_OO_2_2_000013_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000000_On +- (void)testSendClusterTest_TC_OO_2_3_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_OO_2_3_000001_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Send On Command"]; @@ -11464,7 +11991,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000000_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000001_WaitForMs +- (void)testSendClusterTest_TC_OO_2_3_000002_WaitForMs { XCTestExpectation * expectation = [self expectationWithDescription:@"Wait 1000ms"]; @@ -11472,7 +11999,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000001_WaitForMs WaitForMs(expectation, queue, 1000); [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000002_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnOff attribute from DUT"]; @@ -11496,7 +12023,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000003_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads GlobalSceneControl attribute from DUT"]; @@ -11520,7 +12047,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000004_On +- (void)testSendClusterTest_TC_OO_2_3_000005_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Send On Command"]; @@ -11539,7 +12066,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000004_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000005_WaitForMs +- (void)testSendClusterTest_TC_OO_2_3_000006_WaitForMs { XCTestExpectation * expectation = [self expectationWithDescription:@"Wait 1000ms"]; @@ -11547,7 +12074,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000005_WaitForMs WaitForMs(expectation, queue, 1000); [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000006_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnOff attribute from DUT"]; @@ -11571,7 +12098,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000006_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000007_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000008_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads GlobalSceneControl attribute from DUT"]; @@ -11595,7 +12122,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000007_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000008_On +- (void)testSendClusterTest_TC_OO_2_3_000009_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Send On Command"]; @@ -11614,7 +12141,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000008_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000009_WaitForMs +- (void)testSendClusterTest_TC_OO_2_3_000010_WaitForMs { XCTestExpectation * expectation = [self expectationWithDescription:@"Wait 1000ms"]; @@ -11622,7 +12149,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000009_WaitForMs WaitForMs(expectation, queue, 1000); [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000010_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000011_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnOff attribute from DUT"]; @@ -11646,7 +12173,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000010_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000011_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000012_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads GlobalSceneControl attribute from DUT"]; @@ -11670,7 +12197,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000011_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000012_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000013_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnTime attribute from DUT"]; @@ -11694,7 +12221,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000012_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000013_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000014_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OffWaitTime attribute from DUT"]; @@ -11718,7 +12245,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000013_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000014_On +- (void)testSendClusterTest_TC_OO_2_3_000015_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Send On Command"]; @@ -11737,7 +12264,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000014_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000015_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000016_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnOff attribute from DUT"]; @@ -11761,7 +12288,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000015_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000016_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000017_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnTime attribute from DUT"]; @@ -11785,7 +12312,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000016_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000017_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000018_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OffWaitTime attribute from DUT"]; @@ -11809,7 +12336,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000017_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000018_Off +- (void)testSendClusterTest_TC_OO_2_3_000019_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Off Command"]; @@ -11828,7 +12355,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000018_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000019_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000020_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnOff attribute from DUT"]; @@ -11852,7 +12379,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000019_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000020_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000021_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnTime attribute from DUT"]; @@ -11876,7 +12403,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000020_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000021_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000022_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnOff attribute from DUT"]; @@ -11900,7 +12427,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000021_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000022_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000023_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnTime attribute from DUT"]; @@ -11924,7 +12451,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000022_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000023_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000024_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OffWaitTime attribute from DUT"]; @@ -11948,7 +12475,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000023_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000024_On +- (void)testSendClusterTest_TC_OO_2_3_000025_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Send On Command"]; @@ -11967,7 +12494,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000024_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000025_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000026_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnTime attribute from DUT"]; @@ -11991,7 +12518,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000025_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000026_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000027_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OffWaitTime attribute from DUT"]; @@ -12015,7 +12542,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000026_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000027_Off +- (void)testSendClusterTest_TC_OO_2_3_000028_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Off Command"]; @@ -12034,7 +12561,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000027_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000028_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000029_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnOff attribute from DUT"]; @@ -12058,7 +12585,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000028_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000029_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000030_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnTime attribute from DUT"]; @@ -12082,7 +12609,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000029_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000030_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000031_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnOff attribute from DUT"]; @@ -12106,7 +12633,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000030_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000031_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000032_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnTime attribute from DUT"]; @@ -12130,7 +12657,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000031_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000032_On +- (void)testSendClusterTest_TC_OO_2_3_000033_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Send On Command"]; @@ -12149,7 +12676,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000032_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000033_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000034_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnOff attribute from DUT"]; @@ -12173,7 +12700,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000033_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000034_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000035_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnTime attribute from DUT"]; @@ -12197,7 +12724,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000034_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000035_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000036_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OffWaitTime attribute from DUT"]; @@ -12221,7 +12748,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000035_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000036_Off +- (void)testSendClusterTest_TC_OO_2_3_000037_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Off Command"]; @@ -12240,7 +12767,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000036_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000037_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000038_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnOff attribute from DUT"]; @@ -12264,7 +12791,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000037_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000038_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000039_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnTime attribute from DUT"]; @@ -12288,7 +12815,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000038_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000039_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000040_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnOff attribute from DUT"]; @@ -12312,7 +12839,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000039_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000040_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000041_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnTime attribute from DUT"]; @@ -12336,7 +12863,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000040_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000041_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000042_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OffWaitTime attribute from DUT"]; @@ -12360,7 +12887,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000041_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000042_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000043_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnOff attribute from DUT"]; @@ -12384,7 +12911,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000042_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000043_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000044_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OnTime attribute from DUT"]; @@ -12408,7 +12935,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000043_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000044_ReadAttribute +- (void)testSendClusterTest_TC_OO_2_3_000045_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads OffWaitTime attribute from DUT"]; @@ -12432,7 +12959,7 @@ - (void)testSendClusterTest_TC_OO_2_3_000044_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_OO_2_3_000045_Off +- (void)testSendClusterTest_TC_OO_2_3_000046_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Off Command"]; @@ -12452,7 +12979,15 @@ - (void)testSendClusterTest_TC_OO_2_3_000045_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PRS_1_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_PRS_1_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_PRS_1_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the global attribute: ClusterRevision"]; @@ -12476,7 +13011,7 @@ - (void)testSendClusterTest_TC_PRS_1_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PRS_1_1_000001_ReadAttribute +- (void)testSendClusterTest_TC_PRS_1_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the global attribute constraints: ClusterRevision"]; @@ -12495,7 +13030,7 @@ - (void)testSendClusterTest_TC_PRS_1_1_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PRS_1_1_000002_WriteAttribute +- (void)testSendClusterTest_TC_PRS_1_1_000003_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to mandatory global attribute: ClusterRevision"]; @@ -12518,7 +13053,7 @@ - (void)testSendClusterTest_TC_PRS_1_1_000002_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PRS_1_1_000003_ReadAttribute +- (void)testSendClusterTest_TC_PRS_1_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back global attribute: ClusterRevision"]; @@ -12543,7 +13078,15 @@ - (void)testSendClusterTest_TC_PRS_1_1_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PRS_2_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_PRS_2_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_PRS_2_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute constraints: MeasuredValue"]; @@ -12562,7 +13105,7 @@ - (void)testSendClusterTest_TC_PRS_2_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PRS_2_1_000001_WriteAttribute +- (void)testSendClusterTest_TC_PRS_2_1_000002_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to mandatory attribute: MeasuredValue"]; @@ -12585,7 +13128,7 @@ - (void)testSendClusterTest_TC_PRS_2_1_000001_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PRS_2_1_000002_ReadAttribute +- (void)testSendClusterTest_TC_PRS_2_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back mandatory attribute: MeasuredValue"]; @@ -12609,7 +13152,7 @@ - (void)testSendClusterTest_TC_PRS_2_1_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PRS_2_1_000003_ReadAttribute +- (void)testSendClusterTest_TC_PRS_2_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute constraints: MinMeasuredValue"]; @@ -12629,7 +13172,7 @@ - (void)testSendClusterTest_TC_PRS_2_1_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PRS_2_1_000004_WriteAttribute +- (void)testSendClusterTest_TC_PRS_2_1_000005_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to mandatory attribute: MinMeasuredValue"]; @@ -12652,7 +13195,7 @@ - (void)testSendClusterTest_TC_PRS_2_1_000004_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PRS_2_1_000005_ReadAttribute +- (void)testSendClusterTest_TC_PRS_2_1_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back mandatory attribute: MinMeasuredValue"]; @@ -12676,7 +13219,7 @@ - (void)testSendClusterTest_TC_PRS_2_1_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PRS_2_1_000006_ReadAttribute +- (void)testSendClusterTest_TC_PRS_2_1_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute constraints: MaxMeasuredValue"]; @@ -12696,7 +13239,7 @@ - (void)testSendClusterTest_TC_PRS_2_1_000006_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PRS_2_1_000007_WriteAttribute +- (void)testSendClusterTest_TC_PRS_2_1_000008_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write the default values to mandatory attribute: MaxMeasuredValue"]; @@ -12719,7 +13262,7 @@ - (void)testSendClusterTest_TC_PRS_2_1_000007_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PRS_2_1_000008_ReadAttribute +- (void)testSendClusterTest_TC_PRS_2_1_000009_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads back mandatory attribute: MaxMeasuredValue"]; @@ -12744,7 +13287,15 @@ - (void)testSendClusterTest_TC_PRS_2_1_000008_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PCC_1_1_000000_WriteAttribute +- (void)testSendClusterTest_TC_PCC_1_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_PCC_1_1_000001_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; @@ -12770,7 +13321,15 @@ - (void)testSendClusterTest_TC_PCC_1_1_000000_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PCC_2_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_PCC_2_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_PCC_2_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: MaxPressure"]; @@ -12791,7 +13350,7 @@ - (void)testSendClusterTest_TC_PCC_2_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PCC_2_1_000001_ReadAttribute +- (void)testSendClusterTest_TC_PCC_2_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: EffectiveOperationMode"]; @@ -12812,7 +13371,7 @@ - (void)testSendClusterTest_TC_PCC_2_1_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PCC_2_1_000002_ReadAttribute +- (void)testSendClusterTest_TC_PCC_2_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: EffectiveControlMode"]; @@ -12833,7 +13392,7 @@ - (void)testSendClusterTest_TC_PCC_2_1_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PCC_2_1_000003_ReadAttribute +- (void)testSendClusterTest_TC_PCC_2_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: Capacity"]; @@ -12854,7 +13413,7 @@ - (void)testSendClusterTest_TC_PCC_2_1_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PCC_2_1_000004_ReadAttribute +- (void)testSendClusterTest_TC_PCC_2_1_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: MaxPressure"]; @@ -12875,7 +13434,7 @@ - (void)testSendClusterTest_TC_PCC_2_1_000004_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PCC_2_1_000005_ReadAttribute +- (void)testSendClusterTest_TC_PCC_2_1_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: EffectiveOperationMode"]; @@ -12896,7 +13455,7 @@ - (void)testSendClusterTest_TC_PCC_2_1_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PCC_2_1_000006_ReadAttribute +- (void)testSendClusterTest_TC_PCC_2_1_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: EffectiveControlMode"]; @@ -12917,7 +13476,7 @@ - (void)testSendClusterTest_TC_PCC_2_1_000006_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PCC_2_1_000007_ReadAttribute +- (void)testSendClusterTest_TC_PCC_2_1_000008_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: Capacity"]; @@ -12939,7 +13498,15 @@ - (void)testSendClusterTest_TC_PCC_2_1_000007_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PCC_2_2_000000_WriteAttribute +- (void)testSendClusterTest_TC_PCC_2_2_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_PCC_2_2_000001_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write 1 to the OperationMode attribute to DUT: OperationMode"]; @@ -12964,7 +13531,7 @@ - (void)testSendClusterTest_TC_PCC_2_2_000000_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PCC_2_2_000001_WriteAttribute +- (void)testSendClusterTest_TC_PCC_2_2_000002_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write 2 to the OperationMode attribute to DUT: OperationMode"]; @@ -12989,7 +13556,7 @@ - (void)testSendClusterTest_TC_PCC_2_2_000001_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PCC_2_2_000002_WriteAttribute +- (void)testSendClusterTest_TC_PCC_2_2_000003_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write 3 to the OperationMode attribute to DUT: OperationMode"]; @@ -13015,7 +13582,15 @@ - (void)testSendClusterTest_TC_PCC_2_2_000002_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PCC_2_3_000000_WriteAttribute +- (void)testSendClusterTest_TC_PCC_2_3_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_PCC_2_3_000001_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write 0 to the OperationMode attribute to DUT"]; @@ -13039,7 +13614,7 @@ - (void)testSendClusterTest_TC_PCC_2_3_000000_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_PCC_2_3_000001_ReadAttribute +- (void)testSendClusterTest_TC_PCC_2_3_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads the attribute: EffectiveOperationMode"]; @@ -13066,7 +13641,15 @@ - (void)testSendClusterTest_TC_PCC_2_3_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_RH_1_1_000000_WriteAttribute +- (void)testSendClusterTest_TC_RH_1_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_RH_1_1_000001_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; @@ -13092,7 +13675,15 @@ - (void)testSendClusterTest_TC_RH_1_1_000000_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_RH_2_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_RH_2_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_RH_2_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads constraints of attribute: MeasuredValue"]; @@ -13113,7 +13704,7 @@ - (void)testSendClusterTest_TC_RH_2_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_RH_2_1_000001_ReadAttribute +- (void)testSendClusterTest_TC_RH_2_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads constraints of attribute: MinMeasuredValue"]; @@ -13140,7 +13731,15 @@ - (void)testSendClusterTest_TC_RH_2_1_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_RH_2_2_000000_ReadAttribute +- (void)testSendClusterTest_TC_RH_2_2_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_RH_2_2_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads MeasuredValue attribute from DUT"]; @@ -13161,7 +13760,7 @@ - (void)testSendClusterTest_TC_RH_2_2_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_RH_2_2_000001_ReadAttribute +- (void)testSendClusterTest_TC_RH_2_2_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: MeasuredValue"]; @@ -13183,7 +13782,15 @@ - (void)testSendClusterTest_TC_RH_2_2_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TM_1_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_TM_1_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_TM_1_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the global attribute: ClusterRevision"]; @@ -13209,7 +13816,7 @@ - (void)testSendClusterTest_TC_TM_1_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TM_1_1_000001_WriteAttribute +- (void)testSendClusterTest_TC_TM_1_1_000002_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; @@ -13234,7 +13841,7 @@ - (void)testSendClusterTest_TC_TM_1_1_000001_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TM_1_1_000002_ReadAttribute +- (void)testSendClusterTest_TC_TM_1_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back global attribute: ClusterRevision"]; @@ -13261,7 +13868,15 @@ - (void)testSendClusterTest_TC_TM_1_1_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TM_2_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_TM_2_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_TM_2_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: MeasuredValue"]; @@ -13283,7 +13898,15 @@ - (void)testSendClusterTest_TC_TM_2_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TM_2_2_000000_ReadAttribute +- (void)testSendClusterTest_TC_TM_2_2_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_TM_2_2_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads MeasuredValue attribute from DUT"]; @@ -13304,7 +13927,7 @@ - (void)testSendClusterTest_TC_TM_2_2_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TM_2_2_000001_ReadAttribute +- (void)testSendClusterTest_TC_TM_2_2_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read the mandatory attribute: MeasuredValue"]; @@ -13326,7 +13949,15 @@ - (void)testSendClusterTest_TC_TM_2_2_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_1_1_000000_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_1_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_TSTAT_1_1_000001_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; @@ -13350,7 +13981,15 @@ - (void)testSendClusterTest_TC_TSTAT_1_1_000000_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_TSTAT_2_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads constraints of mandatory attributes from DUT: LocalTemperature"]; @@ -13370,7 +14009,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000001_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads mandatory attributes from DUT: AbsMinHeatSetpointLimit"]; @@ -13395,7 +14034,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000002_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads constraints of mandatory attributes from DUT: AbsMinHeatSetpointLimit"]; @@ -13424,7 +14063,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000003_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000004_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the respective default value to mandatory attributes to DUT: AbsMinHeatSetpointLimit"]; @@ -13449,7 +14088,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000003_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000004_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back mandatory attributes from DUT: AbsMinHeatSetpointLimit"]; @@ -13474,7 +14113,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000004_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000005_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads mandatory attributes from DUT: AbsMaxHeatSetpointLimit"]; @@ -13499,7 +14138,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000006_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads constraints of mandatory attributes from DUT: AbsMaxHeatSetpointLimit"]; @@ -13528,7 +14167,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000006_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000007_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000008_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the respective default value to mandatory attributes to DUT: AbsMaxHeatSetpointLimit"]; @@ -13553,7 +14192,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000007_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000008_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000009_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back mandatory attributes from DUT: AbsMaxHeatSetpointLimit"]; @@ -13578,7 +14217,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000008_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000009_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000010_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads mandatory attributes from DUT: AbsMinCoolSetpointLimit"]; @@ -13603,7 +14242,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000009_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000010_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000011_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads constraints of mandatory attributes from DUT: AbsMinCoolSetpointLimit"]; @@ -13632,7 +14271,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000010_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000011_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000012_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the respective default value to mandatory attributes to DUT: AbsMinCoolSetpointLimit"]; @@ -13657,7 +14296,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000011_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000012_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000013_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back mandatory attributes from DUT: AbsMinCoolSetpointLimit"]; @@ -13682,7 +14321,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000012_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000013_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000014_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads mandatory attributes from DUT: AbsMaxCoolSetpointLimit"]; @@ -13707,7 +14346,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000013_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000014_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000015_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads constraints of mandatory attributes from DUT: AbsMaxCoolSetpointLimit"]; @@ -13736,7 +14375,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000014_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000015_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000016_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the respective default value to mandatory attributes to DUT: AbsMaxCoolSetpointLimit"]; @@ -13761,7 +14400,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000015_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000016_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000017_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back mandatory attributes from DUT: AbsMaxCoolSetpointLimit"]; @@ -13786,7 +14425,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000016_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000017_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000018_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads mandatory attributes from DUT: OccupiedCoolingSetpoint"]; @@ -13811,7 +14450,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000017_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000018_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000019_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads constraints of mandatory attributes from DUT: OccupiedCoolingSetpoint"]; @@ -13840,7 +14479,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000018_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000019_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000020_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the respective default value to mandatory attributes to DUT: OccupiedCoolingSetpoint"]; @@ -13865,7 +14504,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000019_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000020_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000021_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back mandatory attributes from DUT: OccupiedCoolingSetpoint"]; @@ -13890,7 +14529,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000020_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000021_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000022_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads mandatory attributes from DUT: OccupiedHeatingSetpoint"]; @@ -13915,7 +14554,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000021_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000022_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000023_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads constraints of mandatory attributes from DUT: OccupiedHeatingSetpoint"]; @@ -13944,7 +14583,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000022_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000023_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000024_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the respective default value to mandatory attributes to DUT: OccupiedHeatingSetpoint"]; @@ -13969,7 +14608,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000023_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000024_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000025_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back mandatory attributes from DUT: OccupiedHeatingSetpoint"]; @@ -13994,7 +14633,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000024_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000025_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000026_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads mandatory attributes from DUT: MinHeatSetpointLimit"]; @@ -14019,7 +14658,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000025_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000026_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000027_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads constraints of mandatory attributes from DUT: MinHeatSetpointLimit"]; @@ -14048,7 +14687,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000026_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000027_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000028_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the respective default value to mandatory attributes to DUT: MinHeatSetpointLimit"]; @@ -14073,7 +14712,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000027_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000028_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000029_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back mandatory attributes from DUT: MinHeatSetpointLimit"]; @@ -14098,7 +14737,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000028_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000029_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000030_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads mandatory attributes from DUT: MaxHeatSetpointLimit"]; @@ -14123,7 +14762,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000029_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000030_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000031_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads constraints of mandatory attributes from DUT: MaxHeatSetpointLimit"]; @@ -14152,7 +14791,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000030_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000031_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000032_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the respective default value to mandatory attributes to DUT: MaxHeatSetpointLimit"]; @@ -14177,7 +14816,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000031_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000032_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000033_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back mandatory attributes from DUT: MaxHeatSetpointLimit"]; @@ -14202,7 +14841,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000032_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000033_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000034_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads mandatory attributes from DUT: MinCoolSetpointLimit"]; @@ -14227,7 +14866,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000033_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000034_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000035_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads constraints of mandatory attributes from DUT: MinCoolSetpointLimit"]; @@ -14256,7 +14895,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000034_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000035_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000036_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the respective default value to mandatory attributes to DUT: MinCoolSetpointLimit"]; @@ -14281,7 +14920,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000035_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000036_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000037_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back mandatory attributes from DUT: MinCoolSetpointLimit"]; @@ -14306,7 +14945,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000036_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000037_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000038_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads mandatory attributes from DUT: MaxCoolSetpointLimit"]; @@ -14331,7 +14970,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000037_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000038_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000039_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads constraints of mandatory attributes from DUT: MaxCoolSetpointLimit"]; @@ -14360,7 +14999,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000038_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000039_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000040_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the respective default value to mandatory attributes to DUT: MaxCoolSetpointLimit"]; @@ -14385,7 +15024,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000039_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000040_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000041_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back mandatory attributes from DUT: MaxCoolSetpointLimit"]; @@ -14410,7 +15049,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000040_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000041_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000042_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads mandatory attributes from DUT: ControlSequenceOfOperation"]; @@ -14435,7 +15074,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000041_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000042_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000043_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads constraints of mandatory attributes from DUT: ControlSequenceOfOperation"]; @@ -14460,7 +15099,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000042_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000043_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000044_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription: @@ -14486,7 +15125,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000043_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000044_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000045_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back mandatory attributes from DUT: ControlSequenceOfOperation"]; @@ -14511,7 +15150,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000044_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000045_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000046_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads mandatory attributes from DUT: SystemMode"]; @@ -14535,7 +15174,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000045_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000046_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000047_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads constraints of mandatory attributes from DUT: SystemMode"]; @@ -14560,7 +15199,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000046_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000047_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000048_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the respective default value to mandatory attributes to DUT: SystemMode"]; @@ -14584,7 +15223,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000047_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000048_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000049_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back mandatory attributes from DUT: SystemMode"]; @@ -14608,7 +15247,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000048_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000049_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000050_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads optional attributes from DUT: MinSetpointDeadBand"]; @@ -14632,7 +15271,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000049_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000050_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000051_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads constraints of optional attributes from DUT: MinSetpointDeadBand"]; @@ -14657,7 +15296,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000050_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000051_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000052_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the respective default value to optional attributes to DUT: MinSetpointDeadBand"]; @@ -14682,7 +15321,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000051_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000052_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000053_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back optional attributes from DUT: MinSetpointDeadBand"]; @@ -14707,7 +15346,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000052_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000053_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000054_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads constraints of optional attributes from DUT: StartOfWeek"]; @@ -14732,7 +15371,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000053_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000054_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000055_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the respective default value to optional attributes to DUT: StartOfWeek"]; @@ -14755,7 +15394,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000054_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000055_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000056_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back optional attributes from DUT: StartOfWeek"]; @@ -14779,7 +15418,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000055_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000056_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000057_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads constraints of optional attributes from DUT: NumberOfWeeklyTransitions"]; @@ -14799,7 +15438,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000056_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000057_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000058_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the respective default value to optional attributes to DUT: NumberOfWeeklyTransitions"]; @@ -14824,7 +15463,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000057_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000058_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000059_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads constraints of optional attributes from DUT: NumberOfDailyTransitions"]; @@ -14844,7 +15483,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000058_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_1_000059_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_1_000060_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the respective default value to optional attributes to DUT: NumberOfDailyTransitions"]; @@ -14870,7 +15509,15 @@ - (void)testSendClusterTest_TC_TSTAT_2_1_000059_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000000_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_TSTAT_2_2_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription: @@ -14897,7 +15544,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000001_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000002_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes a value back that is different but valid for OccupiedCoolingSetpoint attribute"]; @@ -14922,7 +15569,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000001_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000002_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads it back again to confirm the successful write of OccupiedCoolingSetpoint attribute"]; @@ -14947,7 +15594,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000003_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000004_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the limit of MinCoolSetpointLimit to OccupiedCoolingSetpoint attribute"]; @@ -14972,7 +15619,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000003_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000004_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000005_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the limit of MaxCoolSetpointLimit to OccupiedCoolingSetpoint attribute"]; @@ -14997,7 +15644,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000004_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000005_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription: @@ -15024,7 +15671,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000006_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000007_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes a value back that is different but valid for OccupiedHeatingSetpoint attribute"]; @@ -15049,7 +15696,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000006_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000007_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000008_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads it back again to confirm the successful write of OccupiedHeatingSetpoint attribute"]; @@ -15074,7 +15721,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000007_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000008_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000009_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the limit of MinHeatSetpointLimit to OccupiedHeatingSetpoint attribute"]; @@ -15099,7 +15746,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000008_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000009_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000010_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the limit of MaxHeatSetpointLimit to OccupiedHeatingSetpoint attribute"]; @@ -15124,7 +15771,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000009_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000010_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000011_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription: @@ -15150,7 +15797,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000010_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000011_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000012_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes a value back that is different but valid for MinHeatSetpointLimit attribute"]; @@ -15175,7 +15822,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000011_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000012_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000013_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads it back again to confirm the successful write of MinHeatSetpointLimit attribute"]; @@ -15200,7 +15847,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000012_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000013_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000014_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the limit of AbsMinHeatSetpointLimit to MinHeatSetpointLimit attribute"]; @@ -15225,7 +15872,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000013_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000014_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000015_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the limit of AbsMaxHeatSetpointLimit to MinHeatSetpointLimit attribute"]; @@ -15250,7 +15897,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000014_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000015_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000016_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription: @@ -15276,7 +15923,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000015_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000016_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000017_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes a value back that is different but valid for MaxHeatSetpointLimit attribute"]; @@ -15301,7 +15948,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000016_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000017_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000018_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads it back again to confirm the successful write of MaxHeatSetpointLimit attribute"]; @@ -15326,7 +15973,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000017_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000018_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000019_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the limit of AbsMinHeatSetpointLimit to MaxHeatSetpointLimit attribute"]; @@ -15351,7 +15998,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000018_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000019_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000020_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the limit of AbsMaxHeatSetpointLimit to MaxHeatSetpointLimit attribute"]; @@ -15376,7 +16023,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000019_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000020_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000021_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription: @@ -15402,7 +16049,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000020_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000021_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000022_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes a value back that is different but valid for MinCoolSetpointLimit attribute"]; @@ -15427,7 +16074,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000021_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000022_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000023_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads it back again to confirm the successful write of MinCoolSetpointLimit attribute"]; @@ -15452,7 +16099,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000022_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000023_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000024_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the limit of AbsMinCoolSetpointLimit to MinCoolSetpointLimit attribute"]; @@ -15477,7 +16124,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000023_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000024_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000025_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the limit of MaxCoolSetpointLimit to MinCoolSetpointLimit attribute"]; @@ -15502,7 +16149,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000024_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000025_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000026_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription: @@ -15528,7 +16175,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000025_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000026_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000027_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes a value back that is different but valid for MaxCoolSetpointLimit attribute"]; @@ -15553,7 +16200,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000026_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000027_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000028_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads it back again to confirm the successful write of MaxCoolSetpointLimit attribute"]; @@ -15578,7 +16225,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000027_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000028_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000029_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the limit of AbsMinCoolSetpointLimit to MaxCoolSetpointLimit attribute"]; @@ -15603,7 +16250,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000028_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000029_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000030_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes the limit of MaxCoolSetpointLimit to MaxCoolSetpointLimit attribute"]; @@ -15628,7 +16275,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000029_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000030_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000031_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes (sets back) the limit of MinHeatSetpointLimit to MinHeatSetpointLimit attribute"]; @@ -15653,7 +16300,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000030_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000031_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000032_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes (sets back) the limit of MaxHeatSetpointLimit to MinHeatSetpointLimit attribute"]; @@ -15678,7 +16325,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000031_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000032_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000033_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes (sets back) the limit of MinHeatSetpointLimit to MaxHeatSetpointLimit attribute"]; @@ -15703,7 +16350,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000032_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000033_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000034_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes (sets back) the limit of MaxHeatSetpointLimit to MaxHeatSetpointLimit attribute"]; @@ -15728,7 +16375,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000033_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000034_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000035_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes (sets back) the limit of MinCoolSetpointLimit to MinCoolSetpointLimit attribute"]; @@ -15753,7 +16400,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000034_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000035_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000036_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes (sets back) the limit of MaxCoolSetpointLimit to MinCoolSetpointLimit attribute"]; @@ -15778,7 +16425,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000035_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000036_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000037_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes (sets back) the limit of MinCoolSetpointLimit to MaxCoolSetpointLimit attribute"]; @@ -15803,7 +16450,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000036_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000037_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000038_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes (sets back) the limit of MaxCoolSetpointLimit to MaxCoolSetpointLimit attribute"]; @@ -15828,7 +16475,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000037_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000038_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000039_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads ControlSequenceOfOperation from Server DUT and verifies that the value is valid"]; @@ -15853,7 +16500,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000038_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000039_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000040_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write Attribute command for ControlSequenceOfOperation with a new valid value"]; @@ -15878,7 +16525,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000039_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000040_ReadAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000041_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read it back again to confirm the successful write"]; @@ -15902,7 +16549,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000040_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000041_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000042_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Sets OccupiedHeatingSetpoint to default value"]; @@ -15924,7 +16571,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000041_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000042_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000043_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Sets OccupiedHeatingSetpoint to default value"]; @@ -15946,7 +16593,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000042_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000043_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000044_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Sets OccupiedCoolingSetpoint to default value"]; @@ -15968,7 +16615,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000043_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000044_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000045_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Sets OccupiedCoolingSetpoint to default value"]; @@ -15990,7 +16637,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000044_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000045_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000046_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Sets OccupiedCoolingSetpoint to default value"]; @@ -16012,7 +16659,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000045_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000046_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000047_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Sets OccupiedHeatingSetpoint to default value"]; @@ -16034,7 +16681,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000046_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000047_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000048_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Sets OccupiedCoolingSetpoint to default value"]; @@ -16056,7 +16703,7 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000047_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSTAT_2_2_000048_WriteAttribute +- (void)testSendClusterTest_TC_TSTAT_2_2_000049_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Sets OccupiedHeatingSetpoint to default value"]; @@ -16079,7 +16726,15 @@ - (void)testSendClusterTest_TC_TSTAT_2_2_000048_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_1_1_000000_WriteAttribute +- (void)testSendClusterTest_TC_TSUIC_1_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_TSUIC_1_1_000001_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; @@ -16104,7 +16759,15 @@ - (void)testSendClusterTest_TC_TSUIC_1_1_000000_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_TSUIC_2_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_TSUIC_2_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: TemperatureDisplayMode"]; @@ -16129,7 +16792,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_1_000001_ReadAttribute +- (void)testSendClusterTest_TC_TSUIC_2_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: TemperatureDisplayMode"]; @@ -16149,7 +16812,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_1_000002_WriteAttribute +- (void)testSendClusterTest_TC_TSUIC_2_1_000003_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write to the mandatory attribute: TemperatureDisplayMode"]; @@ -16172,7 +16835,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000002_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_1_000003_ReadAttribute +- (void)testSendClusterTest_TC_TSUIC_2_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: TemperatureDisplayMode"]; @@ -16197,7 +16860,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_1_000004_ReadAttribute +- (void)testSendClusterTest_TC_TSUIC_2_1_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: TemperatureDisplayMode"]; @@ -16217,7 +16880,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000004_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_1_000005_ReadAttribute +- (void)testSendClusterTest_TC_TSUIC_2_1_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: KeypadLockout"]; @@ -16242,7 +16905,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_1_000006_ReadAttribute +- (void)testSendClusterTest_TC_TSUIC_2_1_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: KeypadLockout"]; @@ -16262,7 +16925,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000006_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_1_000007_WriteAttribute +- (void)testSendClusterTest_TC_TSUIC_2_1_000008_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write to the mandatory attribute: KeypadLockout"]; @@ -16285,7 +16948,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000007_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_1_000008_ReadAttribute +- (void)testSendClusterTest_TC_TSUIC_2_1_000009_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: KeypadLockout"]; @@ -16310,7 +16973,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000008_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_1_000009_ReadAttribute +- (void)testSendClusterTest_TC_TSUIC_2_1_000010_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: KeypadLockout"]; @@ -16330,7 +16993,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000009_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_1_000010_ReadAttribute +- (void)testSendClusterTest_TC_TSUIC_2_1_000011_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the optional attribute: ScheduleProgrammingVisibility"]; @@ -16357,7 +17020,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000010_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_1_000011_ReadAttribute +- (void)testSendClusterTest_TC_TSUIC_2_1_000012_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the optional attribute: ScheduleProgrammingVisibility"]; @@ -16379,7 +17042,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000011_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_1_000012_WriteAttribute +- (void)testSendClusterTest_TC_TSUIC_2_1_000013_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write to the mandatory attribute: ScheduleProgrammingVisibility"]; @@ -16405,7 +17068,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000012_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_1_000013_ReadAttribute +- (void)testSendClusterTest_TC_TSUIC_2_1_000014_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the optional attribute: ScheduleProgrammingVisibility"]; @@ -16432,7 +17095,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000013_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_1_000014_ReadAttribute +- (void)testSendClusterTest_TC_TSUIC_2_1_000015_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the optional attribute: ScheduleProgrammingVisibility"]; @@ -16455,7 +17118,15 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000014_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_2_000000_WriteAttribute +- (void)testSendClusterTest_TC_TSUIC_2_2_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_TSUIC_2_2_000001_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes a value of 0 to TemperatureDisplayMode attribute of DUT"]; @@ -16480,7 +17151,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_2_000000_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_2_000001_WriteAttribute +- (void)testSendClusterTest_TC_TSUIC_2_2_000002_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes a value of 1 to TemperatureDisplayMode attribute of DUT"]; @@ -16505,7 +17176,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_2_000001_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_2_000002_WriteAttribute +- (void)testSendClusterTest_TC_TSUIC_2_2_000003_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes a value of 0 to KeypadLockout attribute of DUT"]; @@ -16528,7 +17199,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_2_000002_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_2_000003_WriteAttribute +- (void)testSendClusterTest_TC_TSUIC_2_2_000004_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes a value of 1 to KeypadLockout attribute of DUT"]; @@ -16551,7 +17222,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_2_000003_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_2_000004_WriteAttribute +- (void)testSendClusterTest_TC_TSUIC_2_2_000005_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes a value of 2 to KeypadLockout attribute of DUT"]; @@ -16574,7 +17245,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_2_000004_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_2_000005_WriteAttribute +- (void)testSendClusterTest_TC_TSUIC_2_2_000006_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes a value of 3 to KeypadLockout attribute of DUT"]; @@ -16597,7 +17268,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_2_000005_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_2_000006_WriteAttribute +- (void)testSendClusterTest_TC_TSUIC_2_2_000007_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes a value of 4 to KeypadLockout attribute of DUT"]; @@ -16620,7 +17291,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_2_000006_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_2_000007_WriteAttribute +- (void)testSendClusterTest_TC_TSUIC_2_2_000008_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes a value of 5 to KeypadLockout attribute of DUT"]; @@ -16643,7 +17314,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_2_000007_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_2_000008_WriteAttribute +- (void)testSendClusterTest_TC_TSUIC_2_2_000009_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes a value of 0 to ScheduleProgrammingVisibility attribute of DUT"]; @@ -16669,7 +17340,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_2_000008_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_TSUIC_2_2_000009_WriteAttribute +- (void)testSendClusterTest_TC_TSUIC_2_2_000010_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writes a value of 1 to ScheduleProgrammingVisibility attribute of DUT"]; @@ -16696,7 +17367,15 @@ - (void)testSendClusterTest_TC_TSUIC_2_2_000009_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DIAGTH_1_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_DIAGTH_1_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_DIAGTH_1_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the global attribute: ClusterRevision"]; @@ -16722,7 +17401,7 @@ - (void)testSendClusterTest_TC_DIAGTH_1_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DIAGTH_1_1_000001_WriteAttribute +- (void)testSendClusterTest_TC_DIAGTH_1_1_000002_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; @@ -16747,7 +17426,7 @@ - (void)testSendClusterTest_TC_DIAGTH_1_1_000001_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DIAGTH_1_1_000002_ReadAttribute +- (void)testSendClusterTest_TC_DIAGTH_1_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back global attribute: ClusterRevision"]; @@ -16774,7 +17453,15 @@ - (void)testSendClusterTest_TC_DIAGTH_1_1_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_1_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_1_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_WNCV_1_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the global attribute: ClusterRevision"]; @@ -16802,7 +17489,7 @@ - (void)testSendClusterTest_TC_WNCV_1_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_1_1_000001_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_1_1_000002_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO mandatory global attribute: ClusterRevision"]; @@ -16825,7 +17512,7 @@ - (void)testSendClusterTest_TC_WNCV_1_1_000001_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_1_1_000002_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_1_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back global attribute: ClusterRevision"]; @@ -16849,7 +17536,7 @@ - (void)testSendClusterTest_TC_WNCV_1_1_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_1_1_000003_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_1_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the global attribute: FeatureMap"]; @@ -16873,7 +17560,7 @@ - (void)testSendClusterTest_TC_WNCV_1_1_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_1_1_000004_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_1_1_000005_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write the default value to optional global attribute: FeatureMap"]; @@ -16895,7 +17582,7 @@ - (void)testSendClusterTest_TC_WNCV_1_1_000004_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_1_1_000005_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_1_1_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back global attribute: FeatureMap"]; @@ -16920,7 +17607,15 @@ - (void)testSendClusterTest_TC_WNCV_1_1_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_WNCV_2_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO mandatory attribute default: Type"]; @@ -16944,7 +17639,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000001_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000002_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO mandatory attribute: Type"]; @@ -16965,7 +17660,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000001_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000002_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO mandatory attribute: Type"]; @@ -16989,7 +17684,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000003_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO mandatory attribute default: ConfigStatus"]; @@ -17013,7 +17708,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000004_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000005_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO mandatory attribute: ConfigStatus"]; @@ -17035,7 +17730,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000004_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000005_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO mandatory attribute: ConfigStatus"]; @@ -17059,7 +17754,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000006_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO mandatory attribute default: OperationalStatus"]; @@ -17084,7 +17779,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000006_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000007_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000008_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO mandatory attribute: OperationalStatus"]; @@ -17107,7 +17802,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000007_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000008_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000009_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO mandatory attribute: OperationalStatus"]; @@ -17132,7 +17827,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000008_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000009_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000010_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO mandatory attribute default: EndProductType"]; @@ -17157,7 +17852,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000009_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000010_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000011_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO mandatory attribute: EndProductType"]; @@ -17180,7 +17875,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000010_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000011_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000012_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO mandatory attribute: EndProductType"]; @@ -17205,7 +17900,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000011_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000012_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000013_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RW mandatory attribute default: Mode"]; @@ -17229,7 +17924,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000012_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000013_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000014_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RW mandatory attribute:: Mode"]; @@ -17251,7 +17946,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000013_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000014_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000015_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RW mandatory attribute: Mode"]; @@ -17275,7 +17970,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000014_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000015_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000016_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO optional attribute default: TargetPositionLiftPercent100ths"]; @@ -17301,7 +17996,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000015_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000016_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000017_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO optional attribute: TargetPositionLiftPercent100ths"]; @@ -17326,7 +18021,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000016_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000017_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000018_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO optional attribute: TargetPositionLiftPercent100ths"]; @@ -17352,7 +18047,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000017_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000018_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000019_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO optional attribute default: TargetPositionTiltPercent100ths"]; @@ -17378,7 +18073,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000018_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000019_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000020_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO optional attribute: TargetPositionTiltPercent100ths"]; @@ -17403,7 +18098,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000019_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000020_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000021_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO optional attribute: TargetPositionTiltPercent100ths"]; @@ -17429,7 +18124,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000020_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000021_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000022_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO optional attribute default: CurrentPositionLiftPercent100ths"]; @@ -17455,7 +18150,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000021_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000022_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000023_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO optional attribute: CurrentPositionLiftPercent100ths"]; @@ -17480,7 +18175,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000022_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000023_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000024_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO optional attribute: CurrentPositionLiftPercent100ths"]; @@ -17506,7 +18201,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000023_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000024_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000025_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO optional attribute default: CurrentPositionTiltPercent100ths"]; @@ -17532,7 +18227,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000024_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000025_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000026_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO optional attribute: CurrentPositionTiltPercent100ths"]; @@ -17557,7 +18252,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000025_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000026_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000027_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO optional attribute: CurrentPositionTiltPercent100ths"]; @@ -17583,7 +18278,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000026_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000027_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000028_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO optional attribute default: InstalledOpenLimitLift"]; @@ -17608,7 +18303,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000027_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000028_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000029_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO optional attribute: InstalledOpenLimitLift"]; @@ -17633,7 +18328,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000028_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000029_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000030_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO optional attribute: InstalledOpenLimitLift"]; @@ -17658,7 +18353,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000029_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000030_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000031_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO optional attribute default: InstalledClosedLimitLift"]; @@ -17683,7 +18378,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000030_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000031_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000032_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO optional attribute: InstalledClosedLimitLift"]; @@ -17708,7 +18403,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000031_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000032_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000033_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO optional attribute: InstalledClosedLimitLift"]; @@ -17733,7 +18428,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000032_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000033_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000034_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO optional attribute default: InstalledOpenLimitTilt"]; @@ -17758,7 +18453,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000033_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000034_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000035_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO optional attribute: InstalledOpenLimitTilt"]; @@ -17783,7 +18478,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000034_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000035_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000036_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO optional attribute: InstalledOpenLimitTilt"]; @@ -17808,7 +18503,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000035_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000036_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000037_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO optional attribute default: InstalledClosedLimitTilt"]; @@ -17833,7 +18528,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000036_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000037_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000038_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO optional attribute: InstalledClosedLimitTilt"]; @@ -17858,7 +18553,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000037_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000038_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000039_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO optional attribute: InstalledClosedLimitTilt"]; @@ -17883,7 +18578,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000038_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000039_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000040_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"4: read the RO mandatory attribute default: SafetyStatus"]; @@ -17907,7 +18602,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000039_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000040_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000041_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"5a: write a value into the RO mandatory attribute: SafetyStatus"]; @@ -17929,7 +18624,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000040_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000041_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000042_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"5b: reads back the RO mandatory attribute: SafetyStatus"]; @@ -17953,7 +18648,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000041_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000042_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000043_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"4: read the RO optional attribute default: CurrentPositionLift"]; @@ -17978,7 +18673,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000042_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000043_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000044_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"5a: write a value into the RO optional attribute: CurrentPositionLift"]; @@ -18002,7 +18697,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000043_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000044_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000045_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"5b: reads back the RO optional attribute: CurrentPositionLift"]; @@ -18027,7 +18722,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000044_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000045_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000046_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"4: read the RO optional attribute default: CurrentPositionTilt"]; @@ -18052,7 +18747,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000045_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000046_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000047_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"5a: write a value into the RO optional attribute: CurrentPositionTilt"]; @@ -18076,7 +18771,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000046_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000047_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000048_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"5b: reads back the RO optional attribute: CurrentPositionTilt"]; @@ -18101,7 +18796,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000047_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000048_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000049_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"4: read the RO optional attribute default: CurrentPositionLiftPercentage"]; @@ -18127,7 +18822,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000048_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000049_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000050_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"5a: write a value into the RO optional attribute: CurrentPositionLiftPercentage"]; @@ -18152,7 +18847,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000049_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000050_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000051_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"5b: reads back the RO optional attribute: CurrentPositionLiftPercentage"]; @@ -18178,7 +18873,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000050_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000051_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000052_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"4: read the RO optional attribute default: CurrentPositionTiltPercentage"]; @@ -18204,7 +18899,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000051_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000052_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000053_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"5a: write a value into the RO optional attribute: CurrentPositionTiltPercentage"]; @@ -18229,7 +18924,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000052_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000053_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000054_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"5b: reads back the RO optional attribute: CurrentPositionTiltPercentage"]; @@ -18256,7 +18951,24 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000053_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_4_000000_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_2_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} + +- (void)testSendClusterTest_TC_WNCV_2_4_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_WNCV_2_4_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads Type attribute from DUT"]; @@ -18280,7 +18992,7 @@ - (void)testSendClusterTest_TC_WNCV_2_4_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_4_000001_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_4_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads Type attribute constraints"]; @@ -18305,7 +19017,15 @@ - (void)testSendClusterTest_TC_WNCV_2_4_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_5_000000_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_5_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_WNCV_2_5_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads EndProductType attribute from DUT"]; @@ -18329,7 +19049,7 @@ - (void)testSendClusterTest_TC_WNCV_2_5_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_5_000001_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_5_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads EndProductType attribute constraints from DUT"]; @@ -18354,7 +19074,15 @@ - (void)testSendClusterTest_TC_WNCV_2_5_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_3_1_000000_DownOrClose +- (void)testSendClusterTest_TC_WNCV_3_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_WNCV_3_1_000001_DownOrClose { XCTestExpectation * expectation = [self expectationWithDescription:@"1a: TH adjusts the the DUT to a non-open position"]; @@ -18373,7 +19101,7 @@ - (void)testSendClusterTest_TC_WNCV_3_1_000000_DownOrClose [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_3_1_000001_UpOrOpen +- (void)testSendClusterTest_TC_WNCV_3_1_000002_UpOrOpen { XCTestExpectation * expectation = [self expectationWithDescription:@"2a: TH sends UpOrOpen command to DUT"]; @@ -18392,7 +19120,7 @@ - (void)testSendClusterTest_TC_WNCV_3_1_000001_UpOrOpen [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_3_1_000002_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_3_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: TH reads OperationalStatus attribute from DUT"]; @@ -18417,7 +19145,15 @@ - (void)testSendClusterTest_TC_WNCV_3_1_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_3_2_000000_UpOrOpen +- (void)testSendClusterTest_TC_WNCV_3_2_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_WNCV_3_2_000001_UpOrOpen { XCTestExpectation * expectation = [self expectationWithDescription:@"1a: TH adjusts the the DUT to a non-closed position"]; @@ -18436,7 +19172,7 @@ - (void)testSendClusterTest_TC_WNCV_3_2_000000_UpOrOpen [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_3_2_000001_DownOrClose +- (void)testSendClusterTest_TC_WNCV_3_2_000002_DownOrClose { XCTestExpectation * expectation = [self expectationWithDescription:@"2a: TH sends DownOrClose command to DUT"]; @@ -18455,7 +19191,7 @@ - (void)testSendClusterTest_TC_WNCV_3_2_000001_DownOrClose [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_3_2_000002_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_3_2_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: TH reads OperationalStatus attribute from DUT"]; @@ -18480,7 +19216,15 @@ - (void)testSendClusterTest_TC_WNCV_3_2_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_3_3_000000_UpOrOpen +- (void)testSendClusterTest_TC_WNCV_3_3_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_WNCV_3_3_000001_UpOrOpen { XCTestExpectation * expectation = [self expectationWithDescription:@"1a: TH adjusts the the DUT to a non-open position"]; @@ -18499,7 +19243,7 @@ - (void)testSendClusterTest_TC_WNCV_3_3_000000_UpOrOpen [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_3_3_000001_StopMotion +- (void)testSendClusterTest_TC_WNCV_3_3_000002_StopMotion { XCTestExpectation * expectation = [self expectationWithDescription:@"2a: TH sends StopMotion command to DUT"]; @@ -18518,7 +19262,7 @@ - (void)testSendClusterTest_TC_WNCV_3_3_000001_StopMotion [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_3_3_000002_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_3_3_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2b: TH reads OperationalStatus attribute from DUT"]; @@ -18543,7 +19287,15 @@ - (void)testSendClusterTest_TC_WNCV_3_3_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000000_Test +- (void)testSendClusterTestCluster_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestCluster_000001_Test { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Command"]; @@ -18562,7 +19314,7 @@ - (void)testSendClusterTestCluster_000000_Test [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000001_TestNotHandled +- (void)testSendClusterTestCluster_000002_TestNotHandled { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Not Handled Command"]; @@ -18580,7 +19332,7 @@ - (void)testSendClusterTestCluster_000001_TestNotHandled [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000002_TestSpecific +- (void)testSendClusterTestCluster_000003_TestSpecific { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Specific Command"]; @@ -18605,7 +19357,7 @@ - (void)testSendClusterTestCluster_000002_TestSpecific [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000003_TestAddArguments +- (void)testSendClusterTestCluster_000004_TestAddArguments { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Add Arguments Command"]; @@ -18634,7 +19386,7 @@ - (void)testSendClusterTestCluster_000003_TestAddArguments [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000004_TestAddArguments +- (void)testSendClusterTestCluster_000005_TestAddArguments { XCTestExpectation * expectation = [self expectationWithDescription:@"Send failing Test Add Arguments Command"]; @@ -18657,7 +19409,7 @@ - (void)testSendClusterTestCluster_000004_TestAddArguments [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000005_ReadAttribute +- (void)testSendClusterTestCluster_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BOOLEAN Default Value"]; @@ -18681,7 +19433,7 @@ - (void)testSendClusterTestCluster_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000006_WriteAttribute +- (void)testSendClusterTestCluster_000007_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BOOLEAN True"]; @@ -18703,7 +19455,7 @@ - (void)testSendClusterTestCluster_000006_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000007_ReadAttribute +- (void)testSendClusterTestCluster_000008_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BOOLEAN True"]; @@ -18727,7 +19479,7 @@ - (void)testSendClusterTestCluster_000007_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000008_WriteAttribute +- (void)testSendClusterTestCluster_000009_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BOOLEAN False"]; @@ -18749,7 +19501,7 @@ - (void)testSendClusterTestCluster_000008_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000009_ReadAttribute +- (void)testSendClusterTestCluster_000010_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BOOLEAN False"]; @@ -18773,7 +19525,7 @@ - (void)testSendClusterTestCluster_000009_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000010_ReadAttribute +- (void)testSendClusterTestCluster_000011_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP8 Default Value"]; @@ -18797,7 +19549,7 @@ - (void)testSendClusterTestCluster_000010_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000011_WriteAttribute +- (void)testSendClusterTestCluster_000012_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP8 Max Value"]; @@ -18819,7 +19571,7 @@ - (void)testSendClusterTestCluster_000011_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000012_ReadAttribute +- (void)testSendClusterTestCluster_000013_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP8 Max Value"]; @@ -18843,7 +19595,7 @@ - (void)testSendClusterTestCluster_000012_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000013_WriteAttribute +- (void)testSendClusterTestCluster_000014_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP8 Min Value"]; @@ -18865,7 +19617,7 @@ - (void)testSendClusterTestCluster_000013_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000014_ReadAttribute +- (void)testSendClusterTestCluster_000015_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP8 Min Value"]; @@ -18889,7 +19641,7 @@ - (void)testSendClusterTestCluster_000014_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000015_ReadAttribute +- (void)testSendClusterTestCluster_000016_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP16 Default Value"]; @@ -18913,7 +19665,7 @@ - (void)testSendClusterTestCluster_000015_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000016_WriteAttribute +- (void)testSendClusterTestCluster_000017_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP16 Max Value"]; @@ -18935,7 +19687,7 @@ - (void)testSendClusterTestCluster_000016_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000017_ReadAttribute +- (void)testSendClusterTestCluster_000018_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP16 Max Value"]; @@ -18959,7 +19711,7 @@ - (void)testSendClusterTestCluster_000017_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000018_WriteAttribute +- (void)testSendClusterTestCluster_000019_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP16 Min Value"]; @@ -18981,7 +19733,7 @@ - (void)testSendClusterTestCluster_000018_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000019_ReadAttribute +- (void)testSendClusterTestCluster_000020_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP16 Min Value"]; @@ -19005,7 +19757,7 @@ - (void)testSendClusterTestCluster_000019_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000020_ReadAttribute +- (void)testSendClusterTestCluster_000021_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP32 Default Value"]; @@ -19029,7 +19781,7 @@ - (void)testSendClusterTestCluster_000020_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000021_WriteAttribute +- (void)testSendClusterTestCluster_000022_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP32 Max Value"]; @@ -19051,7 +19803,7 @@ - (void)testSendClusterTestCluster_000021_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000022_ReadAttribute +- (void)testSendClusterTestCluster_000023_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP32 Max Value"]; @@ -19075,7 +19827,7 @@ - (void)testSendClusterTestCluster_000022_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000023_WriteAttribute +- (void)testSendClusterTestCluster_000024_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP32 Min Value"]; @@ -19097,7 +19849,7 @@ - (void)testSendClusterTestCluster_000023_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000024_ReadAttribute +- (void)testSendClusterTestCluster_000025_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP32 Min Value"]; @@ -19121,7 +19873,7 @@ - (void)testSendClusterTestCluster_000024_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000025_ReadAttribute +- (void)testSendClusterTestCluster_000026_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP64 Default Value"]; @@ -19145,7 +19897,7 @@ - (void)testSendClusterTestCluster_000025_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000026_WriteAttribute +- (void)testSendClusterTestCluster_000027_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP64 Max Value"]; @@ -19167,7 +19919,7 @@ - (void)testSendClusterTestCluster_000026_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000027_ReadAttribute +- (void)testSendClusterTestCluster_000028_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP64 Max Value"]; @@ -19191,7 +19943,7 @@ - (void)testSendClusterTestCluster_000027_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000028_WriteAttribute +- (void)testSendClusterTestCluster_000029_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP64 Min Value"]; @@ -19213,7 +19965,7 @@ - (void)testSendClusterTestCluster_000028_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000029_ReadAttribute +- (void)testSendClusterTestCluster_000030_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP64 Min Value"]; @@ -19237,7 +19989,7 @@ - (void)testSendClusterTestCluster_000029_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000030_ReadAttribute +- (void)testSendClusterTestCluster_000031_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT8U Default Value"]; @@ -19261,7 +20013,7 @@ - (void)testSendClusterTestCluster_000030_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000031_WriteAttribute +- (void)testSendClusterTestCluster_000032_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT8U Max Value"]; @@ -19283,7 +20035,7 @@ - (void)testSendClusterTestCluster_000031_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000032_ReadAttribute +- (void)testSendClusterTestCluster_000033_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT8U Max Value"]; @@ -19307,7 +20059,7 @@ - (void)testSendClusterTestCluster_000032_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000033_WriteAttribute +- (void)testSendClusterTestCluster_000034_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT8U Min Value"]; @@ -19329,7 +20081,7 @@ - (void)testSendClusterTestCluster_000033_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000034_ReadAttribute +- (void)testSendClusterTestCluster_000035_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT8U Min Value"]; @@ -19353,7 +20105,7 @@ - (void)testSendClusterTestCluster_000034_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000035_ReadAttribute +- (void)testSendClusterTestCluster_000036_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT16U Default Value"]; @@ -19377,7 +20129,7 @@ - (void)testSendClusterTestCluster_000035_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000036_WriteAttribute +- (void)testSendClusterTestCluster_000037_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT16U Max Value"]; @@ -19399,7 +20151,7 @@ - (void)testSendClusterTestCluster_000036_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000037_ReadAttribute +- (void)testSendClusterTestCluster_000038_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT16U Max Value"]; @@ -19423,7 +20175,7 @@ - (void)testSendClusterTestCluster_000037_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000038_WriteAttribute +- (void)testSendClusterTestCluster_000039_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT16U Min Value"]; @@ -19445,7 +20197,7 @@ - (void)testSendClusterTestCluster_000038_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000039_ReadAttribute +- (void)testSendClusterTestCluster_000040_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT16U Min Value"]; @@ -19469,7 +20221,7 @@ - (void)testSendClusterTestCluster_000039_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000040_ReadAttribute +- (void)testSendClusterTestCluster_000041_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32U Default Value"]; @@ -19493,7 +20245,7 @@ - (void)testSendClusterTestCluster_000040_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000041_WriteAttribute +- (void)testSendClusterTestCluster_000042_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT32U Max Value"]; @@ -19515,7 +20267,7 @@ - (void)testSendClusterTestCluster_000041_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000042_ReadAttribute +- (void)testSendClusterTestCluster_000043_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32U Max Value"]; @@ -19539,7 +20291,7 @@ - (void)testSendClusterTestCluster_000042_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000043_WriteAttribute +- (void)testSendClusterTestCluster_000044_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT32U Min Value"]; @@ -19561,7 +20313,7 @@ - (void)testSendClusterTestCluster_000043_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000044_ReadAttribute +- (void)testSendClusterTestCluster_000045_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32U Min Value"]; @@ -19585,7 +20337,7 @@ - (void)testSendClusterTestCluster_000044_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000045_ReadAttribute +- (void)testSendClusterTestCluster_000046_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT64U Default Value"]; @@ -19609,7 +20361,7 @@ - (void)testSendClusterTestCluster_000045_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000046_WriteAttribute +- (void)testSendClusterTestCluster_000047_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT64U Max Value"]; @@ -19631,7 +20383,7 @@ - (void)testSendClusterTestCluster_000046_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000047_ReadAttribute +- (void)testSendClusterTestCluster_000048_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT64U Max Value"]; @@ -19655,7 +20407,7 @@ - (void)testSendClusterTestCluster_000047_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000048_WriteAttribute +- (void)testSendClusterTestCluster_000049_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT64U Min Value"]; @@ -19677,7 +20429,7 @@ - (void)testSendClusterTestCluster_000048_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000049_ReadAttribute +- (void)testSendClusterTestCluster_000050_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT64U Min Value"]; @@ -19701,7 +20453,7 @@ - (void)testSendClusterTestCluster_000049_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000050_ReadAttribute +- (void)testSendClusterTestCluster_000051_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT8S Default Value"]; @@ -19725,7 +20477,7 @@ - (void)testSendClusterTestCluster_000050_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000051_WriteAttribute +- (void)testSendClusterTestCluster_000052_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT8S Max Value"]; @@ -19747,7 +20499,7 @@ - (void)testSendClusterTestCluster_000051_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000052_ReadAttribute +- (void)testSendClusterTestCluster_000053_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT8S Max Value"]; @@ -19771,7 +20523,7 @@ - (void)testSendClusterTestCluster_000052_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000053_WriteAttribute +- (void)testSendClusterTestCluster_000054_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT8S Min Value"]; @@ -19793,7 +20545,7 @@ - (void)testSendClusterTestCluster_000053_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000054_ReadAttribute +- (void)testSendClusterTestCluster_000055_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT8S Min Value"]; @@ -19817,7 +20569,7 @@ - (void)testSendClusterTestCluster_000054_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000055_WriteAttribute +- (void)testSendClusterTestCluster_000056_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT8S Default Value"]; @@ -19839,7 +20591,7 @@ - (void)testSendClusterTestCluster_000055_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000056_ReadAttribute +- (void)testSendClusterTestCluster_000057_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT8S Default Value"]; @@ -19863,7 +20615,7 @@ - (void)testSendClusterTestCluster_000056_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000057_ReadAttribute +- (void)testSendClusterTestCluster_000058_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT16S Default Value"]; @@ -19887,7 +20639,7 @@ - (void)testSendClusterTestCluster_000057_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000058_WriteAttribute +- (void)testSendClusterTestCluster_000059_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT16S Max Value"]; @@ -19909,7 +20661,7 @@ - (void)testSendClusterTestCluster_000058_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000059_ReadAttribute +- (void)testSendClusterTestCluster_000060_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT16S Max Value"]; @@ -19933,7 +20685,7 @@ - (void)testSendClusterTestCluster_000059_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000060_WriteAttribute +- (void)testSendClusterTestCluster_000061_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT16S Min Value"]; @@ -19955,7 +20707,7 @@ - (void)testSendClusterTestCluster_000060_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000061_ReadAttribute +- (void)testSendClusterTestCluster_000062_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT16S Min Value"]; @@ -19979,7 +20731,7 @@ - (void)testSendClusterTestCluster_000061_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000062_WriteAttribute +- (void)testSendClusterTestCluster_000063_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT16S Default Value"]; @@ -20001,7 +20753,7 @@ - (void)testSendClusterTestCluster_000062_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000063_ReadAttribute +- (void)testSendClusterTestCluster_000064_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT16S Default Value"]; @@ -20025,7 +20777,7 @@ - (void)testSendClusterTestCluster_000063_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000064_ReadAttribute +- (void)testSendClusterTestCluster_000065_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32S Default Value"]; @@ -20049,7 +20801,7 @@ - (void)testSendClusterTestCluster_000064_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000065_WriteAttribute +- (void)testSendClusterTestCluster_000066_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT32S Max Value"]; @@ -20071,7 +20823,7 @@ - (void)testSendClusterTestCluster_000065_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000066_ReadAttribute +- (void)testSendClusterTestCluster_000067_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32S Max Value"]; @@ -20095,7 +20847,7 @@ - (void)testSendClusterTestCluster_000066_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000067_WriteAttribute +- (void)testSendClusterTestCluster_000068_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT32S Min Value"]; @@ -20117,7 +20869,7 @@ - (void)testSendClusterTestCluster_000067_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000068_ReadAttribute +- (void)testSendClusterTestCluster_000069_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32S Min Value"]; @@ -20141,7 +20893,7 @@ - (void)testSendClusterTestCluster_000068_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000069_WriteAttribute +- (void)testSendClusterTestCluster_000070_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT32S Default Value"]; @@ -20163,7 +20915,7 @@ - (void)testSendClusterTestCluster_000069_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000070_ReadAttribute +- (void)testSendClusterTestCluster_000071_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32S Default Value"]; @@ -20187,7 +20939,7 @@ - (void)testSendClusterTestCluster_000070_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000071_ReadAttribute +- (void)testSendClusterTestCluster_000072_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT64S Default Value"]; @@ -20211,7 +20963,7 @@ - (void)testSendClusterTestCluster_000071_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000072_WriteAttribute +- (void)testSendClusterTestCluster_000073_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT64S Max Value"]; @@ -20233,7 +20985,7 @@ - (void)testSendClusterTestCluster_000072_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000073_ReadAttribute +- (void)testSendClusterTestCluster_000074_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT64S Max Value"]; @@ -20257,7 +21009,7 @@ - (void)testSendClusterTestCluster_000073_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000074_WriteAttribute +- (void)testSendClusterTestCluster_000075_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT64S Min Value"]; @@ -20279,7 +21031,7 @@ - (void)testSendClusterTestCluster_000074_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000075_ReadAttribute +- (void)testSendClusterTestCluster_000076_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT64S Min Value"]; @@ -20303,7 +21055,7 @@ - (void)testSendClusterTestCluster_000075_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000076_WriteAttribute +- (void)testSendClusterTestCluster_000077_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT64S Default Value"]; @@ -20325,7 +21077,7 @@ - (void)testSendClusterTestCluster_000076_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000077_ReadAttribute +- (void)testSendClusterTestCluster_000078_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT64S Default Value"]; @@ -20349,7 +21101,7 @@ - (void)testSendClusterTestCluster_000077_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000078_ReadAttribute +- (void)testSendClusterTestCluster_000079_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute ENUM8 Default Value"]; @@ -20373,7 +21125,7 @@ - (void)testSendClusterTestCluster_000078_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000079_WriteAttribute +- (void)testSendClusterTestCluster_000080_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute ENUM8 Max Value"]; @@ -20395,7 +21147,7 @@ - (void)testSendClusterTestCluster_000079_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000080_ReadAttribute +- (void)testSendClusterTestCluster_000081_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute ENUM8 Max Value"]; @@ -20419,7 +21171,7 @@ - (void)testSendClusterTestCluster_000080_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000081_WriteAttribute +- (void)testSendClusterTestCluster_000082_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute ENUM8 Min Value"]; @@ -20441,7 +21193,7 @@ - (void)testSendClusterTestCluster_000081_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000082_ReadAttribute +- (void)testSendClusterTestCluster_000083_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute ENUM8 Min Value"]; @@ -20465,7 +21217,7 @@ - (void)testSendClusterTestCluster_000082_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000083_ReadAttribute +- (void)testSendClusterTestCluster_000084_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute ENUM16 Default Value"]; @@ -20489,7 +21241,7 @@ - (void)testSendClusterTestCluster_000083_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000084_WriteAttribute +- (void)testSendClusterTestCluster_000085_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute ENUM16 Max Value"]; @@ -20511,7 +21263,7 @@ - (void)testSendClusterTestCluster_000084_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000085_ReadAttribute +- (void)testSendClusterTestCluster_000086_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute ENUM16 Max Value"]; @@ -20535,7 +21287,7 @@ - (void)testSendClusterTestCluster_000085_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000086_WriteAttribute +- (void)testSendClusterTestCluster_000087_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute ENUM16 Min Value"]; @@ -20557,7 +21309,7 @@ - (void)testSendClusterTestCluster_000086_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000087_ReadAttribute +- (void)testSendClusterTestCluster_000088_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute ENUM16 Min Value"]; @@ -20581,7 +21333,7 @@ - (void)testSendClusterTestCluster_000087_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000088_ReadAttribute +- (void)testSendClusterTestCluster_000089_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute OCTET_STRING Default Value"]; @@ -20605,7 +21357,7 @@ - (void)testSendClusterTestCluster_000088_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000089_WriteAttribute +- (void)testSendClusterTestCluster_000090_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute OCTET_STRING with embedded null"]; @@ -20627,7 +21379,7 @@ - (void)testSendClusterTestCluster_000089_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000090_ReadAttribute +- (void)testSendClusterTestCluster_000091_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute OCTET_STRING with embedded null"]; @@ -20651,7 +21403,7 @@ - (void)testSendClusterTestCluster_000090_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000091_WriteAttribute +- (void)testSendClusterTestCluster_000092_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute OCTET_STRING"]; @@ -20673,7 +21425,7 @@ - (void)testSendClusterTestCluster_000091_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000092_ReadAttribute +- (void)testSendClusterTestCluster_000093_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute OCTET_STRING"]; @@ -20697,7 +21449,7 @@ - (void)testSendClusterTestCluster_000092_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000093_WriteAttribute +- (void)testSendClusterTestCluster_000094_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute OCTET_STRING"]; @@ -20718,7 +21470,7 @@ - (void)testSendClusterTestCluster_000093_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000094_ReadAttribute +- (void)testSendClusterTestCluster_000095_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute OCTET_STRING"]; @@ -20742,7 +21494,7 @@ - (void)testSendClusterTestCluster_000094_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000095_WriteAttribute +- (void)testSendClusterTestCluster_000096_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute OCTET_STRING"]; @@ -20764,7 +21516,7 @@ - (void)testSendClusterTestCluster_000095_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000096_ReadAttribute +- (void)testSendClusterTestCluster_000097_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute LONG_OCTET_STRING Default Value"]; @@ -20788,7 +21540,7 @@ - (void)testSendClusterTestCluster_000096_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000097_WriteAttribute +- (void)testSendClusterTestCluster_000098_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute LONG_OCTET_STRING"]; @@ -20814,7 +21566,7 @@ - (void)testSendClusterTestCluster_000097_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000098_ReadAttribute +- (void)testSendClusterTestCluster_000099_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute LONG_OCTET_STRING"]; @@ -20844,7 +21596,7 @@ - (void)testSendClusterTestCluster_000098_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000099_WriteAttribute +- (void)testSendClusterTestCluster_000100_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute LONG_OCTET_STRING"]; @@ -20866,7 +21618,7 @@ - (void)testSendClusterTestCluster_000099_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000100_ReadAttribute +- (void)testSendClusterTestCluster_000101_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute CHAR_STRING Default Value"]; @@ -20890,7 +21642,7 @@ - (void)testSendClusterTestCluster_000100_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000101_WriteAttribute +- (void)testSendClusterTestCluster_000102_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute CHAR_STRING"]; @@ -20912,7 +21664,7 @@ - (void)testSendClusterTestCluster_000101_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000102_ReadAttribute +- (void)testSendClusterTestCluster_000103_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute CHAR_STRING"]; @@ -20936,7 +21688,7 @@ - (void)testSendClusterTestCluster_000102_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000103_WriteAttribute +- (void)testSendClusterTestCluster_000104_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute CHAR_STRING - Value too long"]; @@ -20957,7 +21709,7 @@ - (void)testSendClusterTestCluster_000103_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000104_ReadAttribute +- (void)testSendClusterTestCluster_000105_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute CHAR_STRING"]; @@ -20981,7 +21733,7 @@ - (void)testSendClusterTestCluster_000104_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000105_WriteAttribute +- (void)testSendClusterTestCluster_000106_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute CHAR_STRING - Empty"]; @@ -21003,7 +21755,7 @@ - (void)testSendClusterTestCluster_000105_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000106_ReadAttribute +- (void)testSendClusterTestCluster_000107_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute LONG_CHAR_STRING Default Value"]; @@ -21027,7 +21779,7 @@ - (void)testSendClusterTestCluster_000106_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000107_WriteAttribute +- (void)testSendClusterTestCluster_000108_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute LONG_CHAR_STRING"]; @@ -21052,7 +21804,7 @@ - (void)testSendClusterTestCluster_000107_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000108_ReadAttribute +- (void)testSendClusterTestCluster_000109_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute LONG_CHAR_STRING"]; @@ -21080,7 +21832,7 @@ - (void)testSendClusterTestCluster_000108_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000109_WriteAttribute +- (void)testSendClusterTestCluster_000110_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute LONG_CHAR_STRING"]; @@ -21102,7 +21854,7 @@ - (void)testSendClusterTestCluster_000109_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000110_ReadAttribute +- (void)testSendClusterTestCluster_000111_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute EPOCH_US Default Value"]; @@ -21126,7 +21878,7 @@ - (void)testSendClusterTestCluster_000110_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000111_WriteAttribute +- (void)testSendClusterTestCluster_000112_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute EPOCH_US Max Value"]; @@ -21148,7 +21900,7 @@ - (void)testSendClusterTestCluster_000111_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000112_ReadAttribute +- (void)testSendClusterTestCluster_000113_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute EPOCH_US Max Value"]; @@ -21172,7 +21924,7 @@ - (void)testSendClusterTestCluster_000112_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000113_WriteAttribute +- (void)testSendClusterTestCluster_000114_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute EPOCH_US Min Value"]; @@ -21194,7 +21946,7 @@ - (void)testSendClusterTestCluster_000113_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000114_ReadAttribute +- (void)testSendClusterTestCluster_000115_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute EPOCH_US Min Value"]; @@ -21218,7 +21970,7 @@ - (void)testSendClusterTestCluster_000114_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000115_ReadAttribute +- (void)testSendClusterTestCluster_000116_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute EPOCH_S Default Value"]; @@ -21242,7 +21994,7 @@ - (void)testSendClusterTestCluster_000115_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000116_WriteAttribute +- (void)testSendClusterTestCluster_000117_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute EPOCH_S Max Value"]; @@ -21264,7 +22016,7 @@ - (void)testSendClusterTestCluster_000116_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000117_ReadAttribute +- (void)testSendClusterTestCluster_000118_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute EPOCH_S Max Value"]; @@ -21288,7 +22040,7 @@ - (void)testSendClusterTestCluster_000117_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000118_WriteAttribute +- (void)testSendClusterTestCluster_000119_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute EPOCH_S Min Value"]; @@ -21310,7 +22062,7 @@ - (void)testSendClusterTestCluster_000118_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000119_ReadAttribute +- (void)testSendClusterTestCluster_000120_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute EPOCH_S Min Value"]; @@ -21334,7 +22086,7 @@ - (void)testSendClusterTestCluster_000119_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000120_ReadAttribute +- (void)testSendClusterTestCluster_000121_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute UNSUPPORTED"]; @@ -21363,7 +22115,7 @@ - (void)testSendClusterTestCluster_000120_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000121_WriteAttribute +- (void)testSendClusterTestCluster_000122_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writeattribute UNSUPPORTED"]; @@ -21390,7 +22142,7 @@ - (void)testSendClusterTestCluster_000121_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000122_Test +- (void)testSendClusterTestCluster_000123_Test { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Command to unsupported endpoint"]; @@ -21408,7 +22160,7 @@ - (void)testSendClusterTestCluster_000122_Test [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000123_Test +- (void)testSendClusterTestCluster_000124_Test { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Command to unsupported cluster"]; @@ -21426,7 +22178,7 @@ - (void)testSendClusterTestCluster_000123_Test [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000124_ReadAttribute +- (void)testSendClusterTestCluster_000125_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute vendor_id Default Value"]; @@ -21450,7 +22202,7 @@ - (void)testSendClusterTestCluster_000124_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000125_WriteAttribute +- (void)testSendClusterTestCluster_000126_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute vendor_id"]; @@ -21472,7 +22224,7 @@ - (void)testSendClusterTestCluster_000125_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000126_ReadAttribute +- (void)testSendClusterTestCluster_000127_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute vendor_id"]; @@ -21496,7 +22248,7 @@ - (void)testSendClusterTestCluster_000126_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000127_WriteAttribute +- (void)testSendClusterTestCluster_000128_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Restore attribute vendor_id"]; @@ -21518,7 +22270,7 @@ - (void)testSendClusterTestCluster_000127_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000128_TestEnumsRequest +- (void)testSendClusterTestCluster_000129_TestEnumsRequest { XCTestExpectation * expectation = [self expectationWithDescription:@"Send a command with a vendor_id and enum"]; @@ -21551,7 +22303,7 @@ - (void)testSendClusterTestCluster_000128_TestEnumsRequest [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000129_TestStructArgumentRequest +- (void)testSendClusterTestCluster_000130_TestStructArgumentRequest { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Command With Struct Argument and arg1.b is true"]; @@ -21589,7 +22341,7 @@ - (void)testSendClusterTestCluster_000129_TestStructArgumentRequest [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000130_TestStructArgumentRequest +- (void)testSendClusterTestCluster_000131_TestStructArgumentRequest { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Command With Struct Argument and arg1.b is false"]; @@ -21627,7 +22379,7 @@ - (void)testSendClusterTestCluster_000130_TestStructArgumentRequest [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000131_TestNestedStructArgumentRequest +- (void)testSendClusterTestCluster_000132_TestNestedStructArgumentRequest { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Command With Nested Struct Argument and arg1.c.b is true"]; @@ -21676,7 +22428,7 @@ - (void)testSendClusterTestCluster_000131_TestNestedStructArgumentRequest [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000132_TestNestedStructArgumentRequest +- (void)testSendClusterTestCluster_000133_TestNestedStructArgumentRequest { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Command With Nested Struct Argument arg1.c.b is false"]; @@ -21724,7 +22476,7 @@ - (void)testSendClusterTestCluster_000132_TestNestedStructArgumentRequest [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000133_TestNestedStructListArgumentRequest +- (void)testSendClusterTestCluster_000134_TestNestedStructListArgumentRequest { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Command With Nested Struct List Argument and all fields b of arg1.d are true"]; @@ -21819,7 +22571,7 @@ - (void)testSendClusterTestCluster_000133_TestNestedStructListArgumentRequest [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000134_TestNestedStructListArgumentRequest +- (void)testSendClusterTestCluster_000135_TestNestedStructListArgumentRequest { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Command With Nested Struct List Argument and some fields b of arg1.d are false"]; @@ -21914,7 +22666,7 @@ - (void)testSendClusterTestCluster_000134_TestNestedStructListArgumentRequest [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000135_SimpleStructEchoRequest +- (void)testSendClusterTestCluster_000136_SimpleStructEchoRequest { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Command With Struct Argument and see what we get back"]; @@ -21961,7 +22713,7 @@ - (void)testSendClusterTestCluster_000135_SimpleStructEchoRequest [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000136_TestListInt8UArgumentRequest +- (void)testSendClusterTestCluster_000137_TestListInt8UArgumentRequest { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Command With List of INT8U and none of them is set to 0"]; @@ -22002,7 +22754,7 @@ - (void)testSendClusterTestCluster_000136_TestListInt8UArgumentRequest [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000137_TestListInt8UArgumentRequest +- (void)testSendClusterTestCluster_000138_TestListInt8UArgumentRequest { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Command With List of INT8U and one of them is set to 0"]; @@ -22044,7 +22796,7 @@ - (void)testSendClusterTestCluster_000137_TestListInt8UArgumentRequest [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000138_TestListInt8UReverseRequest +- (void)testSendClusterTestCluster_000139_TestListInt8UReverseRequest { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Command With List of INT8U and get it reversed"]; @@ -22093,7 +22845,7 @@ - (void)testSendClusterTestCluster_000138_TestListInt8UReverseRequest [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000139_TestListInt8UReverseRequest +- (void)testSendClusterTestCluster_000140_TestListInt8UReverseRequest { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Command With empty List of INT8U and get an empty list back"]; @@ -22125,7 +22877,7 @@ - (void)testSendClusterTestCluster_000139_TestListInt8UReverseRequest [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000140_TestListStructArgumentRequest +- (void)testSendClusterTestCluster_000141_TestListStructArgumentRequest { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Command With List of Struct Argument and arg1.b of first item is true"]; @@ -22180,7 +22932,7 @@ - (void)testSendClusterTestCluster_000140_TestListStructArgumentRequest [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000141_TestListStructArgumentRequest +- (void)testSendClusterTestCluster_000142_TestListStructArgumentRequest { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Command With List of Struct Argument and arg1.b of first item is false"]; @@ -22235,7 +22987,7 @@ - (void)testSendClusterTestCluster_000141_TestListStructArgumentRequest [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000142_TestListNestedStructListArgumentRequest +- (void)testSendClusterTestCluster_000143_TestListNestedStructListArgumentRequest { XCTestExpectation * expectation = [self expectationWithDescription: @@ -22335,7 +23087,7 @@ - (void)testSendClusterTestCluster_000142_TestListNestedStructListArgumentReques [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000143_TestListNestedStructListArgumentRequest +- (void)testSendClusterTestCluster_000144_TestListNestedStructListArgumentRequest { XCTestExpectation * expectation = [self expectationWithDescription: @@ -22435,7 +23187,7 @@ - (void)testSendClusterTestCluster_000143_TestListNestedStructListArgumentReques [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000144_WriteAttribute +- (void)testSendClusterTestCluster_000145_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute LIST With List of INT8U and none of them is set to 0"]; @@ -22465,7 +23217,7 @@ - (void)testSendClusterTestCluster_000144_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000145_ReadAttribute +- (void)testSendClusterTestCluster_000146_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute LIST With List of INT8U"]; @@ -22493,7 +23245,7 @@ - (void)testSendClusterTestCluster_000145_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000146_WriteAttribute +- (void)testSendClusterTestCluster_000147_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute LIST With List of OCTET_STRING"]; @@ -22522,7 +23274,7 @@ - (void)testSendClusterTestCluster_000146_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000147_ReadAttribute +- (void)testSendClusterTestCluster_000148_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute LIST With List of OCTET_STRING"]; @@ -22550,7 +23302,7 @@ - (void)testSendClusterTestCluster_000147_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000148_WriteAttribute +- (void)testSendClusterTestCluster_000149_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute LIST With List of LIST_STRUCT_OCTET_STRING"]; @@ -22592,7 +23344,7 @@ - (void)testSendClusterTestCluster_000148_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000149_ReadAttribute +- (void)testSendClusterTestCluster_000150_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute LIST With List of LIST_STRUCT_OCTET_STRING"]; @@ -22633,7 +23385,7 @@ - (void)testSendClusterTestCluster_000149_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000150_TestNullableOptionalRequest +- (void)testSendClusterTestCluster_000151_TestNullableOptionalRequest { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Command with optional arg set."]; @@ -22674,7 +23426,7 @@ - (void)testSendClusterTestCluster_000150_TestNullableOptionalRequest [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000151_TestNullableOptionalRequest +- (void)testSendClusterTestCluster_000152_TestNullableOptionalRequest { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Command without its optional arg."]; @@ -22701,7 +23453,7 @@ - (void)testSendClusterTestCluster_000151_TestNullableOptionalRequest [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000152_WriteAttribute +- (void)testSendClusterTestCluster_000153_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_BOOLEAN null"]; @@ -22723,7 +23475,7 @@ - (void)testSendClusterTestCluster_000152_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000153_ReadAttribute +- (void)testSendClusterTestCluster_000154_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_BOOLEAN null"]; @@ -22747,7 +23499,7 @@ - (void)testSendClusterTestCluster_000153_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000154_WriteAttribute +- (void)testSendClusterTestCluster_000155_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_BOOLEAN True"]; @@ -22769,7 +23521,7 @@ - (void)testSendClusterTestCluster_000154_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000155_ReadAttribute +- (void)testSendClusterTestCluster_000156_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_BOOLEAN True"]; @@ -22794,7 +23546,7 @@ - (void)testSendClusterTestCluster_000155_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000156_WriteAttribute +- (void)testSendClusterTestCluster_000157_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_BITMAP8 Max Value"]; @@ -22816,7 +23568,7 @@ - (void)testSendClusterTestCluster_000156_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000157_ReadAttribute +- (void)testSendClusterTestCluster_000158_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_BITMAP8 Max Value"]; @@ -22841,7 +23593,7 @@ - (void)testSendClusterTestCluster_000157_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000158_WriteAttribute +- (void)testSendClusterTestCluster_000159_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_BITMAP8 Invalid Value"]; @@ -22863,7 +23615,7 @@ - (void)testSendClusterTestCluster_000158_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000159_ReadAttribute +- (void)testSendClusterTestCluster_000160_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_BITMAP8 unchanged Value"]; @@ -22888,7 +23640,7 @@ - (void)testSendClusterTestCluster_000159_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000160_WriteAttribute +- (void)testSendClusterTestCluster_000161_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_BITMAP8 null Value"]; @@ -22910,7 +23662,7 @@ - (void)testSendClusterTestCluster_000160_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000161_ReadAttribute +- (void)testSendClusterTestCluster_000162_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_BITMAP8 null Value"]; @@ -22934,7 +23686,7 @@ - (void)testSendClusterTestCluster_000161_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000162_WriteAttribute +- (void)testSendClusterTestCluster_000163_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_BITMAP16 Max Value"]; @@ -22956,7 +23708,7 @@ - (void)testSendClusterTestCluster_000162_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000163_ReadAttribute +- (void)testSendClusterTestCluster_000164_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_BITMAP16 Max Value"]; @@ -22981,7 +23733,7 @@ - (void)testSendClusterTestCluster_000163_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000164_WriteAttribute +- (void)testSendClusterTestCluster_000165_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_BITMAP16 Invalid Value"]; @@ -23003,7 +23755,7 @@ - (void)testSendClusterTestCluster_000164_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000165_ReadAttribute +- (void)testSendClusterTestCluster_000166_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_BITMAP16 unchanged Value"]; @@ -23028,7 +23780,7 @@ - (void)testSendClusterTestCluster_000165_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000166_WriteAttribute +- (void)testSendClusterTestCluster_000167_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_BITMAP16 null Value"]; @@ -23050,7 +23802,7 @@ - (void)testSendClusterTestCluster_000166_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000167_ReadAttribute +- (void)testSendClusterTestCluster_000168_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_BITMAP16 null Value"]; @@ -23074,7 +23826,7 @@ - (void)testSendClusterTestCluster_000167_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000168_WriteAttribute +- (void)testSendClusterTestCluster_000169_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_BITMAP32 Max Value"]; @@ -23096,7 +23848,7 @@ - (void)testSendClusterTestCluster_000168_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000169_ReadAttribute +- (void)testSendClusterTestCluster_000170_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_BITMAP32 Max Value"]; @@ -23121,7 +23873,7 @@ - (void)testSendClusterTestCluster_000169_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000170_WriteAttribute +- (void)testSendClusterTestCluster_000171_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_BITMAP32 Invalid Value"]; @@ -23143,7 +23895,7 @@ - (void)testSendClusterTestCluster_000170_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000171_ReadAttribute +- (void)testSendClusterTestCluster_000172_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_BITMAP32 unchanged Value"]; @@ -23168,7 +23920,7 @@ - (void)testSendClusterTestCluster_000171_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000172_WriteAttribute +- (void)testSendClusterTestCluster_000173_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_BITMAP32 null Value"]; @@ -23190,7 +23942,7 @@ - (void)testSendClusterTestCluster_000172_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000173_ReadAttribute +- (void)testSendClusterTestCluster_000174_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_BITMAP32 null Value"]; @@ -23214,7 +23966,7 @@ - (void)testSendClusterTestCluster_000173_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000174_WriteAttribute +- (void)testSendClusterTestCluster_000175_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_BITMAP64 Max Value"]; @@ -23236,7 +23988,7 @@ - (void)testSendClusterTestCluster_000174_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000175_ReadAttribute +- (void)testSendClusterTestCluster_000176_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_BITMAP64 Max Value"]; @@ -23261,7 +24013,7 @@ - (void)testSendClusterTestCluster_000175_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000176_WriteAttribute +- (void)testSendClusterTestCluster_000177_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_BITMAP64 Invalid Value"]; @@ -23283,7 +24035,7 @@ - (void)testSendClusterTestCluster_000176_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000177_ReadAttribute +- (void)testSendClusterTestCluster_000178_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_BITMAP64 unchanged Value"]; @@ -23308,7 +24060,7 @@ - (void)testSendClusterTestCluster_000177_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000178_WriteAttribute +- (void)testSendClusterTestCluster_000179_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_BITMAP64 null Value"]; @@ -23330,7 +24082,7 @@ - (void)testSendClusterTestCluster_000178_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000179_ReadAttribute +- (void)testSendClusterTestCluster_000180_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_BITMAP64 null Value"]; @@ -23354,7 +24106,7 @@ - (void)testSendClusterTestCluster_000179_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000180_WriteAttribute +- (void)testSendClusterTestCluster_000181_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT8U Max Value"]; @@ -23376,7 +24128,7 @@ - (void)testSendClusterTestCluster_000180_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000181_ReadAttribute +- (void)testSendClusterTestCluster_000182_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT8U Max Value"]; @@ -23401,7 +24153,7 @@ - (void)testSendClusterTestCluster_000181_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000182_WriteAttribute +- (void)testSendClusterTestCluster_000183_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT8U Invalid Value"]; @@ -23422,7 +24174,7 @@ - (void)testSendClusterTestCluster_000182_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000183_ReadAttribute +- (void)testSendClusterTestCluster_000184_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT8U unchanged Value"]; @@ -23447,7 +24199,7 @@ - (void)testSendClusterTestCluster_000183_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000184_WriteAttribute +- (void)testSendClusterTestCluster_000185_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT8U null Value"]; @@ -23469,7 +24221,7 @@ - (void)testSendClusterTestCluster_000184_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000185_ReadAttribute +- (void)testSendClusterTestCluster_000186_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT8U null Value"]; @@ -23493,7 +24245,7 @@ - (void)testSendClusterTestCluster_000185_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000186_WriteAttribute +- (void)testSendClusterTestCluster_000187_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT16U Max Value"]; @@ -23515,7 +24267,7 @@ - (void)testSendClusterTestCluster_000186_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000187_ReadAttribute +- (void)testSendClusterTestCluster_000188_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT16U Max Value"]; @@ -23540,7 +24292,7 @@ - (void)testSendClusterTestCluster_000187_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000188_WriteAttribute +- (void)testSendClusterTestCluster_000189_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT16U Invalid Value"]; @@ -23562,7 +24314,7 @@ - (void)testSendClusterTestCluster_000188_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000189_ReadAttribute +- (void)testSendClusterTestCluster_000190_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT16U unchanged Value"]; @@ -23587,7 +24339,7 @@ - (void)testSendClusterTestCluster_000189_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000190_WriteAttribute +- (void)testSendClusterTestCluster_000191_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT16U null Value"]; @@ -23609,7 +24361,7 @@ - (void)testSendClusterTestCluster_000190_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000191_ReadAttribute +- (void)testSendClusterTestCluster_000192_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT16U null Value"]; @@ -23633,7 +24385,7 @@ - (void)testSendClusterTestCluster_000191_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000192_WriteAttribute +- (void)testSendClusterTestCluster_000193_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT32U Max Value"]; @@ -23655,7 +24407,7 @@ - (void)testSendClusterTestCluster_000192_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000193_ReadAttribute +- (void)testSendClusterTestCluster_000194_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT32U Max Value"]; @@ -23680,7 +24432,7 @@ - (void)testSendClusterTestCluster_000193_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000194_WriteAttribute +- (void)testSendClusterTestCluster_000195_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT32U Invalid Value"]; @@ -23702,7 +24454,7 @@ - (void)testSendClusterTestCluster_000194_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000195_ReadAttribute +- (void)testSendClusterTestCluster_000196_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT32U unchanged Value"]; @@ -23727,7 +24479,7 @@ - (void)testSendClusterTestCluster_000195_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000196_WriteAttribute +- (void)testSendClusterTestCluster_000197_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT32U null Value"]; @@ -23749,7 +24501,7 @@ - (void)testSendClusterTestCluster_000196_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000197_ReadAttribute +- (void)testSendClusterTestCluster_000198_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT32U null Value"]; @@ -23773,7 +24525,7 @@ - (void)testSendClusterTestCluster_000197_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000198_WriteAttribute +- (void)testSendClusterTestCluster_000199_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT64U Max Value"]; @@ -23795,7 +24547,7 @@ - (void)testSendClusterTestCluster_000198_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000199_ReadAttribute +- (void)testSendClusterTestCluster_000200_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT64U Max Value"]; @@ -23820,7 +24572,7 @@ - (void)testSendClusterTestCluster_000199_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000200_WriteAttribute +- (void)testSendClusterTestCluster_000201_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT64U Invalid Value"]; @@ -23842,7 +24594,7 @@ - (void)testSendClusterTestCluster_000200_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000201_ReadAttribute +- (void)testSendClusterTestCluster_000202_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT64U unchanged Value"]; @@ -23867,7 +24619,7 @@ - (void)testSendClusterTestCluster_000201_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000202_WriteAttribute +- (void)testSendClusterTestCluster_000203_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT64U null Value"]; @@ -23889,7 +24641,7 @@ - (void)testSendClusterTestCluster_000202_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000203_ReadAttribute +- (void)testSendClusterTestCluster_000204_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT64U null Value"]; @@ -23913,7 +24665,7 @@ - (void)testSendClusterTestCluster_000203_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000204_WriteAttribute +- (void)testSendClusterTestCluster_000205_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT8S Min Value"]; @@ -23935,7 +24687,7 @@ - (void)testSendClusterTestCluster_000204_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000205_ReadAttribute +- (void)testSendClusterTestCluster_000206_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT8S Min Value"]; @@ -23960,7 +24712,7 @@ - (void)testSendClusterTestCluster_000205_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000206_WriteAttribute +- (void)testSendClusterTestCluster_000207_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT8S Invalid Value"]; @@ -23981,7 +24733,7 @@ - (void)testSendClusterTestCluster_000206_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000207_ReadAttribute +- (void)testSendClusterTestCluster_000208_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT8S unchanged Value"]; @@ -24006,7 +24758,7 @@ - (void)testSendClusterTestCluster_000207_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000208_WriteAttribute +- (void)testSendClusterTestCluster_000209_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT8S null Value"]; @@ -24028,7 +24780,7 @@ - (void)testSendClusterTestCluster_000208_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000209_ReadAttribute +- (void)testSendClusterTestCluster_000210_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT8S null Value"]; @@ -24052,7 +24804,7 @@ - (void)testSendClusterTestCluster_000209_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000210_WriteAttribute +- (void)testSendClusterTestCluster_000211_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT16S Min Value"]; @@ -24074,7 +24826,7 @@ - (void)testSendClusterTestCluster_000210_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000211_ReadAttribute +- (void)testSendClusterTestCluster_000212_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT16S Min Value"]; @@ -24099,7 +24851,7 @@ - (void)testSendClusterTestCluster_000211_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000212_WriteAttribute +- (void)testSendClusterTestCluster_000213_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT16S Invalid Value"]; @@ -24121,7 +24873,7 @@ - (void)testSendClusterTestCluster_000212_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000213_ReadAttribute +- (void)testSendClusterTestCluster_000214_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT16S unchanged Value"]; @@ -24146,7 +24898,7 @@ - (void)testSendClusterTestCluster_000213_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000214_WriteAttribute +- (void)testSendClusterTestCluster_000215_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT16S null Value"]; @@ -24168,7 +24920,7 @@ - (void)testSendClusterTestCluster_000214_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000215_ReadAttribute +- (void)testSendClusterTestCluster_000216_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT16S null Value"]; @@ -24192,7 +24944,7 @@ - (void)testSendClusterTestCluster_000215_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000216_WriteAttribute +- (void)testSendClusterTestCluster_000217_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT32S Min Value"]; @@ -24214,7 +24966,7 @@ - (void)testSendClusterTestCluster_000216_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000217_ReadAttribute +- (void)testSendClusterTestCluster_000218_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT32S Min Value"]; @@ -24239,7 +24991,7 @@ - (void)testSendClusterTestCluster_000217_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000218_WriteAttribute +- (void)testSendClusterTestCluster_000219_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT32S Invalid Value"]; @@ -24261,7 +25013,7 @@ - (void)testSendClusterTestCluster_000218_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000219_ReadAttribute +- (void)testSendClusterTestCluster_000220_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT32S unchanged Value"]; @@ -24286,7 +25038,7 @@ - (void)testSendClusterTestCluster_000219_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000220_WriteAttribute +- (void)testSendClusterTestCluster_000221_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT32S null Value"]; @@ -24308,7 +25060,7 @@ - (void)testSendClusterTestCluster_000220_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000221_ReadAttribute +- (void)testSendClusterTestCluster_000222_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT32S null Value"]; @@ -24332,7 +25084,7 @@ - (void)testSendClusterTestCluster_000221_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000222_WriteAttribute +- (void)testSendClusterTestCluster_000223_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT64S Min Value"]; @@ -24354,7 +25106,7 @@ - (void)testSendClusterTestCluster_000222_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000223_ReadAttribute +- (void)testSendClusterTestCluster_000224_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT64S Min Value"]; @@ -24379,7 +25131,7 @@ - (void)testSendClusterTestCluster_000223_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000224_WriteAttribute +- (void)testSendClusterTestCluster_000225_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT64S Invalid Value"]; @@ -24401,7 +25153,7 @@ - (void)testSendClusterTestCluster_000224_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000225_ReadAttribute +- (void)testSendClusterTestCluster_000226_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT64S unchanged Value"]; @@ -24426,7 +25178,7 @@ - (void)testSendClusterTestCluster_000225_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000226_WriteAttribute +- (void)testSendClusterTestCluster_000227_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_INT64S null Value"]; @@ -24448,7 +25200,7 @@ - (void)testSendClusterTestCluster_000226_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000227_ReadAttribute +- (void)testSendClusterTestCluster_000228_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_INT64S null Value"]; @@ -24472,7 +25224,7 @@ - (void)testSendClusterTestCluster_000227_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000228_WriteAttribute +- (void)testSendClusterTestCluster_000229_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_ENUM8 Max Value"]; @@ -24494,7 +25246,7 @@ - (void)testSendClusterTestCluster_000228_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000229_ReadAttribute +- (void)testSendClusterTestCluster_000230_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_ENUM8 Max Value"]; @@ -24519,7 +25271,7 @@ - (void)testSendClusterTestCluster_000229_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000230_WriteAttribute +- (void)testSendClusterTestCluster_000231_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_ENUM8 Invalid Value"]; @@ -24540,7 +25292,7 @@ - (void)testSendClusterTestCluster_000230_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000231_ReadAttribute +- (void)testSendClusterTestCluster_000232_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_ENUM8 unchanged Value"]; @@ -24565,7 +25317,7 @@ - (void)testSendClusterTestCluster_000231_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000232_WriteAttribute +- (void)testSendClusterTestCluster_000233_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_ENUM8 null Value"]; @@ -24587,7 +25339,7 @@ - (void)testSendClusterTestCluster_000232_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000233_ReadAttribute +- (void)testSendClusterTestCluster_000234_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_ENUM8 null Value"]; @@ -24611,7 +25363,7 @@ - (void)testSendClusterTestCluster_000233_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000234_WriteAttribute +- (void)testSendClusterTestCluster_000235_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_ENUM16 Max Value"]; @@ -24633,7 +25385,7 @@ - (void)testSendClusterTestCluster_000234_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000235_ReadAttribute +- (void)testSendClusterTestCluster_000236_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_ENUM16 Max Value"]; @@ -24658,7 +25410,7 @@ - (void)testSendClusterTestCluster_000235_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000236_WriteAttribute +- (void)testSendClusterTestCluster_000237_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_ENUM16 Invalid Value"]; @@ -24680,7 +25432,7 @@ - (void)testSendClusterTestCluster_000236_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000237_ReadAttribute +- (void)testSendClusterTestCluster_000238_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_ENUM16 unchanged Value"]; @@ -24705,7 +25457,7 @@ - (void)testSendClusterTestCluster_000237_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000238_WriteAttribute +- (void)testSendClusterTestCluster_000239_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_ENUM16 null Value"]; @@ -24727,7 +25479,7 @@ - (void)testSendClusterTestCluster_000238_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000239_ReadAttribute +- (void)testSendClusterTestCluster_000240_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_ENUM16 null Value"]; @@ -24751,7 +25503,7 @@ - (void)testSendClusterTestCluster_000239_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000240_ReadAttribute +- (void)testSendClusterTestCluster_000241_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_OCTET_STRING Default Value"]; @@ -24776,7 +25528,7 @@ - (void)testSendClusterTestCluster_000240_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000241_WriteAttribute +- (void)testSendClusterTestCluster_000242_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_OCTET_STRING"]; @@ -24798,7 +25550,7 @@ - (void)testSendClusterTestCluster_000241_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000242_ReadAttribute +- (void)testSendClusterTestCluster_000243_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_OCTET_STRING"]; @@ -24823,7 +25575,7 @@ - (void)testSendClusterTestCluster_000242_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000243_WriteAttribute +- (void)testSendClusterTestCluster_000244_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_OCTET_STRING"]; @@ -24845,7 +25597,7 @@ - (void)testSendClusterTestCluster_000243_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000244_ReadAttribute +- (void)testSendClusterTestCluster_000245_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_OCTET_STRING"]; @@ -24869,7 +25621,7 @@ - (void)testSendClusterTestCluster_000244_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000245_WriteAttribute +- (void)testSendClusterTestCluster_000246_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_OCTET_STRING"]; @@ -24891,7 +25643,7 @@ - (void)testSendClusterTestCluster_000245_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000246_ReadAttribute +- (void)testSendClusterTestCluster_000247_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_OCTET_STRING"]; @@ -24916,7 +25668,7 @@ - (void)testSendClusterTestCluster_000246_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000247_ReadAttribute +- (void)testSendClusterTestCluster_000248_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_CHAR_STRING Default Value"]; @@ -24941,7 +25693,7 @@ - (void)testSendClusterTestCluster_000247_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000248_WriteAttribute +- (void)testSendClusterTestCluster_000249_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_CHAR_STRING"]; @@ -24963,7 +25715,7 @@ - (void)testSendClusterTestCluster_000248_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000249_ReadAttribute +- (void)testSendClusterTestCluster_000250_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_CHAR_STRING"]; @@ -24988,7 +25740,7 @@ - (void)testSendClusterTestCluster_000249_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000250_WriteAttribute +- (void)testSendClusterTestCluster_000251_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_CHAR_STRING - Value too long"]; @@ -25010,7 +25762,7 @@ - (void)testSendClusterTestCluster_000250_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000251_ReadAttribute +- (void)testSendClusterTestCluster_000252_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_CHAR_STRING"]; @@ -25034,7 +25786,7 @@ - (void)testSendClusterTestCluster_000251_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000252_WriteAttribute +- (void)testSendClusterTestCluster_000253_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute NULLABLE_CHAR_STRING - Empty"]; @@ -25056,7 +25808,7 @@ - (void)testSendClusterTestCluster_000252_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000253_ReadAttribute +- (void)testSendClusterTestCluster_000254_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute NULLABLE_CHAR_STRING"]; @@ -25081,7 +25833,7 @@ - (void)testSendClusterTestCluster_000253_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000254_ReadAttribute +- (void)testSendClusterTestCluster_000255_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute from nonexistent endpoint."]; @@ -25099,7 +25851,7 @@ - (void)testSendClusterTestCluster_000254_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestCluster_000255_ReadAttribute +- (void)testSendClusterTestCluster_000256_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute from nonexistent cluster."]; @@ -25118,8 +25870,16 @@ - (void)testSendClusterTestCluster_000255_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } +- (void)testSendClusterTestSaveAs_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} uint8_t TestAddArgumentDefaultValue; -- (void)testSendClusterTestSaveAs_000000_TestAddArguments +- (void)testSendClusterTestSaveAs_000001_TestAddArguments { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Add Arguments Command"]; @@ -25149,7 +25909,7 @@ - (void)testSendClusterTestSaveAs_000000_TestAddArguments [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000001_TestAddArguments +- (void)testSendClusterTestSaveAs_000002_TestAddArguments { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Add Arguments Command"]; @@ -25178,7 +25938,7 @@ - (void)testSendClusterTestSaveAs_000001_TestAddArguments [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000002_TestAddArguments +- (void)testSendClusterTestSaveAs_000003_TestAddArguments { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Add Arguments Command"]; @@ -25208,7 +25968,7 @@ - (void)testSendClusterTestSaveAs_000002_TestAddArguments [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } bool readAttributeBooleanDefaultValue; -- (void)testSendClusterTestSaveAs_000003_ReadAttribute +- (void)testSendClusterTestSaveAs_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BOOLEAN Default Value"]; @@ -25233,7 +25993,7 @@ - (void)testSendClusterTestSaveAs_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000004_WriteAttribute +- (void)testSendClusterTestSaveAs_000005_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BOOLEAN Not Default Value"]; @@ -25255,7 +26015,7 @@ - (void)testSendClusterTestSaveAs_000004_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000005_ReadAttribute +- (void)testSendClusterTestSaveAs_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BOOLEAN Not Default Value"]; @@ -25279,7 +26039,7 @@ - (void)testSendClusterTestSaveAs_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000006_WriteAttribute +- (void)testSendClusterTestSaveAs_000007_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BOOLEAN DefaultValue"]; @@ -25301,7 +26061,7 @@ - (void)testSendClusterTestSaveAs_000006_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000007_ReadAttribute +- (void)testSendClusterTestSaveAs_000008_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BOOLEAN False"]; @@ -25326,7 +26086,7 @@ - (void)testSendClusterTestSaveAs_000007_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } uint8_t readAttributeBitmap8DefaultValue; -- (void)testSendClusterTestSaveAs_000008_ReadAttribute +- (void)testSendClusterTestSaveAs_000009_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP8 Default Value"]; @@ -25351,7 +26111,7 @@ - (void)testSendClusterTestSaveAs_000008_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000009_WriteAttribute +- (void)testSendClusterTestSaveAs_000010_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP8 Not Default Value"]; @@ -25373,7 +26133,7 @@ - (void)testSendClusterTestSaveAs_000009_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000010_ReadAttribute +- (void)testSendClusterTestSaveAs_000011_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP8 Not Default Value"]; @@ -25397,7 +26157,7 @@ - (void)testSendClusterTestSaveAs_000010_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000011_WriteAttribute +- (void)testSendClusterTestSaveAs_000012_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP8 Default Value"]; @@ -25419,7 +26179,7 @@ - (void)testSendClusterTestSaveAs_000011_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000012_ReadAttribute +- (void)testSendClusterTestSaveAs_000013_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP8 Default Value"]; @@ -25444,7 +26204,7 @@ - (void)testSendClusterTestSaveAs_000012_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } uint16_t readAttributeBitmap16DefaultValue; -- (void)testSendClusterTestSaveAs_000013_ReadAttribute +- (void)testSendClusterTestSaveAs_000014_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP16 Default Value"]; @@ -25469,7 +26229,7 @@ - (void)testSendClusterTestSaveAs_000013_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000014_WriteAttribute +- (void)testSendClusterTestSaveAs_000015_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP16 Not Default Value"]; @@ -25491,7 +26251,7 @@ - (void)testSendClusterTestSaveAs_000014_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000015_ReadAttribute +- (void)testSendClusterTestSaveAs_000016_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP16 Not Default Value"]; @@ -25515,7 +26275,7 @@ - (void)testSendClusterTestSaveAs_000015_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000016_WriteAttribute +- (void)testSendClusterTestSaveAs_000017_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP16 Default Value"]; @@ -25537,7 +26297,7 @@ - (void)testSendClusterTestSaveAs_000016_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000017_ReadAttribute +- (void)testSendClusterTestSaveAs_000018_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP16 Default Value"]; @@ -25562,7 +26322,7 @@ - (void)testSendClusterTestSaveAs_000017_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } uint32_t readAttributeBitmap32DefaultValue; -- (void)testSendClusterTestSaveAs_000018_ReadAttribute +- (void)testSendClusterTestSaveAs_000019_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP32 Default Value"]; @@ -25587,7 +26347,7 @@ - (void)testSendClusterTestSaveAs_000018_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000019_WriteAttribute +- (void)testSendClusterTestSaveAs_000020_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP32 Not Default Value"]; @@ -25609,7 +26369,7 @@ - (void)testSendClusterTestSaveAs_000019_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000020_ReadAttribute +- (void)testSendClusterTestSaveAs_000021_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP32 Not Default Value"]; @@ -25633,7 +26393,7 @@ - (void)testSendClusterTestSaveAs_000020_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000021_WriteAttribute +- (void)testSendClusterTestSaveAs_000022_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP32 Default Value"]; @@ -25655,7 +26415,7 @@ - (void)testSendClusterTestSaveAs_000021_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000022_ReadAttribute +- (void)testSendClusterTestSaveAs_000023_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP32 Default Value"]; @@ -25680,7 +26440,7 @@ - (void)testSendClusterTestSaveAs_000022_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } uint64_t readAttributeBitmap64DefaultValue; -- (void)testSendClusterTestSaveAs_000023_ReadAttribute +- (void)testSendClusterTestSaveAs_000024_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP64 Default Value"]; @@ -25705,7 +26465,7 @@ - (void)testSendClusterTestSaveAs_000023_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000024_WriteAttribute +- (void)testSendClusterTestSaveAs_000025_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP64 Not Default Value"]; @@ -25727,7 +26487,7 @@ - (void)testSendClusterTestSaveAs_000024_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000025_ReadAttribute +- (void)testSendClusterTestSaveAs_000026_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP64 Default Value"]; @@ -25751,7 +26511,7 @@ - (void)testSendClusterTestSaveAs_000025_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000026_WriteAttribute +- (void)testSendClusterTestSaveAs_000027_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP64 Default Value"]; @@ -25773,7 +26533,7 @@ - (void)testSendClusterTestSaveAs_000026_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000027_ReadAttribute +- (void)testSendClusterTestSaveAs_000028_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP64 Default Value"]; @@ -25798,7 +26558,7 @@ - (void)testSendClusterTestSaveAs_000027_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } uint8_t readAttributeInt8uDefaultValue; -- (void)testSendClusterTestSaveAs_000028_ReadAttribute +- (void)testSendClusterTestSaveAs_000029_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT8U Default Value"]; @@ -25823,7 +26583,7 @@ - (void)testSendClusterTestSaveAs_000028_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000029_WriteAttribute +- (void)testSendClusterTestSaveAs_000030_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT8U Not Default Value"]; @@ -25845,7 +26605,7 @@ - (void)testSendClusterTestSaveAs_000029_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000030_ReadAttribute +- (void)testSendClusterTestSaveAs_000031_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT8U Not Default Value"]; @@ -25869,7 +26629,7 @@ - (void)testSendClusterTestSaveAs_000030_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000031_WriteAttribute +- (void)testSendClusterTestSaveAs_000032_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT8U Default Value"]; @@ -25891,7 +26651,7 @@ - (void)testSendClusterTestSaveAs_000031_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000032_ReadAttribute +- (void)testSendClusterTestSaveAs_000033_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT8U Default Value"]; @@ -25916,7 +26676,7 @@ - (void)testSendClusterTestSaveAs_000032_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } uint16_t readAttributeInt16uDefaultValue; -- (void)testSendClusterTestSaveAs_000033_ReadAttribute +- (void)testSendClusterTestSaveAs_000034_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT16U Default Value"]; @@ -25941,7 +26701,7 @@ - (void)testSendClusterTestSaveAs_000033_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000034_WriteAttribute +- (void)testSendClusterTestSaveAs_000035_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT16U Not Default Value"]; @@ -25963,7 +26723,7 @@ - (void)testSendClusterTestSaveAs_000034_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000035_ReadAttribute +- (void)testSendClusterTestSaveAs_000036_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT16U Not Default Value"]; @@ -25987,7 +26747,7 @@ - (void)testSendClusterTestSaveAs_000035_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000036_WriteAttribute +- (void)testSendClusterTestSaveAs_000037_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT16U Default Value"]; @@ -26009,7 +26769,7 @@ - (void)testSendClusterTestSaveAs_000036_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000037_ReadAttribute +- (void)testSendClusterTestSaveAs_000038_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT16U Default Value"]; @@ -26034,7 +26794,7 @@ - (void)testSendClusterTestSaveAs_000037_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } uint32_t readAttributeInt32uDefaultValue; -- (void)testSendClusterTestSaveAs_000038_ReadAttribute +- (void)testSendClusterTestSaveAs_000039_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32U Default Value"]; @@ -26059,7 +26819,7 @@ - (void)testSendClusterTestSaveAs_000038_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000039_WriteAttribute +- (void)testSendClusterTestSaveAs_000040_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT32U Not Default Value"]; @@ -26081,7 +26841,7 @@ - (void)testSendClusterTestSaveAs_000039_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000040_ReadAttribute +- (void)testSendClusterTestSaveAs_000041_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32U Not Default Value"]; @@ -26105,7 +26865,7 @@ - (void)testSendClusterTestSaveAs_000040_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000041_WriteAttribute +- (void)testSendClusterTestSaveAs_000042_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT32U Default Value"]; @@ -26127,7 +26887,7 @@ - (void)testSendClusterTestSaveAs_000041_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000042_ReadAttribute +- (void)testSendClusterTestSaveAs_000043_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32U Default Value"]; @@ -26152,7 +26912,7 @@ - (void)testSendClusterTestSaveAs_000042_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } uint64_t readAttributeInt64uDefaultValue; -- (void)testSendClusterTestSaveAs_000043_ReadAttribute +- (void)testSendClusterTestSaveAs_000044_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT64U Default Value"]; @@ -26177,7 +26937,7 @@ - (void)testSendClusterTestSaveAs_000043_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000044_WriteAttribute +- (void)testSendClusterTestSaveAs_000045_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT64U Not Default Value"]; @@ -26199,7 +26959,7 @@ - (void)testSendClusterTestSaveAs_000044_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000045_ReadAttribute +- (void)testSendClusterTestSaveAs_000046_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT64U Not Default Value"]; @@ -26223,7 +26983,7 @@ - (void)testSendClusterTestSaveAs_000045_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000046_WriteAttribute +- (void)testSendClusterTestSaveAs_000047_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT64U Default Value"]; @@ -26245,7 +27005,7 @@ - (void)testSendClusterTestSaveAs_000046_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000047_ReadAttribute +- (void)testSendClusterTestSaveAs_000048_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT64U Default Value"]; @@ -26270,7 +27030,7 @@ - (void)testSendClusterTestSaveAs_000047_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } int8_t readAttributeInt8sDefaultValue; -- (void)testSendClusterTestSaveAs_000048_ReadAttribute +- (void)testSendClusterTestSaveAs_000049_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT8S Default Value"]; @@ -26295,7 +27055,7 @@ - (void)testSendClusterTestSaveAs_000048_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000049_WriteAttribute +- (void)testSendClusterTestSaveAs_000050_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT8S Not Default Value"]; @@ -26317,7 +27077,7 @@ - (void)testSendClusterTestSaveAs_000049_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000050_ReadAttribute +- (void)testSendClusterTestSaveAs_000051_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT8S Not Default Value"]; @@ -26341,7 +27101,7 @@ - (void)testSendClusterTestSaveAs_000050_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000051_WriteAttribute +- (void)testSendClusterTestSaveAs_000052_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT8S Default Value"]; @@ -26363,7 +27123,7 @@ - (void)testSendClusterTestSaveAs_000051_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000052_ReadAttribute +- (void)testSendClusterTestSaveAs_000053_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT8S Default Value"]; @@ -26388,7 +27148,7 @@ - (void)testSendClusterTestSaveAs_000052_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } int16_t readAttributeInt16sDefaultValue; -- (void)testSendClusterTestSaveAs_000053_ReadAttribute +- (void)testSendClusterTestSaveAs_000054_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT16S Default Value"]; @@ -26413,7 +27173,7 @@ - (void)testSendClusterTestSaveAs_000053_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000054_WriteAttribute +- (void)testSendClusterTestSaveAs_000055_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT16S Not Default Value"]; @@ -26435,7 +27195,7 @@ - (void)testSendClusterTestSaveAs_000054_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000055_ReadAttribute +- (void)testSendClusterTestSaveAs_000056_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT16S Not Default Value"]; @@ -26459,7 +27219,7 @@ - (void)testSendClusterTestSaveAs_000055_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000056_WriteAttribute +- (void)testSendClusterTestSaveAs_000057_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT16S Default Value"]; @@ -26481,7 +27241,7 @@ - (void)testSendClusterTestSaveAs_000056_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000057_ReadAttribute +- (void)testSendClusterTestSaveAs_000058_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT16S Default Value"]; @@ -26506,7 +27266,7 @@ - (void)testSendClusterTestSaveAs_000057_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } int32_t readAttributeInt32sDefaultValue; -- (void)testSendClusterTestSaveAs_000058_ReadAttribute +- (void)testSendClusterTestSaveAs_000059_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32S Default Value"]; @@ -26531,7 +27291,7 @@ - (void)testSendClusterTestSaveAs_000058_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000059_WriteAttribute +- (void)testSendClusterTestSaveAs_000060_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT32S Not Default Value"]; @@ -26553,7 +27313,7 @@ - (void)testSendClusterTestSaveAs_000059_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000060_ReadAttribute +- (void)testSendClusterTestSaveAs_000061_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32S Not Default Value"]; @@ -26577,7 +27337,7 @@ - (void)testSendClusterTestSaveAs_000060_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000061_WriteAttribute +- (void)testSendClusterTestSaveAs_000062_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT32S Default Value"]; @@ -26599,7 +27359,7 @@ - (void)testSendClusterTestSaveAs_000061_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000062_ReadAttribute +- (void)testSendClusterTestSaveAs_000063_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32S Default Value"]; @@ -26624,7 +27384,7 @@ - (void)testSendClusterTestSaveAs_000062_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } int64_t readAttributeInt64sDefaultValue; -- (void)testSendClusterTestSaveAs_000063_ReadAttribute +- (void)testSendClusterTestSaveAs_000064_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT64S Default Value"]; @@ -26649,7 +27409,7 @@ - (void)testSendClusterTestSaveAs_000063_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000064_WriteAttribute +- (void)testSendClusterTestSaveAs_000065_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INTS Not Default Value"]; @@ -26671,7 +27431,7 @@ - (void)testSendClusterTestSaveAs_000064_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000065_ReadAttribute +- (void)testSendClusterTestSaveAs_000066_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT64S Not Default Value"]; @@ -26695,7 +27455,7 @@ - (void)testSendClusterTestSaveAs_000065_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000066_WriteAttribute +- (void)testSendClusterTestSaveAs_000067_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT64S Default Value"]; @@ -26717,7 +27477,7 @@ - (void)testSendClusterTestSaveAs_000066_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000067_ReadAttribute +- (void)testSendClusterTestSaveAs_000068_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT64S Default Value"]; @@ -26742,7 +27502,7 @@ - (void)testSendClusterTestSaveAs_000067_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } uint8_t readAttributeEnum8DefaultValue; -- (void)testSendClusterTestSaveAs_000068_ReadAttribute +- (void)testSendClusterTestSaveAs_000069_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute ENUM8 Default Value"]; @@ -26767,7 +27527,7 @@ - (void)testSendClusterTestSaveAs_000068_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000069_WriteAttribute +- (void)testSendClusterTestSaveAs_000070_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute ENUM8 Not Default Value"]; @@ -26789,7 +27549,7 @@ - (void)testSendClusterTestSaveAs_000069_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000070_ReadAttribute +- (void)testSendClusterTestSaveAs_000071_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute ENUM8 Not Default Value"]; @@ -26813,7 +27573,7 @@ - (void)testSendClusterTestSaveAs_000070_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000071_WriteAttribute +- (void)testSendClusterTestSaveAs_000072_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute ENUM8 Default Value"]; @@ -26835,7 +27595,7 @@ - (void)testSendClusterTestSaveAs_000071_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000072_ReadAttribute +- (void)testSendClusterTestSaveAs_000073_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute ENUM8 Default Value"]; @@ -26860,7 +27620,7 @@ - (void)testSendClusterTestSaveAs_000072_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } uint16_t readAttributeEnum16DefaultValue; -- (void)testSendClusterTestSaveAs_000073_ReadAttribute +- (void)testSendClusterTestSaveAs_000074_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute ENUM16 Default Value"]; @@ -26885,7 +27645,7 @@ - (void)testSendClusterTestSaveAs_000073_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000074_WriteAttribute +- (void)testSendClusterTestSaveAs_000075_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute ENUM16 Not Default Value"]; @@ -26907,7 +27667,7 @@ - (void)testSendClusterTestSaveAs_000074_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000075_ReadAttribute +- (void)testSendClusterTestSaveAs_000076_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute ENUM16 Not Default Value"]; @@ -26931,7 +27691,7 @@ - (void)testSendClusterTestSaveAs_000075_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000076_WriteAttribute +- (void)testSendClusterTestSaveAs_000077_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute ENUM16 Default Value"]; @@ -26953,7 +27713,7 @@ - (void)testSendClusterTestSaveAs_000076_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000077_ReadAttribute +- (void)testSendClusterTestSaveAs_000078_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute ENUM16 Default Value"]; @@ -26978,7 +27738,7 @@ - (void)testSendClusterTestSaveAs_000077_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } uint64_t readAttributeEpochUSDefaultValue; -- (void)testSendClusterTestSaveAs_000078_ReadAttribute +- (void)testSendClusterTestSaveAs_000079_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute EPOCH_US Default Value"]; @@ -27003,7 +27763,7 @@ - (void)testSendClusterTestSaveAs_000078_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000079_WriteAttribute +- (void)testSendClusterTestSaveAs_000080_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute EPOCH_US Not Default Value"]; @@ -27025,7 +27785,7 @@ - (void)testSendClusterTestSaveAs_000079_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000080_ReadAttribute +- (void)testSendClusterTestSaveAs_000081_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute EPOCH_US Not Default Value"]; @@ -27049,7 +27809,7 @@ - (void)testSendClusterTestSaveAs_000080_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000081_WriteAttribute +- (void)testSendClusterTestSaveAs_000082_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute EPOCH_US Default Value"]; @@ -27071,7 +27831,7 @@ - (void)testSendClusterTestSaveAs_000081_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000082_ReadAttribute +- (void)testSendClusterTestSaveAs_000083_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute EPOCH_US Default Value"]; @@ -27096,7 +27856,7 @@ - (void)testSendClusterTestSaveAs_000082_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } uint32_t readAttributeEpochSDefaultValue; -- (void)testSendClusterTestSaveAs_000083_ReadAttribute +- (void)testSendClusterTestSaveAs_000084_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute EPOCH_S Default Value"]; @@ -27121,7 +27881,7 @@ - (void)testSendClusterTestSaveAs_000083_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000084_WriteAttribute +- (void)testSendClusterTestSaveAs_000085_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute EPOCH_S Not Default Value"]; @@ -27143,7 +27903,7 @@ - (void)testSendClusterTestSaveAs_000084_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000085_ReadAttribute +- (void)testSendClusterTestSaveAs_000086_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute EPOCH_S Not Default Value"]; @@ -27167,7 +27927,7 @@ - (void)testSendClusterTestSaveAs_000085_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000086_WriteAttribute +- (void)testSendClusterTestSaveAs_000087_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute EPOCH_S Default Value"]; @@ -27189,7 +27949,7 @@ - (void)testSendClusterTestSaveAs_000086_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000087_ReadAttribute +- (void)testSendClusterTestSaveAs_000088_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute EPOCH_S Default Value"]; @@ -27214,7 +27974,7 @@ - (void)testSendClusterTestSaveAs_000087_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } uint16_t readAttributeVendorIdDefaultValue; -- (void)testSendClusterTestSaveAs_000088_ReadAttribute +- (void)testSendClusterTestSaveAs_000089_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute vendor_id Default Value"]; @@ -27239,7 +27999,7 @@ - (void)testSendClusterTestSaveAs_000088_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000089_WriteAttribute +- (void)testSendClusterTestSaveAs_000090_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute vendor_id Not Default Value"]; @@ -27261,7 +28021,7 @@ - (void)testSendClusterTestSaveAs_000089_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000090_ReadAttribute +- (void)testSendClusterTestSaveAs_000091_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute vendor_id Not Default Value"]; @@ -27285,7 +28045,7 @@ - (void)testSendClusterTestSaveAs_000090_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000091_WriteAttribute +- (void)testSendClusterTestSaveAs_000092_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute vendor_id Default Value"]; @@ -27307,7 +28067,7 @@ - (void)testSendClusterTestSaveAs_000091_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSaveAs_000092_ReadAttribute +- (void)testSendClusterTestSaveAs_000093_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute vendor_id Default Value"]; @@ -27332,7 +28092,15 @@ - (void)testSendClusterTestSaveAs_000092_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestConstraints_000000_WriteAttribute +- (void)testSendClusterTestConstraints_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestConstraints_000001_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT32U Value"]; @@ -27354,7 +28122,7 @@ - (void)testSendClusterTestConstraints_000000_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestConstraints_000001_ReadAttribute +- (void)testSendClusterTestConstraints_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32U Value MinValue Constraints"]; @@ -27378,7 +28146,7 @@ - (void)testSendClusterTestConstraints_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestConstraints_000002_ReadAttribute +- (void)testSendClusterTestConstraints_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32U Value MaxValue Constraints"]; @@ -27402,7 +28170,7 @@ - (void)testSendClusterTestConstraints_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestConstraints_000003_ReadAttribute +- (void)testSendClusterTestConstraints_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32U Value NotValue Constraints"]; @@ -27426,7 +28194,7 @@ - (void)testSendClusterTestConstraints_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestConstraints_000004_WriteAttribute +- (void)testSendClusterTestConstraints_000005_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT32U Value Back to Default Value"]; @@ -27448,7 +28216,7 @@ - (void)testSendClusterTestConstraints_000004_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestConstraints_000005_WriteAttribute +- (void)testSendClusterTestConstraints_000006_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute CHAR_STRING Value"]; @@ -27470,7 +28238,7 @@ - (void)testSendClusterTestConstraints_000005_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestConstraints_000006_ReadAttribute +- (void)testSendClusterTestConstraints_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute CHAR_STRING Value MinLength Constraints"]; @@ -27494,7 +28262,7 @@ - (void)testSendClusterTestConstraints_000006_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestConstraints_000007_ReadAttribute +- (void)testSendClusterTestConstraints_000008_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute CHAR_STRING Value MaxLength Constraints"]; @@ -27518,7 +28286,7 @@ - (void)testSendClusterTestConstraints_000007_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestConstraints_000008_ReadAttribute +- (void)testSendClusterTestConstraints_000009_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute CHAR_STRING Value StartsWith Constraints"]; @@ -27542,7 +28310,7 @@ - (void)testSendClusterTestConstraints_000008_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestConstraints_000009_ReadAttribute +- (void)testSendClusterTestConstraints_000010_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute CHAR_STRING Value EndsWith Constraints"]; @@ -27566,7 +28334,7 @@ - (void)testSendClusterTestConstraints_000009_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestConstraints_000010_WriteAttribute +- (void)testSendClusterTestConstraints_000011_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute CHAR_STRING Value Back to Default Value"]; @@ -27589,7 +28357,15 @@ - (void)testSendClusterTestConstraints_000010_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestDelayCommands_000000_WaitForMs +- (void)testSendClusterTestDelayCommands_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestDelayCommands_000001_WaitForMs { XCTestExpectation * expectation = [self expectationWithDescription:@"Wait 100ms"]; @@ -27598,7 +28374,15 @@ - (void)testSendClusterTestDelayCommands_000000_WaitForMs [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestDescriptorCluster_000000_ReadAttribute +- (void)testSendClusterTestDescriptorCluster_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestDescriptorCluster_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute Device list"]; @@ -27624,7 +28408,7 @@ - (void)testSendClusterTestDescriptorCluster_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestDescriptorCluster_000001_ReadAttribute +- (void)testSendClusterTestDescriptorCluster_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute Server list"]; @@ -27666,7 +28450,7 @@ - (void)testSendClusterTestDescriptorCluster_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestDescriptorCluster_000002_ReadAttribute +- (void)testSendClusterTestDescriptorCluster_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute Client list"]; @@ -27690,7 +28474,7 @@ - (void)testSendClusterTestDescriptorCluster_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestDescriptorCluster_000003_ReadAttribute +- (void)testSendClusterTestDescriptorCluster_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute Parts list"]; @@ -27717,7 +28501,15 @@ - (void)testSendClusterTestDescriptorCluster_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestBasicInformation_000000_ReadAttribute +- (void)testSendClusterTestBasicInformation_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestBasicInformation_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read location"]; @@ -27741,7 +28533,7 @@ - (void)testSendClusterTestBasicInformation_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestBasicInformation_000001_WriteAttribute +- (void)testSendClusterTestBasicInformation_000002_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write location"]; @@ -27763,7 +28555,7 @@ - (void)testSendClusterTestBasicInformation_000001_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestBasicInformation_000002_ReadAttribute +- (void)testSendClusterTestBasicInformation_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back location"]; @@ -27787,7 +28579,7 @@ - (void)testSendClusterTestBasicInformation_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestBasicInformation_000003_WriteAttribute +- (void)testSendClusterTestBasicInformation_000004_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Restore initial location value"]; @@ -27810,7 +28602,15 @@ - (void)testSendClusterTestBasicInformation_000003_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestGroupsCluster_000000_ViewGroup +- (void)testSendClusterTestGroupsCluster_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestGroupsCluster_000001_ViewGroup { XCTestExpectation * expectation = [self expectationWithDescription:@"View Group 0 (invalid)"]; @@ -27841,7 +28641,7 @@ - (void)testSendClusterTestGroupsCluster_000000_ViewGroup [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestGroupsCluster_000001_ViewGroup +- (void)testSendClusterTestGroupsCluster_000002_ViewGroup { XCTestExpectation * expectation = [self expectationWithDescription:@"View Group 1 (not found)"]; @@ -27872,7 +28672,7 @@ - (void)testSendClusterTestGroupsCluster_000001_ViewGroup [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestGroupsCluster_000002_AddGroup +- (void)testSendClusterTestGroupsCluster_000003_AddGroup { XCTestExpectation * expectation = [self expectationWithDescription:@"Add Group 1 (new)"]; @@ -27904,7 +28704,7 @@ - (void)testSendClusterTestGroupsCluster_000002_AddGroup [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestGroupsCluster_000003_ViewGroup +- (void)testSendClusterTestGroupsCluster_000004_ViewGroup { XCTestExpectation * expectation = [self expectationWithDescription:@"View Group 1 (new)"]; @@ -27939,7 +28739,7 @@ - (void)testSendClusterTestGroupsCluster_000003_ViewGroup [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestGroupsCluster_000004_ViewGroup +- (void)testSendClusterTestGroupsCluster_000005_ViewGroup { XCTestExpectation * expectation = [self expectationWithDescription:@"View Group 2 (not found)"]; @@ -27970,7 +28770,7 @@ - (void)testSendClusterTestGroupsCluster_000004_ViewGroup [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestGroupsCluster_000005_ViewGroup +- (void)testSendClusterTestGroupsCluster_000006_ViewGroup { XCTestExpectation * expectation = [self expectationWithDescription:@"View Group 3 (not found)"]; @@ -28001,7 +28801,7 @@ - (void)testSendClusterTestGroupsCluster_000005_ViewGroup [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestGroupsCluster_000006_ViewGroup +- (void)testSendClusterTestGroupsCluster_000007_ViewGroup { XCTestExpectation * expectation = [self expectationWithDescription:@"View Group 1 (existing)"]; @@ -28036,7 +28836,7 @@ - (void)testSendClusterTestGroupsCluster_000006_ViewGroup [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestGroupsCluster_000007_RemoveGroup +- (void)testSendClusterTestGroupsCluster_000008_RemoveGroup { XCTestExpectation * expectation = [self expectationWithDescription:@"Remove Group 0 (invalid)"]; @@ -28067,7 +28867,7 @@ - (void)testSendClusterTestGroupsCluster_000007_RemoveGroup [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestGroupsCluster_000008_RemoveGroup +- (void)testSendClusterTestGroupsCluster_000009_RemoveGroup { XCTestExpectation * expectation = [self expectationWithDescription:@"Remove Group 4 (not found)"]; @@ -28098,7 +28898,7 @@ - (void)testSendClusterTestGroupsCluster_000008_RemoveGroup [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestGroupsCluster_000009_ViewGroup +- (void)testSendClusterTestGroupsCluster_000010_ViewGroup { XCTestExpectation * expectation = [self expectationWithDescription:@"View Group 1 (not removed)"]; @@ -28133,7 +28933,7 @@ - (void)testSendClusterTestGroupsCluster_000009_ViewGroup [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestGroupsCluster_000010_ViewGroup +- (void)testSendClusterTestGroupsCluster_000011_ViewGroup { XCTestExpectation * expectation = [self expectationWithDescription:@"View Group 2 (removed)"]; @@ -28164,7 +28964,7 @@ - (void)testSendClusterTestGroupsCluster_000010_ViewGroup [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestGroupsCluster_000011_RemoveAllGroups +- (void)testSendClusterTestGroupsCluster_000012_RemoveAllGroups { XCTestExpectation * expectation = [self expectationWithDescription:@"Remove All"]; @@ -28183,7 +28983,7 @@ - (void)testSendClusterTestGroupsCluster_000011_RemoveAllGroups [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestGroupsCluster_000012_ViewGroup +- (void)testSendClusterTestGroupsCluster_000013_ViewGroup { XCTestExpectation * expectation = [self expectationWithDescription:@"View Group 1 (removed)"]; @@ -28214,7 +29014,7 @@ - (void)testSendClusterTestGroupsCluster_000012_ViewGroup [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestGroupsCluster_000013_ViewGroup +- (void)testSendClusterTestGroupsCluster_000014_ViewGroup { XCTestExpectation * expectation = [self expectationWithDescription:@"View Group 2 (still removed)"]; @@ -28245,7 +29045,7 @@ - (void)testSendClusterTestGroupsCluster_000013_ViewGroup [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestGroupsCluster_000014_ViewGroup +- (void)testSendClusterTestGroupsCluster_000015_ViewGroup { XCTestExpectation * expectation = [self expectationWithDescription:@"View Group 3 (removed)"]; @@ -28277,7 +29077,15 @@ - (void)testSendClusterTestGroupsCluster_000014_ViewGroup [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestIdentifyCluster_000000_Identify +- (void)testSendClusterTestIdentifyCluster_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestIdentifyCluster_000001_Identify { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Identify command and expect success response"]; @@ -28300,7 +29108,15 @@ - (void)testSendClusterTestIdentifyCluster_000000_Identify [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestOperationalCredentialsCluster_000000_ReadAttribute +- (void)testSendClusterTestOperationalCredentialsCluster_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestOperationalCredentialsCluster_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read number of supported fabrics"]; @@ -28326,7 +29142,7 @@ - (void)testSendClusterTestOperationalCredentialsCluster_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestOperationalCredentialsCluster_000001_ReadAttribute +- (void)testSendClusterTestOperationalCredentialsCluster_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read number of commissioned fabrics"]; @@ -28352,7 +29168,7 @@ - (void)testSendClusterTestOperationalCredentialsCluster_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestOperationalCredentialsCluster_000002_ReadAttribute +- (void)testSendClusterTestOperationalCredentialsCluster_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read current fabric index"]; @@ -28379,7 +29195,15 @@ - (void)testSendClusterTestOperationalCredentialsCluster_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestModeSelectCluster_000000_ReadAttribute +- (void)testSendClusterTestModeSelectCluster_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestModeSelectCluster_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read CurrentMode"]; @@ -28403,7 +29227,7 @@ - (void)testSendClusterTestModeSelectCluster_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestModeSelectCluster_000001_ReadAttribute +- (void)testSendClusterTestModeSelectCluster_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read OnMode"]; @@ -28427,7 +29251,7 @@ - (void)testSendClusterTestModeSelectCluster_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestModeSelectCluster_000002_ReadAttribute +- (void)testSendClusterTestModeSelectCluster_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read StartUpMode"]; @@ -28451,7 +29275,7 @@ - (void)testSendClusterTestModeSelectCluster_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestModeSelectCluster_000003_ReadAttribute +- (void)testSendClusterTestModeSelectCluster_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read Description"]; @@ -28475,7 +29299,7 @@ - (void)testSendClusterTestModeSelectCluster_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestModeSelectCluster_000004_ReadAttribute +- (void)testSendClusterTestModeSelectCluster_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read SupportedModes"]; @@ -28508,7 +29332,7 @@ - (void)testSendClusterTestModeSelectCluster_000004_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestModeSelectCluster_000005_ChangeToMode +- (void)testSendClusterTestModeSelectCluster_000006_ChangeToMode { XCTestExpectation * expectation = [self expectationWithDescription:@"Change to Supported Mode"]; @@ -28530,7 +29354,7 @@ - (void)testSendClusterTestModeSelectCluster_000005_ChangeToMode [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestModeSelectCluster_000006_ReadAttribute +- (void)testSendClusterTestModeSelectCluster_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Verify Current Mode Change"]; @@ -28554,7 +29378,7 @@ - (void)testSendClusterTestModeSelectCluster_000006_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestModeSelectCluster_000007_ChangeToMode +- (void)testSendClusterTestModeSelectCluster_000008_ChangeToMode { XCTestExpectation * expectation = [self expectationWithDescription:@"Change to Unsupported Mode"]; @@ -28576,7 +29400,15 @@ - (void)testSendClusterTestModeSelectCluster_000007_ChangeToMode [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestGroupMessaging_000000_WriteAttribute +- (void)testSendClusterTestGroupMessaging_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestGroupMessaging_000001_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Group Write Attribute"]; @@ -28598,7 +29430,7 @@ - (void)testSendClusterTestGroupMessaging_000000_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestGroupMessaging_000001_ReadAttribute +- (void)testSendClusterTestGroupMessaging_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back Attribute"]; @@ -28622,7 +29454,7 @@ - (void)testSendClusterTestGroupMessaging_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestGroupMessaging_000002_WriteAttribute +- (void)testSendClusterTestGroupMessaging_000003_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Restore initial location value"]; @@ -28644,7 +29476,7 @@ - (void)testSendClusterTestGroupMessaging_000002_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestGroupMessaging_000003_ReadAttribute +- (void)testSendClusterTestGroupMessaging_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read back Attribute"]; @@ -28669,7 +29501,15 @@ - (void)testSendClusterTestGroupMessaging_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DIAGSW_1_1_000000_ReadAttribute +- (void)testSendClusterTest_TC_DIAGSW_1_1_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_DIAGSW_1_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads CurrentHeapFree non-global attribute value from DUT"]; @@ -28694,7 +29534,7 @@ - (void)testSendClusterTest_TC_DIAGSW_1_1_000000_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DIAGSW_1_1_000001_ReadAttribute +- (void)testSendClusterTest_TC_DIAGSW_1_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads CurrentHeapUsed non-global attribute value from DUT"]; @@ -28719,7 +29559,7 @@ - (void)testSendClusterTest_TC_DIAGSW_1_1_000001_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_DIAGSW_1_1_000002_ReadAttribute +- (void)testSendClusterTest_TC_DIAGSW_1_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Reads CurrentHeapHighWaterMark non-global attribute value from DUT"]; @@ -28745,7 +29585,24 @@ - (void)testSendClusterTest_TC_DIAGSW_1_1_000002_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSubscribe_OnOff_000000_Off +- (void)testSendClusterTest_TC_DIAGSW_3_2_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} + +- (void)testSendClusterTestSubscribe_OnOff_000000_WaitForCommissionee +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + + dispatch_queue_t queue = dispatch_get_main_queue(); + WaitForCommissionee(expectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTestSubscribe_OnOff_000001_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Set OnOff Attribute to false"]; @@ -28764,8 +29621,8 @@ - (void)testSendClusterTestSubscribe_OnOff_000000_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -bool testSendClusterTestSubscribe_OnOff_000001_WaitForReport_Fulfilled = false; -- (void)testSendClusterTestSubscribe_OnOff_000001_WaitForReport +bool testSendClusterTestSubscribe_OnOff_000002_WaitForReport_Fulfilled = false; +- (void)testSendClusterTestSubscribe_OnOff_000002_WaitForReport { CHIPDevice * device = GetConnectedDevice(); @@ -28783,10 +29640,10 @@ - (void)testSendClusterTestSubscribe_OnOff_000001_WaitForReport XCTAssertEqual([actualValue boolValue], false); } - testSendClusterTestSubscribe_OnOff_000001_WaitForReport_Fulfilled = true; + testSendClusterTestSubscribe_OnOff_000002_WaitForReport_Fulfilled = true; }]; } -- (void)testSendClusterTestSubscribe_OnOff_000002_SubscribeAttribute +- (void)testSendClusterTestSubscribe_OnOff_000003_SubscribeAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Subscribe OnOff Attribute"]; @@ -28803,13 +29660,13 @@ - (void)testSendClusterTestSubscribe_OnOff_000002_SubscribeAttribute NSLog(@"Subscribe OnOff Attribute Error: %@", err); XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); - XCTAssertEqual(testSendClusterTestSubscribe_OnOff_000001_WaitForReport_Fulfilled, true); + XCTAssertEqual(testSendClusterTestSubscribe_OnOff_000002_WaitForReport_Fulfilled, true); [expectation fulfill]; }]; [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSubscribe_OnOff_000003_On +- (void)testSendClusterTestSubscribe_OnOff_000004_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn On the light to see attribute change"]; @@ -28828,7 +29685,7 @@ - (void)testSendClusterTestSubscribe_OnOff_000003_On [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSubscribe_OnOff_000004_WaitForReport +- (void)testSendClusterTestSubscribe_OnOff_000005_WaitForReport { XCTestExpectation * expectation = [self expectationWithDescription:@"Check for attribute report"]; @@ -28852,7 +29709,7 @@ - (void)testSendClusterTestSubscribe_OnOff_000004_WaitForReport [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSubscribe_OnOff_000005_Off +- (void)testSendClusterTestSubscribe_OnOff_000006_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn Off the light to see attribute change"]; @@ -28871,7 +29728,7 @@ - (void)testSendClusterTestSubscribe_OnOff_000005_Off [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTestSubscribe_OnOff_000006_WaitForReport +- (void)testSendClusterTestSubscribe_OnOff_000007_WaitForReport { XCTestExpectation * expectation = [self expectationWithDescription:@"Check for attribute report"]; @@ -28898,14 +29755,20 @@ - (void)testSendClusterTestSubscribe_OnOff_000006_WaitForReport - (void)testSendClusterAccountLoginReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"AccountLoginReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPAccountLogin * cluster = [[CHIPAccountLogin alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"AccountLoginReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"AccountLogin ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -28917,16 +29780,22 @@ - (void)testSendClusterAccountLoginReadAttributeClusterRevisionWithCompletionHan - (void)testSendClusterAdministratorCommissioningReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"AdministratorCommissioningReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPAdministratorCommissioning * cluster = [[CHIPAdministratorCommissioning alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"AdministratorCommissioningReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"AdministratorCommissioning ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -28938,14 +29807,20 @@ - (void)testSendClusterAdministratorCommissioningReadAttributeClusterRevisionWit - (void)testSendClusterApplicationBasicReadAttributeVendorNameWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ApplicationBasicReadAttributeVendorNameWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ApplicationBasicReadAttributeVendorNameWithCompletionHandler"]; + [cluster readAttributeVendorNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"ApplicationBasic VendorName Error: %@", err); XCTAssertEqual(err.code, 0); @@ -28957,14 +29832,20 @@ - (void)testSendClusterApplicationBasicReadAttributeVendorNameWithCompletionHand - (void)testSendClusterApplicationBasicReadAttributeVendorIdWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ApplicationBasicReadAttributeVendorIdWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ApplicationBasicReadAttributeVendorIdWithCompletionHandler"]; + [cluster readAttributeVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ApplicationBasic VendorId Error: %@", err); XCTAssertEqual(err.code, 0); @@ -28976,14 +29857,20 @@ - (void)testSendClusterApplicationBasicReadAttributeVendorIdWithCompletionHandle - (void)testSendClusterApplicationBasicReadAttributeApplicationNameWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ApplicationBasicReadAttributeApplicationNameWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ApplicationBasicReadAttributeApplicationNameWithCompletionHandler"]; + [cluster readAttributeApplicationNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"ApplicationBasic ApplicationName Error: %@", err); XCTAssertEqual(err.code, 0); @@ -28995,14 +29882,20 @@ - (void)testSendClusterApplicationBasicReadAttributeApplicationNameWithCompletio - (void)testSendClusterApplicationBasicReadAttributeProductIdWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ApplicationBasicReadAttributeProductIdWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ApplicationBasicReadAttributeProductIdWithCompletionHandler"]; + [cluster readAttributeProductIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ApplicationBasic ProductId Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29014,14 +29907,20 @@ - (void)testSendClusterApplicationBasicReadAttributeProductIdWithCompletionHandl - (void)testSendClusterApplicationBasicReadAttributeApplicationIdWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ApplicationBasicReadAttributeApplicationIdWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ApplicationBasicReadAttributeApplicationIdWithCompletionHandler"]; + [cluster readAttributeApplicationIdWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"ApplicationBasic ApplicationId Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29033,14 +29932,20 @@ - (void)testSendClusterApplicationBasicReadAttributeApplicationIdWithCompletionH - (void)testSendClusterApplicationBasicReadAttributeCatalogVendorIdWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ApplicationBasicReadAttributeCatalogVendorIdWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ApplicationBasicReadAttributeCatalogVendorIdWithCompletionHandler"]; + [cluster readAttributeCatalogVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ApplicationBasic CatalogVendorId Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29052,14 +29957,20 @@ - (void)testSendClusterApplicationBasicReadAttributeCatalogVendorIdWithCompletio - (void)testSendClusterApplicationBasicReadAttributeApplicationStatusWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ApplicationBasicReadAttributeApplicationStatusWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ApplicationBasicReadAttributeApplicationStatusWithCompletionHandler"]; + [cluster readAttributeApplicationStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ApplicationBasic ApplicationStatus Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29071,14 +29982,20 @@ - (void)testSendClusterApplicationBasicReadAttributeApplicationStatusWithComplet - (void)testSendClusterApplicationBasicReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ApplicationBasicReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ApplicationBasicReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ApplicationBasic ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29090,14 +30007,20 @@ - (void)testSendClusterApplicationBasicReadAttributeClusterRevisionWithCompletio - (void)testSendClusterApplicationLauncherReadAttributeApplicationLauncherListWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ApplicationLauncherReadAttributeApplicationLauncherListWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ApplicationLauncherReadAttributeApplicationLauncherListWithCompletionHandler"]; + [cluster readAttributeApplicationLauncherListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"ApplicationLauncher ApplicationLauncherList Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29109,14 +30032,20 @@ - (void)testSendClusterApplicationLauncherReadAttributeApplicationLauncherListWi - (void)testSendClusterApplicationLauncherReadAttributeCatalogVendorIdWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ApplicationLauncherReadAttributeCatalogVendorIdWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ApplicationLauncherReadAttributeCatalogVendorIdWithCompletionHandler"]; + [cluster readAttributeCatalogVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ApplicationLauncher CatalogVendorId Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29128,14 +30057,20 @@ - (void)testSendClusterApplicationLauncherReadAttributeCatalogVendorIdWithComple - (void)testSendClusterApplicationLauncherReadAttributeApplicationIdWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ApplicationLauncherReadAttributeApplicationIdWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ApplicationLauncherReadAttributeApplicationIdWithCompletionHandler"]; + [cluster readAttributeApplicationIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ApplicationLauncher ApplicationId Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29147,14 +30082,20 @@ - (void)testSendClusterApplicationLauncherReadAttributeApplicationIdWithCompleti - (void)testSendClusterApplicationLauncherReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ApplicationLauncherReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ApplicationLauncherReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ApplicationLauncher ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29166,14 +30107,20 @@ - (void)testSendClusterApplicationLauncherReadAttributeClusterRevisionWithComple - (void)testSendClusterAudioOutputReadAttributeAudioOutputListWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"AudioOutputReadAttributeAudioOutputListWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"AudioOutputReadAttributeAudioOutputListWithCompletionHandler"]; + [cluster readAttributeAudioOutputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"AudioOutput AudioOutputList Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29185,14 +30132,20 @@ - (void)testSendClusterAudioOutputReadAttributeAudioOutputListWithCompletionHand - (void)testSendClusterAudioOutputReadAttributeCurrentAudioOutputWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"AudioOutputReadAttributeCurrentAudioOutputWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"AudioOutputReadAttributeCurrentAudioOutputWithCompletionHandler"]; + [cluster readAttributeCurrentAudioOutputWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"AudioOutput CurrentAudioOutput Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29204,14 +30157,20 @@ - (void)testSendClusterAudioOutputReadAttributeCurrentAudioOutputWithCompletionH - (void)testSendClusterAudioOutputReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"AudioOutputReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"AudioOutputReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"AudioOutput ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29223,14 +30182,20 @@ - (void)testSendClusterAudioOutputReadAttributeClusterRevisionWithCompletionHand - (void)testSendClusterBarrierControlReadAttributeBarrierMovingStateWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BarrierControlReadAttributeBarrierMovingStateWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BarrierControlReadAttributeBarrierMovingStateWithCompletionHandler"]; + [cluster readAttributeBarrierMovingStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"BarrierControl BarrierMovingState Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29242,14 +30207,20 @@ - (void)testSendClusterBarrierControlReadAttributeBarrierMovingStateWithCompleti - (void)testSendClusterBarrierControlReadAttributeBarrierSafetyStatusWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BarrierControlReadAttributeBarrierSafetyStatusWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BarrierControlReadAttributeBarrierSafetyStatusWithCompletionHandler"]; + [cluster readAttributeBarrierSafetyStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"BarrierControl BarrierSafetyStatus Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29261,14 +30232,20 @@ - (void)testSendClusterBarrierControlReadAttributeBarrierSafetyStatusWithComplet - (void)testSendClusterBarrierControlReadAttributeBarrierCapabilitiesWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BarrierControlReadAttributeBarrierCapabilitiesWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BarrierControlReadAttributeBarrierCapabilitiesWithCompletionHandler"]; + [cluster readAttributeBarrierCapabilitiesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"BarrierControl BarrierCapabilities Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29280,14 +30257,20 @@ - (void)testSendClusterBarrierControlReadAttributeBarrierCapabilitiesWithComplet - (void)testSendClusterBarrierControlReadAttributeBarrierPositionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BarrierControlReadAttributeBarrierPositionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BarrierControlReadAttributeBarrierPositionWithCompletionHandler"]; + [cluster readAttributeBarrierPositionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"BarrierControl BarrierPosition Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29299,14 +30282,20 @@ - (void)testSendClusterBarrierControlReadAttributeBarrierPositionWithCompletionH - (void)testSendClusterBarrierControlReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BarrierControlReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BarrierControlReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"BarrierControl ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29318,14 +30307,20 @@ - (void)testSendClusterBarrierControlReadAttributeClusterRevisionWithCompletionH - (void)testSendClusterBinaryInputBasicReadAttributeOutOfServiceWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BinaryInputBasicReadAttributeOutOfServiceWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BinaryInputBasicReadAttributeOutOfServiceWithCompletionHandler"]; + [cluster readAttributeOutOfServiceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"BinaryInputBasic OutOfService Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29337,13 +30332,19 @@ - (void)testSendClusterBinaryInputBasicReadAttributeOutOfServiceWithCompletionHa - (void)testSendClusterBinaryInputBasicWriteAttributeOutOfServiceWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"BinaryInputBasicWriteAttributeOutOfServiceWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"BinaryInputBasicWriteAttributeOutOfServiceWithValue"]; + NSNumber * _Nonnull value = @(0x00); [cluster writeAttributeOutOfServiceWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -29356,14 +30357,20 @@ - (void)testSendClusterBinaryInputBasicWriteAttributeOutOfServiceWithValue } - (void)testSendClusterBinaryInputBasicReadAttributePresentValueWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BinaryInputBasicReadAttributePresentValueWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BinaryInputBasicReadAttributePresentValueWithCompletionHandler"]; + [cluster readAttributePresentValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"BinaryInputBasic PresentValue Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29375,13 +30382,19 @@ - (void)testSendClusterBinaryInputBasicReadAttributePresentValueWithCompletionHa - (void)testSendClusterBinaryInputBasicWriteAttributePresentValueWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"BinaryInputBasicWriteAttributePresentValueWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"BinaryInputBasicWriteAttributePresentValueWithValue"]; + NSNumber * _Nonnull value = @(0); [cluster writeAttributePresentValueWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -29394,14 +30407,20 @@ - (void)testSendClusterBinaryInputBasicWriteAttributePresentValueWithValue } - (void)testSendClusterBinaryInputBasicReadAttributeStatusFlagsWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BinaryInputBasicReadAttributeStatusFlagsWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BinaryInputBasicReadAttributeStatusFlagsWithCompletionHandler"]; + [cluster readAttributeStatusFlagsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"BinaryInputBasic StatusFlags Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29413,14 +30432,20 @@ - (void)testSendClusterBinaryInputBasicReadAttributeStatusFlagsWithCompletionHan - (void)testSendClusterBinaryInputBasicReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BinaryInputBasicReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BinaryInputBasicReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"BinaryInputBasic ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29432,13 +30457,19 @@ - (void)testSendClusterBinaryInputBasicReadAttributeClusterRevisionWithCompletio - (void)testSendClusterBindingReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"BindingReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBinding * cluster = [[CHIPBinding alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"BindingReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Binding ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29450,13 +30481,19 @@ - (void)testSendClusterBindingReadAttributeClusterRevisionWithCompletionHandler - (void)testSendClusterBooleanStateReadAttributeStateValueWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"BooleanStateReadAttributeStateValueWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBooleanState * cluster = [[CHIPBooleanState alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"BooleanStateReadAttributeStateValueWithCompletionHandler"]; + [cluster readAttributeStateValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"BooleanState StateValue Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29468,14 +30505,20 @@ - (void)testSendClusterBooleanStateReadAttributeStateValueWithCompletionHandler - (void)testSendClusterBooleanStateReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BooleanStateReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBooleanState * cluster = [[CHIPBooleanState alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BooleanStateReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"BooleanState ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29487,14 +30530,20 @@ - (void)testSendClusterBooleanStateReadAttributeClusterRevisionWithCompletionHan - (void)testSendClusterBridgedActionsReadAttributeActionListWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BridgedActionsReadAttributeActionListWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BridgedActionsReadAttributeActionListWithCompletionHandler"]; + [cluster readAttributeActionListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"BridgedActions ActionList Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29506,14 +30555,20 @@ - (void)testSendClusterBridgedActionsReadAttributeActionListWithCompletionHandle - (void)testSendClusterBridgedActionsReadAttributeEndpointListWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BridgedActionsReadAttributeEndpointListWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BridgedActionsReadAttributeEndpointListWithCompletionHandler"]; + [cluster readAttributeEndpointListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"BridgedActions EndpointList Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29525,13 +30580,19 @@ - (void)testSendClusterBridgedActionsReadAttributeEndpointListWithCompletionHand - (void)testSendClusterBridgedActionsReadAttributeSetupUrlWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"BridgedActionsReadAttributeSetupUrlWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"BridgedActionsReadAttributeSetupUrlWithCompletionHandler"]; + [cluster readAttributeSetupUrlWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"BridgedActions SetupUrl Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29543,14 +30604,20 @@ - (void)testSendClusterBridgedActionsReadAttributeSetupUrlWithCompletionHandler - (void)testSendClusterBridgedActionsReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BridgedActionsReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedActions * cluster = [[CHIPBridgedActions alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BridgedActionsReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"BridgedActions ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29562,14 +30629,20 @@ - (void)testSendClusterBridgedActionsReadAttributeClusterRevisionWithCompletionH - (void)testSendClusterBridgedDeviceBasicReadAttributeVendorNameWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeVendorNameWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeVendorNameWithCompletionHandler"]; + [cluster readAttributeVendorNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"BridgedDeviceBasic VendorName Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29581,14 +30654,20 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeVendorNameWithCompletionHa - (void)testSendClusterBridgedDeviceBasicReadAttributeVendorIDWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeVendorIDWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeVendorIDWithCompletionHandler"]; + [cluster readAttributeVendorIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"BridgedDeviceBasic VendorID Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29600,14 +30679,20 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeVendorIDWithCompletionHand - (void)testSendClusterBridgedDeviceBasicReadAttributeProductNameWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeProductNameWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeProductNameWithCompletionHandler"]; + [cluster readAttributeProductNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"BridgedDeviceBasic ProductName Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29619,14 +30704,20 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeProductNameWithCompletionH - (void)testSendClusterBridgedDeviceBasicReadAttributeNodeLabelWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeNodeLabelWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeNodeLabelWithCompletionHandler"]; + [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"BridgedDeviceBasic NodeLabel Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29638,13 +30729,19 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeNodeLabelWithCompletionHan - (void)testSendClusterBridgedDeviceBasicWriteAttributeNodeLabelWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"BridgedDeviceBasicWriteAttributeNodeLabelWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"BridgedDeviceBasicWriteAttributeNodeLabelWithValue"]; + NSString * _Nonnull value = @"Test"; [cluster writeAttributeNodeLabelWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -29657,14 +30754,20 @@ - (void)testSendClusterBridgedDeviceBasicWriteAttributeNodeLabelWithValue } - (void)testSendClusterBridgedDeviceBasicReadAttributeHardwareVersionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeHardwareVersionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeHardwareVersionWithCompletionHandler"]; + [cluster readAttributeHardwareVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"BridgedDeviceBasic HardwareVersion Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29676,15 +30779,21 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeHardwareVersionWithComplet - (void)testSendClusterBridgedDeviceBasicReadAttributeHardwareVersionStringWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeHardwareVersionStringWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); - [cluster readAttributeHardwareVersionStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { + XCTestExpectation * expectation = + [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeHardwareVersionStringWithCompletionHandler"]; + + [cluster readAttributeHardwareVersionStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"BridgedDeviceBasic HardwareVersionString Error: %@", err); XCTAssertEqual(err.code, 0); [expectation fulfill]; @@ -29695,14 +30804,20 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeHardwareVersionStringWithC - (void)testSendClusterBridgedDeviceBasicReadAttributeSoftwareVersionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeSoftwareVersionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeSoftwareVersionWithCompletionHandler"]; + [cluster readAttributeSoftwareVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"BridgedDeviceBasic SoftwareVersion Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29714,14 +30829,20 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeSoftwareVersionWithComplet - (void)testSendClusterBridgedDeviceBasicReadAttributeSoftwareVersionStringWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeSoftwareVersionStringWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeSoftwareVersionStringWithCompletionHandler"]; + [cluster readAttributeSoftwareVersionStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"BridgedDeviceBasic SoftwareVersionString Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29733,14 +30854,20 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeSoftwareVersionStringWithC - (void)testSendClusterBridgedDeviceBasicReadAttributeManufacturingDateWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeManufacturingDateWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeManufacturingDateWithCompletionHandler"]; + [cluster readAttributeManufacturingDateWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"BridgedDeviceBasic ManufacturingDate Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29752,14 +30879,20 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeManufacturingDateWithCompl - (void)testSendClusterBridgedDeviceBasicReadAttributePartNumberWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BridgedDeviceBasicReadAttributePartNumberWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BridgedDeviceBasicReadAttributePartNumberWithCompletionHandler"]; + [cluster readAttributePartNumberWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"BridgedDeviceBasic PartNumber Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29771,14 +30904,20 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributePartNumberWithCompletionHa - (void)testSendClusterBridgedDeviceBasicReadAttributeProductURLWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeProductURLWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeProductURLWithCompletionHandler"]; + [cluster readAttributeProductURLWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"BridgedDeviceBasic ProductURL Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29790,14 +30929,20 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeProductURLWithCompletionHa - (void)testSendClusterBridgedDeviceBasicReadAttributeProductLabelWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeProductLabelWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeProductLabelWithCompletionHandler"]; + [cluster readAttributeProductLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"BridgedDeviceBasic ProductLabel Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29809,14 +30954,20 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeProductLabelWithCompletion - (void)testSendClusterBridgedDeviceBasicReadAttributeSerialNumberWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeSerialNumberWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeSerialNumberWithCompletionHandler"]; + [cluster readAttributeSerialNumberWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"BridgedDeviceBasic SerialNumber Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29828,14 +30979,20 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeSerialNumberWithCompletion - (void)testSendClusterBridgedDeviceBasicReadAttributeReachableWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeReachableWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeReachableWithCompletionHandler"]; + [cluster readAttributeReachableWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"BridgedDeviceBasic Reachable Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29847,14 +31004,20 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeReachableWithCompletionHan - (void)testSendClusterBridgedDeviceBasicReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"BridgedDeviceBasic ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29866,13 +31029,19 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeClusterRevisionWithComplet - (void)testSendClusterColorControlReadAttributeCurrentHueWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeCurrentHueWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeCurrentHueWithCompletionHandler"]; + [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl CurrentHue Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29884,14 +31053,20 @@ - (void)testSendClusterColorControlReadAttributeCurrentHueWithCompletionHandler - (void)testSendClusterColorControlReadAttributeCurrentSaturationWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeCurrentSaturationWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeCurrentSaturationWithCompletionHandler"]; + [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl CurrentSaturation Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29903,14 +31078,20 @@ - (void)testSendClusterColorControlReadAttributeCurrentSaturationWithCompletionH - (void)testSendClusterColorControlReadAttributeRemainingTimeWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeRemainingTimeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeRemainingTimeWithCompletionHandler"]; + [cluster readAttributeRemainingTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl RemainingTime Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29922,13 +31103,19 @@ - (void)testSendClusterColorControlReadAttributeRemainingTimeWithCompletionHandl - (void)testSendClusterColorControlReadAttributeCurrentXWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeCurrentXWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeCurrentXWithCompletionHandler"]; + [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl CurrentX Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29940,13 +31127,19 @@ - (void)testSendClusterColorControlReadAttributeCurrentXWithCompletionHandler - (void)testSendClusterColorControlReadAttributeCurrentYWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeCurrentYWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeCurrentYWithCompletionHandler"]; + [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl CurrentY Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29958,14 +31151,20 @@ - (void)testSendClusterColorControlReadAttributeCurrentYWithCompletionHandler - (void)testSendClusterColorControlReadAttributeDriftCompensationWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeDriftCompensationWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeDriftCompensationWithCompletionHandler"]; + [cluster readAttributeDriftCompensationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl DriftCompensation Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29977,14 +31176,20 @@ - (void)testSendClusterColorControlReadAttributeDriftCompensationWithCompletionH - (void)testSendClusterColorControlReadAttributeCompensationTextWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeCompensationTextWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeCompensationTextWithCompletionHandler"]; + [cluster readAttributeCompensationTextWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl CompensationText Error: %@", err); XCTAssertEqual(err.code, 0); @@ -29996,14 +31201,20 @@ - (void)testSendClusterColorControlReadAttributeCompensationTextWithCompletionHa - (void)testSendClusterColorControlReadAttributeColorTemperatureWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeColorTemperatureWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeColorTemperatureWithCompletionHandler"]; + [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl ColorTemperature Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30015,13 +31226,19 @@ - (void)testSendClusterColorControlReadAttributeColorTemperatureWithCompletionHa - (void)testSendClusterColorControlReadAttributeColorModeWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorModeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorModeWithCompletionHandler"]; + [cluster readAttributeColorModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl ColorMode Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30033,14 +31250,20 @@ - (void)testSendClusterColorControlReadAttributeColorModeWithCompletionHandler - (void)testSendClusterColorControlReadAttributeColorControlOptionsWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeColorControlOptionsWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeColorControlOptionsWithCompletionHandler"]; + [cluster readAttributeColorControlOptionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl ColorControlOptions Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30052,13 +31275,19 @@ - (void)testSendClusterColorControlReadAttributeColorControlOptionsWithCompletio - (void)testSendClusterColorControlWriteAttributeColorControlOptionsWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorControlOptionsWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorControlOptionsWithValue"]; + NSNumber * _Nonnull value = @(0); [cluster writeAttributeColorControlOptionsWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -30071,14 +31300,20 @@ - (void)testSendClusterColorControlWriteAttributeColorControlOptionsWithValue } - (void)testSendClusterColorControlReadAttributeNumberOfPrimariesWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeNumberOfPrimariesWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeNumberOfPrimariesWithCompletionHandler"]; + [cluster readAttributeNumberOfPrimariesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl NumberOfPrimaries Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30090,13 +31325,19 @@ - (void)testSendClusterColorControlReadAttributeNumberOfPrimariesWithCompletionH - (void)testSendClusterColorControlReadAttributePrimary1XWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary1XWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary1XWithCompletionHandler"]; + [cluster readAttributePrimary1XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl Primary1X Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30108,13 +31349,19 @@ - (void)testSendClusterColorControlReadAttributePrimary1XWithCompletionHandler - (void)testSendClusterColorControlReadAttributePrimary1YWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary1YWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary1YWithCompletionHandler"]; + [cluster readAttributePrimary1YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl Primary1Y Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30126,14 +31373,20 @@ - (void)testSendClusterColorControlReadAttributePrimary1YWithCompletionHandler - (void)testSendClusterColorControlReadAttributePrimary1IntensityWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributePrimary1IntensityWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributePrimary1IntensityWithCompletionHandler"]; + [cluster readAttributePrimary1IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl Primary1Intensity Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30145,13 +31398,19 @@ - (void)testSendClusterColorControlReadAttributePrimary1IntensityWithCompletionH - (void)testSendClusterColorControlReadAttributePrimary2XWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary2XWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary2XWithCompletionHandler"]; + [cluster readAttributePrimary2XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl Primary2X Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30163,13 +31422,19 @@ - (void)testSendClusterColorControlReadAttributePrimary2XWithCompletionHandler - (void)testSendClusterColorControlReadAttributePrimary2YWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary2YWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary2YWithCompletionHandler"]; + [cluster readAttributePrimary2YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl Primary2Y Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30181,14 +31446,20 @@ - (void)testSendClusterColorControlReadAttributePrimary2YWithCompletionHandler - (void)testSendClusterColorControlReadAttributePrimary2IntensityWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributePrimary2IntensityWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributePrimary2IntensityWithCompletionHandler"]; + [cluster readAttributePrimary2IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl Primary2Intensity Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30200,13 +31471,19 @@ - (void)testSendClusterColorControlReadAttributePrimary2IntensityWithCompletionH - (void)testSendClusterColorControlReadAttributePrimary3XWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary3XWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary3XWithCompletionHandler"]; + [cluster readAttributePrimary3XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl Primary3X Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30218,13 +31495,19 @@ - (void)testSendClusterColorControlReadAttributePrimary3XWithCompletionHandler - (void)testSendClusterColorControlReadAttributePrimary3YWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary3YWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary3YWithCompletionHandler"]; + [cluster readAttributePrimary3YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl Primary3Y Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30236,14 +31519,20 @@ - (void)testSendClusterColorControlReadAttributePrimary3YWithCompletionHandler - (void)testSendClusterColorControlReadAttributePrimary3IntensityWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributePrimary3IntensityWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributePrimary3IntensityWithCompletionHandler"]; + [cluster readAttributePrimary3IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl Primary3Intensity Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30255,13 +31544,19 @@ - (void)testSendClusterColorControlReadAttributePrimary3IntensityWithCompletionH - (void)testSendClusterColorControlReadAttributePrimary4XWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary4XWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary4XWithCompletionHandler"]; + [cluster readAttributePrimary4XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl Primary4X Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30273,13 +31568,19 @@ - (void)testSendClusterColorControlReadAttributePrimary4XWithCompletionHandler - (void)testSendClusterColorControlReadAttributePrimary4YWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary4YWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary4YWithCompletionHandler"]; + [cluster readAttributePrimary4YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl Primary4Y Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30291,14 +31592,20 @@ - (void)testSendClusterColorControlReadAttributePrimary4YWithCompletionHandler - (void)testSendClusterColorControlReadAttributePrimary4IntensityWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributePrimary4IntensityWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributePrimary4IntensityWithCompletionHandler"]; + [cluster readAttributePrimary4IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl Primary4Intensity Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30310,13 +31617,19 @@ - (void)testSendClusterColorControlReadAttributePrimary4IntensityWithCompletionH - (void)testSendClusterColorControlReadAttributePrimary5XWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary5XWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary5XWithCompletionHandler"]; + [cluster readAttributePrimary5XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl Primary5X Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30328,13 +31641,19 @@ - (void)testSendClusterColorControlReadAttributePrimary5XWithCompletionHandler - (void)testSendClusterColorControlReadAttributePrimary5YWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary5YWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary5YWithCompletionHandler"]; + [cluster readAttributePrimary5YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl Primary5Y Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30346,14 +31665,20 @@ - (void)testSendClusterColorControlReadAttributePrimary5YWithCompletionHandler - (void)testSendClusterColorControlReadAttributePrimary5IntensityWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributePrimary5IntensityWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributePrimary5IntensityWithCompletionHandler"]; + [cluster readAttributePrimary5IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl Primary5Intensity Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30365,13 +31690,19 @@ - (void)testSendClusterColorControlReadAttributePrimary5IntensityWithCompletionH - (void)testSendClusterColorControlReadAttributePrimary6XWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary6XWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary6XWithCompletionHandler"]; + [cluster readAttributePrimary6XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl Primary6X Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30383,13 +31714,19 @@ - (void)testSendClusterColorControlReadAttributePrimary6XWithCompletionHandler - (void)testSendClusterColorControlReadAttributePrimary6YWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary6YWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary6YWithCompletionHandler"]; + [cluster readAttributePrimary6YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl Primary6Y Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30401,14 +31738,20 @@ - (void)testSendClusterColorControlReadAttributePrimary6YWithCompletionHandler - (void)testSendClusterColorControlReadAttributePrimary6IntensityWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributePrimary6IntensityWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributePrimary6IntensityWithCompletionHandler"]; + [cluster readAttributePrimary6IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl Primary6Intensity Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30420,14 +31763,20 @@ - (void)testSendClusterColorControlReadAttributePrimary6IntensityWithCompletionH - (void)testSendClusterColorControlReadAttributeWhitePointXWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeWhitePointXWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeWhitePointXWithCompletionHandler"]; + [cluster readAttributeWhitePointXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl WhitePointX Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30439,13 +31788,19 @@ - (void)testSendClusterColorControlReadAttributeWhitePointXWithCompletionHandler - (void)testSendClusterColorControlWriteAttributeWhitePointXWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeWhitePointXWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeWhitePointXWithValue"]; + NSNumber * _Nonnull value = @(0x0000); [cluster writeAttributeWhitePointXWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -30458,14 +31813,20 @@ - (void)testSendClusterColorControlWriteAttributeWhitePointXWithValue } - (void)testSendClusterColorControlReadAttributeWhitePointYWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeWhitePointYWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeWhitePointYWithCompletionHandler"]; + [cluster readAttributeWhitePointYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl WhitePointY Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30477,13 +31838,19 @@ - (void)testSendClusterColorControlReadAttributeWhitePointYWithCompletionHandler - (void)testSendClusterColorControlWriteAttributeWhitePointYWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeWhitePointYWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeWhitePointYWithValue"]; + NSNumber * _Nonnull value = @(0x0000); [cluster writeAttributeWhitePointYWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -30496,14 +31863,20 @@ - (void)testSendClusterColorControlWriteAttributeWhitePointYWithValue } - (void)testSendClusterColorControlReadAttributeColorPointRXWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeColorPointRXWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeColorPointRXWithCompletionHandler"]; + [cluster readAttributeColorPointRXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl ColorPointRX Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30515,13 +31888,19 @@ - (void)testSendClusterColorControlReadAttributeColorPointRXWithCompletionHandle - (void)testSendClusterColorControlWriteAttributeColorPointRXWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointRXWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointRXWithValue"]; + NSNumber * _Nonnull value = @(0x0000); [cluster writeAttributeColorPointRXWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -30534,14 +31913,20 @@ - (void)testSendClusterColorControlWriteAttributeColorPointRXWithValue } - (void)testSendClusterColorControlReadAttributeColorPointRYWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeColorPointRYWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeColorPointRYWithCompletionHandler"]; + [cluster readAttributeColorPointRYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl ColorPointRY Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30553,13 +31938,19 @@ - (void)testSendClusterColorControlReadAttributeColorPointRYWithCompletionHandle - (void)testSendClusterColorControlWriteAttributeColorPointRYWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointRYWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointRYWithValue"]; + NSNumber * _Nonnull value = @(0x0000); [cluster writeAttributeColorPointRYWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -30572,14 +31963,20 @@ - (void)testSendClusterColorControlWriteAttributeColorPointRYWithValue } - (void)testSendClusterColorControlReadAttributeColorPointRIntensityWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeColorPointRIntensityWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeColorPointRIntensityWithCompletionHandler"]; + [cluster readAttributeColorPointRIntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl ColorPointRIntensity Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30591,13 +31988,19 @@ - (void)testSendClusterColorControlReadAttributeColorPointRIntensityWithCompleti - (void)testSendClusterColorControlWriteAttributeColorPointRIntensityWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointRIntensityWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointRIntensityWithValue"]; + NSNumber * _Nonnull value = @(0); [cluster writeAttributeColorPointRIntensityWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -30610,14 +32013,20 @@ - (void)testSendClusterColorControlWriteAttributeColorPointRIntensityWithValue } - (void)testSendClusterColorControlReadAttributeColorPointGXWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeColorPointGXWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeColorPointGXWithCompletionHandler"]; + [cluster readAttributeColorPointGXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl ColorPointGX Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30629,13 +32038,19 @@ - (void)testSendClusterColorControlReadAttributeColorPointGXWithCompletionHandle - (void)testSendClusterColorControlWriteAttributeColorPointGXWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointGXWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointGXWithValue"]; + NSNumber * _Nonnull value = @(0x0000); [cluster writeAttributeColorPointGXWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -30648,14 +32063,20 @@ - (void)testSendClusterColorControlWriteAttributeColorPointGXWithValue } - (void)testSendClusterColorControlReadAttributeColorPointGYWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeColorPointGYWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeColorPointGYWithCompletionHandler"]; + [cluster readAttributeColorPointGYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl ColorPointGY Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30667,13 +32088,19 @@ - (void)testSendClusterColorControlReadAttributeColorPointGYWithCompletionHandle - (void)testSendClusterColorControlWriteAttributeColorPointGYWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointGYWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointGYWithValue"]; + NSNumber * _Nonnull value = @(0x0000); [cluster writeAttributeColorPointGYWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -30686,14 +32113,20 @@ - (void)testSendClusterColorControlWriteAttributeColorPointGYWithValue } - (void)testSendClusterColorControlReadAttributeColorPointGIntensityWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeColorPointGIntensityWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeColorPointGIntensityWithCompletionHandler"]; + [cluster readAttributeColorPointGIntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl ColorPointGIntensity Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30705,13 +32138,19 @@ - (void)testSendClusterColorControlReadAttributeColorPointGIntensityWithCompleti - (void)testSendClusterColorControlWriteAttributeColorPointGIntensityWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointGIntensityWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointGIntensityWithValue"]; + NSNumber * _Nonnull value = @(0); [cluster writeAttributeColorPointGIntensityWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -30724,14 +32163,20 @@ - (void)testSendClusterColorControlWriteAttributeColorPointGIntensityWithValue } - (void)testSendClusterColorControlReadAttributeColorPointBXWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeColorPointBXWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeColorPointBXWithCompletionHandler"]; + [cluster readAttributeColorPointBXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl ColorPointBX Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30743,13 +32188,19 @@ - (void)testSendClusterColorControlReadAttributeColorPointBXWithCompletionHandle - (void)testSendClusterColorControlWriteAttributeColorPointBXWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointBXWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointBXWithValue"]; + NSNumber * _Nonnull value = @(0x0000); [cluster writeAttributeColorPointBXWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -30762,14 +32213,20 @@ - (void)testSendClusterColorControlWriteAttributeColorPointBXWithValue } - (void)testSendClusterColorControlReadAttributeColorPointBYWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeColorPointBYWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeColorPointBYWithCompletionHandler"]; + [cluster readAttributeColorPointBYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl ColorPointBY Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30781,13 +32238,19 @@ - (void)testSendClusterColorControlReadAttributeColorPointBYWithCompletionHandle - (void)testSendClusterColorControlWriteAttributeColorPointBYWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointBYWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointBYWithValue"]; + NSNumber * _Nonnull value = @(0x0000); [cluster writeAttributeColorPointBYWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -30800,14 +32263,20 @@ - (void)testSendClusterColorControlWriteAttributeColorPointBYWithValue } - (void)testSendClusterColorControlReadAttributeColorPointBIntensityWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeColorPointBIntensityWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeColorPointBIntensityWithCompletionHandler"]; + [cluster readAttributeColorPointBIntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl ColorPointBIntensity Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30819,13 +32288,19 @@ - (void)testSendClusterColorControlReadAttributeColorPointBIntensityWithCompleti - (void)testSendClusterColorControlWriteAttributeColorPointBIntensityWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointBIntensityWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointBIntensityWithValue"]; + NSNumber * _Nonnull value = @(0); [cluster writeAttributeColorPointBIntensityWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -30838,14 +32313,20 @@ - (void)testSendClusterColorControlWriteAttributeColorPointBIntensityWithValue } - (void)testSendClusterColorControlReadAttributeEnhancedCurrentHueWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeEnhancedCurrentHueWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeEnhancedCurrentHueWithCompletionHandler"]; + [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl EnhancedCurrentHue Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30857,14 +32338,20 @@ - (void)testSendClusterColorControlReadAttributeEnhancedCurrentHueWithCompletion - (void)testSendClusterColorControlReadAttributeEnhancedColorModeWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeEnhancedColorModeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeEnhancedColorModeWithCompletionHandler"]; + [cluster readAttributeEnhancedColorModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl EnhancedColorMode Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30876,14 +32363,20 @@ - (void)testSendClusterColorControlReadAttributeEnhancedColorModeWithCompletionH - (void)testSendClusterColorControlReadAttributeColorLoopActiveWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeColorLoopActiveWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeColorLoopActiveWithCompletionHandler"]; + [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl ColorLoopActive Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30895,14 +32388,20 @@ - (void)testSendClusterColorControlReadAttributeColorLoopActiveWithCompletionHan - (void)testSendClusterColorControlReadAttributeColorLoopDirectionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeColorLoopDirectionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeColorLoopDirectionWithCompletionHandler"]; + [cluster readAttributeColorLoopDirectionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl ColorLoopDirection Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30914,14 +32413,20 @@ - (void)testSendClusterColorControlReadAttributeColorLoopDirectionWithCompletion - (void)testSendClusterColorControlReadAttributeColorLoopTimeWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeColorLoopTimeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeColorLoopTimeWithCompletionHandler"]; + [cluster readAttributeColorLoopTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl ColorLoopTime Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30933,14 +32438,20 @@ - (void)testSendClusterColorControlReadAttributeColorLoopTimeWithCompletionHandl - (void)testSendClusterColorControlReadAttributeColorLoopStartEnhancedHueWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeColorLoopStartEnhancedHueWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeColorLoopStartEnhancedHueWithCompletionHandler"]; + [cluster readAttributeColorLoopStartEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl ColorLoopStartEnhancedHue Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30952,14 +32463,20 @@ - (void)testSendClusterColorControlReadAttributeColorLoopStartEnhancedHueWithCom - (void)testSendClusterColorControlReadAttributeColorLoopStoredEnhancedHueWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeColorLoopStoredEnhancedHueWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeColorLoopStoredEnhancedHueWithCompletionHandler"]; + [cluster readAttributeColorLoopStoredEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl ColorLoopStoredEnhancedHue Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30971,14 +32488,20 @@ - (void)testSendClusterColorControlReadAttributeColorLoopStoredEnhancedHueWithCo - (void)testSendClusterColorControlReadAttributeColorCapabilitiesWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeColorCapabilitiesWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeColorCapabilitiesWithCompletionHandler"]; + [cluster readAttributeColorCapabilitiesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl ColorCapabilities Error: %@", err); XCTAssertEqual(err.code, 0); @@ -30990,14 +32513,20 @@ - (void)testSendClusterColorControlReadAttributeColorCapabilitiesWithCompletionH - (void)testSendClusterColorControlReadAttributeColorTempPhysicalMinWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeColorTempPhysicalMinWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeColorTempPhysicalMinWithCompletionHandler"]; + [cluster readAttributeColorTempPhysicalMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl ColorTempPhysicalMin Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31009,14 +32538,20 @@ - (void)testSendClusterColorControlReadAttributeColorTempPhysicalMinWithCompleti - (void)testSendClusterColorControlReadAttributeColorTempPhysicalMaxWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeColorTempPhysicalMaxWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeColorTempPhysicalMaxWithCompletionHandler"]; + [cluster readAttributeColorTempPhysicalMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl ColorTempPhysicalMax Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31028,14 +32563,20 @@ - (void)testSendClusterColorControlReadAttributeColorTempPhysicalMaxWithCompleti - (void)testSendClusterColorControlReadAttributeCoupleColorTempToLevelMinMiredsWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeCoupleColorTempToLevelMinMiredsWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeCoupleColorTempToLevelMinMiredsWithCompletionHandler"]; + [cluster readAttributeCoupleColorTempToLevelMinMiredsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl CoupleColorTempToLevelMinMireds Error: %@", err); @@ -31048,14 +32589,20 @@ - (void)testSendClusterColorControlReadAttributeCoupleColorTempToLevelMinMiredsW - (void)testSendClusterColorControlReadAttributeStartUpColorTemperatureMiredsWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeStartUpColorTemperatureMiredsWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeStartUpColorTemperatureMiredsWithCompletionHandler"]; + [cluster readAttributeStartUpColorTemperatureMiredsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl StartUpColorTemperatureMireds Error: %@", err); @@ -31068,14 +32615,20 @@ - (void)testSendClusterColorControlReadAttributeStartUpColorTemperatureMiredsWit - (void)testSendClusterColorControlWriteAttributeStartUpColorTemperatureMiredsWithValue { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlWriteAttributeStartUpColorTemperatureMiredsWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlWriteAttributeStartUpColorTemperatureMiredsWithValue"]; + NSNumber * _Nonnull value = @(0x0000); [cluster writeAttributeStartUpColorTemperatureMiredsWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -31088,14 +32641,20 @@ - (void)testSendClusterColorControlWriteAttributeStartUpColorTemperatureMiredsWi } - (void)testSendClusterColorControlReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ColorControlReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ColorControlReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ColorControl ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31107,14 +32666,20 @@ - (void)testSendClusterColorControlReadAttributeClusterRevisionWithCompletionHan - (void)testSendClusterContentLauncherReadAttributeAcceptsHeaderListWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ContentLauncherReadAttributeAcceptsHeaderListWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ContentLauncherReadAttributeAcceptsHeaderListWithCompletionHandler"]; + [cluster readAttributeAcceptsHeaderListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"ContentLauncher AcceptsHeaderList Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31126,14 +32691,20 @@ - (void)testSendClusterContentLauncherReadAttributeAcceptsHeaderListWithCompleti - (void)testSendClusterContentLauncherReadAttributeSupportedStreamingTypesWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ContentLauncherReadAttributeSupportedStreamingTypesWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ContentLauncherReadAttributeSupportedStreamingTypesWithCompletionHandler"]; + [cluster readAttributeSupportedStreamingTypesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"ContentLauncher SupportedStreamingTypes Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31145,14 +32716,20 @@ - (void)testSendClusterContentLauncherReadAttributeSupportedStreamingTypesWithCo - (void)testSendClusterContentLauncherReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ContentLauncherReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ContentLauncherReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ContentLauncher ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31164,13 +32741,19 @@ - (void)testSendClusterContentLauncherReadAttributeClusterRevisionWithCompletion - (void)testSendClusterDescriptorReadAttributeDeviceListWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"DescriptorReadAttributeDeviceListWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"DescriptorReadAttributeDeviceListWithCompletionHandler"]; + [cluster readAttributeDeviceListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Descriptor DeviceList Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31182,13 +32765,19 @@ - (void)testSendClusterDescriptorReadAttributeDeviceListWithCompletionHandler - (void)testSendClusterDescriptorReadAttributeServerListWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"DescriptorReadAttributeServerListWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"DescriptorReadAttributeServerListWithCompletionHandler"]; + [cluster readAttributeServerListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Descriptor ServerList Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31200,13 +32789,19 @@ - (void)testSendClusterDescriptorReadAttributeServerListWithCompletionHandler - (void)testSendClusterDescriptorReadAttributeClientListWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"DescriptorReadAttributeClientListWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"DescriptorReadAttributeClientListWithCompletionHandler"]; + [cluster readAttributeClientListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Descriptor ClientList Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31218,13 +32813,19 @@ - (void)testSendClusterDescriptorReadAttributeClientListWithCompletionHandler - (void)testSendClusterDescriptorReadAttributePartsListWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"DescriptorReadAttributePartsListWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"DescriptorReadAttributePartsListWithCompletionHandler"]; + [cluster readAttributePartsListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"Descriptor PartsList Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31236,14 +32837,20 @@ - (void)testSendClusterDescriptorReadAttributePartsListWithCompletionHandler - (void)testSendClusterDescriptorReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"DescriptorReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"DescriptorReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Descriptor ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31255,13 +32862,19 @@ - (void)testSendClusterDescriptorReadAttributeClusterRevisionWithCompletionHandl - (void)testSendClusterDoorLockReadAttributeLockStateWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"DoorLockReadAttributeLockStateWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"DoorLockReadAttributeLockStateWithCompletionHandler"]; + [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"DoorLock LockState Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31273,13 +32886,19 @@ - (void)testSendClusterDoorLockReadAttributeLockStateWithCompletionHandler - (void)testSendClusterDoorLockReadAttributeLockTypeWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"DoorLockReadAttributeLockTypeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"DoorLockReadAttributeLockTypeWithCompletionHandler"]; + [cluster readAttributeLockTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"DoorLock LockType Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31291,14 +32910,20 @@ - (void)testSendClusterDoorLockReadAttributeLockTypeWithCompletionHandler - (void)testSendClusterDoorLockReadAttributeActuatorEnabledWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"DoorLockReadAttributeActuatorEnabledWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"DoorLockReadAttributeActuatorEnabledWithCompletionHandler"]; + [cluster readAttributeActuatorEnabledWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"DoorLock ActuatorEnabled Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31310,14 +32935,20 @@ - (void)testSendClusterDoorLockReadAttributeActuatorEnabledWithCompletionHandler - (void)testSendClusterDoorLockReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"DoorLockReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"DoorLockReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"DoorLock ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31329,14 +32960,20 @@ - (void)testSendClusterDoorLockReadAttributeClusterRevisionWithCompletionHandler - (void)testSendClusterElectricalMeasurementReadAttributeMeasurementTypeWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ElectricalMeasurementReadAttributeMeasurementTypeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ElectricalMeasurementReadAttributeMeasurementTypeWithCompletionHandler"]; + [cluster readAttributeMeasurementTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ElectricalMeasurement MeasurementType Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31348,14 +32985,20 @@ - (void)testSendClusterElectricalMeasurementReadAttributeMeasurementTypeWithComp - (void)testSendClusterElectricalMeasurementReadAttributeTotalActivePowerWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ElectricalMeasurementReadAttributeTotalActivePowerWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ElectricalMeasurementReadAttributeTotalActivePowerWithCompletionHandler"]; + [cluster readAttributeTotalActivePowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ElectricalMeasurement TotalActivePower Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31367,14 +33010,20 @@ - (void)testSendClusterElectricalMeasurementReadAttributeTotalActivePowerWithCom - (void)testSendClusterElectricalMeasurementReadAttributeRmsVoltageWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ElectricalMeasurementReadAttributeRmsVoltageWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ElectricalMeasurementReadAttributeRmsVoltageWithCompletionHandler"]; + [cluster readAttributeRmsVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ElectricalMeasurement RmsVoltage Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31386,14 +33035,20 @@ - (void)testSendClusterElectricalMeasurementReadAttributeRmsVoltageWithCompletio - (void)testSendClusterElectricalMeasurementReadAttributeRmsVoltageMinWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ElectricalMeasurementReadAttributeRmsVoltageMinWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ElectricalMeasurementReadAttributeRmsVoltageMinWithCompletionHandler"]; + [cluster readAttributeRmsVoltageMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ElectricalMeasurement RmsVoltageMin Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31405,14 +33060,20 @@ - (void)testSendClusterElectricalMeasurementReadAttributeRmsVoltageMinWithComple - (void)testSendClusterElectricalMeasurementReadAttributeRmsVoltageMaxWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ElectricalMeasurementReadAttributeRmsVoltageMaxWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ElectricalMeasurementReadAttributeRmsVoltageMaxWithCompletionHandler"]; + [cluster readAttributeRmsVoltageMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ElectricalMeasurement RmsVoltageMax Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31424,14 +33085,20 @@ - (void)testSendClusterElectricalMeasurementReadAttributeRmsVoltageMaxWithComple - (void)testSendClusterElectricalMeasurementReadAttributeRmsCurrentWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ElectricalMeasurementReadAttributeRmsCurrentWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ElectricalMeasurementReadAttributeRmsCurrentWithCompletionHandler"]; + [cluster readAttributeRmsCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ElectricalMeasurement RmsCurrent Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31443,14 +33110,20 @@ - (void)testSendClusterElectricalMeasurementReadAttributeRmsCurrentWithCompletio - (void)testSendClusterElectricalMeasurementReadAttributeRmsCurrentMinWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ElectricalMeasurementReadAttributeRmsCurrentMinWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ElectricalMeasurementReadAttributeRmsCurrentMinWithCompletionHandler"]; + [cluster readAttributeRmsCurrentMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ElectricalMeasurement RmsCurrentMin Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31462,14 +33135,20 @@ - (void)testSendClusterElectricalMeasurementReadAttributeRmsCurrentMinWithComple - (void)testSendClusterElectricalMeasurementReadAttributeRmsCurrentMaxWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ElectricalMeasurementReadAttributeRmsCurrentMaxWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ElectricalMeasurementReadAttributeRmsCurrentMaxWithCompletionHandler"]; + [cluster readAttributeRmsCurrentMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ElectricalMeasurement RmsCurrentMax Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31481,14 +33160,20 @@ - (void)testSendClusterElectricalMeasurementReadAttributeRmsCurrentMaxWithComple - (void)testSendClusterElectricalMeasurementReadAttributeActivePowerWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ElectricalMeasurementReadAttributeActivePowerWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ElectricalMeasurementReadAttributeActivePowerWithCompletionHandler"]; + [cluster readAttributeActivePowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ElectricalMeasurement ActivePower Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31500,14 +33185,20 @@ - (void)testSendClusterElectricalMeasurementReadAttributeActivePowerWithCompleti - (void)testSendClusterElectricalMeasurementReadAttributeActivePowerMinWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ElectricalMeasurementReadAttributeActivePowerMinWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ElectricalMeasurementReadAttributeActivePowerMinWithCompletionHandler"]; + [cluster readAttributeActivePowerMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ElectricalMeasurement ActivePowerMin Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31519,14 +33210,20 @@ - (void)testSendClusterElectricalMeasurementReadAttributeActivePowerMinWithCompl - (void)testSendClusterElectricalMeasurementReadAttributeActivePowerMaxWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ElectricalMeasurementReadAttributeActivePowerMaxWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ElectricalMeasurementReadAttributeActivePowerMaxWithCompletionHandler"]; + [cluster readAttributeActivePowerMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ElectricalMeasurement ActivePowerMax Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31538,14 +33235,20 @@ - (void)testSendClusterElectricalMeasurementReadAttributeActivePowerMaxWithCompl - (void)testSendClusterElectricalMeasurementReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ElectricalMeasurementReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ElectricalMeasurementReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ElectricalMeasurement ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31557,16 +33260,22 @@ - (void)testSendClusterElectricalMeasurementReadAttributeClusterRevisionWithComp - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributePHYRateWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributePHYRateWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributePHYRateWithCompletionHandler"]; + [cluster readAttributePHYRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"EthernetNetworkDiagnostics PHYRate Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31578,16 +33287,22 @@ - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributePHYRateWithComplet - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeFullDuplexWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeFullDuplexWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeFullDuplexWithCompletionHandler"]; + [cluster readAttributeFullDuplexWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"EthernetNetworkDiagnostics FullDuplex Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31599,16 +33314,22 @@ - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeFullDuplexWithComp - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributePacketRxCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributePacketRxCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributePacketRxCountWithCompletionHandler"]; + [cluster readAttributePacketRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"EthernetNetworkDiagnostics PacketRxCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31620,16 +33341,22 @@ - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributePacketRxCountWithC - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributePacketTxCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributePacketTxCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributePacketTxCountWithCompletionHandler"]; + [cluster readAttributePacketTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"EthernetNetworkDiagnostics PacketTxCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31641,16 +33368,22 @@ - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributePacketTxCountWithC - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeTxErrCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeTxErrCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeTxErrCountWithCompletionHandler"]; + [cluster readAttributeTxErrCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"EthernetNetworkDiagnostics TxErrCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31662,16 +33395,22 @@ - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeTxErrCountWithComp - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeCollisionCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeCollisionCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeCollisionCountWithCompletionHandler"]; + [cluster readAttributeCollisionCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"EthernetNetworkDiagnostics CollisionCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31683,16 +33422,22 @@ - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeCollisionCountWith - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeOverrunCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeOverrunCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeOverrunCountWithCompletionHandler"]; + [cluster readAttributeOverrunCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"EthernetNetworkDiagnostics OverrunCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31704,16 +33449,22 @@ - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeOverrunCountWithCo - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeCarrierDetectWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeCarrierDetectWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeCarrierDetectWithCompletionHandler"]; + [cluster readAttributeCarrierDetectWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"EthernetNetworkDiagnostics CarrierDetect Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31725,16 +33476,22 @@ - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeCarrierDetectWithC - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeTimeSinceResetWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeTimeSinceResetWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeTimeSinceResetWithCompletionHandler"]; + [cluster readAttributeTimeSinceResetWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"EthernetNetworkDiagnostics TimeSinceReset Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31746,16 +33503,22 @@ - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeTimeSinceResetWith - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeFeatureMapWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeFeatureMapWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeFeatureMapWithCompletionHandler"]; + [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"EthernetNetworkDiagnostics FeatureMap Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31767,16 +33530,22 @@ - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeFeatureMapWithComp - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"EthernetNetworkDiagnostics ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31788,13 +33557,19 @@ - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeClusterRevisionWit - (void)testSendClusterFixedLabelReadAttributeLabelListWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"FixedLabelReadAttributeLabelListWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPFixedLabel * cluster = [[CHIPFixedLabel alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"FixedLabelReadAttributeLabelListWithCompletionHandler"]; + [cluster readAttributeLabelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"FixedLabel LabelList Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31806,14 +33581,20 @@ - (void)testSendClusterFixedLabelReadAttributeLabelListWithCompletionHandler - (void)testSendClusterFixedLabelReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"FixedLabelReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPFixedLabel * cluster = [[CHIPFixedLabel alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"FixedLabelReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"FixedLabel ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31825,14 +33606,20 @@ - (void)testSendClusterFixedLabelReadAttributeClusterRevisionWithCompletionHandl - (void)testSendClusterFlowMeasurementReadAttributeMeasuredValueWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"FlowMeasurementReadAttributeMeasuredValueWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"FlowMeasurementReadAttributeMeasuredValueWithCompletionHandler"]; + [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"FlowMeasurement MeasuredValue Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31844,14 +33631,20 @@ - (void)testSendClusterFlowMeasurementReadAttributeMeasuredValueWithCompletionHa - (void)testSendClusterFlowMeasurementReadAttributeMinMeasuredValueWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"FlowMeasurementReadAttributeMinMeasuredValueWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"FlowMeasurementReadAttributeMinMeasuredValueWithCompletionHandler"]; + [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"FlowMeasurement MinMeasuredValue Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31863,14 +33656,20 @@ - (void)testSendClusterFlowMeasurementReadAttributeMinMeasuredValueWithCompletio - (void)testSendClusterFlowMeasurementReadAttributeMaxMeasuredValueWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"FlowMeasurementReadAttributeMaxMeasuredValueWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"FlowMeasurementReadAttributeMaxMeasuredValueWithCompletionHandler"]; + [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"FlowMeasurement MaxMeasuredValue Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31882,14 +33681,20 @@ - (void)testSendClusterFlowMeasurementReadAttributeMaxMeasuredValueWithCompletio - (void)testSendClusterFlowMeasurementReadAttributeToleranceWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"FlowMeasurementReadAttributeToleranceWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"FlowMeasurementReadAttributeToleranceWithCompletionHandler"]; + [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"FlowMeasurement Tolerance Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31901,14 +33706,20 @@ - (void)testSendClusterFlowMeasurementReadAttributeToleranceWithCompletionHandle - (void)testSendClusterFlowMeasurementReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"FlowMeasurementReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"FlowMeasurementReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"FlowMeasurement ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31920,14 +33731,20 @@ - (void)testSendClusterFlowMeasurementReadAttributeClusterRevisionWithCompletion - (void)testSendClusterGeneralCommissioningReadAttributeBreadcrumbWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"GeneralCommissioningReadAttributeBreadcrumbWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"GeneralCommissioningReadAttributeBreadcrumbWithCompletionHandler"]; + [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"GeneralCommissioning Breadcrumb Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31939,13 +33756,19 @@ - (void)testSendClusterGeneralCommissioningReadAttributeBreadcrumbWithCompletion - (void)testSendClusterGeneralCommissioningWriteAttributeBreadcrumbWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"GeneralCommissioningWriteAttributeBreadcrumbWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"GeneralCommissioningWriteAttributeBreadcrumbWithValue"]; + NSNumber * _Nonnull value = @(0); [cluster writeAttributeBreadcrumbWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -31958,14 +33781,20 @@ - (void)testSendClusterGeneralCommissioningWriteAttributeBreadcrumbWithValue } - (void)testSendClusterGeneralCommissioningReadAttributeBasicCommissioningInfoListWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"GeneralCommissioningReadAttributeBasicCommissioningInfoListWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"GeneralCommissioningReadAttributeBasicCommissioningInfoListWithCompletionHandler"]; + [cluster readAttributeBasicCommissioningInfoListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"GeneralCommissioning BasicCommissioningInfoList Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31977,14 +33806,20 @@ - (void)testSendClusterGeneralCommissioningReadAttributeBasicCommissioningInfoLi - (void)testSendClusterGeneralCommissioningReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"GeneralCommissioningReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"GeneralCommissioningReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"GeneralCommissioning ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -31996,14 +33831,20 @@ - (void)testSendClusterGeneralCommissioningReadAttributeClusterRevisionWithCompl - (void)testSendClusterGeneralDiagnosticsReadAttributeNetworkInterfacesWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeNetworkInterfacesWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeNetworkInterfacesWithCompletionHandler"]; + [cluster readAttributeNetworkInterfacesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"GeneralDiagnostics NetworkInterfaces Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32015,14 +33856,20 @@ - (void)testSendClusterGeneralDiagnosticsReadAttributeNetworkInterfacesWithCompl - (void)testSendClusterGeneralDiagnosticsReadAttributeRebootCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeRebootCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeRebootCountWithCompletionHandler"]; + [cluster readAttributeRebootCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"GeneralDiagnostics RebootCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32034,14 +33881,20 @@ - (void)testSendClusterGeneralDiagnosticsReadAttributeRebootCountWithCompletionH - (void)testSendClusterGeneralDiagnosticsReadAttributeUpTimeWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeUpTimeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeUpTimeWithCompletionHandler"]; + [cluster readAttributeUpTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"GeneralDiagnostics UpTime Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32053,14 +33906,20 @@ - (void)testSendClusterGeneralDiagnosticsReadAttributeUpTimeWithCompletionHandle - (void)testSendClusterGeneralDiagnosticsReadAttributeTotalOperationalHoursWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeTotalOperationalHoursWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeTotalOperationalHoursWithCompletionHandler"]; + [cluster readAttributeTotalOperationalHoursWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"GeneralDiagnostics TotalOperationalHours Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32072,14 +33931,20 @@ - (void)testSendClusterGeneralDiagnosticsReadAttributeTotalOperationalHoursWithC - (void)testSendClusterGeneralDiagnosticsReadAttributeBootReasonsWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeBootReasonsWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeBootReasonsWithCompletionHandler"]; + [cluster readAttributeBootReasonsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"GeneralDiagnostics BootReasons Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32091,14 +33956,20 @@ - (void)testSendClusterGeneralDiagnosticsReadAttributeBootReasonsWithCompletionH - (void)testSendClusterGeneralDiagnosticsReadAttributeActiveHardwareFaultsWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeActiveHardwareFaultsWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeActiveHardwareFaultsWithCompletionHandler"]; + [cluster readAttributeActiveHardwareFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"GeneralDiagnostics ActiveHardwareFaults Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32110,14 +33981,20 @@ - (void)testSendClusterGeneralDiagnosticsReadAttributeActiveHardwareFaultsWithCo - (void)testSendClusterGeneralDiagnosticsReadAttributeActiveRadioFaultsWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeActiveRadioFaultsWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeActiveRadioFaultsWithCompletionHandler"]; + [cluster readAttributeActiveRadioFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"GeneralDiagnostics ActiveRadioFaults Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32129,14 +34006,20 @@ - (void)testSendClusterGeneralDiagnosticsReadAttributeActiveRadioFaultsWithCompl - (void)testSendClusterGeneralDiagnosticsReadAttributeActiveNetworkFaultsWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeActiveNetworkFaultsWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeActiveNetworkFaultsWithCompletionHandler"]; + [cluster readAttributeActiveNetworkFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"GeneralDiagnostics ActiveNetworkFaults Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32148,14 +34031,20 @@ - (void)testSendClusterGeneralDiagnosticsReadAttributeActiveNetworkFaultsWithCom - (void)testSendClusterGeneralDiagnosticsReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"GeneralDiagnostics ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32167,14 +34056,20 @@ - (void)testSendClusterGeneralDiagnosticsReadAttributeClusterRevisionWithComplet - (void)testSendClusterGroupKeyManagementReadAttributeGroupsWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"GroupKeyManagementReadAttributeGroupsWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"GroupKeyManagementReadAttributeGroupsWithCompletionHandler"]; + [cluster readAttributeGroupsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"GroupKeyManagement Groups Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32186,14 +34081,20 @@ - (void)testSendClusterGroupKeyManagementReadAttributeGroupsWithCompletionHandle - (void)testSendClusterGroupKeyManagementReadAttributeGroupKeysWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"GroupKeyManagementReadAttributeGroupKeysWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"GroupKeyManagementReadAttributeGroupKeysWithCompletionHandler"]; + [cluster readAttributeGroupKeysWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"GroupKeyManagement GroupKeys Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32205,14 +34106,20 @@ - (void)testSendClusterGroupKeyManagementReadAttributeGroupKeysWithCompletionHan - (void)testSendClusterGroupKeyManagementReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"GroupKeyManagementReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"GroupKeyManagementReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"GroupKeyManagement ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32224,13 +34131,19 @@ - (void)testSendClusterGroupKeyManagementReadAttributeClusterRevisionWithComplet - (void)testSendClusterGroupsReadAttributeNameSupportWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"GroupsReadAttributeNameSupportWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"GroupsReadAttributeNameSupportWithCompletionHandler"]; + [cluster readAttributeNameSupportWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Groups NameSupport Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32242,13 +34155,19 @@ - (void)testSendClusterGroupsReadAttributeNameSupportWithCompletionHandler - (void)testSendClusterGroupsReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"GroupsReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"GroupsReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Groups ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32260,13 +34179,19 @@ - (void)testSendClusterGroupsReadAttributeClusterRevisionWithCompletionHandler - (void)testSendClusterIdentifyReadAttributeIdentifyTimeWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"IdentifyReadAttributeIdentifyTimeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"IdentifyReadAttributeIdentifyTimeWithCompletionHandler"]; + [cluster readAttributeIdentifyTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Identify IdentifyTime Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32278,13 +34203,19 @@ - (void)testSendClusterIdentifyReadAttributeIdentifyTimeWithCompletionHandler - (void)testSendClusterIdentifyWriteAttributeIdentifyTimeWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"IdentifyWriteAttributeIdentifyTimeWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"IdentifyWriteAttributeIdentifyTimeWithValue"]; + NSNumber * _Nonnull value = @(0x00); [cluster writeAttributeIdentifyTimeWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -32297,13 +34228,19 @@ - (void)testSendClusterIdentifyWriteAttributeIdentifyTimeWithValue } - (void)testSendClusterIdentifyReadAttributeIdentifyTypeWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"IdentifyReadAttributeIdentifyTypeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"IdentifyReadAttributeIdentifyTypeWithCompletionHandler"]; + [cluster readAttributeIdentifyTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Identify IdentifyType Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32315,14 +34252,20 @@ - (void)testSendClusterIdentifyReadAttributeIdentifyTypeWithCompletionHandler - (void)testSendClusterIdentifyReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"IdentifyReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"IdentifyReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Identify ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32334,14 +34277,20 @@ - (void)testSendClusterIdentifyReadAttributeClusterRevisionWithCompletionHandler - (void)testSendClusterIlluminanceMeasurementReadAttributeMeasuredValueWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"IlluminanceMeasurementReadAttributeMeasuredValueWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"IlluminanceMeasurementReadAttributeMeasuredValueWithCompletionHandler"]; + [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"IlluminanceMeasurement MeasuredValue Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32353,14 +34302,20 @@ - (void)testSendClusterIlluminanceMeasurementReadAttributeMeasuredValueWithCompl - (void)testSendClusterIlluminanceMeasurementReadAttributeMinMeasuredValueWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"IlluminanceMeasurementReadAttributeMinMeasuredValueWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"IlluminanceMeasurementReadAttributeMinMeasuredValueWithCompletionHandler"]; + [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"IlluminanceMeasurement MinMeasuredValue Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32372,14 +34327,20 @@ - (void)testSendClusterIlluminanceMeasurementReadAttributeMinMeasuredValueWithCo - (void)testSendClusterIlluminanceMeasurementReadAttributeMaxMeasuredValueWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"IlluminanceMeasurementReadAttributeMaxMeasuredValueWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"IlluminanceMeasurementReadAttributeMaxMeasuredValueWithCompletionHandler"]; + [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"IlluminanceMeasurement MaxMeasuredValue Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32391,14 +34352,20 @@ - (void)testSendClusterIlluminanceMeasurementReadAttributeMaxMeasuredValueWithCo - (void)testSendClusterIlluminanceMeasurementReadAttributeToleranceWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"IlluminanceMeasurementReadAttributeToleranceWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"IlluminanceMeasurementReadAttributeToleranceWithCompletionHandler"]; + [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"IlluminanceMeasurement Tolerance Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32410,14 +34377,20 @@ - (void)testSendClusterIlluminanceMeasurementReadAttributeToleranceWithCompletio - (void)testSendClusterIlluminanceMeasurementReadAttributeLightSensorTypeWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"IlluminanceMeasurementReadAttributeLightSensorTypeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"IlluminanceMeasurementReadAttributeLightSensorTypeWithCompletionHandler"]; + [cluster readAttributeLightSensorTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"IlluminanceMeasurement LightSensorType Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32429,14 +34402,20 @@ - (void)testSendClusterIlluminanceMeasurementReadAttributeLightSensorTypeWithCom - (void)testSendClusterIlluminanceMeasurementReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"IlluminanceMeasurementReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPIlluminanceMeasurement * cluster = [[CHIPIlluminanceMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"IlluminanceMeasurementReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"IlluminanceMeasurement ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32448,14 +34427,20 @@ - (void)testSendClusterIlluminanceMeasurementReadAttributeClusterRevisionWithCom - (void)testSendClusterKeypadInputReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"KeypadInputReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPKeypadInput * cluster = [[CHIPKeypadInput alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"KeypadInputReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"KeypadInput ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32467,14 +34452,20 @@ - (void)testSendClusterKeypadInputReadAttributeClusterRevisionWithCompletionHand - (void)testSendClusterLevelControlReadAttributeCurrentLevelWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"LevelControlReadAttributeCurrentLevelWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"LevelControlReadAttributeCurrentLevelWithCompletionHandler"]; + [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"LevelControl CurrentLevel Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32486,14 +34477,20 @@ - (void)testSendClusterLevelControlReadAttributeCurrentLevelWithCompletionHandle - (void)testSendClusterLevelControlReadAttributeRemainingTimeWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"LevelControlReadAttributeRemainingTimeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"LevelControlReadAttributeRemainingTimeWithCompletionHandler"]; + [cluster readAttributeRemainingTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"LevelControl RemainingTime Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32505,13 +34502,19 @@ - (void)testSendClusterLevelControlReadAttributeRemainingTimeWithCompletionHandl - (void)testSendClusterLevelControlReadAttributeMinLevelWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlReadAttributeMinLevelWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlReadAttributeMinLevelWithCompletionHandler"]; + [cluster readAttributeMinLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"LevelControl MinLevel Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32523,13 +34526,19 @@ - (void)testSendClusterLevelControlReadAttributeMinLevelWithCompletionHandler - (void)testSendClusterLevelControlReadAttributeMaxLevelWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlReadAttributeMaxLevelWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlReadAttributeMaxLevelWithCompletionHandler"]; + [cluster readAttributeMaxLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"LevelControl MaxLevel Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32541,14 +34550,20 @@ - (void)testSendClusterLevelControlReadAttributeMaxLevelWithCompletionHandler - (void)testSendClusterLevelControlReadAttributeCurrentFrequencyWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"LevelControlReadAttributeCurrentFrequencyWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"LevelControlReadAttributeCurrentFrequencyWithCompletionHandler"]; + [cluster readAttributeCurrentFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"LevelControl CurrentFrequency Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32560,14 +34575,20 @@ - (void)testSendClusterLevelControlReadAttributeCurrentFrequencyWithCompletionHa - (void)testSendClusterLevelControlReadAttributeMinFrequencyWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"LevelControlReadAttributeMinFrequencyWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"LevelControlReadAttributeMinFrequencyWithCompletionHandler"]; + [cluster readAttributeMinFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"LevelControl MinFrequency Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32579,14 +34600,20 @@ - (void)testSendClusterLevelControlReadAttributeMinFrequencyWithCompletionHandle - (void)testSendClusterLevelControlReadAttributeMaxFrequencyWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"LevelControlReadAttributeMaxFrequencyWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"LevelControlReadAttributeMaxFrequencyWithCompletionHandler"]; + [cluster readAttributeMaxFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"LevelControl MaxFrequency Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32598,13 +34625,19 @@ - (void)testSendClusterLevelControlReadAttributeMaxFrequencyWithCompletionHandle - (void)testSendClusterLevelControlReadAttributeOptionsWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlReadAttributeOptionsWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlReadAttributeOptionsWithCompletionHandler"]; + [cluster readAttributeOptionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"LevelControl Options Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32616,13 +34649,19 @@ - (void)testSendClusterLevelControlReadAttributeOptionsWithCompletionHandler - (void)testSendClusterLevelControlWriteAttributeOptionsWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlWriteAttributeOptionsWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlWriteAttributeOptionsWithValue"]; + NSNumber * _Nonnull value = @(0x00); [cluster writeAttributeOptionsWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -32635,14 +34674,20 @@ - (void)testSendClusterLevelControlWriteAttributeOptionsWithValue } - (void)testSendClusterLevelControlReadAttributeOnOffTransitionTimeWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"LevelControlReadAttributeOnOffTransitionTimeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"LevelControlReadAttributeOnOffTransitionTimeWithCompletionHandler"]; + [cluster readAttributeOnOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"LevelControl OnOffTransitionTime Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32654,13 +34699,19 @@ - (void)testSendClusterLevelControlReadAttributeOnOffTransitionTimeWithCompletio - (void)testSendClusterLevelControlWriteAttributeOnOffTransitionTimeWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlWriteAttributeOnOffTransitionTimeWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlWriteAttributeOnOffTransitionTimeWithValue"]; + NSNumber * _Nonnull value = @(0); [cluster writeAttributeOnOffTransitionTimeWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -32673,13 +34724,19 @@ - (void)testSendClusterLevelControlWriteAttributeOnOffTransitionTimeWithValue } - (void)testSendClusterLevelControlReadAttributeOnLevelWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlReadAttributeOnLevelWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlReadAttributeOnLevelWithCompletionHandler"]; + [cluster readAttributeOnLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"LevelControl OnLevel Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32691,13 +34748,19 @@ - (void)testSendClusterLevelControlReadAttributeOnLevelWithCompletionHandler - (void)testSendClusterLevelControlWriteAttributeOnLevelWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlWriteAttributeOnLevelWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlWriteAttributeOnLevelWithValue"]; + NSNumber * _Nullable value = @(0); [cluster writeAttributeOnLevelWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -32710,14 +34773,20 @@ - (void)testSendClusterLevelControlWriteAttributeOnLevelWithValue } - (void)testSendClusterLevelControlReadAttributeOnTransitionTimeWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"LevelControlReadAttributeOnTransitionTimeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"LevelControlReadAttributeOnTransitionTimeWithCompletionHandler"]; + [cluster readAttributeOnTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"LevelControl OnTransitionTime Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32729,13 +34798,19 @@ - (void)testSendClusterLevelControlReadAttributeOnTransitionTimeWithCompletionHa - (void)testSendClusterLevelControlWriteAttributeOnTransitionTimeWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlWriteAttributeOnTransitionTimeWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlWriteAttributeOnTransitionTimeWithValue"]; + NSNumber * _Nullable value = @(0); [cluster writeAttributeOnTransitionTimeWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -32748,14 +34823,20 @@ - (void)testSendClusterLevelControlWriteAttributeOnTransitionTimeWithValue } - (void)testSendClusterLevelControlReadAttributeOffTransitionTimeWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"LevelControlReadAttributeOffTransitionTimeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"LevelControlReadAttributeOffTransitionTimeWithCompletionHandler"]; + [cluster readAttributeOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"LevelControl OffTransitionTime Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32767,13 +34848,19 @@ - (void)testSendClusterLevelControlReadAttributeOffTransitionTimeWithCompletionH - (void)testSendClusterLevelControlWriteAttributeOffTransitionTimeWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlWriteAttributeOffTransitionTimeWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlWriteAttributeOffTransitionTimeWithValue"]; + NSNumber * _Nullable value = @(0); [cluster writeAttributeOffTransitionTimeWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -32786,14 +34873,20 @@ - (void)testSendClusterLevelControlWriteAttributeOffTransitionTimeWithValue } - (void)testSendClusterLevelControlReadAttributeDefaultMoveRateWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"LevelControlReadAttributeDefaultMoveRateWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"LevelControlReadAttributeDefaultMoveRateWithCompletionHandler"]; + [cluster readAttributeDefaultMoveRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"LevelControl DefaultMoveRate Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32805,13 +34898,19 @@ - (void)testSendClusterLevelControlReadAttributeDefaultMoveRateWithCompletionHan - (void)testSendClusterLevelControlWriteAttributeDefaultMoveRateWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlWriteAttributeDefaultMoveRateWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlWriteAttributeDefaultMoveRateWithValue"]; + NSNumber * _Nullable value = @(0); [cluster writeAttributeDefaultMoveRateWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -32824,14 +34923,20 @@ - (void)testSendClusterLevelControlWriteAttributeDefaultMoveRateWithValue } - (void)testSendClusterLevelControlReadAttributeStartUpCurrentLevelWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"LevelControlReadAttributeStartUpCurrentLevelWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"LevelControlReadAttributeStartUpCurrentLevelWithCompletionHandler"]; + [cluster readAttributeStartUpCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"LevelControl StartUpCurrentLevel Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32843,13 +34948,19 @@ - (void)testSendClusterLevelControlReadAttributeStartUpCurrentLevelWithCompletio - (void)testSendClusterLevelControlWriteAttributeStartUpCurrentLevelWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlWriteAttributeStartUpCurrentLevelWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlWriteAttributeStartUpCurrentLevelWithValue"]; + NSNumber * _Nonnull value = @(0); [cluster writeAttributeStartUpCurrentLevelWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -32862,14 +34973,20 @@ - (void)testSendClusterLevelControlWriteAttributeStartUpCurrentLevelWithValue } - (void)testSendClusterLevelControlReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"LevelControlReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"LevelControlReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"LevelControl ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32881,14 +34998,20 @@ - (void)testSendClusterLevelControlReadAttributeClusterRevisionWithCompletionHan - (void)testSendClusterLowPowerReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"LowPowerReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLowPower * cluster = [[CHIPLowPower alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"LowPowerReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"LowPower ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32900,14 +35023,20 @@ - (void)testSendClusterLowPowerReadAttributeClusterRevisionWithCompletionHandler - (void)testSendClusterMediaInputReadAttributeMediaInputListWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"MediaInputReadAttributeMediaInputListWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"MediaInputReadAttributeMediaInputListWithCompletionHandler"]; + [cluster readAttributeMediaInputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"MediaInput MediaInputList Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32919,14 +35048,20 @@ - (void)testSendClusterMediaInputReadAttributeMediaInputListWithCompletionHandle - (void)testSendClusterMediaInputReadAttributeCurrentMediaInputWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"MediaInputReadAttributeCurrentMediaInputWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"MediaInputReadAttributeCurrentMediaInputWithCompletionHandler"]; + [cluster readAttributeCurrentMediaInputWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"MediaInput CurrentMediaInput Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32938,14 +35073,20 @@ - (void)testSendClusterMediaInputReadAttributeCurrentMediaInputWithCompletionHan - (void)testSendClusterMediaInputReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"MediaInputReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"MediaInputReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"MediaInput ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32957,14 +35098,20 @@ - (void)testSendClusterMediaInputReadAttributeClusterRevisionWithCompletionHandl - (void)testSendClusterMediaPlaybackReadAttributePlaybackStateWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"MediaPlaybackReadAttributePlaybackStateWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"MediaPlaybackReadAttributePlaybackStateWithCompletionHandler"]; + [cluster readAttributePlaybackStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"MediaPlayback PlaybackState Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32976,13 +35123,19 @@ - (void)testSendClusterMediaPlaybackReadAttributePlaybackStateWithCompletionHand - (void)testSendClusterMediaPlaybackReadAttributeStartTimeWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"MediaPlaybackReadAttributeStartTimeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"MediaPlaybackReadAttributeStartTimeWithCompletionHandler"]; + [cluster readAttributeStartTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"MediaPlayback StartTime Error: %@", err); XCTAssertEqual(err.code, 0); @@ -32994,13 +35147,19 @@ - (void)testSendClusterMediaPlaybackReadAttributeStartTimeWithCompletionHandler - (void)testSendClusterMediaPlaybackReadAttributeDurationWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"MediaPlaybackReadAttributeDurationWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"MediaPlaybackReadAttributeDurationWithCompletionHandler"]; + [cluster readAttributeDurationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"MediaPlayback Duration Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33012,14 +35171,20 @@ - (void)testSendClusterMediaPlaybackReadAttributeDurationWithCompletionHandler - (void)testSendClusterMediaPlaybackReadAttributePositionUpdatedAtWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"MediaPlaybackReadAttributePositionUpdatedAtWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"MediaPlaybackReadAttributePositionUpdatedAtWithCompletionHandler"]; + [cluster readAttributePositionUpdatedAtWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"MediaPlayback PositionUpdatedAt Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33031,13 +35196,19 @@ - (void)testSendClusterMediaPlaybackReadAttributePositionUpdatedAtWithCompletion - (void)testSendClusterMediaPlaybackReadAttributePositionWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"MediaPlaybackReadAttributePositionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"MediaPlaybackReadAttributePositionWithCompletionHandler"]; + [cluster readAttributePositionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"MediaPlayback Position Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33049,14 +35220,20 @@ - (void)testSendClusterMediaPlaybackReadAttributePositionWithCompletionHandler - (void)testSendClusterMediaPlaybackReadAttributePlaybackSpeedWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"MediaPlaybackReadAttributePlaybackSpeedWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"MediaPlaybackReadAttributePlaybackSpeedWithCompletionHandler"]; + [cluster readAttributePlaybackSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"MediaPlayback PlaybackSpeed Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33068,14 +35245,20 @@ - (void)testSendClusterMediaPlaybackReadAttributePlaybackSpeedWithCompletionHand - (void)testSendClusterMediaPlaybackReadAttributeSeekRangeEndWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"MediaPlaybackReadAttributeSeekRangeEndWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"MediaPlaybackReadAttributeSeekRangeEndWithCompletionHandler"]; + [cluster readAttributeSeekRangeEndWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"MediaPlayback SeekRangeEnd Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33087,14 +35270,20 @@ - (void)testSendClusterMediaPlaybackReadAttributeSeekRangeEndWithCompletionHandl - (void)testSendClusterMediaPlaybackReadAttributeSeekRangeStartWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"MediaPlaybackReadAttributeSeekRangeStartWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"MediaPlaybackReadAttributeSeekRangeStartWithCompletionHandler"]; + [cluster readAttributeSeekRangeStartWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"MediaPlayback SeekRangeStart Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33106,14 +35295,20 @@ - (void)testSendClusterMediaPlaybackReadAttributeSeekRangeStartWithCompletionHan - (void)testSendClusterMediaPlaybackReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"MediaPlaybackReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"MediaPlaybackReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"MediaPlayback ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33125,13 +35320,19 @@ - (void)testSendClusterMediaPlaybackReadAttributeClusterRevisionWithCompletionHa - (void)testSendClusterModeSelectReadAttributeCurrentModeWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ModeSelectReadAttributeCurrentModeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ModeSelectReadAttributeCurrentModeWithCompletionHandler"]; + [cluster readAttributeCurrentModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ModeSelect CurrentMode Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33143,14 +35344,20 @@ - (void)testSendClusterModeSelectReadAttributeCurrentModeWithCompletionHandler - (void)testSendClusterModeSelectReadAttributeSupportedModesWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ModeSelectReadAttributeSupportedModesWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ModeSelectReadAttributeSupportedModesWithCompletionHandler"]; + [cluster readAttributeSupportedModesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"ModeSelect SupportedModes Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33162,13 +35369,19 @@ - (void)testSendClusterModeSelectReadAttributeSupportedModesWithCompletionHandle - (void)testSendClusterModeSelectReadAttributeOnModeWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ModeSelectReadAttributeOnModeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ModeSelectReadAttributeOnModeWithCompletionHandler"]; + [cluster readAttributeOnModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ModeSelect OnMode Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33180,13 +35393,19 @@ - (void)testSendClusterModeSelectReadAttributeOnModeWithCompletionHandler - (void)testSendClusterModeSelectWriteAttributeOnModeWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"ModeSelectWriteAttributeOnModeWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ModeSelectWriteAttributeOnModeWithValue"]; + NSNumber * _Nonnull value = @(0); [cluster writeAttributeOnModeWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -33199,13 +35418,19 @@ - (void)testSendClusterModeSelectWriteAttributeOnModeWithValue } - (void)testSendClusterModeSelectReadAttributeStartUpModeWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ModeSelectReadAttributeStartUpModeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ModeSelectReadAttributeStartUpModeWithCompletionHandler"]; + [cluster readAttributeStartUpModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ModeSelect StartUpMode Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33217,13 +35442,19 @@ - (void)testSendClusterModeSelectReadAttributeStartUpModeWithCompletionHandler - (void)testSendClusterModeSelectReadAttributeDescriptionWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ModeSelectReadAttributeDescriptionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ModeSelectReadAttributeDescriptionWithCompletionHandler"]; + [cluster readAttributeDescriptionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"ModeSelect Description Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33235,14 +35466,20 @@ - (void)testSendClusterModeSelectReadAttributeDescriptionWithCompletionHandler - (void)testSendClusterModeSelectReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ModeSelectReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPModeSelect * cluster = [[CHIPModeSelect alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ModeSelectReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ModeSelect ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33254,14 +35491,20 @@ - (void)testSendClusterModeSelectReadAttributeClusterRevisionWithCompletionHandl - (void)testSendClusterNetworkCommissioningReadAttributeFeatureMapWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"NetworkCommissioningReadAttributeFeatureMapWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"NetworkCommissioningReadAttributeFeatureMapWithCompletionHandler"]; + [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"NetworkCommissioning FeatureMap Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33273,14 +35516,20 @@ - (void)testSendClusterNetworkCommissioningReadAttributeFeatureMapWithCompletion - (void)testSendClusterNetworkCommissioningReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"NetworkCommissioningReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"NetworkCommissioningReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"NetworkCommissioning ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33292,14 +35541,20 @@ - (void)testSendClusterNetworkCommissioningReadAttributeClusterRevisionWithCompl - (void)testSendClusterOtaSoftwareUpdateProviderReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"OtaSoftwareUpdateProviderReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOtaSoftwareUpdateProvider * cluster = [[CHIPOtaSoftwareUpdateProvider alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"OtaSoftwareUpdateProviderReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"OtaSoftwareUpdateProvider ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33311,16 +35566,22 @@ - (void)testSendClusterOtaSoftwareUpdateProviderReadAttributeClusterRevisionWith - (void)testSendClusterOtaSoftwareUpdateRequestorReadAttributeDefaultOtaProviderWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"OtaSoftwareUpdateRequestorReadAttributeDefaultOtaProviderWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"OtaSoftwareUpdateRequestorReadAttributeDefaultOtaProviderWithCompletionHandler"]; + [cluster readAttributeDefaultOtaProviderWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"OtaSoftwareUpdateRequestor DefaultOtaProvider Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33332,16 +35593,22 @@ - (void)testSendClusterOtaSoftwareUpdateRequestorReadAttributeDefaultOtaProvider - (void)testSendClusterOtaSoftwareUpdateRequestorWriteAttributeDefaultOtaProviderWithValue { - XCTestExpectation * expectation = - [self expectationWithDescription:@"OtaSoftwareUpdateRequestorWriteAttributeDefaultOtaProviderWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"OtaSoftwareUpdateRequestorWriteAttributeDefaultOtaProviderWithValue"]; + NSData * _Nonnull value = [@"Test" dataUsingEncoding:NSUTF8StringEncoding]; [cluster writeAttributeDefaultOtaProviderWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -33354,16 +35621,22 @@ - (void)testSendClusterOtaSoftwareUpdateRequestorWriteAttributeDefaultOtaProvide } - (void)testSendClusterOtaSoftwareUpdateRequestorReadAttributeUpdatePossibleWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"OtaSoftwareUpdateRequestorReadAttributeUpdatePossibleWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"OtaSoftwareUpdateRequestorReadAttributeUpdatePossibleWithCompletionHandler"]; + [cluster readAttributeUpdatePossibleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"OtaSoftwareUpdateRequestor UpdatePossible Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33375,16 +35648,22 @@ - (void)testSendClusterOtaSoftwareUpdateRequestorReadAttributeUpdatePossibleWith - (void)testSendClusterOtaSoftwareUpdateRequestorReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"OtaSoftwareUpdateRequestorReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"OtaSoftwareUpdateRequestorReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"OtaSoftwareUpdateRequestor ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33396,14 +35675,20 @@ - (void)testSendClusterOtaSoftwareUpdateRequestorReadAttributeClusterRevisionWit - (void)testSendClusterOccupancySensingReadAttributeOccupancyWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"OccupancySensingReadAttributeOccupancyWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"OccupancySensingReadAttributeOccupancyWithCompletionHandler"]; + [cluster readAttributeOccupancyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"OccupancySensing Occupancy Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33415,14 +35700,20 @@ - (void)testSendClusterOccupancySensingReadAttributeOccupancyWithCompletionHandl - (void)testSendClusterOccupancySensingReadAttributeOccupancySensorTypeWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"OccupancySensingReadAttributeOccupancySensorTypeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"OccupancySensingReadAttributeOccupancySensorTypeWithCompletionHandler"]; + [cluster readAttributeOccupancySensorTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"OccupancySensing OccupancySensorType Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33434,14 +35725,20 @@ - (void)testSendClusterOccupancySensingReadAttributeOccupancySensorTypeWithCompl - (void)testSendClusterOccupancySensingReadAttributeOccupancySensorTypeBitmapWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"OccupancySensingReadAttributeOccupancySensorTypeBitmapWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"OccupancySensingReadAttributeOccupancySensorTypeBitmapWithCompletionHandler"]; + [cluster readAttributeOccupancySensorTypeBitmapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"OccupancySensing OccupancySensorTypeBitmap Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33453,14 +35750,20 @@ - (void)testSendClusterOccupancySensingReadAttributeOccupancySensorTypeBitmapWit - (void)testSendClusterOccupancySensingReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"OccupancySensingReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"OccupancySensingReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"OccupancySensing ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33472,13 +35775,19 @@ - (void)testSendClusterOccupancySensingReadAttributeClusterRevisionWithCompletio - (void)testSendClusterOnOffReadAttributeOnOffWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffReadAttributeOnOffWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffReadAttributeOnOffWithCompletionHandler"]; + [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"OnOff OnOff Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33490,14 +35799,20 @@ - (void)testSendClusterOnOffReadAttributeOnOffWithCompletionHandler - (void)testSendClusterOnOffReadAttributeGlobalSceneControlWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"OnOffReadAttributeGlobalSceneControlWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"OnOffReadAttributeGlobalSceneControlWithCompletionHandler"]; + [cluster readAttributeGlobalSceneControlWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"OnOff GlobalSceneControl Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33509,13 +35824,19 @@ - (void)testSendClusterOnOffReadAttributeGlobalSceneControlWithCompletionHandler - (void)testSendClusterOnOffReadAttributeOnTimeWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffReadAttributeOnTimeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffReadAttributeOnTimeWithCompletionHandler"]; + [cluster readAttributeOnTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"OnOff OnTime Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33527,13 +35848,19 @@ - (void)testSendClusterOnOffReadAttributeOnTimeWithCompletionHandler - (void)testSendClusterOnOffWriteAttributeOnTimeWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffWriteAttributeOnTimeWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffWriteAttributeOnTimeWithValue"]; + NSNumber * _Nonnull value = @(0); [cluster writeAttributeOnTimeWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -33546,13 +35873,19 @@ - (void)testSendClusterOnOffWriteAttributeOnTimeWithValue } - (void)testSendClusterOnOffReadAttributeOffWaitTimeWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffReadAttributeOffWaitTimeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffReadAttributeOffWaitTimeWithCompletionHandler"]; + [cluster readAttributeOffWaitTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"OnOff OffWaitTime Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33564,13 +35897,19 @@ - (void)testSendClusterOnOffReadAttributeOffWaitTimeWithCompletionHandler - (void)testSendClusterOnOffWriteAttributeOffWaitTimeWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffWriteAttributeOffWaitTimeWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffWriteAttributeOffWaitTimeWithValue"]; + NSNumber * _Nonnull value = @(0); [cluster writeAttributeOffWaitTimeWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -33583,13 +35922,19 @@ - (void)testSendClusterOnOffWriteAttributeOffWaitTimeWithValue } - (void)testSendClusterOnOffReadAttributeStartUpOnOffWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffReadAttributeStartUpOnOffWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffReadAttributeStartUpOnOffWithCompletionHandler"]; + [cluster readAttributeStartUpOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"OnOff StartUpOnOff Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33601,13 +35946,19 @@ - (void)testSendClusterOnOffReadAttributeStartUpOnOffWithCompletionHandler - (void)testSendClusterOnOffWriteAttributeStartUpOnOffWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffWriteAttributeStartUpOnOffWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffWriteAttributeStartUpOnOffWithValue"]; + NSNumber * _Nonnull value = @(0); [cluster writeAttributeStartUpOnOffWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -33620,13 +35971,19 @@ - (void)testSendClusterOnOffWriteAttributeStartUpOnOffWithValue } - (void)testSendClusterOnOffReadAttributeFeatureMapWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffReadAttributeFeatureMapWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffReadAttributeFeatureMapWithCompletionHandler"]; + [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"OnOff FeatureMap Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33638,13 +35995,19 @@ - (void)testSendClusterOnOffReadAttributeFeatureMapWithCompletionHandler - (void)testSendClusterOnOffReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"OnOff ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33656,14 +36019,20 @@ - (void)testSendClusterOnOffReadAttributeClusterRevisionWithCompletionHandler - (void)testSendClusterOnOffSwitchConfigurationReadAttributeSwitchTypeWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"OnOffSwitchConfigurationReadAttributeSwitchTypeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"OnOffSwitchConfigurationReadAttributeSwitchTypeWithCompletionHandler"]; + [cluster readAttributeSwitchTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"OnOffSwitchConfiguration SwitchType Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33675,14 +36044,20 @@ - (void)testSendClusterOnOffSwitchConfigurationReadAttributeSwitchTypeWithComple - (void)testSendClusterOnOffSwitchConfigurationReadAttributeSwitchActionsWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"OnOffSwitchConfigurationReadAttributeSwitchActionsWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"OnOffSwitchConfigurationReadAttributeSwitchActionsWithCompletionHandler"]; + [cluster readAttributeSwitchActionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"OnOffSwitchConfiguration SwitchActions Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33694,14 +36069,20 @@ - (void)testSendClusterOnOffSwitchConfigurationReadAttributeSwitchActionsWithCom - (void)testSendClusterOnOffSwitchConfigurationWriteAttributeSwitchActionsWithValue { - XCTestExpectation * expectation = - [self expectationWithDescription:@"OnOffSwitchConfigurationWriteAttributeSwitchActionsWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"OnOffSwitchConfigurationWriteAttributeSwitchActionsWithValue"]; + NSNumber * _Nonnull value = @(0x00); [cluster writeAttributeSwitchActionsWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -33714,14 +36095,20 @@ - (void)testSendClusterOnOffSwitchConfigurationWriteAttributeSwitchActionsWithVa } - (void)testSendClusterOnOffSwitchConfigurationReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"OnOffSwitchConfigurationReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"OnOffSwitchConfigurationReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"OnOffSwitchConfiguration ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33733,14 +36120,20 @@ - (void)testSendClusterOnOffSwitchConfigurationReadAttributeClusterRevisionWithC - (void)testSendClusterOperationalCredentialsReadAttributeFabricsListWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"OperationalCredentialsReadAttributeFabricsListWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"OperationalCredentialsReadAttributeFabricsListWithCompletionHandler"]; + [cluster readAttributeFabricsListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"OperationalCredentials FabricsList Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33752,14 +36145,20 @@ - (void)testSendClusterOperationalCredentialsReadAttributeFabricsListWithComplet - (void)testSendClusterOperationalCredentialsReadAttributeSupportedFabricsWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"OperationalCredentialsReadAttributeSupportedFabricsWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"OperationalCredentialsReadAttributeSupportedFabricsWithCompletionHandler"]; + [cluster readAttributeSupportedFabricsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"OperationalCredentials SupportedFabrics Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33771,14 +36170,20 @@ - (void)testSendClusterOperationalCredentialsReadAttributeSupportedFabricsWithCo - (void)testSendClusterOperationalCredentialsReadAttributeCommissionedFabricsWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"OperationalCredentialsReadAttributeCommissionedFabricsWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"OperationalCredentialsReadAttributeCommissionedFabricsWithCompletionHandler"]; + [cluster readAttributeCommissionedFabricsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"OperationalCredentials CommissionedFabrics Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33790,14 +36195,20 @@ - (void)testSendClusterOperationalCredentialsReadAttributeCommissionedFabricsWit - (void)testSendClusterOperationalCredentialsReadAttributeTrustedRootCertificatesWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"OperationalCredentialsReadAttributeTrustedRootCertificatesWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"OperationalCredentialsReadAttributeTrustedRootCertificatesWithCompletionHandler"]; + [cluster readAttributeTrustedRootCertificatesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"OperationalCredentials TrustedRootCertificates Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33809,14 +36220,20 @@ - (void)testSendClusterOperationalCredentialsReadAttributeTrustedRootCertificate - (void)testSendClusterOperationalCredentialsReadAttributeCurrentFabricIndexWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"OperationalCredentialsReadAttributeCurrentFabricIndexWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"OperationalCredentialsReadAttributeCurrentFabricIndexWithCompletionHandler"]; + [cluster readAttributeCurrentFabricIndexWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"OperationalCredentials CurrentFabricIndex Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33828,14 +36245,20 @@ - (void)testSendClusterOperationalCredentialsReadAttributeCurrentFabricIndexWith - (void)testSendClusterOperationalCredentialsReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"OperationalCredentialsReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"OperationalCredentialsReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"OperationalCredentials ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33847,13 +36270,19 @@ - (void)testSendClusterOperationalCredentialsReadAttributeClusterRevisionWithCom - (void)testSendClusterPowerSourceReadAttributeStatusWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"PowerSourceReadAttributeStatusWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"PowerSourceReadAttributeStatusWithCompletionHandler"]; + [cluster readAttributeStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PowerSource Status Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33865,13 +36294,19 @@ - (void)testSendClusterPowerSourceReadAttributeStatusWithCompletionHandler - (void)testSendClusterPowerSourceReadAttributeOrderWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"PowerSourceReadAttributeOrderWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"PowerSourceReadAttributeOrderWithCompletionHandler"]; + [cluster readAttributeOrderWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PowerSource Order Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33883,13 +36318,19 @@ - (void)testSendClusterPowerSourceReadAttributeOrderWithCompletionHandler - (void)testSendClusterPowerSourceReadAttributeDescriptionWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"PowerSourceReadAttributeDescriptionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"PowerSourceReadAttributeDescriptionWithCompletionHandler"]; + [cluster readAttributeDescriptionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"PowerSource Description Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33901,14 +36342,20 @@ - (void)testSendClusterPowerSourceReadAttributeDescriptionWithCompletionHandler - (void)testSendClusterPowerSourceReadAttributeBatteryVoltageWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PowerSourceReadAttributeBatteryVoltageWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PowerSourceReadAttributeBatteryVoltageWithCompletionHandler"]; + [cluster readAttributeBatteryVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PowerSource BatteryVoltage Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33920,14 +36367,20 @@ - (void)testSendClusterPowerSourceReadAttributeBatteryVoltageWithCompletionHandl - (void)testSendClusterPowerSourceReadAttributeBatteryPercentRemainingWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PowerSourceReadAttributeBatteryPercentRemainingWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PowerSourceReadAttributeBatteryPercentRemainingWithCompletionHandler"]; + [cluster readAttributeBatteryPercentRemainingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PowerSource BatteryPercentRemaining Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33939,14 +36392,20 @@ - (void)testSendClusterPowerSourceReadAttributeBatteryPercentRemainingWithComple - (void)testSendClusterPowerSourceReadAttributeBatteryTimeRemainingWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PowerSourceReadAttributeBatteryTimeRemainingWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PowerSourceReadAttributeBatteryTimeRemainingWithCompletionHandler"]; + [cluster readAttributeBatteryTimeRemainingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PowerSource BatteryTimeRemaining Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33958,14 +36417,20 @@ - (void)testSendClusterPowerSourceReadAttributeBatteryTimeRemainingWithCompletio - (void)testSendClusterPowerSourceReadAttributeBatteryChargeLevelWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PowerSourceReadAttributeBatteryChargeLevelWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PowerSourceReadAttributeBatteryChargeLevelWithCompletionHandler"]; + [cluster readAttributeBatteryChargeLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PowerSource BatteryChargeLevel Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33977,14 +36442,20 @@ - (void)testSendClusterPowerSourceReadAttributeBatteryChargeLevelWithCompletionH - (void)testSendClusterPowerSourceReadAttributeActiveBatteryFaultsWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PowerSourceReadAttributeActiveBatteryFaultsWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PowerSourceReadAttributeActiveBatteryFaultsWithCompletionHandler"]; + [cluster readAttributeActiveBatteryFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"PowerSource ActiveBatteryFaults Error: %@", err); XCTAssertEqual(err.code, 0); @@ -33996,14 +36467,20 @@ - (void)testSendClusterPowerSourceReadAttributeActiveBatteryFaultsWithCompletion - (void)testSendClusterPowerSourceReadAttributeBatteryChargeStateWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PowerSourceReadAttributeBatteryChargeStateWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PowerSourceReadAttributeBatteryChargeStateWithCompletionHandler"]; + [cluster readAttributeBatteryChargeStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PowerSource BatteryChargeState Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34015,13 +36492,19 @@ - (void)testSendClusterPowerSourceReadAttributeBatteryChargeStateWithCompletionH - (void)testSendClusterPowerSourceReadAttributeFeatureMapWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"PowerSourceReadAttributeFeatureMapWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"PowerSourceReadAttributeFeatureMapWithCompletionHandler"]; + [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PowerSource FeatureMap Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34033,14 +36516,20 @@ - (void)testSendClusterPowerSourceReadAttributeFeatureMapWithCompletionHandler - (void)testSendClusterPowerSourceReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PowerSourceReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PowerSourceReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PowerSource ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34052,14 +36541,20 @@ - (void)testSendClusterPowerSourceReadAttributeClusterRevisionWithCompletionHand - (void)testSendClusterPressureMeasurementReadAttributeMeasuredValueWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PressureMeasurementReadAttributeMeasuredValueWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PressureMeasurementReadAttributeMeasuredValueWithCompletionHandler"]; + [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PressureMeasurement MeasuredValue Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34071,14 +36566,20 @@ - (void)testSendClusterPressureMeasurementReadAttributeMeasuredValueWithCompleti - (void)testSendClusterPressureMeasurementReadAttributeMinMeasuredValueWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PressureMeasurementReadAttributeMinMeasuredValueWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PressureMeasurementReadAttributeMinMeasuredValueWithCompletionHandler"]; + [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PressureMeasurement MinMeasuredValue Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34090,14 +36591,20 @@ - (void)testSendClusterPressureMeasurementReadAttributeMinMeasuredValueWithCompl - (void)testSendClusterPressureMeasurementReadAttributeMaxMeasuredValueWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PressureMeasurementReadAttributeMaxMeasuredValueWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PressureMeasurementReadAttributeMaxMeasuredValueWithCompletionHandler"]; + [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PressureMeasurement MaxMeasuredValue Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34109,14 +36616,20 @@ - (void)testSendClusterPressureMeasurementReadAttributeMaxMeasuredValueWithCompl - (void)testSendClusterPressureMeasurementReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PressureMeasurementReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PressureMeasurementReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PressureMeasurement ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34128,16 +36641,22 @@ - (void)testSendClusterPressureMeasurementReadAttributeClusterRevisionWithComple - (void)testSendClusterPumpConfigurationAndControlReadAttributeMaxPressureWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMaxPressureWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMaxPressureWithCompletionHandler"]; + [cluster readAttributeMaxPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl MaxPressure Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34149,16 +36668,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeMaxPressureWithCo - (void)testSendClusterPumpConfigurationAndControlReadAttributeMaxSpeedWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMaxSpeedWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMaxSpeedWithCompletionHandler"]; + [cluster readAttributeMaxSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl MaxSpeed Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34170,16 +36695,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeMaxSpeedWithCompl - (void)testSendClusterPumpConfigurationAndControlReadAttributeMaxFlowWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMaxFlowWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMaxFlowWithCompletionHandler"]; + [cluster readAttributeMaxFlowWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl MaxFlow Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34191,16 +36722,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeMaxFlowWithComple - (void)testSendClusterPumpConfigurationAndControlReadAttributeMinConstPressureWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMinConstPressureWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMinConstPressureWithCompletionHandler"]; + [cluster readAttributeMinConstPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl MinConstPressure Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34212,16 +36749,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeMinConstPressureW - (void)testSendClusterPumpConfigurationAndControlReadAttributeMaxConstPressureWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMaxConstPressureWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMaxConstPressureWithCompletionHandler"]; + [cluster readAttributeMaxConstPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl MaxConstPressure Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34233,16 +36776,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeMaxConstPressureW - (void)testSendClusterPumpConfigurationAndControlReadAttributeMinCompPressureWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMinCompPressureWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMinCompPressureWithCompletionHandler"]; + [cluster readAttributeMinCompPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl MinCompPressure Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34254,16 +36803,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeMinCompPressureWi - (void)testSendClusterPumpConfigurationAndControlReadAttributeMaxCompPressureWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMaxCompPressureWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMaxCompPressureWithCompletionHandler"]; + [cluster readAttributeMaxCompPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl MaxCompPressure Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34275,16 +36830,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeMaxCompPressureWi - (void)testSendClusterPumpConfigurationAndControlReadAttributeMinConstSpeedWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMinConstSpeedWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMinConstSpeedWithCompletionHandler"]; + [cluster readAttributeMinConstSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl MinConstSpeed Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34296,16 +36857,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeMinConstSpeedWith - (void)testSendClusterPumpConfigurationAndControlReadAttributeMaxConstSpeedWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMaxConstSpeedWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMaxConstSpeedWithCompletionHandler"]; + [cluster readAttributeMaxConstSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl MaxConstSpeed Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34317,16 +36884,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeMaxConstSpeedWith - (void)testSendClusterPumpConfigurationAndControlReadAttributeMinConstFlowWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMinConstFlowWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMinConstFlowWithCompletionHandler"]; + [cluster readAttributeMinConstFlowWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl MinConstFlow Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34338,16 +36911,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeMinConstFlowWithC - (void)testSendClusterPumpConfigurationAndControlReadAttributeMaxConstFlowWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMaxConstFlowWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMaxConstFlowWithCompletionHandler"]; + [cluster readAttributeMaxConstFlowWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl MaxConstFlow Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34359,16 +36938,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeMaxConstFlowWithC - (void)testSendClusterPumpConfigurationAndControlReadAttributeMinConstTempWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMinConstTempWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMinConstTempWithCompletionHandler"]; + [cluster readAttributeMinConstTempWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl MinConstTemp Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34380,16 +36965,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeMinConstTempWithC - (void)testSendClusterPumpConfigurationAndControlReadAttributeMaxConstTempWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMaxConstTempWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMaxConstTempWithCompletionHandler"]; + [cluster readAttributeMaxConstTempWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl MaxConstTemp Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34401,16 +36992,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeMaxConstTempWithC - (void)testSendClusterPumpConfigurationAndControlReadAttributePumpStatusWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributePumpStatusWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributePumpStatusWithCompletionHandler"]; + [cluster readAttributePumpStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl PumpStatus Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34422,16 +37019,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributePumpStatusWithCom - (void)testSendClusterPumpConfigurationAndControlReadAttributeEffectiveOperationModeWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeEffectiveOperationModeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeEffectiveOperationModeWithCompletionHandler"]; + [cluster readAttributeEffectiveOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl EffectiveOperationMode Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34443,16 +37046,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeEffectiveOperatio - (void)testSendClusterPumpConfigurationAndControlReadAttributeEffectiveControlModeWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeEffectiveControlModeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeEffectiveControlModeWithCompletionHandler"]; + [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl EffectiveControlMode Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34464,16 +37073,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeEffectiveControlM - (void)testSendClusterPumpConfigurationAndControlReadAttributeCapacityWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeCapacityWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeCapacityWithCompletionHandler"]; + [cluster readAttributeCapacityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl Capacity Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34485,16 +37100,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeCapacityWithCompl - (void)testSendClusterPumpConfigurationAndControlReadAttributeSpeedWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeSpeedWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeSpeedWithCompletionHandler"]; + [cluster readAttributeSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl Speed Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34506,16 +37127,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeSpeedWithCompleti - (void)testSendClusterPumpConfigurationAndControlReadAttributeLifetimeRunningHoursWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeLifetimeRunningHoursWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeLifetimeRunningHoursWithCompletionHandler"]; + [cluster readAttributeLifetimeRunningHoursWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl LifetimeRunningHours Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34527,16 +37154,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeLifetimeRunningHo - (void)testSendClusterPumpConfigurationAndControlWriteAttributeLifetimeRunningHoursWithValue { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlWriteAttributeLifetimeRunningHoursWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlWriteAttributeLifetimeRunningHoursWithValue"]; + NSNumber * _Nullable value = @(0); [cluster writeAttributeLifetimeRunningHoursWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -34549,16 +37182,22 @@ - (void)testSendClusterPumpConfigurationAndControlWriteAttributeLifetimeRunningH } - (void)testSendClusterPumpConfigurationAndControlReadAttributePowerWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributePowerWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributePowerWithCompletionHandler"]; + [cluster readAttributePowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl Power Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34570,16 +37209,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributePowerWithCompleti - (void)testSendClusterPumpConfigurationAndControlReadAttributeLifetimeEnergyConsumedWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeLifetimeEnergyConsumedWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeLifetimeEnergyConsumedWithCompletionHandler"]; + [cluster readAttributeLifetimeEnergyConsumedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl LifetimeEnergyConsumed Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34591,16 +37236,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeLifetimeEnergyCon - (void)testSendClusterPumpConfigurationAndControlWriteAttributeLifetimeEnergyConsumedWithValue { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlWriteAttributeLifetimeEnergyConsumedWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlWriteAttributeLifetimeEnergyConsumedWithValue"]; + NSNumber * _Nullable value = @(0); [cluster writeAttributeLifetimeEnergyConsumedWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -34613,16 +37264,22 @@ - (void)testSendClusterPumpConfigurationAndControlWriteAttributeLifetimeEnergyCo } - (void)testSendClusterPumpConfigurationAndControlReadAttributeOperationModeWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeOperationModeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeOperationModeWithCompletionHandler"]; + [cluster readAttributeOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl OperationMode Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34634,16 +37291,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeOperationModeWith - (void)testSendClusterPumpConfigurationAndControlWriteAttributeOperationModeWithValue { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlWriteAttributeOperationModeWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlWriteAttributeOperationModeWithValue"]; + NSNumber * _Nonnull value = @(0x00); [cluster writeAttributeOperationModeWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -34656,16 +37319,22 @@ - (void)testSendClusterPumpConfigurationAndControlWriteAttributeOperationModeWit } - (void)testSendClusterPumpConfigurationAndControlReadAttributeControlModeWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeControlModeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeControlModeWithCompletionHandler"]; + [cluster readAttributeControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl ControlMode Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34677,16 +37346,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeControlModeWithCo - (void)testSendClusterPumpConfigurationAndControlWriteAttributeControlModeWithValue { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlWriteAttributeControlModeWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlWriteAttributeControlModeWithValue"]; + NSNumber * _Nonnull value = @(0x00); [cluster writeAttributeControlModeWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -34699,16 +37374,22 @@ - (void)testSendClusterPumpConfigurationAndControlWriteAttributeControlModeWithV } - (void)testSendClusterPumpConfigurationAndControlReadAttributeAlarmMaskWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeAlarmMaskWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeAlarmMaskWithCompletionHandler"]; + [cluster readAttributeAlarmMaskWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl AlarmMask Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34720,16 +37401,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeAlarmMaskWithComp - (void)testSendClusterPumpConfigurationAndControlReadAttributeFeatureMapWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeFeatureMapWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeFeatureMapWithCompletionHandler"]; + [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl FeatureMap Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34741,16 +37428,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeFeatureMapWithCom - (void)testSendClusterPumpConfigurationAndControlReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"PumpConfigurationAndControl ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34762,16 +37455,22 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeClusterRevisionWi - (void)testSendClusterRelativeHumidityMeasurementReadAttributeMeasuredValueWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"RelativeHumidityMeasurementReadAttributeMeasuredValueWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"RelativeHumidityMeasurementReadAttributeMeasuredValueWithCompletionHandler"]; + [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"RelativeHumidityMeasurement MeasuredValue Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34783,16 +37482,22 @@ - (void)testSendClusterRelativeHumidityMeasurementReadAttributeMeasuredValueWith - (void)testSendClusterRelativeHumidityMeasurementReadAttributeMinMeasuredValueWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"RelativeHumidityMeasurementReadAttributeMinMeasuredValueWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"RelativeHumidityMeasurementReadAttributeMinMeasuredValueWithCompletionHandler"]; + [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"RelativeHumidityMeasurement MinMeasuredValue Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34804,16 +37509,22 @@ - (void)testSendClusterRelativeHumidityMeasurementReadAttributeMinMeasuredValueW - (void)testSendClusterRelativeHumidityMeasurementReadAttributeMaxMeasuredValueWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"RelativeHumidityMeasurementReadAttributeMaxMeasuredValueWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"RelativeHumidityMeasurementReadAttributeMaxMeasuredValueWithCompletionHandler"]; + [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"RelativeHumidityMeasurement MaxMeasuredValue Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34825,16 +37536,22 @@ - (void)testSendClusterRelativeHumidityMeasurementReadAttributeMaxMeasuredValueW - (void)testSendClusterRelativeHumidityMeasurementReadAttributeToleranceWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"RelativeHumidityMeasurementReadAttributeToleranceWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"RelativeHumidityMeasurementReadAttributeToleranceWithCompletionHandler"]; + [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"RelativeHumidityMeasurement Tolerance Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34846,16 +37563,22 @@ - (void)testSendClusterRelativeHumidityMeasurementReadAttributeToleranceWithComp - (void)testSendClusterRelativeHumidityMeasurementReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"RelativeHumidityMeasurementReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"RelativeHumidityMeasurementReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"RelativeHumidityMeasurement ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34867,13 +37590,19 @@ - (void)testSendClusterRelativeHumidityMeasurementReadAttributeClusterRevisionWi - (void)testSendClusterScenesReadAttributeSceneCountWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ScenesReadAttributeSceneCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ScenesReadAttributeSceneCountWithCompletionHandler"]; + [cluster readAttributeSceneCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Scenes SceneCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34885,13 +37614,19 @@ - (void)testSendClusterScenesReadAttributeSceneCountWithCompletionHandler - (void)testSendClusterScenesReadAttributeCurrentSceneWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ScenesReadAttributeCurrentSceneWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ScenesReadAttributeCurrentSceneWithCompletionHandler"]; + [cluster readAttributeCurrentSceneWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Scenes CurrentScene Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34903,13 +37638,19 @@ - (void)testSendClusterScenesReadAttributeCurrentSceneWithCompletionHandler - (void)testSendClusterScenesReadAttributeCurrentGroupWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ScenesReadAttributeCurrentGroupWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ScenesReadAttributeCurrentGroupWithCompletionHandler"]; + [cluster readAttributeCurrentGroupWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Scenes CurrentGroup Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34921,13 +37662,19 @@ - (void)testSendClusterScenesReadAttributeCurrentGroupWithCompletionHandler - (void)testSendClusterScenesReadAttributeSceneValidWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ScenesReadAttributeSceneValidWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ScenesReadAttributeSceneValidWithCompletionHandler"]; + [cluster readAttributeSceneValidWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Scenes SceneValid Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34939,13 +37686,19 @@ - (void)testSendClusterScenesReadAttributeSceneValidWithCompletionHandler - (void)testSendClusterScenesReadAttributeNameSupportWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ScenesReadAttributeNameSupportWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ScenesReadAttributeNameSupportWithCompletionHandler"]; + [cluster readAttributeNameSupportWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Scenes NameSupport Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34957,13 +37710,19 @@ - (void)testSendClusterScenesReadAttributeNameSupportWithCompletionHandler - (void)testSendClusterScenesReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"ScenesReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"ScenesReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Scenes ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34975,14 +37734,20 @@ - (void)testSendClusterScenesReadAttributeClusterRevisionWithCompletionHandler - (void)testSendClusterSoftwareDiagnosticsReadAttributeThreadMetricsWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"SoftwareDiagnosticsReadAttributeThreadMetricsWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"SoftwareDiagnosticsReadAttributeThreadMetricsWithCompletionHandler"]; + [cluster readAttributeThreadMetricsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"SoftwareDiagnostics ThreadMetrics Error: %@", err); XCTAssertEqual(err.code, 0); @@ -34994,14 +37759,20 @@ - (void)testSendClusterSoftwareDiagnosticsReadAttributeThreadMetricsWithCompleti - (void)testSendClusterSoftwareDiagnosticsReadAttributeCurrentHeapFreeWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"SoftwareDiagnosticsReadAttributeCurrentHeapFreeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"SoftwareDiagnosticsReadAttributeCurrentHeapFreeWithCompletionHandler"]; + [cluster readAttributeCurrentHeapFreeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"SoftwareDiagnostics CurrentHeapFree Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35013,14 +37784,20 @@ - (void)testSendClusterSoftwareDiagnosticsReadAttributeCurrentHeapFreeWithComple - (void)testSendClusterSoftwareDiagnosticsReadAttributeCurrentHeapUsedWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"SoftwareDiagnosticsReadAttributeCurrentHeapUsedWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"SoftwareDiagnosticsReadAttributeCurrentHeapUsedWithCompletionHandler"]; + [cluster readAttributeCurrentHeapUsedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"SoftwareDiagnostics CurrentHeapUsed Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35032,14 +37809,20 @@ - (void)testSendClusterSoftwareDiagnosticsReadAttributeCurrentHeapUsedWithComple - (void)testSendClusterSoftwareDiagnosticsReadAttributeCurrentHeapHighWatermarkWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"SoftwareDiagnosticsReadAttributeCurrentHeapHighWatermarkWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"SoftwareDiagnosticsReadAttributeCurrentHeapHighWatermarkWithCompletionHandler"]; + [cluster readAttributeCurrentHeapHighWatermarkWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"SoftwareDiagnostics CurrentHeapHighWatermark Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35051,14 +37834,20 @@ - (void)testSendClusterSoftwareDiagnosticsReadAttributeCurrentHeapHighWatermarkW - (void)testSendClusterSoftwareDiagnosticsReadAttributeFeatureMapWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"SoftwareDiagnosticsReadAttributeFeatureMapWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"SoftwareDiagnosticsReadAttributeFeatureMapWithCompletionHandler"]; + [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"SoftwareDiagnostics FeatureMap Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35070,14 +37859,20 @@ - (void)testSendClusterSoftwareDiagnosticsReadAttributeFeatureMapWithCompletionH - (void)testSendClusterSoftwareDiagnosticsReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"SoftwareDiagnosticsReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"SoftwareDiagnosticsReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"SoftwareDiagnostics ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35089,14 +37884,20 @@ - (void)testSendClusterSoftwareDiagnosticsReadAttributeClusterRevisionWithComple - (void)testSendClusterSwitchReadAttributeNumberOfPositionsWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"SwitchReadAttributeNumberOfPositionsWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"SwitchReadAttributeNumberOfPositionsWithCompletionHandler"]; + [cluster readAttributeNumberOfPositionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Switch NumberOfPositions Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35108,13 +37909,19 @@ - (void)testSendClusterSwitchReadAttributeNumberOfPositionsWithCompletionHandler - (void)testSendClusterSwitchReadAttributeCurrentPositionWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"SwitchReadAttributeCurrentPositionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"SwitchReadAttributeCurrentPositionWithCompletionHandler"]; + [cluster readAttributeCurrentPositionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Switch CurrentPosition Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35126,13 +37933,19 @@ - (void)testSendClusterSwitchReadAttributeCurrentPositionWithCompletionHandler - (void)testSendClusterSwitchReadAttributeMultiPressMaxWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"SwitchReadAttributeMultiPressMaxWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"SwitchReadAttributeMultiPressMaxWithCompletionHandler"]; + [cluster readAttributeMultiPressMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Switch MultiPressMax Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35144,13 +37957,19 @@ - (void)testSendClusterSwitchReadAttributeMultiPressMaxWithCompletionHandler - (void)testSendClusterSwitchReadAttributeFeatureMapWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"SwitchReadAttributeFeatureMapWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"SwitchReadAttributeFeatureMapWithCompletionHandler"]; + [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Switch FeatureMap Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35162,13 +37981,19 @@ - (void)testSendClusterSwitchReadAttributeFeatureMapWithCompletionHandler - (void)testSendClusterSwitchReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"SwitchReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"SwitchReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"Switch ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35180,13 +38005,19 @@ - (void)testSendClusterSwitchReadAttributeClusterRevisionWithCompletionHandler - (void)testSendClusterTvChannelReadAttributeTvChannelListWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"TvChannelReadAttributeTvChannelListWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTvChannel * cluster = [[CHIPTvChannel alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"TvChannelReadAttributeTvChannelListWithCompletionHandler"]; + [cluster readAttributeTvChannelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"TvChannel TvChannelList Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35198,14 +38029,20 @@ - (void)testSendClusterTvChannelReadAttributeTvChannelListWithCompletionHandler - (void)testSendClusterTvChannelReadAttributeTvChannelLineupWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"TvChannelReadAttributeTvChannelLineupWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTvChannel * cluster = [[CHIPTvChannel alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"TvChannelReadAttributeTvChannelLineupWithCompletionHandler"]; + [cluster readAttributeTvChannelLineupWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"TvChannel TvChannelLineup Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35217,14 +38054,20 @@ - (void)testSendClusterTvChannelReadAttributeTvChannelLineupWithCompletionHandle - (void)testSendClusterTvChannelReadAttributeCurrentTvChannelWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"TvChannelReadAttributeCurrentTvChannelWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTvChannel * cluster = [[CHIPTvChannel alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"TvChannelReadAttributeCurrentTvChannelWithCompletionHandler"]; + [cluster readAttributeCurrentTvChannelWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"TvChannel CurrentTvChannel Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35236,14 +38079,20 @@ - (void)testSendClusterTvChannelReadAttributeCurrentTvChannelWithCompletionHandl - (void)testSendClusterTvChannelReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"TvChannelReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTvChannel * cluster = [[CHIPTvChannel alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"TvChannelReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TvChannel ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35255,14 +38104,20 @@ - (void)testSendClusterTvChannelReadAttributeClusterRevisionWithCompletionHandle - (void)testSendClusterTargetNavigatorReadAttributeTargetNavigatorListWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"TargetNavigatorReadAttributeTargetNavigatorListWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTargetNavigator * cluster = [[CHIPTargetNavigator alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"TargetNavigatorReadAttributeTargetNavigatorListWithCompletionHandler"]; + [cluster readAttributeTargetNavigatorListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"TargetNavigator TargetNavigatorList Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35274,14 +38129,20 @@ - (void)testSendClusterTargetNavigatorReadAttributeTargetNavigatorListWithComple - (void)testSendClusterTargetNavigatorReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"TargetNavigatorReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTargetNavigator * cluster = [[CHIPTargetNavigator alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"TargetNavigatorReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TargetNavigator ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35293,14 +38154,20 @@ - (void)testSendClusterTargetNavigatorReadAttributeClusterRevisionWithCompletion - (void)testSendClusterTemperatureMeasurementReadAttributeMeasuredValueWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"TemperatureMeasurementReadAttributeMeasuredValueWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"TemperatureMeasurementReadAttributeMeasuredValueWithCompletionHandler"]; + [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TemperatureMeasurement MeasuredValue Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35312,14 +38179,20 @@ - (void)testSendClusterTemperatureMeasurementReadAttributeMeasuredValueWithCompl - (void)testSendClusterTemperatureMeasurementReadAttributeMinMeasuredValueWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"TemperatureMeasurementReadAttributeMinMeasuredValueWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"TemperatureMeasurementReadAttributeMinMeasuredValueWithCompletionHandler"]; + [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TemperatureMeasurement MinMeasuredValue Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35331,14 +38204,20 @@ - (void)testSendClusterTemperatureMeasurementReadAttributeMinMeasuredValueWithCo - (void)testSendClusterTemperatureMeasurementReadAttributeMaxMeasuredValueWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"TemperatureMeasurementReadAttributeMaxMeasuredValueWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"TemperatureMeasurementReadAttributeMaxMeasuredValueWithCompletionHandler"]; + [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TemperatureMeasurement MaxMeasuredValue Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35350,14 +38229,20 @@ - (void)testSendClusterTemperatureMeasurementReadAttributeMaxMeasuredValueWithCo - (void)testSendClusterTemperatureMeasurementReadAttributeToleranceWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"TemperatureMeasurementReadAttributeToleranceWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"TemperatureMeasurementReadAttributeToleranceWithCompletionHandler"]; + [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TemperatureMeasurement Tolerance Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35369,14 +38254,20 @@ - (void)testSendClusterTemperatureMeasurementReadAttributeToleranceWithCompletio - (void)testSendClusterTemperatureMeasurementReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"TemperatureMeasurementReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"TemperatureMeasurementReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"TemperatureMeasurement ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35388,16 +38279,22 @@ - (void)testSendClusterTemperatureMeasurementReadAttributeClusterRevisionWithCom - (void)testSendClusterThermostatUserInterfaceConfigurationReadAttributeTemperatureDisplayModeWithCompletionHandler { - XCTestExpectation * expectation = [self - expectationWithDescription:@"ThermostatUserInterfaceConfigurationReadAttributeTemperatureDisplayModeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostatUserInterfaceConfiguration * cluster = [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self + expectationWithDescription:@"ThermostatUserInterfaceConfigurationReadAttributeTemperatureDisplayModeWithCompletionHandler"]; + [cluster readAttributeTemperatureDisplayModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThermostatUserInterfaceConfiguration TemperatureDisplayMode Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35409,16 +38306,22 @@ - (void)testSendClusterThermostatUserInterfaceConfigurationReadAttributeTemperat - (void)testSendClusterThermostatUserInterfaceConfigurationWriteAttributeTemperatureDisplayModeWithValue { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThermostatUserInterfaceConfigurationWriteAttributeTemperatureDisplayModeWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostatUserInterfaceConfiguration * cluster = [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThermostatUserInterfaceConfigurationWriteAttributeTemperatureDisplayModeWithValue"]; + NSNumber * _Nonnull value = @(0x00); [cluster writeAttributeTemperatureDisplayModeWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -35431,16 +38334,22 @@ - (void)testSendClusterThermostatUserInterfaceConfigurationWriteAttributeTempera } - (void)testSendClusterThermostatUserInterfaceConfigurationReadAttributeKeypadLockoutWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThermostatUserInterfaceConfigurationReadAttributeKeypadLockoutWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostatUserInterfaceConfiguration * cluster = [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThermostatUserInterfaceConfigurationReadAttributeKeypadLockoutWithCompletionHandler"]; + [cluster readAttributeKeypadLockoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThermostatUserInterfaceConfiguration KeypadLockout Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35452,16 +38361,22 @@ - (void)testSendClusterThermostatUserInterfaceConfigurationReadAttributeKeypadLo - (void)testSendClusterThermostatUserInterfaceConfigurationWriteAttributeKeypadLockoutWithValue { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThermostatUserInterfaceConfigurationWriteAttributeKeypadLockoutWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostatUserInterfaceConfiguration * cluster = [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThermostatUserInterfaceConfigurationWriteAttributeKeypadLockoutWithValue"]; + NSNumber * _Nonnull value = @(0x00); [cluster writeAttributeKeypadLockoutWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -35474,17 +38389,23 @@ - (void)testSendClusterThermostatUserInterfaceConfigurationWriteAttributeKeypadL } - (void)testSendClusterThermostatUserInterfaceConfigurationReadAttributeScheduleProgrammingVisibilityWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription: - @"ThermostatUserInterfaceConfigurationReadAttributeScheduleProgrammingVisibilityWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostatUserInterfaceConfiguration * cluster = [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription: + @"ThermostatUserInterfaceConfigurationReadAttributeScheduleProgrammingVisibilityWithCompletionHandler"]; + [cluster readAttributeScheduleProgrammingVisibilityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThermostatUserInterfaceConfiguration ScheduleProgrammingVisibility Error: %@", err); @@ -35497,16 +38418,22 @@ - (void)testSendClusterThermostatUserInterfaceConfigurationReadAttributeSchedule - (void)testSendClusterThermostatUserInterfaceConfigurationWriteAttributeScheduleProgrammingVisibilityWithValue { - XCTestExpectation * expectation = [self - expectationWithDescription:@"ThermostatUserInterfaceConfigurationWriteAttributeScheduleProgrammingVisibilityWithValue"]; - - CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; + + CHIPDevice * device = GetConnectedDevice(); CHIPThermostatUserInterfaceConfiguration * cluster = [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self + expectationWithDescription:@"ThermostatUserInterfaceConfigurationWriteAttributeScheduleProgrammingVisibilityWithValue"]; + NSNumber * _Nonnull value = @(0x00); [cluster writeAttributeScheduleProgrammingVisibilityWithValue:value @@ -35522,16 +38449,22 @@ - (void)testSendClusterThermostatUserInterfaceConfigurationWriteAttributeSchedul } - (void)testSendClusterThermostatUserInterfaceConfigurationReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThermostatUserInterfaceConfigurationReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostatUserInterfaceConfiguration * cluster = [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThermostatUserInterfaceConfigurationReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThermostatUserInterfaceConfiguration ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35543,14 +38476,20 @@ - (void)testSendClusterThermostatUserInterfaceConfigurationReadAttributeClusterR - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeChannelWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeChannelWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeChannelWithCompletionHandler"]; + [cluster readAttributeChannelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics Channel Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35562,14 +38501,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeChannelWithCompletio - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRoutingRoleWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRoutingRoleWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRoutingRoleWithCompletionHandler"]; + [cluster readAttributeRoutingRoleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics RoutingRole Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35581,14 +38526,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRoutingRoleWithCompl - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeNetworkNameWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeNetworkNameWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeNetworkNameWithCompletionHandler"]; + [cluster readAttributeNetworkNameWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics NetworkName Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35600,14 +38551,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeNetworkNameWithCompl - (void)testSendClusterThreadNetworkDiagnosticsReadAttributePanIdWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributePanIdWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributePanIdWithCompletionHandler"]; + [cluster readAttributePanIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics PanId Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35619,14 +38576,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributePanIdWithCompletionH - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeExtendedPanIdWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeExtendedPanIdWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeExtendedPanIdWithCompletionHandler"]; + [cluster readAttributeExtendedPanIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics ExtendedPanId Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35638,14 +38601,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeExtendedPanIdWithCom - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeMeshLocalPrefixWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeMeshLocalPrefixWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeMeshLocalPrefixWithCompletionHandler"]; + [cluster readAttributeMeshLocalPrefixWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics MeshLocalPrefix Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35657,14 +38626,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeMeshLocalPrefixWithC - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeOverrunCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeOverrunCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeOverrunCountWithCompletionHandler"]; + [cluster readAttributeOverrunCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics OverrunCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35676,14 +38651,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeOverrunCountWithComp - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeNeighborTableListWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeNeighborTableListWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeNeighborTableListWithCompletionHandler"]; + [cluster readAttributeNeighborTableListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics NeighborTableList Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35695,14 +38676,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeNeighborTableListWit - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRouteTableListWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRouteTableListWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRouteTableListWithCompletionHandler"]; + [cluster readAttributeRouteTableListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics RouteTableList Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35714,14 +38701,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRouteTableListWithCo - (void)testSendClusterThreadNetworkDiagnosticsReadAttributePartitionIdWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributePartitionIdWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributePartitionIdWithCompletionHandler"]; + [cluster readAttributePartitionIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics PartitionId Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35733,14 +38726,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributePartitionIdWithCompl - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeWeightingWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeWeightingWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeWeightingWithCompletionHandler"]; + [cluster readAttributeWeightingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics Weighting Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35752,14 +38751,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeWeightingWithComplet - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeDataVersionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeDataVersionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeDataVersionWithCompletionHandler"]; + [cluster readAttributeDataVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics DataVersion Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35771,14 +38776,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeDataVersionWithCompl - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeStableDataVersionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeStableDataVersionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeStableDataVersionWithCompletionHandler"]; + [cluster readAttributeStableDataVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics StableDataVersion Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35790,14 +38801,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeStableDataVersionWit - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeLeaderRouterIdWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeLeaderRouterIdWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeLeaderRouterIdWithCompletionHandler"]; + [cluster readAttributeLeaderRouterIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics LeaderRouterId Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35809,14 +38826,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeLeaderRouterIdWithCo - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeDetachedRoleCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeDetachedRoleCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeDetachedRoleCountWithCompletionHandler"]; + [cluster readAttributeDetachedRoleCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics DetachedRoleCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35828,14 +38851,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeDetachedRoleCountWit - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeChildRoleCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeChildRoleCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeChildRoleCountWithCompletionHandler"]; + [cluster readAttributeChildRoleCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics ChildRoleCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35847,14 +38876,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeChildRoleCountWithCo - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRouterRoleCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRouterRoleCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRouterRoleCountWithCompletionHandler"]; + [cluster readAttributeRouterRoleCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics RouterRoleCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35866,14 +38901,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRouterRoleCountWithC - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeLeaderRoleCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeLeaderRoleCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeLeaderRoleCountWithCompletionHandler"]; + [cluster readAttributeLeaderRoleCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics LeaderRoleCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35885,14 +38926,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeLeaderRoleCountWithC - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeAttachAttemptCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeAttachAttemptCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeAttachAttemptCountWithCompletionHandler"]; + [cluster readAttributeAttachAttemptCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics AttachAttemptCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35904,14 +38951,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeAttachAttemptCountWi - (void)testSendClusterThreadNetworkDiagnosticsReadAttributePartitionIdChangeCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributePartitionIdChangeCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributePartitionIdChangeCountWithCompletionHandler"]; + [cluster readAttributePartitionIdChangeCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics PartitionIdChangeCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35923,14 +38976,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributePartitionIdChangeCou - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeBetterPartitionAttachAttemptCountWithCompletionHandler { - XCTestExpectation * expectation = [self - expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeBetterPartitionAttachAttemptCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self + expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeBetterPartitionAttachAttemptCountWithCompletionHandler"]; + [cluster readAttributeBetterPartitionAttachAttemptCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics BetterPartitionAttachAttemptCount Error: %@", err); @@ -35943,14 +39002,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeBetterPartitionAttac - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeParentChangeCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeParentChangeCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeParentChangeCountWithCompletionHandler"]; + [cluster readAttributeParentChangeCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics ParentChangeCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35962,14 +39027,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeParentChangeCountWit - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxTotalCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxTotalCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxTotalCountWithCompletionHandler"]; + [cluster readAttributeTxTotalCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics TxTotalCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -35981,14 +39052,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxTotalCountWithComp - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxUnicastCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxUnicastCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxUnicastCountWithCompletionHandler"]; + [cluster readAttributeTxUnicastCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics TxUnicastCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36000,14 +39077,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxUnicastCountWithCo - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxBroadcastCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxBroadcastCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxBroadcastCountWithCompletionHandler"]; + [cluster readAttributeTxBroadcastCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics TxBroadcastCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36019,14 +39102,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxBroadcastCountWith - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxAckRequestedCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxAckRequestedCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxAckRequestedCountWithCompletionHandler"]; + [cluster readAttributeTxAckRequestedCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics TxAckRequestedCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36038,14 +39127,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxAckRequestedCountW - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxAckedCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxAckedCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxAckedCountWithCompletionHandler"]; + [cluster readAttributeTxAckedCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics TxAckedCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36057,14 +39152,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxAckedCountWithComp - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxNoAckRequestedCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxNoAckRequestedCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxNoAckRequestedCountWithCompletionHandler"]; + [cluster readAttributeTxNoAckRequestedCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics TxNoAckRequestedCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36076,14 +39177,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxNoAckRequestedCoun - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxDataCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxDataCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxDataCountWithCompletionHandler"]; + [cluster readAttributeTxDataCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics TxDataCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36095,14 +39202,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxDataCountWithCompl - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxDataPollCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxDataPollCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxDataPollCountWithCompletionHandler"]; + [cluster readAttributeTxDataPollCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics TxDataPollCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36114,14 +39227,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxDataPollCountWithC - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxBeaconCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxBeaconCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxBeaconCountWithCompletionHandler"]; + [cluster readAttributeTxBeaconCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics TxBeaconCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36133,14 +39252,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxBeaconCountWithCom - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxBeaconRequestCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxBeaconRequestCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxBeaconRequestCountWithCompletionHandler"]; + [cluster readAttributeTxBeaconRequestCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics TxBeaconRequestCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36152,14 +39277,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxBeaconRequestCount - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxOtherCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxOtherCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxOtherCountWithCompletionHandler"]; + [cluster readAttributeTxOtherCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics TxOtherCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36171,14 +39302,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxOtherCountWithComp - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxRetryCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxRetryCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxRetryCountWithCompletionHandler"]; + [cluster readAttributeTxRetryCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics TxRetryCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36190,14 +39327,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxRetryCountWithComp - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxDirectMaxRetryExpiryCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxDirectMaxRetryExpiryCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxDirectMaxRetryExpiryCountWithCompletionHandler"]; + [cluster readAttributeTxDirectMaxRetryExpiryCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics TxDirectMaxRetryExpiryCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36209,14 +39352,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxDirectMaxRetryExpi - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxIndirectMaxRetryExpiryCountWithCompletionHandler { - XCTestExpectation * expectation = [self - expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxIndirectMaxRetryExpiryCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self + expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxIndirectMaxRetryExpiryCountWithCompletionHandler"]; + [cluster readAttributeTxIndirectMaxRetryExpiryCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics TxIndirectMaxRetryExpiryCount Error: %@", err); @@ -36229,14 +39378,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxIndirectMaxRetryEx - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxErrCcaCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxErrCcaCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxErrCcaCountWithCompletionHandler"]; + [cluster readAttributeTxErrCcaCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics TxErrCcaCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36248,14 +39403,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxErrCcaCountWithCom - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxErrAbortCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxErrAbortCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxErrAbortCountWithCompletionHandler"]; + [cluster readAttributeTxErrAbortCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics TxErrAbortCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36267,14 +39428,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxErrAbortCountWithC - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxErrBusyChannelCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxErrBusyChannelCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxErrBusyChannelCountWithCompletionHandler"]; + [cluster readAttributeTxErrBusyChannelCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics TxErrBusyChannelCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36286,14 +39453,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxErrBusyChannelCoun - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxTotalCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxTotalCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxTotalCountWithCompletionHandler"]; + [cluster readAttributeRxTotalCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics RxTotalCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36305,14 +39478,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxTotalCountWithComp - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxUnicastCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxUnicastCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxUnicastCountWithCompletionHandler"]; + [cluster readAttributeRxUnicastCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics RxUnicastCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36324,14 +39503,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxUnicastCountWithCo - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxBroadcastCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxBroadcastCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxBroadcastCountWithCompletionHandler"]; + [cluster readAttributeRxBroadcastCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics RxBroadcastCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36343,14 +39528,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxBroadcastCountWith - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxDataCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxDataCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxDataCountWithCompletionHandler"]; + [cluster readAttributeRxDataCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics RxDataCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36362,14 +39553,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxDataCountWithCompl - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxDataPollCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxDataPollCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxDataPollCountWithCompletionHandler"]; + [cluster readAttributeRxDataPollCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics RxDataPollCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36381,14 +39578,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxDataPollCountWithC - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxBeaconCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxBeaconCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxBeaconCountWithCompletionHandler"]; + [cluster readAttributeRxBeaconCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics RxBeaconCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36400,14 +39603,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxBeaconCountWithCom - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxBeaconRequestCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxBeaconRequestCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxBeaconRequestCountWithCompletionHandler"]; + [cluster readAttributeRxBeaconRequestCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics RxBeaconRequestCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36419,14 +39628,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxBeaconRequestCount - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxOtherCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxOtherCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxOtherCountWithCompletionHandler"]; + [cluster readAttributeRxOtherCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics RxOtherCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36438,14 +39653,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxOtherCountWithComp - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxAddressFilteredCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxAddressFilteredCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxAddressFilteredCountWithCompletionHandler"]; + [cluster readAttributeRxAddressFilteredCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics RxAddressFilteredCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36457,14 +39678,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxAddressFilteredCou - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxDestAddrFilteredCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxDestAddrFilteredCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxDestAddrFilteredCountWithCompletionHandler"]; + [cluster readAttributeRxDestAddrFilteredCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics RxDestAddrFilteredCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36476,14 +39703,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxDestAddrFilteredCo - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxDuplicatedCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxDuplicatedCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxDuplicatedCountWithCompletionHandler"]; + [cluster readAttributeRxDuplicatedCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics RxDuplicatedCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36495,14 +39728,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxDuplicatedCountWit - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxErrNoFrameCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxErrNoFrameCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxErrNoFrameCountWithCompletionHandler"]; + [cluster readAttributeRxErrNoFrameCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics RxErrNoFrameCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36514,14 +39753,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxErrNoFrameCountWit - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxErrUnknownNeighborCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxErrUnknownNeighborCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxErrUnknownNeighborCountWithCompletionHandler"]; + [cluster readAttributeRxErrUnknownNeighborCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics RxErrUnknownNeighborCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36533,14 +39778,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxErrUnknownNeighbor - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxErrInvalidSrcAddrCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxErrInvalidSrcAddrCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxErrInvalidSrcAddrCountWithCompletionHandler"]; + [cluster readAttributeRxErrInvalidSrcAddrCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics RxErrInvalidSrcAddrCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36552,14 +39803,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxErrInvalidSrcAddrC - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxErrSecCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxErrSecCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxErrSecCountWithCompletionHandler"]; + [cluster readAttributeRxErrSecCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics RxErrSecCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36571,14 +39828,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxErrSecCountWithCom - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxErrFcsCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxErrFcsCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxErrFcsCountWithCompletionHandler"]; + [cluster readAttributeRxErrFcsCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics RxErrFcsCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36590,14 +39853,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxErrFcsCountWithCom - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxErrOtherCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxErrOtherCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxErrOtherCountWithCompletionHandler"]; + [cluster readAttributeRxErrOtherCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics RxErrOtherCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36609,14 +39878,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxErrOtherCountWithC - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeActiveTimestampWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeActiveTimestampWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeActiveTimestampWithCompletionHandler"]; + [cluster readAttributeActiveTimestampWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics ActiveTimestamp Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36628,14 +39903,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeActiveTimestampWithC - (void)testSendClusterThreadNetworkDiagnosticsReadAttributePendingTimestampWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributePendingTimestampWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributePendingTimestampWithCompletionHandler"]; + [cluster readAttributePendingTimestampWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics PendingTimestamp Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36647,14 +39928,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributePendingTimestampWith - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeDelayWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeDelayWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeDelayWithCompletionHandler"]; + [cluster readAttributeDelayWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics Delay Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36666,14 +39953,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeDelayWithCompletionH - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeSecurityPolicyWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeSecurityPolicyWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeSecurityPolicyWithCompletionHandler"]; + [cluster readAttributeSecurityPolicyWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics SecurityPolicy Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36685,14 +39978,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeSecurityPolicyWithCo - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeChannelMaskWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeChannelMaskWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeChannelMaskWithCompletionHandler"]; + [cluster readAttributeChannelMaskWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics ChannelMask Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36704,14 +40003,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeChannelMaskWithCompl - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeOperationalDatasetComponentsWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeOperationalDatasetComponentsWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeOperationalDatasetComponentsWithCompletionHandler"]; + [cluster readAttributeOperationalDatasetComponentsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics OperationalDatasetComponents Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36723,14 +40028,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeOperationalDatasetCo - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeActiveNetworkFaultsListWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeActiveNetworkFaultsListWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeActiveNetworkFaultsListWithCompletionHandler"]; + [cluster readAttributeActiveNetworkFaultsListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics ActiveNetworkFaultsList Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36742,14 +40053,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeActiveNetworkFaultsL - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"ThreadNetworkDiagnostics ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36761,14 +40078,20 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeClusterRevisionWithC - (void)testSendClusterWakeOnLanReadAttributeWakeOnLanMacAddressWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WakeOnLanReadAttributeWakeOnLanMacAddressWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWakeOnLan * cluster = [[CHIPWakeOnLan alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WakeOnLanReadAttributeWakeOnLanMacAddressWithCompletionHandler"]; + [cluster readAttributeWakeOnLanMacAddressWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { NSLog(@"WakeOnLan WakeOnLanMacAddress Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36780,14 +40103,20 @@ - (void)testSendClusterWakeOnLanReadAttributeWakeOnLanMacAddressWithCompletionHa - (void)testSendClusterWakeOnLanReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WakeOnLanReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWakeOnLan * cluster = [[CHIPWakeOnLan alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WakeOnLanReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WakeOnLan ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36799,14 +40128,20 @@ - (void)testSendClusterWakeOnLanReadAttributeClusterRevisionWithCompletionHandle - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeBssidWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeBssidWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeBssidWithCompletionHandler"]; + [cluster readAttributeBssidWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { NSLog(@"WiFiNetworkDiagnostics Bssid Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36818,14 +40153,20 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeBssidWithCompletionHan - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeSecurityTypeWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeSecurityTypeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeSecurityTypeWithCompletionHandler"]; + [cluster readAttributeSecurityTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WiFiNetworkDiagnostics SecurityType Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36837,14 +40178,20 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeSecurityTypeWithComple - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeWiFiVersionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeWiFiVersionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeWiFiVersionWithCompletionHandler"]; + [cluster readAttributeWiFiVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WiFiNetworkDiagnostics WiFiVersion Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36856,14 +40203,20 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeWiFiVersionWithComplet - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeChannelNumberWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeChannelNumberWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeChannelNumberWithCompletionHandler"]; + [cluster readAttributeChannelNumberWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WiFiNetworkDiagnostics ChannelNumber Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36875,14 +40228,20 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeChannelNumberWithCompl - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeRssiWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeRssiWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeRssiWithCompletionHandler"]; + [cluster readAttributeRssiWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WiFiNetworkDiagnostics Rssi Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36894,14 +40253,20 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeRssiWithCompletionHand - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeBeaconLostCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeBeaconLostCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeBeaconLostCountWithCompletionHandler"]; + [cluster readAttributeBeaconLostCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WiFiNetworkDiagnostics BeaconLostCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36913,14 +40278,20 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeBeaconLostCountWithCom - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeBeaconRxCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeBeaconRxCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeBeaconRxCountWithCompletionHandler"]; + [cluster readAttributeBeaconRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WiFiNetworkDiagnostics BeaconRxCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36932,14 +40303,20 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeBeaconRxCountWithCompl - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributePacketMulticastRxCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributePacketMulticastRxCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributePacketMulticastRxCountWithCompletionHandler"]; + [cluster readAttributePacketMulticastRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WiFiNetworkDiagnostics PacketMulticastRxCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36951,14 +40328,20 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributePacketMulticastRxCount - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributePacketMulticastTxCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributePacketMulticastTxCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributePacketMulticastTxCountWithCompletionHandler"]; + [cluster readAttributePacketMulticastTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WiFiNetworkDiagnostics PacketMulticastTxCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36970,14 +40353,20 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributePacketMulticastTxCount - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributePacketUnicastRxCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributePacketUnicastRxCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributePacketUnicastRxCountWithCompletionHandler"]; + [cluster readAttributePacketUnicastRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WiFiNetworkDiagnostics PacketUnicastRxCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -36989,14 +40378,20 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributePacketUnicastRxCountWi - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributePacketUnicastTxCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributePacketUnicastTxCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributePacketUnicastTxCountWithCompletionHandler"]; + [cluster readAttributePacketUnicastTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WiFiNetworkDiagnostics PacketUnicastTxCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -37008,14 +40403,20 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributePacketUnicastTxCountWi - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeCurrentMaxRateWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeCurrentMaxRateWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeCurrentMaxRateWithCompletionHandler"]; + [cluster readAttributeCurrentMaxRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WiFiNetworkDiagnostics CurrentMaxRate Error: %@", err); XCTAssertEqual(err.code, 0); @@ -37027,14 +40428,20 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeCurrentMaxRateWithComp - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeOverrunCountWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeOverrunCountWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeOverrunCountWithCompletionHandler"]; + [cluster readAttributeOverrunCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WiFiNetworkDiagnostics OverrunCount Error: %@", err); XCTAssertEqual(err.code, 0); @@ -37046,14 +40453,20 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeOverrunCountWithComple - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeFeatureMapWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeFeatureMapWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeFeatureMapWithCompletionHandler"]; + [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WiFiNetworkDiagnostics FeatureMap Error: %@", err); XCTAssertEqual(err.code, 0); @@ -37065,14 +40478,20 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeFeatureMapWithCompleti - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WiFiNetworkDiagnostics ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); @@ -37084,13 +40503,19 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeClusterRevisionWithCom - (void)testSendClusterWindowCoveringReadAttributeTypeWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeTypeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeTypeWithCompletionHandler"]; + [cluster readAttributeTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WindowCovering Type Error: %@", err); XCTAssertEqual(err.code, 0); @@ -37102,14 +40527,20 @@ - (void)testSendClusterWindowCoveringReadAttributeTypeWithCompletionHandler - (void)testSendClusterWindowCoveringReadAttributeCurrentPositionLiftWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WindowCoveringReadAttributeCurrentPositionLiftWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WindowCoveringReadAttributeCurrentPositionLiftWithCompletionHandler"]; + [cluster readAttributeCurrentPositionLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WindowCovering CurrentPositionLift Error: %@", err); XCTAssertEqual(err.code, 0); @@ -37121,14 +40552,20 @@ - (void)testSendClusterWindowCoveringReadAttributeCurrentPositionLiftWithComplet - (void)testSendClusterWindowCoveringReadAttributeCurrentPositionTiltWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WindowCoveringReadAttributeCurrentPositionTiltWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WindowCoveringReadAttributeCurrentPositionTiltWithCompletionHandler"]; + [cluster readAttributeCurrentPositionTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WindowCovering CurrentPositionTilt Error: %@", err); XCTAssertEqual(err.code, 0); @@ -37140,14 +40577,20 @@ - (void)testSendClusterWindowCoveringReadAttributeCurrentPositionTiltWithComplet - (void)testSendClusterWindowCoveringReadAttributeConfigStatusWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WindowCoveringReadAttributeConfigStatusWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WindowCoveringReadAttributeConfigStatusWithCompletionHandler"]; + [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WindowCovering ConfigStatus Error: %@", err); XCTAssertEqual(err.code, 0); @@ -37159,14 +40602,20 @@ - (void)testSendClusterWindowCoveringReadAttributeConfigStatusWithCompletionHand - (void)testSendClusterWindowCoveringReadAttributeCurrentPositionLiftPercentageWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WindowCoveringReadAttributeCurrentPositionLiftPercentageWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WindowCoveringReadAttributeCurrentPositionLiftPercentageWithCompletionHandler"]; + [cluster readAttributeCurrentPositionLiftPercentageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WindowCovering CurrentPositionLiftPercentage Error: %@", err); @@ -37179,14 +40628,20 @@ - (void)testSendClusterWindowCoveringReadAttributeCurrentPositionLiftPercentageW - (void)testSendClusterWindowCoveringReadAttributeCurrentPositionTiltPercentageWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WindowCoveringReadAttributeCurrentPositionTiltPercentageWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WindowCoveringReadAttributeCurrentPositionTiltPercentageWithCompletionHandler"]; + [cluster readAttributeCurrentPositionTiltPercentageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WindowCovering CurrentPositionTiltPercentage Error: %@", err); @@ -37199,14 +40654,20 @@ - (void)testSendClusterWindowCoveringReadAttributeCurrentPositionTiltPercentageW - (void)testSendClusterWindowCoveringReadAttributeOperationalStatusWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WindowCoveringReadAttributeOperationalStatusWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WindowCoveringReadAttributeOperationalStatusWithCompletionHandler"]; + [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WindowCovering OperationalStatus Error: %@", err); XCTAssertEqual(err.code, 0); @@ -37218,14 +40679,20 @@ - (void)testSendClusterWindowCoveringReadAttributeOperationalStatusWithCompletio - (void)testSendClusterWindowCoveringReadAttributeTargetPositionLiftPercent100thsWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WindowCoveringReadAttributeTargetPositionLiftPercent100thsWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WindowCoveringReadAttributeTargetPositionLiftPercent100thsWithCompletionHandler"]; + [cluster readAttributeTargetPositionLiftPercent100thsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WindowCovering TargetPositionLiftPercent100ths Error: %@", err); @@ -37238,14 +40705,20 @@ - (void)testSendClusterWindowCoveringReadAttributeTargetPositionLiftPercent100th - (void)testSendClusterWindowCoveringReadAttributeTargetPositionTiltPercent100thsWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WindowCoveringReadAttributeTargetPositionTiltPercent100thsWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WindowCoveringReadAttributeTargetPositionTiltPercent100thsWithCompletionHandler"]; + [cluster readAttributeTargetPositionTiltPercent100thsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WindowCovering TargetPositionTiltPercent100ths Error: %@", err); @@ -37258,14 +40731,20 @@ - (void)testSendClusterWindowCoveringReadAttributeTargetPositionTiltPercent100th - (void)testSendClusterWindowCoveringReadAttributeEndProductTypeWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WindowCoveringReadAttributeEndProductTypeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WindowCoveringReadAttributeEndProductTypeWithCompletionHandler"]; + [cluster readAttributeEndProductTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WindowCovering EndProductType Error: %@", err); XCTAssertEqual(err.code, 0); @@ -37277,14 +40756,20 @@ - (void)testSendClusterWindowCoveringReadAttributeEndProductTypeWithCompletionHa - (void)testSendClusterWindowCoveringReadAttributeCurrentPositionLiftPercent100thsWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WindowCoveringReadAttributeCurrentPositionLiftPercent100thsWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WindowCoveringReadAttributeCurrentPositionLiftPercent100thsWithCompletionHandler"]; + [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WindowCovering CurrentPositionLiftPercent100ths Error: %@", err); @@ -37297,14 +40782,20 @@ - (void)testSendClusterWindowCoveringReadAttributeCurrentPositionLiftPercent100t - (void)testSendClusterWindowCoveringReadAttributeCurrentPositionTiltPercent100thsWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WindowCoveringReadAttributeCurrentPositionTiltPercent100thsWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WindowCoveringReadAttributeCurrentPositionTiltPercent100thsWithCompletionHandler"]; + [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WindowCovering CurrentPositionTiltPercent100ths Error: %@", err); @@ -37317,14 +40808,20 @@ - (void)testSendClusterWindowCoveringReadAttributeCurrentPositionTiltPercent100t - (void)testSendClusterWindowCoveringReadAttributeInstalledOpenLimitLiftWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WindowCoveringReadAttributeInstalledOpenLimitLiftWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WindowCoveringReadAttributeInstalledOpenLimitLiftWithCompletionHandler"]; + [cluster readAttributeInstalledOpenLimitLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WindowCovering InstalledOpenLimitLift Error: %@", err); XCTAssertEqual(err.code, 0); @@ -37336,14 +40833,20 @@ - (void)testSendClusterWindowCoveringReadAttributeInstalledOpenLimitLiftWithComp - (void)testSendClusterWindowCoveringReadAttributeInstalledClosedLimitLiftWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WindowCoveringReadAttributeInstalledClosedLimitLiftWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WindowCoveringReadAttributeInstalledClosedLimitLiftWithCompletionHandler"]; + [cluster readAttributeInstalledClosedLimitLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WindowCovering InstalledClosedLimitLift Error: %@", err); XCTAssertEqual(err.code, 0); @@ -37355,14 +40858,20 @@ - (void)testSendClusterWindowCoveringReadAttributeInstalledClosedLimitLiftWithCo - (void)testSendClusterWindowCoveringReadAttributeInstalledOpenLimitTiltWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WindowCoveringReadAttributeInstalledOpenLimitTiltWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WindowCoveringReadAttributeInstalledOpenLimitTiltWithCompletionHandler"]; + [cluster readAttributeInstalledOpenLimitTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WindowCovering InstalledOpenLimitTilt Error: %@", err); XCTAssertEqual(err.code, 0); @@ -37374,14 +40883,20 @@ - (void)testSendClusterWindowCoveringReadAttributeInstalledOpenLimitTiltWithComp - (void)testSendClusterWindowCoveringReadAttributeInstalledClosedLimitTiltWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WindowCoveringReadAttributeInstalledClosedLimitTiltWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WindowCoveringReadAttributeInstalledClosedLimitTiltWithCompletionHandler"]; + [cluster readAttributeInstalledClosedLimitTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WindowCovering InstalledClosedLimitTilt Error: %@", err); XCTAssertEqual(err.code, 0); @@ -37393,13 +40908,19 @@ - (void)testSendClusterWindowCoveringReadAttributeInstalledClosedLimitTiltWithCo - (void)testSendClusterWindowCoveringReadAttributeModeWithCompletionHandler { - XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeModeWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeModeWithCompletionHandler"]; + [cluster readAttributeModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WindowCovering Mode Error: %@", err); XCTAssertEqual(err.code, 0); @@ -37411,13 +40932,19 @@ - (void)testSendClusterWindowCoveringReadAttributeModeWithCompletionHandler - (void)testSendClusterWindowCoveringWriteAttributeModeWithValue { - XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringWriteAttributeModeWithValue"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringWriteAttributeModeWithValue"]; + NSNumber * _Nonnull value = @(0x00); [cluster writeAttributeModeWithValue:value completionHandler:^(NSError * _Nullable err) { @@ -37430,14 +40957,20 @@ - (void)testSendClusterWindowCoveringWriteAttributeModeWithValue } - (void)testSendClusterWindowCoveringReadAttributeSafetyStatusWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WindowCoveringReadAttributeSafetyStatusWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WindowCoveringReadAttributeSafetyStatusWithCompletionHandler"]; + [cluster readAttributeSafetyStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WindowCovering SafetyStatus Error: %@", err); XCTAssertEqual(err.code, 0); @@ -37449,14 +40982,20 @@ - (void)testSendClusterWindowCoveringReadAttributeSafetyStatusWithCompletionHand - (void)testSendClusterWindowCoveringReadAttributeFeatureMapWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WindowCoveringReadAttributeFeatureMapWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WindowCoveringReadAttributeFeatureMapWithCompletionHandler"]; + [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WindowCovering FeatureMap Error: %@", err); XCTAssertEqual(err.code, 0); @@ -37468,14 +41007,20 @@ - (void)testSendClusterWindowCoveringReadAttributeFeatureMapWithCompletionHandle - (void)testSendClusterWindowCoveringReadAttributeClusterRevisionWithCompletionHandler { - XCTestExpectation * expectation = - [self expectationWithDescription:@"WindowCoveringReadAttributeClusterRevisionWithCompletionHandler"]; + dispatch_queue_t queue = dispatch_get_main_queue(); + + XCTestExpectation * connectedExpectation = + [self expectationWithDescription:@"Wait for the commissioned device to be retrieved"]; + WaitForCommissionee(connectedExpectation, queue); + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; CHIPDevice * device = GetConnectedDevice(); - dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); + XCTestExpectation * expectation = + [self expectationWithDescription:@"WindowCoveringReadAttributeClusterRevisionWithCompletionHandler"]; + [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"WindowCovering ClusterRevision Error: %@", err); XCTAssertEqual(err.code, 0); diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index 51dc4188d7e083..b39127f87b2307 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -180,17 +180,21 @@ class Test_TC_BI_1_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : read the global attribute: ClusterRevision\n"); - err = TestReadTheGlobalAttributeClusterRevision_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 : write the default values to mandatory global attribute: ClusterRevision\n"); - err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : read the global attribute: ClusterRevision\n"); + err = TestReadTheGlobalAttributeClusterRevision_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : reads back global attribute: ClusterRevision\n"); - err = TestReadsBackGlobalAttributeClusterRevision_2(); + ChipLogProgress(chipTool, + " ***** Test Step 2 : write the default values to mandatory global attribute: ClusterRevision\n"); + err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2(); + break; + case 3: + ChipLogProgress(chipTool, " ***** Test Step 3 : reads back global attribute: ClusterRevision\n"); + err = TestReadsBackGlobalAttributeClusterRevision_3(); break; } @@ -203,59 +207,61 @@ class Test_TC_BI_1_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 3; + const uint16_t mTestCount = 4; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) + static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); + (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint16_t clusterRevision) + static void OnSuccessCallback_3(void * context, uint16_t clusterRevision) { - (static_cast(context))->OnSuccessResponse_2(clusterRevision); + (static_cast(context))->OnSuccessResponse_3(clusterRevision); } // // Tests methods // - CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint16_t clusterRevision) + void OnSuccessResponse_1(uint16_t clusterRevision) { VerifyOrReturn(CheckValue("clusterRevision", clusterRevision, 1U)); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; @@ -265,30 +271,30 @@ class Test_TC_BI_1_1 : public TestCommand clusterRevisionArgument = 1U; return cluster.WriteAttribute( - clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); + clusterRevisionArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) + void OnFailureResponse_2(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_1() { ThrowSuccessResponse(); } + void OnSuccessResponse_2() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_2() + CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint16_t clusterRevision) + void OnSuccessResponse_3(uint16_t clusterRevision) { VerifyOrReturn(CheckValue("clusterRevision", clusterRevision, 1U)); @@ -327,51 +333,55 @@ class Test_TC_BI_2_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Read mandatory non-global attribute: OutOfService\n"); - err = TestReadMandatoryNonGlobalAttributeOutOfService_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 : Read mandatory non-global attribute constraints: OutOfService\n"); - err = TestReadMandatoryNonGlobalAttributeConstraintsOutOfService_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Read mandatory non-global attribute: OutOfService\n"); + err = TestReadMandatoryNonGlobalAttributeOutOfService_1(); break; case 2: - ChipLogProgress(chipTool, - " ***** Test Step 2 : Write the default values to mandatory non-global attribute: OutOfService\n"); - err = TestWriteTheDefaultValuesToMandatoryNonGlobalAttributeOutOfService_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Read mandatory non-global attribute constraints: OutOfService\n"); + err = TestReadMandatoryNonGlobalAttributeConstraintsOutOfService_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Reads back the mandatory non-global attribute: OutOfService\n"); - err = TestReadsBackTheMandatoryNonGlobalAttributeOutOfService_3(); + ChipLogProgress(chipTool, + " ***** Test Step 3 : Write the default values to mandatory non-global attribute: OutOfService\n"); + err = TestWriteTheDefaultValuesToMandatoryNonGlobalAttributeOutOfService_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Read mandatory non-global attribute constraints: PresentValue\n"); - err = TestReadMandatoryNonGlobalAttributeConstraintsPresentValue_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Reads back the mandatory non-global attribute: OutOfService\n"); + err = TestReadsBackTheMandatoryNonGlobalAttributeOutOfService_4(); break; case 5: - ChipLogProgress(chipTool, - " ***** Test Step 5 : Write the default values to mandatory non-global attribute: PresentValue\n"); - err = TestWriteTheDefaultValuesToMandatoryNonGlobalAttributePresentValue_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Read mandatory non-global attribute constraints: PresentValue\n"); + err = TestReadMandatoryNonGlobalAttributeConstraintsPresentValue_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Reads back the mandatory non-global attribute: PresentValue\n"); - err = TestReadsBackTheMandatoryNonGlobalAttributePresentValue_6(); + ChipLogProgress(chipTool, + " ***** Test Step 6 : Write the default values to mandatory non-global attribute: PresentValue\n"); + err = TestWriteTheDefaultValuesToMandatoryNonGlobalAttributePresentValue_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Read mandatory non-global attribute: StatusFlags\n"); - err = TestReadMandatoryNonGlobalAttributeStatusFlags_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Reads back the mandatory non-global attribute: PresentValue\n"); + err = TestReadsBackTheMandatoryNonGlobalAttributePresentValue_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Read mandatory non-global attribute constraints: StatusFlags\n"); - err = TestReadMandatoryNonGlobalAttributeConstraintsStatusFlags_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : Read mandatory non-global attribute: StatusFlags\n"); + err = TestReadMandatoryNonGlobalAttributeStatusFlags_8(); break; case 9: - ChipLogProgress(chipTool, - " ***** Test Step 9 : Write the default values to mandatory non-global attribute: StatusFlags\n"); - err = TestWriteTheDefaultValuesToMandatoryNonGlobalAttributeStatusFlags_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : Read mandatory non-global attribute constraints: StatusFlags\n"); + err = TestReadMandatoryNonGlobalAttributeConstraintsStatusFlags_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Reads back the mandatory non-global attribute: StatusFlags\n"); - err = TestReadsBackTheMandatoryNonGlobalAttributeStatusFlags_10(); + ChipLogProgress(chipTool, + " ***** Test Step 10 : Write the default values to mandatory non-global attribute: StatusFlags\n"); + err = TestWriteTheDefaultValuesToMandatoryNonGlobalAttributeStatusFlags_10(); + break; + case 11: + ChipLogProgress(chipTool, " ***** Test Step 11 : Reads back the mandatory non-global attribute: StatusFlags\n"); + err = TestReadsBackTheMandatoryNonGlobalAttributeStatusFlags_11(); break; } @@ -384,17 +394,7 @@ class Test_TC_BI_2_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 11; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context, bool outOfService) - { - (static_cast(context))->OnSuccessResponse_0(outOfService); - } + const uint16_t mTestCount = 12; static void OnFailureCallback_1(void * context, EmberAfStatus status) { @@ -411,26 +411,26 @@ class Test_TC_BI_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } + static void OnSuccessCallback_2(void * context, bool outOfService) + { + (static_cast(context))->OnSuccessResponse_2(outOfService); + } static void OnFailureCallback_3(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, bool outOfService) - { - (static_cast(context))->OnSuccessResponse_3(outOfService); - } + static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } static void OnFailureCallback_4(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, bool presentValue) + static void OnSuccessCallback_4(void * context, bool outOfService) { - (static_cast(context))->OnSuccessResponse_4(presentValue); + (static_cast(context))->OnSuccessResponse_4(outOfService); } static void OnFailureCallback_5(void * context, EmberAfStatus status) @@ -438,26 +438,26 @@ class Test_TC_BI_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } + static void OnSuccessCallback_5(void * context, bool presentValue) + { + (static_cast(context))->OnSuccessResponse_5(presentValue); + } static void OnFailureCallback_6(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, bool presentValue) - { - (static_cast(context))->OnSuccessResponse_6(presentValue); - } + static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } static void OnFailureCallback_7(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, uint8_t statusFlags) + static void OnSuccessCallback_7(void * context, bool presentValue) { - (static_cast(context))->OnSuccessResponse_7(statusFlags); + (static_cast(context))->OnSuccessResponse_7(presentValue); } static void OnFailureCallback_8(void * context, EmberAfStatus status) @@ -475,61 +475,73 @@ class Test_TC_BI_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); } - static void OnSuccessCallback_9(void * context) { (static_cast(context))->OnSuccessResponse_9(); } + static void OnSuccessCallback_9(void * context, uint8_t statusFlags) + { + (static_cast(context))->OnSuccessResponse_9(statusFlags); + } static void OnFailureCallback_10(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); } - static void OnSuccessCallback_10(void * context, uint8_t statusFlags) + static void OnSuccessCallback_10(void * context) { (static_cast(context))->OnSuccessResponse_10(); } + + static void OnFailureCallback_11(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_11(chip::to_underlying(status)); + } + + static void OnSuccessCallback_11(void * context, uint8_t statusFlags) { - (static_cast(context))->OnSuccessResponse_10(statusFlags); + (static_cast(context))->OnSuccessResponse_11(statusFlags); } // // Tests methods // - CHIP_ERROR TestReadMandatoryNonGlobalAttributeOutOfService_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadMandatoryNonGlobalAttributeOutOfService_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(bool outOfService) + void OnSuccessResponse_1(bool outOfService) { VerifyOrReturn(CheckValue("outOfService", outOfService, 0)); NextTest(); } - CHIP_ERROR TestReadMandatoryNonGlobalAttributeConstraintsOutOfService_1() + CHIP_ERROR TestReadMandatoryNonGlobalAttributeConstraintsOutOfService_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_1, OnFailureCallback_1); + this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool outOfService) + void OnSuccessResponse_2(bool outOfService) { VerifyOrReturn(CheckConstraintType("outOfService", "", "bool")); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryNonGlobalAttributeOutOfService_2() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryNonGlobalAttributeOutOfService_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; @@ -539,52 +551,52 @@ class Test_TC_BI_2_1 : public TestCommand outOfServiceArgument = 0; return cluster.WriteAttribute( - outOfServiceArgument, this, OnSuccessCallback_2, OnFailureCallback_2); + outOfServiceArgument, this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestReadsBackTheMandatoryNonGlobalAttributeOutOfService_3() + CHIP_ERROR TestReadsBackTheMandatoryNonGlobalAttributeOutOfService_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_3, OnFailureCallback_3); + this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(bool outOfService) + void OnSuccessResponse_4(bool outOfService) { VerifyOrReturn(CheckValue("outOfService", outOfService, 0)); NextTest(); } - CHIP_ERROR TestReadMandatoryNonGlobalAttributeConstraintsPresentValue_4() + CHIP_ERROR TestReadMandatoryNonGlobalAttributeConstraintsPresentValue_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_4, OnFailureCallback_4); + this, OnSuccessCallback_5, OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(bool presentValue) + void OnSuccessResponse_5(bool presentValue) { VerifyOrReturn(CheckConstraintType("presentValue", "", "bool")); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryNonGlobalAttributePresentValue_5() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryNonGlobalAttributePresentValue_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; @@ -594,64 +606,64 @@ class Test_TC_BI_2_1 : public TestCommand presentValueArgument = 0; return cluster.WriteAttribute( - presentValueArgument, this, OnSuccessCallback_5, OnFailureCallback_5); + presentValueArgument, this, OnSuccessCallback_6, OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5() { NextTest(); } + void OnSuccessResponse_6() { NextTest(); } - CHIP_ERROR TestReadsBackTheMandatoryNonGlobalAttributePresentValue_6() + CHIP_ERROR TestReadsBackTheMandatoryNonGlobalAttributePresentValue_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_6, OnFailureCallback_6); + this, OnSuccessCallback_7, OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(bool presentValue) + void OnSuccessResponse_7(bool presentValue) { VerifyOrReturn(CheckValue("presentValue", presentValue, 0)); NextTest(); } - CHIP_ERROR TestReadMandatoryNonGlobalAttributeStatusFlags_7() + CHIP_ERROR TestReadMandatoryNonGlobalAttributeStatusFlags_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_7, OnFailureCallback_7); + this, OnSuccessCallback_8, OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(uint8_t statusFlags) + void OnSuccessResponse_8(uint8_t statusFlags) { VerifyOrReturn(CheckValue("statusFlags", statusFlags, 0)); NextTest(); } - CHIP_ERROR TestReadMandatoryNonGlobalAttributeConstraintsStatusFlags_8() + CHIP_ERROR TestReadMandatoryNonGlobalAttributeConstraintsStatusFlags_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_8, OnFailureCallback_8); + this, OnSuccessCallback_9, OnFailureCallback_9); } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8(uint8_t statusFlags) + void OnSuccessResponse_9(uint8_t statusFlags) { VerifyOrReturn(CheckConstraintType("statusFlags", "", "map8")); VerifyOrReturn(CheckConstraintMaxValue("statusFlags", statusFlags, 15)); @@ -659,7 +671,7 @@ class Test_TC_BI_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryNonGlobalAttributeStatusFlags_9() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryNonGlobalAttributeStatusFlags_10() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; @@ -669,30 +681,30 @@ class Test_TC_BI_2_1 : public TestCommand statusFlagsArgument = 0; return cluster.WriteAttribute( - statusFlagsArgument, this, OnSuccessCallback_9, OnFailureCallback_9); + statusFlagsArgument, this, OnSuccessCallback_10, OnFailureCallback_10); } - void OnFailureResponse_9(uint8_t status) + void OnFailureResponse_10(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_9() { ThrowSuccessResponse(); } + void OnSuccessResponse_10() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackTheMandatoryNonGlobalAttributeStatusFlags_10() + CHIP_ERROR TestReadsBackTheMandatoryNonGlobalAttributeStatusFlags_11() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_10, OnFailureCallback_10); + this, OnSuccessCallback_11, OnFailureCallback_11); } - void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_10(uint8_t statusFlags) + void OnSuccessResponse_11(uint8_t statusFlags) { VerifyOrReturn(CheckValue("statusFlags", statusFlags, 0)); @@ -731,28 +743,28 @@ class Test_TC_BI_2_2 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Reads PresentValue attribute from DUT\n"); - err = TestReadsPresentValueAttributeFromDut_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 : Reads OutOfService attribute from DUT\n"); - err = TestReadsOutOfServiceAttributeFromDut_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Reads PresentValue attribute from DUT\n"); + err = TestReadsPresentValueAttributeFromDut_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Reads StatusFlags attribute from DUT\n"); - err = TestReadsStatusFlagsAttributeFromDut_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Reads OutOfService attribute from DUT\n"); + err = TestReadsOutOfServiceAttributeFromDut_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Reads PresentValue attribute from DUT\n"); - err = TestReadsPresentValueAttributeFromDut_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Reads StatusFlags attribute from DUT\n"); + err = TestReadsStatusFlagsAttributeFromDut_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Reads OutOfService attribute from DUT\n"); - err = TestReadsOutOfServiceAttributeFromDut_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Reads PresentValue attribute from DUT\n"); + err = TestReadsPresentValueAttributeFromDut_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Reads StatusFlags attribute from DUT\n"); - err = TestReadsStatusFlagsAttributeFromDut_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Reads OutOfService attribute from DUT\n"); + err = TestReadsOutOfServiceAttributeFromDut_5(); break; case 6: ChipLogProgress(chipTool, " ***** Test Step 6 : Reads StatusFlags attribute from DUT\n"); @@ -762,6 +774,10 @@ class Test_TC_BI_2_2 : public TestCommand ChipLogProgress(chipTool, " ***** Test Step 7 : Reads StatusFlags attribute from DUT\n"); err = TestReadsStatusFlagsAttributeFromDut_7(); break; + case 8: + ChipLogProgress(chipTool, " ***** Test Step 8 : Reads StatusFlags attribute from DUT\n"); + err = TestReadsStatusFlagsAttributeFromDut_8(); + break; } if (CHIP_NO_ERROR != err) @@ -773,26 +789,16 @@ class Test_TC_BI_2_2 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 8; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context, bool presentValue) - { - (static_cast(context))->OnSuccessResponse_0(presentValue); - } + const uint16_t mTestCount = 9; static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, bool outOfService) + static void OnSuccessCallback_1(void * context, bool presentValue) { - (static_cast(context))->OnSuccessResponse_1(outOfService); + (static_cast(context))->OnSuccessResponse_1(presentValue); } static void OnFailureCallback_2(void * context, EmberAfStatus status) @@ -800,9 +806,9 @@ class Test_TC_BI_2_2 : public TestCommand (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint8_t statusFlags) + static void OnSuccessCallback_2(void * context, bool outOfService) { - (static_cast(context))->OnSuccessResponse_2(statusFlags); + (static_cast(context))->OnSuccessResponse_2(outOfService); } static void OnFailureCallback_3(void * context, EmberAfStatus status) @@ -810,9 +816,9 @@ class Test_TC_BI_2_2 : public TestCommand (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, bool presentValue) + static void OnSuccessCallback_3(void * context, uint8_t statusFlags) { - (static_cast(context))->OnSuccessResponse_3(presentValue); + (static_cast(context))->OnSuccessResponse_3(statusFlags); } static void OnFailureCallback_4(void * context, EmberAfStatus status) @@ -820,9 +826,9 @@ class Test_TC_BI_2_2 : public TestCommand (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, bool outOfService) + static void OnSuccessCallback_4(void * context, bool presentValue) { - (static_cast(context))->OnSuccessResponse_4(outOfService); + (static_cast(context))->OnSuccessResponse_4(presentValue); } static void OnFailureCallback_5(void * context, EmberAfStatus status) @@ -830,9 +836,9 @@ class Test_TC_BI_2_2 : public TestCommand (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, uint8_t statusFlags) + static void OnSuccessCallback_5(void * context, bool outOfService) { - (static_cast(context))->OnSuccessResponse_5(statusFlags); + (static_cast(context))->OnSuccessResponse_5(outOfService); } static void OnFailureCallback_6(void * context, EmberAfStatus status) @@ -855,156 +861,168 @@ class Test_TC_BI_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_7(statusFlags); } + static void OnFailureCallback_8(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); + } + + static void OnSuccessCallback_8(void * context, uint8_t statusFlags) + { + (static_cast(context))->OnSuccessResponse_8(statusFlags); + } + // // Tests methods // - CHIP_ERROR TestReadsPresentValueAttributeFromDut_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadsPresentValueAttributeFromDut_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(bool presentValue) + void OnSuccessResponse_1(bool presentValue) { VerifyOrReturn(CheckValue("presentValue", presentValue, 0)); NextTest(); } - CHIP_ERROR TestReadsOutOfServiceAttributeFromDut_1() + CHIP_ERROR TestReadsOutOfServiceAttributeFromDut_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_1, OnFailureCallback_1); + this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool outOfService) + void OnSuccessResponse_2(bool outOfService) { VerifyOrReturn(CheckValue("outOfService", outOfService, 0)); NextTest(); } - CHIP_ERROR TestReadsStatusFlagsAttributeFromDut_2() + CHIP_ERROR TestReadsStatusFlagsAttributeFromDut_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint8_t statusFlags) + void OnSuccessResponse_3(uint8_t statusFlags) { VerifyOrReturn(CheckValue("statusFlags", statusFlags, 0)); NextTest(); } - CHIP_ERROR TestReadsPresentValueAttributeFromDut_3() + CHIP_ERROR TestReadsPresentValueAttributeFromDut_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_3, OnFailureCallback_3); + this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(bool presentValue) + void OnSuccessResponse_4(bool presentValue) { VerifyOrReturn(CheckValue("presentValue", presentValue, 0)); NextTest(); } - CHIP_ERROR TestReadsOutOfServiceAttributeFromDut_4() + CHIP_ERROR TestReadsOutOfServiceAttributeFromDut_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_4, OnFailureCallback_4); + this, OnSuccessCallback_5, OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(bool outOfService) + void OnSuccessResponse_5(bool outOfService) { VerifyOrReturn(CheckValue("outOfService", outOfService, 0)); NextTest(); } - CHIP_ERROR TestReadsStatusFlagsAttributeFromDut_5() + CHIP_ERROR TestReadsStatusFlagsAttributeFromDut_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_5, OnFailureCallback_5); + this, OnSuccessCallback_6, OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(uint8_t statusFlags) + void OnSuccessResponse_6(uint8_t statusFlags) { VerifyOrReturn(CheckValue("statusFlags", statusFlags, 0)); NextTest(); } - CHIP_ERROR TestReadsStatusFlagsAttributeFromDut_6() + CHIP_ERROR TestReadsStatusFlagsAttributeFromDut_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_6, OnFailureCallback_6); + this, OnSuccessCallback_7, OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(uint8_t statusFlags) + void OnSuccessResponse_7(uint8_t statusFlags) { VerifyOrReturn(CheckValue("statusFlags", statusFlags, 0)); NextTest(); } - CHIP_ERROR TestReadsStatusFlagsAttributeFromDut_7() + CHIP_ERROR TestReadsStatusFlagsAttributeFromDut_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BinaryInputBasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_7, OnFailureCallback_7); + this, OnSuccessCallback_8, OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(uint8_t statusFlags) + void OnSuccessResponse_8(uint8_t statusFlags) { VerifyOrReturn(CheckValue("statusFlags", statusFlags, 0)); @@ -1043,17 +1061,21 @@ class Test_TC_BOOL_1_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : read the global attribute: ClusterRevision\n"); - err = TestReadTheGlobalAttributeClusterRevision_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 : write the default values to mandatory global attribute: ClusterRevision\n"); - err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : read the global attribute: ClusterRevision\n"); + err = TestReadTheGlobalAttributeClusterRevision_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : reads back global attribute: ClusterRevision\n"); - err = TestReadsBackGlobalAttributeClusterRevision_2(); + ChipLogProgress(chipTool, + " ***** Test Step 2 : write the default values to mandatory global attribute: ClusterRevision\n"); + err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2(); + break; + case 3: + ChipLogProgress(chipTool, " ***** Test Step 3 : reads back global attribute: ClusterRevision\n"); + err = TestReadsBackGlobalAttributeClusterRevision_3(); break; } @@ -1066,59 +1088,61 @@ class Test_TC_BOOL_1_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 3; + const uint16_t mTestCount = 4; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) + static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); + (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint16_t clusterRevision) + static void OnSuccessCallback_3(void * context, uint16_t clusterRevision) { - (static_cast(context))->OnSuccessResponse_2(clusterRevision); + (static_cast(context))->OnSuccessResponse_3(clusterRevision); } // // Tests methods // - CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BooleanStateClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint16_t clusterRevision) + void OnSuccessResponse_1(uint16_t clusterRevision) { VerifyOrReturn(CheckValue("clusterRevision", clusterRevision, 1U)); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BooleanStateClusterTest cluster; @@ -1128,30 +1152,30 @@ class Test_TC_BOOL_1_1 : public TestCommand clusterRevisionArgument = 1U; return cluster.WriteAttribute( - clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); + clusterRevisionArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) + void OnFailureResponse_2(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_1() { ThrowSuccessResponse(); } + void OnSuccessResponse_2() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_2() + CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BooleanStateClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint16_t clusterRevision) + void OnSuccessResponse_3(uint16_t clusterRevision) { VerifyOrReturn(CheckValue("clusterRevision", clusterRevision, 1U)); @@ -1190,21 +1214,25 @@ class Test_TC_BOOL_2_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Read mandatory non-global attribute: StateValue\n"); - err = TestReadMandatoryNonGlobalAttributeStateValue_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 : Read mandatory non-global attribute constraints: StateValue\n"); - err = TestReadMandatoryNonGlobalAttributeConstraintsStateValue_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Read mandatory non-global attribute: StateValue\n"); + err = TestReadMandatoryNonGlobalAttributeStateValue_1(); break; case 2: - ChipLogProgress(chipTool, - " ***** Test Step 2 : Write the default value to mandatory non-global attribute: StateValue\n"); - err = TestWriteTheDefaultValueToMandatoryNonGlobalAttributeStateValue_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Read mandatory non-global attribute constraints: StateValue\n"); + err = TestReadMandatoryNonGlobalAttributeConstraintsStateValue_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Reads back the mandatory non-global attribute: StateValue\n"); - err = TestReadsBackTheMandatoryNonGlobalAttributeStateValue_3(); + ChipLogProgress(chipTool, + " ***** Test Step 3 : Write the default value to mandatory non-global attribute: StateValue\n"); + err = TestWriteTheDefaultValueToMandatoryNonGlobalAttributeStateValue_3(); + break; + case 4: + ChipLogProgress(chipTool, " ***** Test Step 4 : Reads back the mandatory non-global attribute: StateValue\n"); + err = TestReadsBackTheMandatoryNonGlobalAttributeStateValue_4(); break; } @@ -1217,17 +1245,7 @@ class Test_TC_BOOL_2_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 4; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context, bool stateValue) - { - (static_cast(context))->OnSuccessResponse_0(stateValue); - } + const uint16_t mTestCount = 5; static void OnFailureCallback_1(void * context, EmberAfStatus status) { @@ -1244,61 +1262,73 @@ class Test_TC_BOOL_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } + static void OnSuccessCallback_2(void * context, bool stateValue) + { + (static_cast(context))->OnSuccessResponse_2(stateValue); + } static void OnFailureCallback_3(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, bool stateValue) + static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } + + static void OnFailureCallback_4(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); + } + + static void OnSuccessCallback_4(void * context, bool stateValue) { - (static_cast(context))->OnSuccessResponse_3(stateValue); + (static_cast(context))->OnSuccessResponse_4(stateValue); } // // Tests methods // - CHIP_ERROR TestReadMandatoryNonGlobalAttributeStateValue_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadMandatoryNonGlobalAttributeStateValue_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BooleanStateClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_0, - OnFailureCallback_0); + return cluster.ReadAttribute(this, OnSuccessCallback_1, + OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(bool stateValue) + void OnSuccessResponse_1(bool stateValue) { VerifyOrReturn(CheckValue("stateValue", stateValue, 0)); NextTest(); } - CHIP_ERROR TestReadMandatoryNonGlobalAttributeConstraintsStateValue_1() + CHIP_ERROR TestReadMandatoryNonGlobalAttributeConstraintsStateValue_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BooleanStateClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool stateValue) + void OnSuccessResponse_2(bool stateValue) { VerifyOrReturn(CheckConstraintType("stateValue", "", "bool")); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValueToMandatoryNonGlobalAttributeStateValue_2() + CHIP_ERROR TestWriteTheDefaultValueToMandatoryNonGlobalAttributeStateValue_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BooleanStateClusterTest cluster; @@ -1308,30 +1338,30 @@ class Test_TC_BOOL_2_1 : public TestCommand stateValueArgument = 1; return cluster.WriteAttribute( - stateValueArgument, this, OnSuccessCallback_2, OnFailureCallback_2); + stateValueArgument, this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) + void OnFailureResponse_3(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_2() { ThrowSuccessResponse(); } + void OnSuccessResponse_3() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackTheMandatoryNonGlobalAttributeStateValue_3() + CHIP_ERROR TestReadsBackTheMandatoryNonGlobalAttributeStateValue_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::BooleanStateClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_3, - OnFailureCallback_3); + return cluster.ReadAttribute(this, OnSuccessCallback_4, + OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(bool stateValue) + void OnSuccessResponse_4(bool stateValue) { VerifyOrReturn(CheckValue("stateValue", stateValue, 0)); @@ -1370,9 +1400,13 @@ class Test_TC_CC_1_1 : public TestCommand 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 0 : write the default values to mandatory global attribute: ClusterRevision\n"); - err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_0(); + " ***** Test Step 1 : write the default values to mandatory global attribute: ClusterRevision\n"); + err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1(); break; } @@ -1385,20 +1419,22 @@ class Test_TC_CC_1_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 1; + const uint16_t mTestCount = 2; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } // // Tests methods // - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -1408,16 +1444,16 @@ class Test_TC_CC_1_1 : public TestCommand clusterRevisionArgument = 4U; return cluster.WriteAttribute( - clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) + void OnFailureResponse_1(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_0() { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } }; class Test_TC_CC_2_1 : public TestCommand @@ -1451,593 +1487,597 @@ class Test_TC_CC_2_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Reads mandatory attribute: CurrentHue\n"); - err = TestReadsMandatoryAttributeCurrentHue_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 : Validate constraints of attribute: current hue\n"); - err = TestValidateConstraintsOfAttributeCurrentHue_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Reads mandatory attribute: CurrentHue\n"); + err = TestReadsMandatoryAttributeCurrentHue_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Write the default value to mandatory attribute: CurrentHue\n"); - err = TestWriteTheDefaultValueToMandatoryAttributeCurrentHue_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Validate constraints of attribute: current hue\n"); + err = TestValidateConstraintsOfAttributeCurrentHue_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Reads back mandatory attribute: CurrentHue\n"); - err = TestReadsBackMandatoryAttributeCurrentHue_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Write the default value to mandatory attribute: CurrentHue\n"); + err = TestWriteTheDefaultValueToMandatoryAttributeCurrentHue_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Reads mandatory attribute: CurrentSaturation\n"); - err = TestReadsMandatoryAttributeCurrentSaturation_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Reads back mandatory attribute: CurrentHue\n"); + err = TestReadsBackMandatoryAttributeCurrentHue_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Validate constraints of attribute: CurrentSaturation\n"); - err = TestValidateConstraintsOfAttributeCurrentSaturation_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Reads mandatory attribute: CurrentSaturation\n"); + err = TestReadsMandatoryAttributeCurrentSaturation_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Write the default value to mandatory attribute: CurrentSaturation\n"); - err = TestWriteTheDefaultValueToMandatoryAttributeCurrentSaturation_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Validate constraints of attribute: CurrentSaturation\n"); + err = TestValidateConstraintsOfAttributeCurrentSaturation_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Reads back mandatory attribute: CurrentSaturation\n"); - err = TestReadsBackMandatoryAttributeCurrentSaturation_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Write the default value to mandatory attribute: CurrentSaturation\n"); + err = TestWriteTheDefaultValueToMandatoryAttributeCurrentSaturation_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Read the mandatory attribute: CurrentX\n"); - err = TestReadTheMandatoryAttributeCurrentX_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : Reads back mandatory attribute: CurrentSaturation\n"); + err = TestReadsBackMandatoryAttributeCurrentSaturation_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Validate constraints of attribute: CurrentX\n"); - err = TestValidateConstraintsOfAttributeCurrentX_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : Read the mandatory attribute: CurrentX\n"); + err = TestReadTheMandatoryAttributeCurrentX_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Write the default value to mandatory attribute: CurrentX\n"); - err = TestWriteTheDefaultValueToMandatoryAttributeCurrentX_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : Validate constraints of attribute: CurrentX\n"); + err = TestValidateConstraintsOfAttributeCurrentX_10(); break; case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : Reads back mandatory attribute: CurrentX\n"); - err = TestReadsBackMandatoryAttributeCurrentX_11(); + ChipLogProgress(chipTool, " ***** Test Step 11 : Write the default value to mandatory attribute: CurrentX\n"); + err = TestWriteTheDefaultValueToMandatoryAttributeCurrentX_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : Read the mandatory attribute: CurrentY\n"); - err = TestReadTheMandatoryAttributeCurrentY_12(); + ChipLogProgress(chipTool, " ***** Test Step 12 : Reads back mandatory attribute: CurrentX\n"); + err = TestReadsBackMandatoryAttributeCurrentX_12(); break; case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : Validate constraints of attribute: CurrentY\n"); - err = TestValidateConstraintsOfAttributeCurrentY_13(); + ChipLogProgress(chipTool, " ***** Test Step 13 : Read the mandatory attribute: CurrentY\n"); + err = TestReadTheMandatoryAttributeCurrentY_13(); break; case 14: - ChipLogProgress(chipTool, " ***** Test Step 14 : Write the default values to mandatory attribute: CurrentY\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeCurrentY_14(); + ChipLogProgress(chipTool, " ***** Test Step 14 : Validate constraints of attribute: CurrentY\n"); + err = TestValidateConstraintsOfAttributeCurrentY_14(); break; case 15: - ChipLogProgress(chipTool, " ***** Test Step 15 : Reads back mandatory attribute: CurrentY\n"); - err = TestReadsBackMandatoryAttributeCurrentY_15(); + ChipLogProgress(chipTool, " ***** Test Step 15 : Write the default values to mandatory attribute: CurrentY\n"); + err = TestWriteTheDefaultValuesToMandatoryAttributeCurrentY_15(); break; case 16: - ChipLogProgress(chipTool, " ***** Test Step 16 : Validate constraints of attribute: ColorTemperatureMireds\n"); - err = TestValidateConstraintsOfAttributeColorTemperatureMireds_16(); + ChipLogProgress(chipTool, " ***** Test Step 16 : Reads back mandatory attribute: CurrentY\n"); + err = TestReadsBackMandatoryAttributeCurrentY_16(); break; case 17: - ChipLogProgress(chipTool, " ***** Test Step 17 : Validate constraints of attribute: ColorMode\n"); - err = TestValidateConstraintsOfAttributeColorMode_17(); + ChipLogProgress(chipTool, " ***** Test Step 17 : Validate constraints of attribute: ColorTemperatureMireds\n"); + err = TestValidateConstraintsOfAttributeColorTemperatureMireds_17(); break; case 18: - ChipLogProgress(chipTool, " ***** Test Step 18 : Read the mandatory attribute: Options\n"); - err = TestReadTheMandatoryAttributeOptions_18(); + ChipLogProgress(chipTool, " ***** Test Step 18 : Validate constraints of attribute: ColorMode\n"); + err = TestValidateConstraintsOfAttributeColorMode_18(); break; case 19: - ChipLogProgress(chipTool, " ***** Test Step 19 : Validate constraints of attribute: Options\n"); - err = TestValidateConstraintsOfAttributeOptions_19(); + ChipLogProgress(chipTool, " ***** Test Step 19 : Read the mandatory attribute: Options\n"); + err = TestReadTheMandatoryAttributeOptions_19(); break; case 20: - ChipLogProgress(chipTool, " ***** Test Step 20 : Write the default values to mandatory attribute: Options\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeOptions_20(); + ChipLogProgress(chipTool, " ***** Test Step 20 : Validate constraints of attribute: Options\n"); + err = TestValidateConstraintsOfAttributeOptions_20(); break; case 21: - ChipLogProgress(chipTool, " ***** Test Step 21 : Reads back mandatory attribute: Options\n"); - err = TestReadsBackMandatoryAttributeOptions_21(); + ChipLogProgress(chipTool, " ***** Test Step 21 : Write the default values to mandatory attribute: Options\n"); + err = TestWriteTheDefaultValuesToMandatoryAttributeOptions_21(); break; case 22: - ChipLogProgress(chipTool, " ***** Test Step 22 : Read the mandatory attribute: EnhancedCurrentHue\n"); - err = TestReadTheMandatoryAttributeEnhancedCurrentHue_22(); + ChipLogProgress(chipTool, " ***** Test Step 22 : Reads back mandatory attribute: Options\n"); + err = TestReadsBackMandatoryAttributeOptions_22(); break; case 23: - ChipLogProgress(chipTool, " ***** Test Step 23 : Validate constraints of attribute: EnhancedCurrentHue\n"); - err = TestValidateConstraintsOfAttributeEnhancedCurrentHue_23(); + ChipLogProgress(chipTool, " ***** Test Step 23 : Read the mandatory attribute: EnhancedCurrentHue\n"); + err = TestReadTheMandatoryAttributeEnhancedCurrentHue_23(); break; case 24: - ChipLogProgress(chipTool, - " ***** Test Step 24 : Write the default values to mandatory attribute: EnhancedCurrentHue\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeEnhancedCurrentHue_24(); + ChipLogProgress(chipTool, " ***** Test Step 24 : Validate constraints of attribute: EnhancedCurrentHue\n"); + err = TestValidateConstraintsOfAttributeEnhancedCurrentHue_24(); break; case 25: - ChipLogProgress(chipTool, " ***** Test Step 25 : Reads back mandatory attribute: EnhancedCurrentHue\n"); - err = TestReadsBackMandatoryAttributeEnhancedCurrentHue_25(); + ChipLogProgress(chipTool, + " ***** Test Step 25 : Write the default values to mandatory attribute: EnhancedCurrentHue\n"); + err = TestWriteTheDefaultValuesToMandatoryAttributeEnhancedCurrentHue_25(); break; case 26: - ChipLogProgress(chipTool, " ***** Test Step 26 : Validate constraints of attribute: EnhancedColorMode\n"); - err = TestValidateConstraintsOfAttributeEnhancedColorMode_26(); + ChipLogProgress(chipTool, " ***** Test Step 26 : Reads back mandatory attribute: EnhancedCurrentHue\n"); + err = TestReadsBackMandatoryAttributeEnhancedCurrentHue_26(); break; case 27: - ChipLogProgress(chipTool, " ***** Test Step 27 : Read the mandatory attribute: ColorLoopActive\n"); - err = TestReadTheMandatoryAttributeColorLoopActive_27(); + ChipLogProgress(chipTool, " ***** Test Step 27 : Validate constraints of attribute: EnhancedColorMode\n"); + err = TestValidateConstraintsOfAttributeEnhancedColorMode_27(); break; case 28: - ChipLogProgress(chipTool, " ***** Test Step 28 : Validate constraints of attribute: ColorLoopActive\n"); - err = TestValidateConstraintsOfAttributeColorLoopActive_28(); + ChipLogProgress(chipTool, " ***** Test Step 28 : Read the mandatory attribute: ColorLoopActive\n"); + err = TestReadTheMandatoryAttributeColorLoopActive_28(); break; case 29: - ChipLogProgress(chipTool, " ***** Test Step 29 : Write the default values to mandatory attribute: ColorLoopActive\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeColorLoopActive_29(); + ChipLogProgress(chipTool, " ***** Test Step 29 : Validate constraints of attribute: ColorLoopActive\n"); + err = TestValidateConstraintsOfAttributeColorLoopActive_29(); break; case 30: - ChipLogProgress(chipTool, " ***** Test Step 30 : Reads back mandatory attribute: ColorLoopActive\n"); - err = TestReadsBackMandatoryAttributeColorLoopActive_30(); + ChipLogProgress(chipTool, " ***** Test Step 30 : Write the default values to mandatory attribute: ColorLoopActive\n"); + err = TestWriteTheDefaultValuesToMandatoryAttributeColorLoopActive_30(); break; case 31: - ChipLogProgress(chipTool, " ***** Test Step 31 : Read the mandatory attribute: ColorLoopDirection\n"); - err = TestReadTheMandatoryAttributeColorLoopDirection_31(); + ChipLogProgress(chipTool, " ***** Test Step 31 : Reads back mandatory attribute: ColorLoopActive\n"); + err = TestReadsBackMandatoryAttributeColorLoopActive_31(); break; case 32: - ChipLogProgress(chipTool, " ***** Test Step 32 : Validate constraints of attribute: ColorLoopDirection\n"); - err = TestValidateConstraintsOfAttributeColorLoopDirection_32(); + ChipLogProgress(chipTool, " ***** Test Step 32 : Read the mandatory attribute: ColorLoopDirection\n"); + err = TestReadTheMandatoryAttributeColorLoopDirection_32(); break; case 33: - ChipLogProgress(chipTool, - " ***** Test Step 33 : Write the default values to mandatory attribute: ColorLoopDirection\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeColorLoopDirection_33(); + ChipLogProgress(chipTool, " ***** Test Step 33 : Validate constraints of attribute: ColorLoopDirection\n"); + err = TestValidateConstraintsOfAttributeColorLoopDirection_33(); break; case 34: - ChipLogProgress(chipTool, " ***** Test Step 34 : Reads back mandatory attribute: ColorLoopDirection\n"); - err = TestReadsBackMandatoryAttributeColorLoopDirection_34(); + ChipLogProgress(chipTool, + " ***** Test Step 34 : Write the default values to mandatory attribute: ColorLoopDirection\n"); + err = TestWriteTheDefaultValuesToMandatoryAttributeColorLoopDirection_34(); break; case 35: - ChipLogProgress(chipTool, " ***** Test Step 35 : Read the mandatory attribute: ColorLoopTime\n"); - err = TestReadTheMandatoryAttributeColorLoopTime_35(); + ChipLogProgress(chipTool, " ***** Test Step 35 : Reads back mandatory attribute: ColorLoopDirection\n"); + err = TestReadsBackMandatoryAttributeColorLoopDirection_35(); break; case 36: - ChipLogProgress(chipTool, " ***** Test Step 36 : Validate constraints of attribute: ColorLoopTime\n"); - err = TestValidateConstraintsOfAttributeColorLoopTime_36(); + ChipLogProgress(chipTool, " ***** Test Step 36 : Read the mandatory attribute: ColorLoopTime\n"); + err = TestReadTheMandatoryAttributeColorLoopTime_36(); break; case 37: - ChipLogProgress(chipTool, " ***** Test Step 37 : Write the default values to mandatory attribute: ColorLoopTime\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeColorLoopTime_37(); + ChipLogProgress(chipTool, " ***** Test Step 37 : Validate constraints of attribute: ColorLoopTime\n"); + err = TestValidateConstraintsOfAttributeColorLoopTime_37(); break; case 38: - ChipLogProgress(chipTool, " ***** Test Step 38 : Reads back mandatory attribute: ColorLoopTime\n"); - err = TestReadsBackMandatoryAttributeColorLoopTime_38(); + ChipLogProgress(chipTool, " ***** Test Step 38 : Write the default values to mandatory attribute: ColorLoopTime\n"); + err = TestWriteTheDefaultValuesToMandatoryAttributeColorLoopTime_38(); break; case 39: - ChipLogProgress(chipTool, " ***** Test Step 39 : Read the mandatory attribute: ColorLoopStartEnhancedHue\n"); - err = TestReadTheMandatoryAttributeColorLoopStartEnhancedHue_39(); + ChipLogProgress(chipTool, " ***** Test Step 39 : Reads back mandatory attribute: ColorLoopTime\n"); + err = TestReadsBackMandatoryAttributeColorLoopTime_39(); break; case 40: - ChipLogProgress(chipTool, " ***** Test Step 40 : Validate constraints of attribute: ColorLoopStartEnhancedHue\n"); - err = TestValidateConstraintsOfAttributeColorLoopStartEnhancedHue_40(); + ChipLogProgress(chipTool, " ***** Test Step 40 : Read the mandatory attribute: ColorLoopStartEnhancedHue\n"); + err = TestReadTheMandatoryAttributeColorLoopStartEnhancedHue_40(); break; case 41: - ChipLogProgress(chipTool, - " ***** Test Step 41 : Write the default values to mandatory attribute: ColorLoopStartEnhancedHue\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeColorLoopStartEnhancedHue_41(); + ChipLogProgress(chipTool, " ***** Test Step 41 : Validate constraints of attribute: ColorLoopStartEnhancedHue\n"); + err = TestValidateConstraintsOfAttributeColorLoopStartEnhancedHue_41(); break; case 42: - ChipLogProgress(chipTool, " ***** Test Step 42 : Reads back mandatory attribute: ColorLoopStartEnhancedHue\n"); - err = TestReadsBackMandatoryAttributeColorLoopStartEnhancedHue_42(); + ChipLogProgress(chipTool, + " ***** Test Step 42 : Write the default values to mandatory attribute: ColorLoopStartEnhancedHue\n"); + err = TestWriteTheDefaultValuesToMandatoryAttributeColorLoopStartEnhancedHue_42(); break; case 43: - ChipLogProgress(chipTool, " ***** Test Step 43 : Read the mandatory attribute: ColorLoopStoredEnhancedHue\n"); - err = TestReadTheMandatoryAttributeColorLoopStoredEnhancedHue_43(); + ChipLogProgress(chipTool, " ***** Test Step 43 : Reads back mandatory attribute: ColorLoopStartEnhancedHue\n"); + err = TestReadsBackMandatoryAttributeColorLoopStartEnhancedHue_43(); break; case 44: - ChipLogProgress(chipTool, " ***** Test Step 44 : Validate constraints of attribute: ColorLoopStoredEnhancedHue\n"); - err = TestValidateConstraintsOfAttributeColorLoopStoredEnhancedHue_44(); + ChipLogProgress(chipTool, " ***** Test Step 44 : Read the mandatory attribute: ColorLoopStoredEnhancedHue\n"); + err = TestReadTheMandatoryAttributeColorLoopStoredEnhancedHue_44(); break; case 45: - ChipLogProgress(chipTool, - " ***** Test Step 45 : Write the default values to mandatory attribute: ColorLoopStoredEnhancedHue\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeColorLoopStoredEnhancedHue_45(); + ChipLogProgress(chipTool, " ***** Test Step 45 : Validate constraints of attribute: ColorLoopStoredEnhancedHue\n"); + err = TestValidateConstraintsOfAttributeColorLoopStoredEnhancedHue_45(); break; case 46: - ChipLogProgress(chipTool, " ***** Test Step 46 : Reads back mandatory attribute: ColorLoopStoredEnhancedHue\n"); - err = TestReadsBackMandatoryAttributeColorLoopStoredEnhancedHue_46(); + ChipLogProgress(chipTool, + " ***** Test Step 46 : Write the default values to mandatory attribute: ColorLoopStoredEnhancedHue\n"); + err = TestWriteTheDefaultValuesToMandatoryAttributeColorLoopStoredEnhancedHue_46(); break; case 47: - ChipLogProgress(chipTool, " ***** Test Step 47 : Read the mandatory attribute: ColorCapabilities\n"); - err = TestReadTheMandatoryAttributeColorCapabilities_47(); + ChipLogProgress(chipTool, " ***** Test Step 47 : Reads back mandatory attribute: ColorLoopStoredEnhancedHue\n"); + err = TestReadsBackMandatoryAttributeColorLoopStoredEnhancedHue_47(); break; case 48: - ChipLogProgress(chipTool, " ***** Test Step 48 : Validate constraints of attribute: ColorCapabilities\n"); - err = TestValidateConstraintsOfAttributeColorCapabilities_48(); + ChipLogProgress(chipTool, " ***** Test Step 48 : Read the mandatory attribute: ColorCapabilities\n"); + err = TestReadTheMandatoryAttributeColorCapabilities_48(); break; case 49: - ChipLogProgress(chipTool, " ***** Test Step 49 : Write the default values to mandatory attribute: ColorCapabilities\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeColorCapabilities_49(); + ChipLogProgress(chipTool, " ***** Test Step 49 : Validate constraints of attribute: ColorCapabilities\n"); + err = TestValidateConstraintsOfAttributeColorCapabilities_49(); break; case 50: - ChipLogProgress(chipTool, " ***** Test Step 50 : Reads back mandatory attribute: ColorCapabilities\n"); - err = TestReadsBackMandatoryAttributeColorCapabilities_50(); + ChipLogProgress(chipTool, " ***** Test Step 50 : Write the default values to mandatory attribute: ColorCapabilities\n"); + err = TestWriteTheDefaultValuesToMandatoryAttributeColorCapabilities_50(); break; case 51: - ChipLogProgress(chipTool, " ***** Test Step 51 : Read the mandatory attribute: ColorTempPhysicalMinMireds\n"); - err = TestReadTheMandatoryAttributeColorTempPhysicalMinMireds_51(); + ChipLogProgress(chipTool, " ***** Test Step 51 : Reads back mandatory attribute: ColorCapabilities\n"); + err = TestReadsBackMandatoryAttributeColorCapabilities_51(); break; case 52: - ChipLogProgress(chipTool, " ***** Test Step 52 : Validate constraints of attribute: ColorTempPhysicalMinMireds\n"); - err = TestValidateConstraintsOfAttributeColorTempPhysicalMinMireds_52(); + ChipLogProgress(chipTool, " ***** Test Step 52 : Read the mandatory attribute: ColorTempPhysicalMinMireds\n"); + err = TestReadTheMandatoryAttributeColorTempPhysicalMinMireds_52(); break; case 53: - ChipLogProgress(chipTool, - " ***** Test Step 53 : Write the default values to mandatory attribute: ColorTempPhysicalMinMireds\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeColorTempPhysicalMinMireds_53(); + ChipLogProgress(chipTool, " ***** Test Step 53 : Validate constraints of attribute: ColorTempPhysicalMinMireds\n"); + err = TestValidateConstraintsOfAttributeColorTempPhysicalMinMireds_53(); break; case 54: - ChipLogProgress(chipTool, " ***** Test Step 54 : Reads back mandatory attribute: ColorTempPhysicalMinMireds\n"); - err = TestReadsBackMandatoryAttributeColorTempPhysicalMinMireds_54(); + ChipLogProgress(chipTool, + " ***** Test Step 54 : Write the default values to mandatory attribute: ColorTempPhysicalMinMireds\n"); + err = TestWriteTheDefaultValuesToMandatoryAttributeColorTempPhysicalMinMireds_54(); break; case 55: - ChipLogProgress(chipTool, " ***** Test Step 55 : Read the mandatory attribute: ColorTempPhysicalMaxMireds\n"); - err = TestReadTheMandatoryAttributeColorTempPhysicalMaxMireds_55(); + ChipLogProgress(chipTool, " ***** Test Step 55 : Reads back mandatory attribute: ColorTempPhysicalMinMireds\n"); + err = TestReadsBackMandatoryAttributeColorTempPhysicalMinMireds_55(); break; case 56: - ChipLogProgress(chipTool, " ***** Test Step 56 : Validate constraints of attribute: ColorTempPhysicalMaxMireds\n"); - err = TestValidateConstraintsOfAttributeColorTempPhysicalMaxMireds_56(); + ChipLogProgress(chipTool, " ***** Test Step 56 : Read the mandatory attribute: ColorTempPhysicalMaxMireds\n"); + err = TestReadTheMandatoryAttributeColorTempPhysicalMaxMireds_56(); break; case 57: - ChipLogProgress(chipTool, - " ***** Test Step 57 : Write the default values to mandatory attribute: ColorTempPhysicalMaxMireds\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeColorTempPhysicalMaxMireds_57(); + ChipLogProgress(chipTool, " ***** Test Step 57 : Validate constraints of attribute: ColorTempPhysicalMaxMireds\n"); + err = TestValidateConstraintsOfAttributeColorTempPhysicalMaxMireds_57(); break; case 58: - ChipLogProgress(chipTool, " ***** Test Step 58 : Reads back mandatory attribute: ColorTempPhysicalMaxMireds\n"); - err = TestReadsBackMandatoryAttributeColorTempPhysicalMaxMireds_58(); + ChipLogProgress(chipTool, + " ***** Test Step 58 : Write the default values to mandatory attribute: ColorTempPhysicalMaxMireds\n"); + err = TestWriteTheDefaultValuesToMandatoryAttributeColorTempPhysicalMaxMireds_58(); break; case 59: - ChipLogProgress(chipTool, " ***** Test Step 59 : Read the optional attribute: CoupleColorTempToLevelMinMireds\n"); - err = TestReadTheOptionalAttributeCoupleColorTempToLevelMinMireds_59(); + ChipLogProgress(chipTool, " ***** Test Step 59 : Reads back mandatory attribute: ColorTempPhysicalMaxMireds\n"); + err = TestReadsBackMandatoryAttributeColorTempPhysicalMaxMireds_59(); break; case 60: - ChipLogProgress( - chipTool, - " ***** Test Step 60 : Write the default values to optional attribute: CoupleColorTempToLevelMinMireds\n"); - err = TestWriteTheDefaultValuesToOptionalAttributeCoupleColorTempToLevelMinMireds_60(); + ChipLogProgress(chipTool, " ***** Test Step 60 : Read the optional attribute: CoupleColorTempToLevelMinMireds\n"); + err = TestReadTheOptionalAttributeCoupleColorTempToLevelMinMireds_60(); break; case 61: - ChipLogProgress(chipTool, " ***** Test Step 61 : Reads back optional attribute: CoupleColorTempToLevelMinMireds\n"); - err = TestReadsBackOptionalAttributeCoupleColorTempToLevelMinMireds_61(); + ChipLogProgress( + chipTool, + " ***** Test Step 61 : Write the default values to optional attribute: CoupleColorTempToLevelMinMireds\n"); + err = TestWriteTheDefaultValuesToOptionalAttributeCoupleColorTempToLevelMinMireds_61(); break; case 62: - ChipLogProgress(chipTool, " ***** Test Step 62 : Read the optional attribute: StartUpColorTemperatureMireds\n"); - err = TestReadTheOptionalAttributeStartUpColorTemperatureMireds_62(); + ChipLogProgress(chipTool, " ***** Test Step 62 : Reads back optional attribute: CoupleColorTempToLevelMinMireds\n"); + err = TestReadsBackOptionalAttributeCoupleColorTempToLevelMinMireds_62(); break; case 63: - ChipLogProgress( - chipTool, " ***** Test Step 63 : Write the default values to optional attribute: StartUpColorTemperatureMireds\n"); - err = TestWriteTheDefaultValuesToOptionalAttributeStartUpColorTemperatureMireds_63(); + ChipLogProgress(chipTool, " ***** Test Step 63 : Read the optional attribute: StartUpColorTemperatureMireds\n"); + err = TestReadTheOptionalAttributeStartUpColorTemperatureMireds_63(); break; case 64: - ChipLogProgress(chipTool, " ***** Test Step 64 : Reads back optional attribute: StartUpColorTemperatureMireds\n"); - err = TestReadsBackOptionalAttributeStartUpColorTemperatureMireds_64(); + ChipLogProgress( + chipTool, " ***** Test Step 64 : Write the default values to optional attribute: StartUpColorTemperatureMireds\n"); + err = TestWriteTheDefaultValuesToOptionalAttributeStartUpColorTemperatureMireds_64(); break; case 65: - ChipLogProgress(chipTool, " ***** Test Step 65 : Read the Optional attribute: RemainingTime\n"); - err = TestReadTheOptionalAttributeRemainingTime_65(); + ChipLogProgress(chipTool, " ***** Test Step 65 : Reads back optional attribute: StartUpColorTemperatureMireds\n"); + err = TestReadsBackOptionalAttributeStartUpColorTemperatureMireds_65(); break; case 66: - ChipLogProgress(chipTool, " ***** Test Step 66 : Validate constraints of attribute: RemainingTime\n"); - err = TestValidateConstraintsOfAttributeRemainingTime_66(); + ChipLogProgress(chipTool, " ***** Test Step 66 : Read the Optional attribute: RemainingTime\n"); + err = TestReadTheOptionalAttributeRemainingTime_66(); break; case 67: - ChipLogProgress(chipTool, " ***** Test Step 67 : Write the default values to optional attribute: RemainingTime\n"); - err = TestWriteTheDefaultValuesToOptionalAttributeRemainingTime_67(); + ChipLogProgress(chipTool, " ***** Test Step 67 : Validate constraints of attribute: RemainingTime\n"); + err = TestValidateConstraintsOfAttributeRemainingTime_67(); break; case 68: - ChipLogProgress(chipTool, " ***** Test Step 68 : Reads back optional attribute: RemainingTime\n"); - err = TestReadsBackOptionalAttributeRemainingTime_68(); + ChipLogProgress(chipTool, " ***** Test Step 68 : Write the default values to optional attribute: RemainingTime\n"); + err = TestWriteTheDefaultValuesToOptionalAttributeRemainingTime_68(); break; case 69: - ChipLogProgress(chipTool, " ***** Test Step 69 : Read the optional attribute: DriftCompensation\n"); - err = TestReadTheOptionalAttributeDriftCompensation_69(); + ChipLogProgress(chipTool, " ***** Test Step 69 : Reads back optional attribute: RemainingTime\n"); + err = TestReadsBackOptionalAttributeRemainingTime_69(); break; case 70: - ChipLogProgress(chipTool, " ***** Test Step 70 : Write the default values to optional attribute: DriftCompensation\n"); - err = TestWriteTheDefaultValuesToOptionalAttributeDriftCompensation_70(); + ChipLogProgress(chipTool, " ***** Test Step 70 : Read the optional attribute: DriftCompensation\n"); + err = TestReadTheOptionalAttributeDriftCompensation_70(); break; case 71: - ChipLogProgress(chipTool, " ***** Test Step 71 : Reads back optional attribute: DriftCompensation\n"); - err = TestReadsBackOptionalAttributeDriftCompensation_71(); + ChipLogProgress(chipTool, " ***** Test Step 71 : Write the default values to optional attribute: DriftCompensation\n"); + err = TestWriteTheDefaultValuesToOptionalAttributeDriftCompensation_71(); break; case 72: - ChipLogProgress(chipTool, " ***** Test Step 72 : Read the optional attribute: CompensationText\n"); - err = TestReadTheOptionalAttributeCompensationText_72(); + ChipLogProgress(chipTool, " ***** Test Step 72 : Reads back optional attribute: DriftCompensation\n"); + err = TestReadsBackOptionalAttributeDriftCompensation_72(); break; case 73: - ChipLogProgress(chipTool, " ***** Test Step 73 : Read the mandatory attribute: NumberOfPrimaries\n"); - err = TestReadTheMandatoryAttributeNumberOfPrimaries_73(); + ChipLogProgress(chipTool, " ***** Test Step 73 : Read the optional attribute: CompensationText\n"); + err = TestReadTheOptionalAttributeCompensationText_73(); break; case 74: - ChipLogProgress(chipTool, " ***** Test Step 74 : Write the default mandatory attribute: NumberOfPrimaries\n"); - err = TestWriteTheDefaultMandatoryAttributeNumberOfPrimaries_74(); + ChipLogProgress(chipTool, " ***** Test Step 74 : Read the mandatory attribute: NumberOfPrimaries\n"); + err = TestReadTheMandatoryAttributeNumberOfPrimaries_74(); break; case 75: - ChipLogProgress(chipTool, " ***** Test Step 75 : Read back the mandatory attribute: NumberOfPrimaries\n"); - err = TestReadBackTheMandatoryAttributeNumberOfPrimaries_75(); + ChipLogProgress(chipTool, " ***** Test Step 75 : Write the default mandatory attribute: NumberOfPrimaries\n"); + err = TestWriteTheDefaultMandatoryAttributeNumberOfPrimaries_75(); break; case 76: - ChipLogProgress(chipTool, " ***** Test Step 76 : Read the mandatory attribute: Primary1X\n"); - err = TestReadTheMandatoryAttributePrimary1X_76(); + ChipLogProgress(chipTool, " ***** Test Step 76 : Read back the mandatory attribute: NumberOfPrimaries\n"); + err = TestReadBackTheMandatoryAttributeNumberOfPrimaries_76(); break; case 77: - ChipLogProgress(chipTool, " ***** Test Step 77 : Write the default mandatory attribute: Primary1X\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary1X_77(); + ChipLogProgress(chipTool, " ***** Test Step 77 : Read the mandatory attribute: Primary1X\n"); + err = TestReadTheMandatoryAttributePrimary1X_77(); break; case 78: - ChipLogProgress(chipTool, " ***** Test Step 78 : Read back the mandatory attribute: Primary1X\n"); - err = TestReadBackTheMandatoryAttributePrimary1X_78(); + ChipLogProgress(chipTool, " ***** Test Step 78 : Write the default mandatory attribute: Primary1X\n"); + err = TestWriteTheDefaultMandatoryAttributePrimary1X_78(); break; case 79: - ChipLogProgress(chipTool, " ***** Test Step 79 : Read the mandatory attribute: Primary1Y\n"); - err = TestReadTheMandatoryAttributePrimary1Y_79(); + ChipLogProgress(chipTool, " ***** Test Step 79 : Read back the mandatory attribute: Primary1X\n"); + err = TestReadBackTheMandatoryAttributePrimary1X_79(); break; case 80: - ChipLogProgress(chipTool, " ***** Test Step 80 : Write the default mandatory attribute: Primary1Y\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary1Y_80(); + ChipLogProgress(chipTool, " ***** Test Step 80 : Read the mandatory attribute: Primary1Y\n"); + err = TestReadTheMandatoryAttributePrimary1Y_80(); break; case 81: - ChipLogProgress(chipTool, " ***** Test Step 81 : Read back the mandatory attribute: Primary1Y\n"); - err = TestReadBackTheMandatoryAttributePrimary1Y_81(); + ChipLogProgress(chipTool, " ***** Test Step 81 : Write the default mandatory attribute: Primary1Y\n"); + err = TestWriteTheDefaultMandatoryAttributePrimary1Y_81(); break; case 82: - ChipLogProgress(chipTool, " ***** Test Step 82 : Read the mandatory attribute: Primary1Intensity\n"); - err = TestReadTheMandatoryAttributePrimary1Intensity_82(); + ChipLogProgress(chipTool, " ***** Test Step 82 : Read back the mandatory attribute: Primary1Y\n"); + err = TestReadBackTheMandatoryAttributePrimary1Y_82(); break; case 83: - ChipLogProgress(chipTool, " ***** Test Step 83 : Read the mandatory attribute: Primary2X\n"); - err = TestReadTheMandatoryAttributePrimary2X_83(); + ChipLogProgress(chipTool, " ***** Test Step 83 : Read the mandatory attribute: Primary1Intensity\n"); + err = TestReadTheMandatoryAttributePrimary1Intensity_83(); break; case 84: - ChipLogProgress(chipTool, " ***** Test Step 84 : Write the default mandatory attribute: Primary2X\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary2X_84(); + ChipLogProgress(chipTool, " ***** Test Step 84 : Read the mandatory attribute: Primary2X\n"); + err = TestReadTheMandatoryAttributePrimary2X_84(); break; case 85: - ChipLogProgress(chipTool, " ***** Test Step 85 : Read back the mandatory attribute: Primary2X\n"); - err = TestReadBackTheMandatoryAttributePrimary2X_85(); + ChipLogProgress(chipTool, " ***** Test Step 85 : Write the default mandatory attribute: Primary2X\n"); + err = TestWriteTheDefaultMandatoryAttributePrimary2X_85(); break; case 86: - ChipLogProgress(chipTool, " ***** Test Step 86 : Read the mandatory attribute: Primary2Y\n"); - err = TestReadTheMandatoryAttributePrimary2Y_86(); + ChipLogProgress(chipTool, " ***** Test Step 86 : Read back the mandatory attribute: Primary2X\n"); + err = TestReadBackTheMandatoryAttributePrimary2X_86(); break; case 87: - ChipLogProgress(chipTool, " ***** Test Step 87 : Write the default mandatory attribute: Primary2Y\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary2Y_87(); + ChipLogProgress(chipTool, " ***** Test Step 87 : Read the mandatory attribute: Primary2Y\n"); + err = TestReadTheMandatoryAttributePrimary2Y_87(); break; case 88: - ChipLogProgress(chipTool, " ***** Test Step 88 : Read back the mandatory attribute: Primary2Y\n"); - err = TestReadBackTheMandatoryAttributePrimary2Y_88(); + ChipLogProgress(chipTool, " ***** Test Step 88 : Write the default mandatory attribute: Primary2Y\n"); + err = TestWriteTheDefaultMandatoryAttributePrimary2Y_88(); break; case 89: - ChipLogProgress(chipTool, " ***** Test Step 89 : Validate constraints of attribute: Primary2Intensity\n"); - err = TestValidateConstraintsOfAttributePrimary2Intensity_89(); + ChipLogProgress(chipTool, " ***** Test Step 89 : Read back the mandatory attribute: Primary2Y\n"); + err = TestReadBackTheMandatoryAttributePrimary2Y_89(); break; case 90: - ChipLogProgress(chipTool, " ***** Test Step 90 : Read the mandatory attribute: Primary3X\n"); - err = TestReadTheMandatoryAttributePrimary3X_90(); + ChipLogProgress(chipTool, " ***** Test Step 90 : Validate constraints of attribute: Primary2Intensity\n"); + err = TestValidateConstraintsOfAttributePrimary2Intensity_90(); break; case 91: - ChipLogProgress(chipTool, " ***** Test Step 91 : Write the default mandatory attribute: Primary3X\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary3X_91(); + ChipLogProgress(chipTool, " ***** Test Step 91 : Read the mandatory attribute: Primary3X\n"); + err = TestReadTheMandatoryAttributePrimary3X_91(); break; case 92: - ChipLogProgress(chipTool, " ***** Test Step 92 : Read back the mandatory attribute: Primary3X\n"); - err = TestReadBackTheMandatoryAttributePrimary3X_92(); + ChipLogProgress(chipTool, " ***** Test Step 92 : Write the default mandatory attribute: Primary3X\n"); + err = TestWriteTheDefaultMandatoryAttributePrimary3X_92(); break; case 93: - ChipLogProgress(chipTool, " ***** Test Step 93 : Read the mandatory attribute: Primary3Y\n"); - err = TestReadTheMandatoryAttributePrimary3Y_93(); + ChipLogProgress(chipTool, " ***** Test Step 93 : Read back the mandatory attribute: Primary3X\n"); + err = TestReadBackTheMandatoryAttributePrimary3X_93(); break; case 94: - ChipLogProgress(chipTool, " ***** Test Step 94 : Write the default mandatory attribute: Primary3Y\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary3Y_94(); + ChipLogProgress(chipTool, " ***** Test Step 94 : Read the mandatory attribute: Primary3Y\n"); + err = TestReadTheMandatoryAttributePrimary3Y_94(); break; case 95: - ChipLogProgress(chipTool, " ***** Test Step 95 : Read back the mandatory attribute: Primary3Y\n"); - err = TestReadBackTheMandatoryAttributePrimary3Y_95(); + ChipLogProgress(chipTool, " ***** Test Step 95 : Write the default mandatory attribute: Primary3Y\n"); + err = TestWriteTheDefaultMandatoryAttributePrimary3Y_95(); break; case 96: - ChipLogProgress(chipTool, " ***** Test Step 96 : Read the mandatory attribute: Primary3Intensity\n"); - err = TestReadTheMandatoryAttributePrimary3Intensity_96(); + ChipLogProgress(chipTool, " ***** Test Step 96 : Read back the mandatory attribute: Primary3Y\n"); + err = TestReadBackTheMandatoryAttributePrimary3Y_96(); break; case 97: - ChipLogProgress(chipTool, " ***** Test Step 97 : Read the mandatory attribute: Primary4X\n"); - err = TestReadTheMandatoryAttributePrimary4X_97(); + ChipLogProgress(chipTool, " ***** Test Step 97 : Read the mandatory attribute: Primary3Intensity\n"); + err = TestReadTheMandatoryAttributePrimary3Intensity_97(); break; case 98: - ChipLogProgress(chipTool, " ***** Test Step 98 : Write the default mandatory attribute: Primary4X\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary4X_98(); + ChipLogProgress(chipTool, " ***** Test Step 98 : Read the mandatory attribute: Primary4X\n"); + err = TestReadTheMandatoryAttributePrimary4X_98(); break; case 99: - ChipLogProgress(chipTool, " ***** Test Step 99 : Read back the mandatory attribute: Primary4X\n"); - err = TestReadBackTheMandatoryAttributePrimary4X_99(); + ChipLogProgress(chipTool, " ***** Test Step 99 : Write the default mandatory attribute: Primary4X\n"); + err = TestWriteTheDefaultMandatoryAttributePrimary4X_99(); break; case 100: - ChipLogProgress(chipTool, " ***** Test Step 100 : Read the mandatory attribute: Primary4Y\n"); - err = TestReadTheMandatoryAttributePrimary4Y_100(); + ChipLogProgress(chipTool, " ***** Test Step 100 : Read back the mandatory attribute: Primary4X\n"); + err = TestReadBackTheMandatoryAttributePrimary4X_100(); break; case 101: - ChipLogProgress(chipTool, " ***** Test Step 101 : Write the default mandatory attribute: Primary4Y\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary4Y_101(); + ChipLogProgress(chipTool, " ***** Test Step 101 : Read the mandatory attribute: Primary4Y\n"); + err = TestReadTheMandatoryAttributePrimary4Y_101(); break; case 102: - ChipLogProgress(chipTool, " ***** Test Step 102 : Read back the mandatory attribute: Primary4Y\n"); - err = TestReadBackTheMandatoryAttributePrimary4Y_102(); + ChipLogProgress(chipTool, " ***** Test Step 102 : Write the default mandatory attribute: Primary4Y\n"); + err = TestWriteTheDefaultMandatoryAttributePrimary4Y_102(); break; case 103: - ChipLogProgress(chipTool, " ***** Test Step 103 : Read the mandatory attribute: Primary4Intensity\n"); - err = TestReadTheMandatoryAttributePrimary4Intensity_103(); + ChipLogProgress(chipTool, " ***** Test Step 103 : Read back the mandatory attribute: Primary4Y\n"); + err = TestReadBackTheMandatoryAttributePrimary4Y_103(); break; case 104: - ChipLogProgress(chipTool, " ***** Test Step 104 : Read the mandatory attribute: Primary5X\n"); - err = TestReadTheMandatoryAttributePrimary5X_104(); + ChipLogProgress(chipTool, " ***** Test Step 104 : Read the mandatory attribute: Primary4Intensity\n"); + err = TestReadTheMandatoryAttributePrimary4Intensity_104(); break; case 105: - ChipLogProgress(chipTool, " ***** Test Step 105 : Write the default mandatory attribute: Primary5X\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary5X_105(); + ChipLogProgress(chipTool, " ***** Test Step 105 : Read the mandatory attribute: Primary5X\n"); + err = TestReadTheMandatoryAttributePrimary5X_105(); break; case 106: - ChipLogProgress(chipTool, " ***** Test Step 106 : Read back the mandatory attribute: Primary5X\n"); - err = TestReadBackTheMandatoryAttributePrimary5X_106(); + ChipLogProgress(chipTool, " ***** Test Step 106 : Write the default mandatory attribute: Primary5X\n"); + err = TestWriteTheDefaultMandatoryAttributePrimary5X_106(); break; case 107: - ChipLogProgress(chipTool, " ***** Test Step 107 : Read the mandatory attribute: Primary5Y\n"); - err = TestReadTheMandatoryAttributePrimary5Y_107(); + ChipLogProgress(chipTool, " ***** Test Step 107 : Read back the mandatory attribute: Primary5X\n"); + err = TestReadBackTheMandatoryAttributePrimary5X_107(); break; case 108: - ChipLogProgress(chipTool, " ***** Test Step 108 : Write the default mandatory attribute: Primary5Y\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary5Y_108(); + ChipLogProgress(chipTool, " ***** Test Step 108 : Read the mandatory attribute: Primary5Y\n"); + err = TestReadTheMandatoryAttributePrimary5Y_108(); break; case 109: - ChipLogProgress(chipTool, " ***** Test Step 109 : Read back the mandatory attribute: Primary5Y\n"); - err = TestReadBackTheMandatoryAttributePrimary5Y_109(); + ChipLogProgress(chipTool, " ***** Test Step 109 : Write the default mandatory attribute: Primary5Y\n"); + err = TestWriteTheDefaultMandatoryAttributePrimary5Y_109(); break; case 110: - ChipLogProgress(chipTool, " ***** Test Step 110 : Read the mandatory attribute: Primary5Intensity\n"); - err = TestReadTheMandatoryAttributePrimary5Intensity_110(); + ChipLogProgress(chipTool, " ***** Test Step 110 : Read back the mandatory attribute: Primary5Y\n"); + err = TestReadBackTheMandatoryAttributePrimary5Y_110(); break; case 111: - ChipLogProgress(chipTool, " ***** Test Step 111 : Read the mandatory attribute: Primary6X\n"); - err = TestReadTheMandatoryAttributePrimary6X_111(); + ChipLogProgress(chipTool, " ***** Test Step 111 : Read the mandatory attribute: Primary5Intensity\n"); + err = TestReadTheMandatoryAttributePrimary5Intensity_111(); break; case 112: - ChipLogProgress(chipTool, " ***** Test Step 112 : Write the default mandatory attribute: Primary6X\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary6X_112(); + ChipLogProgress(chipTool, " ***** Test Step 112 : Read the mandatory attribute: Primary6X\n"); + err = TestReadTheMandatoryAttributePrimary6X_112(); break; case 113: - ChipLogProgress(chipTool, " ***** Test Step 113 : Read back the mandatory attribute: Primary6X\n"); - err = TestReadBackTheMandatoryAttributePrimary6X_113(); + ChipLogProgress(chipTool, " ***** Test Step 113 : Write the default mandatory attribute: Primary6X\n"); + err = TestWriteTheDefaultMandatoryAttributePrimary6X_113(); break; case 114: - ChipLogProgress(chipTool, " ***** Test Step 114 : Read the mandatory attribute: Primary6Y\n"); - err = TestReadTheMandatoryAttributePrimary6Y_114(); + ChipLogProgress(chipTool, " ***** Test Step 114 : Read back the mandatory attribute: Primary6X\n"); + err = TestReadBackTheMandatoryAttributePrimary6X_114(); break; case 115: - ChipLogProgress(chipTool, " ***** Test Step 115 : Write the default mandatory attribute: Primary6Y\n"); - err = TestWriteTheDefaultMandatoryAttributePrimary6Y_115(); + ChipLogProgress(chipTool, " ***** Test Step 115 : Read the mandatory attribute: Primary6Y\n"); + err = TestReadTheMandatoryAttributePrimary6Y_115(); break; case 116: - ChipLogProgress(chipTool, " ***** Test Step 116 : Read back the mandatory attribute: Primary6Y\n"); - err = TestReadBackTheMandatoryAttributePrimary6Y_116(); + ChipLogProgress(chipTool, " ***** Test Step 116 : Write the default mandatory attribute: Primary6Y\n"); + err = TestWriteTheDefaultMandatoryAttributePrimary6Y_116(); break; case 117: - ChipLogProgress(chipTool, " ***** Test Step 117 : Read the mandatory attribute: Primary6Intensity\n"); - err = TestReadTheMandatoryAttributePrimary6Intensity_117(); + ChipLogProgress(chipTool, " ***** Test Step 117 : Read back the mandatory attribute: Primary6Y\n"); + err = TestReadBackTheMandatoryAttributePrimary6Y_117(); break; case 118: - ChipLogProgress(chipTool, " ***** Test Step 118 : Read the optional attribute: WhitePointX\n"); - err = TestReadTheOptionalAttributeWhitePointX_118(); + ChipLogProgress(chipTool, " ***** Test Step 118 : Read the mandatory attribute: Primary6Intensity\n"); + err = TestReadTheMandatoryAttributePrimary6Intensity_118(); break; case 119: - ChipLogProgress(chipTool, " ***** Test Step 119 : Write the default optional attribute: WhitePointX\n"); - err = TestWriteTheDefaultOptionalAttributeWhitePointX_119(); + ChipLogProgress(chipTool, " ***** Test Step 119 : Read the optional attribute: WhitePointX\n"); + err = TestReadTheOptionalAttributeWhitePointX_119(); break; case 120: - ChipLogProgress(chipTool, " ***** Test Step 120 : Read back the optional attribute: WhitePointX\n"); - err = TestReadBackTheOptionalAttributeWhitePointX_120(); + ChipLogProgress(chipTool, " ***** Test Step 120 : Write the default optional attribute: WhitePointX\n"); + err = TestWriteTheDefaultOptionalAttributeWhitePointX_120(); break; case 121: - ChipLogProgress(chipTool, " ***** Test Step 121 : Read the optional attribute: WhitePointY\n"); - err = TestReadTheOptionalAttributeWhitePointY_121(); + ChipLogProgress(chipTool, " ***** Test Step 121 : Read back the optional attribute: WhitePointX\n"); + err = TestReadBackTheOptionalAttributeWhitePointX_121(); break; case 122: - ChipLogProgress(chipTool, " ***** Test Step 122 : Write the default optional attribute: WhitePointY\n"); - err = TestWriteTheDefaultOptionalAttributeWhitePointY_122(); + ChipLogProgress(chipTool, " ***** Test Step 122 : Read the optional attribute: WhitePointY\n"); + err = TestReadTheOptionalAttributeWhitePointY_122(); break; case 123: - ChipLogProgress(chipTool, " ***** Test Step 123 : Read back the optional attribute: WhitePointY\n"); - err = TestReadBackTheOptionalAttributeWhitePointY_123(); + ChipLogProgress(chipTool, " ***** Test Step 123 : Write the default optional attribute: WhitePointY\n"); + err = TestWriteTheDefaultOptionalAttributeWhitePointY_123(); break; case 124: - ChipLogProgress(chipTool, " ***** Test Step 124 : Read the optional attribute: ColorPointRX\n"); - err = TestReadTheOptionalAttributeColorPointRX_124(); + ChipLogProgress(chipTool, " ***** Test Step 124 : Read back the optional attribute: WhitePointY\n"); + err = TestReadBackTheOptionalAttributeWhitePointY_124(); break; case 125: - ChipLogProgress(chipTool, " ***** Test Step 125 : Write the default optional attribute: ColorPointRX\n"); - err = TestWriteTheDefaultOptionalAttributeColorPointRX_125(); + ChipLogProgress(chipTool, " ***** Test Step 125 : Read the optional attribute: ColorPointRX\n"); + err = TestReadTheOptionalAttributeColorPointRX_125(); break; case 126: - ChipLogProgress(chipTool, " ***** Test Step 126 : Read back the optional attribute: ColorPointRX\n"); - err = TestReadBackTheOptionalAttributeColorPointRX_126(); + ChipLogProgress(chipTool, " ***** Test Step 126 : Write the default optional attribute: ColorPointRX\n"); + err = TestWriteTheDefaultOptionalAttributeColorPointRX_126(); break; case 127: - ChipLogProgress(chipTool, " ***** Test Step 127 : Read the optional attribute: ColorPointRY\n"); - err = TestReadTheOptionalAttributeColorPointRY_127(); + ChipLogProgress(chipTool, " ***** Test Step 127 : Read back the optional attribute: ColorPointRX\n"); + err = TestReadBackTheOptionalAttributeColorPointRX_127(); break; case 128: - ChipLogProgress(chipTool, " ***** Test Step 128 : Write the default optional attribute: ColorPointRY\n"); - err = TestWriteTheDefaultOptionalAttributeColorPointRY_128(); + ChipLogProgress(chipTool, " ***** Test Step 128 : Read the optional attribute: ColorPointRY\n"); + err = TestReadTheOptionalAttributeColorPointRY_128(); break; case 129: - ChipLogProgress(chipTool, " ***** Test Step 129 : Read back the optional attribute: ColorPointRY\n"); - err = TestReadBackTheOptionalAttributeColorPointRY_129(); + ChipLogProgress(chipTool, " ***** Test Step 129 : Write the default optional attribute: ColorPointRY\n"); + err = TestWriteTheDefaultOptionalAttributeColorPointRY_129(); break; case 130: - ChipLogProgress(chipTool, " ***** Test Step 130 : Read the optional attribute: ColorPointRIntensity\n"); - err = TestReadTheOptionalAttributeColorPointRIntensity_130(); + ChipLogProgress(chipTool, " ***** Test Step 130 : Read back the optional attribute: ColorPointRY\n"); + err = TestReadBackTheOptionalAttributeColorPointRY_130(); break; case 131: - ChipLogProgress(chipTool, " ***** Test Step 131 : Read the optional attribute: ColorPointGX\n"); - err = TestReadTheOptionalAttributeColorPointGX_131(); + ChipLogProgress(chipTool, " ***** Test Step 131 : Read the optional attribute: ColorPointRIntensity\n"); + err = TestReadTheOptionalAttributeColorPointRIntensity_131(); break; case 132: - ChipLogProgress(chipTool, " ***** Test Step 132 : Write the default optional attribute: ColorPointGX\n"); - err = TestWriteTheDefaultOptionalAttributeColorPointGX_132(); + ChipLogProgress(chipTool, " ***** Test Step 132 : Read the optional attribute: ColorPointGX\n"); + err = TestReadTheOptionalAttributeColorPointGX_132(); break; case 133: - ChipLogProgress(chipTool, " ***** Test Step 133 : Read back the optional attribute: ColorPointGX\n"); - err = TestReadBackTheOptionalAttributeColorPointGX_133(); + ChipLogProgress(chipTool, " ***** Test Step 133 : Write the default optional attribute: ColorPointGX\n"); + err = TestWriteTheDefaultOptionalAttributeColorPointGX_133(); break; case 134: - ChipLogProgress(chipTool, " ***** Test Step 134 : Read the optional attribute: ColorPointGY\n"); - err = TestReadTheOptionalAttributeColorPointGY_134(); + ChipLogProgress(chipTool, " ***** Test Step 134 : Read back the optional attribute: ColorPointGX\n"); + err = TestReadBackTheOptionalAttributeColorPointGX_134(); break; case 135: - ChipLogProgress(chipTool, " ***** Test Step 135 : Write the default optional attribute: ColorPointGY\n"); - err = TestWriteTheDefaultOptionalAttributeColorPointGY_135(); + ChipLogProgress(chipTool, " ***** Test Step 135 : Read the optional attribute: ColorPointGY\n"); + err = TestReadTheOptionalAttributeColorPointGY_135(); break; case 136: - ChipLogProgress(chipTool, " ***** Test Step 136 : Read back the optional attribute: ColorPointGY\n"); - err = TestReadBackTheOptionalAttributeColorPointGY_136(); + ChipLogProgress(chipTool, " ***** Test Step 136 : Write the default optional attribute: ColorPointGY\n"); + err = TestWriteTheDefaultOptionalAttributeColorPointGY_136(); break; case 137: - ChipLogProgress(chipTool, " ***** Test Step 137 : Read the optional attribute: ColorPointGIntensity\n"); - err = TestReadTheOptionalAttributeColorPointGIntensity_137(); + ChipLogProgress(chipTool, " ***** Test Step 137 : Read back the optional attribute: ColorPointGY\n"); + err = TestReadBackTheOptionalAttributeColorPointGY_137(); break; case 138: - ChipLogProgress(chipTool, " ***** Test Step 138 : Read the optional attribute: ColorPointBX\n"); - err = TestReadTheOptionalAttributeColorPointBX_138(); + ChipLogProgress(chipTool, " ***** Test Step 138 : Read the optional attribute: ColorPointGIntensity\n"); + err = TestReadTheOptionalAttributeColorPointGIntensity_138(); break; case 139: - ChipLogProgress(chipTool, " ***** Test Step 139 : Write the default optional attribute: ColorPointBX\n"); - err = TestWriteTheDefaultOptionalAttributeColorPointBX_139(); + ChipLogProgress(chipTool, " ***** Test Step 139 : Read the optional attribute: ColorPointBX\n"); + err = TestReadTheOptionalAttributeColorPointBX_139(); break; case 140: - ChipLogProgress(chipTool, " ***** Test Step 140 : Read back the optional attribute: ColorPointBX\n"); - err = TestReadBackTheOptionalAttributeColorPointBX_140(); + ChipLogProgress(chipTool, " ***** Test Step 140 : Write the default optional attribute: ColorPointBX\n"); + err = TestWriteTheDefaultOptionalAttributeColorPointBX_140(); break; case 141: - ChipLogProgress(chipTool, " ***** Test Step 141 : Read the optional attribute: ColorPointBY\n"); - err = TestReadTheOptionalAttributeColorPointBY_141(); + ChipLogProgress(chipTool, " ***** Test Step 141 : Read back the optional attribute: ColorPointBX\n"); + err = TestReadBackTheOptionalAttributeColorPointBX_141(); break; case 142: - ChipLogProgress(chipTool, " ***** Test Step 142 : Write the default optional attribute: ColorPointBY\n"); - err = TestWriteTheDefaultOptionalAttributeColorPointBY_142(); + ChipLogProgress(chipTool, " ***** Test Step 142 : Read the optional attribute: ColorPointBY\n"); + err = TestReadTheOptionalAttributeColorPointBY_142(); break; case 143: - ChipLogProgress(chipTool, " ***** Test Step 143 : Read back the optional attribute: ColorPointBY\n"); - err = TestReadBackTheOptionalAttributeColorPointBY_143(); + ChipLogProgress(chipTool, " ***** Test Step 143 : Write the default optional attribute: ColorPointBY\n"); + err = TestWriteTheDefaultOptionalAttributeColorPointBY_143(); break; case 144: - ChipLogProgress(chipTool, " ***** Test Step 144 : Read the optional attribute: ColorPointBIntensity\n"); - err = TestReadTheOptionalAttributeColorPointBIntensity_144(); + ChipLogProgress(chipTool, " ***** Test Step 144 : Read back the optional attribute: ColorPointBY\n"); + err = TestReadBackTheOptionalAttributeColorPointBY_144(); + break; + case 145: + ChipLogProgress(chipTool, " ***** Test Step 145 : Read the optional attribute: ColorPointBIntensity\n"); + err = TestReadTheOptionalAttributeColorPointBIntensity_145(); break; } @@ -2050,17 +2090,7 @@ class Test_TC_CC_2_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 145; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context, uint8_t currentHue) - { - (static_cast(context))->OnSuccessResponse_0(currentHue); - } + const uint16_t mTestCount = 146; static void OnFailureCallback_1(void * context, EmberAfStatus status) { @@ -2077,26 +2107,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } + static void OnSuccessCallback_2(void * context, uint8_t currentHue) + { + (static_cast(context))->OnSuccessResponse_2(currentHue); + } static void OnFailureCallback_3(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, uint8_t currentHue) - { - (static_cast(context))->OnSuccessResponse_3(currentHue); - } + static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } static void OnFailureCallback_4(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, uint8_t currentSaturation) + static void OnSuccessCallback_4(void * context, uint8_t currentHue) { - (static_cast(context))->OnSuccessResponse_4(currentSaturation); + (static_cast(context))->OnSuccessResponse_4(currentHue); } static void OnFailureCallback_5(void * context, EmberAfStatus status) @@ -2114,26 +2144,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } + static void OnSuccessCallback_6(void * context, uint8_t currentSaturation) + { + (static_cast(context))->OnSuccessResponse_6(currentSaturation); + } static void OnFailureCallback_7(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, uint8_t currentSaturation) - { - (static_cast(context))->OnSuccessResponse_7(currentSaturation); - } + static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } static void OnFailureCallback_8(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_8(void * context, uint16_t currentX) + static void OnSuccessCallback_8(void * context, uint8_t currentSaturation) { - (static_cast(context))->OnSuccessResponse_8(currentX); + (static_cast(context))->OnSuccessResponse_8(currentSaturation); } static void OnFailureCallback_9(void * context, EmberAfStatus status) @@ -2151,26 +2181,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); } - static void OnSuccessCallback_10(void * context) { (static_cast(context))->OnSuccessResponse_10(); } + static void OnSuccessCallback_10(void * context, uint16_t currentX) + { + (static_cast(context))->OnSuccessResponse_10(currentX); + } static void OnFailureCallback_11(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_11(chip::to_underlying(status)); } - static void OnSuccessCallback_11(void * context, uint16_t currentX) - { - (static_cast(context))->OnSuccessResponse_11(currentX); - } + static void OnSuccessCallback_11(void * context) { (static_cast(context))->OnSuccessResponse_11(); } static void OnFailureCallback_12(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_12(chip::to_underlying(status)); } - static void OnSuccessCallback_12(void * context, uint16_t currentY) + static void OnSuccessCallback_12(void * context, uint16_t currentX) { - (static_cast(context))->OnSuccessResponse_12(currentY); + (static_cast(context))->OnSuccessResponse_12(currentX); } static void OnFailureCallback_13(void * context, EmberAfStatus status) @@ -2188,26 +2218,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_14(chip::to_underlying(status)); } - static void OnSuccessCallback_14(void * context) { (static_cast(context))->OnSuccessResponse_14(); } + static void OnSuccessCallback_14(void * context, uint16_t currentY) + { + (static_cast(context))->OnSuccessResponse_14(currentY); + } static void OnFailureCallback_15(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_15(chip::to_underlying(status)); } - static void OnSuccessCallback_15(void * context, uint16_t currentY) - { - (static_cast(context))->OnSuccessResponse_15(currentY); - } + static void OnSuccessCallback_15(void * context) { (static_cast(context))->OnSuccessResponse_15(); } static void OnFailureCallback_16(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_16(chip::to_underlying(status)); } - static void OnSuccessCallback_16(void * context, uint16_t colorTemperature) + static void OnSuccessCallback_16(void * context, uint16_t currentY) { - (static_cast(context))->OnSuccessResponse_16(colorTemperature); + (static_cast(context))->OnSuccessResponse_16(currentY); } static void OnFailureCallback_17(void * context, EmberAfStatus status) @@ -2215,9 +2245,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_17(chip::to_underlying(status)); } - static void OnSuccessCallback_17(void * context, uint8_t colorMode) + static void OnSuccessCallback_17(void * context, uint16_t colorTemperature) { - (static_cast(context))->OnSuccessResponse_17(colorMode); + (static_cast(context))->OnSuccessResponse_17(colorTemperature); } static void OnFailureCallback_18(void * context, EmberAfStatus status) @@ -2225,9 +2255,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_18(chip::to_underlying(status)); } - static void OnSuccessCallback_18(void * context, uint8_t colorControlOptions) + static void OnSuccessCallback_18(void * context, uint8_t colorMode) { - (static_cast(context))->OnSuccessResponse_18(colorControlOptions); + (static_cast(context))->OnSuccessResponse_18(colorMode); } static void OnFailureCallback_19(void * context, EmberAfStatus status) @@ -2245,26 +2275,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_20(chip::to_underlying(status)); } - static void OnSuccessCallback_20(void * context) { (static_cast(context))->OnSuccessResponse_20(); } + static void OnSuccessCallback_20(void * context, uint8_t colorControlOptions) + { + (static_cast(context))->OnSuccessResponse_20(colorControlOptions); + } static void OnFailureCallback_21(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_21(chip::to_underlying(status)); } - static void OnSuccessCallback_21(void * context, uint8_t colorControlOptions) - { - (static_cast(context))->OnSuccessResponse_21(colorControlOptions); - } + static void OnSuccessCallback_21(void * context) { (static_cast(context))->OnSuccessResponse_21(); } static void OnFailureCallback_22(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_22(chip::to_underlying(status)); } - static void OnSuccessCallback_22(void * context, uint16_t enhancedCurrentHue) + static void OnSuccessCallback_22(void * context, uint8_t colorControlOptions) { - (static_cast(context))->OnSuccessResponse_22(enhancedCurrentHue); + (static_cast(context))->OnSuccessResponse_22(colorControlOptions); } static void OnFailureCallback_23(void * context, EmberAfStatus status) @@ -2282,26 +2312,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_24(chip::to_underlying(status)); } - static void OnSuccessCallback_24(void * context) { (static_cast(context))->OnSuccessResponse_24(); } + static void OnSuccessCallback_24(void * context, uint16_t enhancedCurrentHue) + { + (static_cast(context))->OnSuccessResponse_24(enhancedCurrentHue); + } static void OnFailureCallback_25(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_25(chip::to_underlying(status)); } - static void OnSuccessCallback_25(void * context, uint16_t enhancedCurrentHue) - { - (static_cast(context))->OnSuccessResponse_25(enhancedCurrentHue); - } + static void OnSuccessCallback_25(void * context) { (static_cast(context))->OnSuccessResponse_25(); } static void OnFailureCallback_26(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_26(chip::to_underlying(status)); } - static void OnSuccessCallback_26(void * context, uint8_t enhancedColorMode) + static void OnSuccessCallback_26(void * context, uint16_t enhancedCurrentHue) { - (static_cast(context))->OnSuccessResponse_26(enhancedColorMode); + (static_cast(context))->OnSuccessResponse_26(enhancedCurrentHue); } static void OnFailureCallback_27(void * context, EmberAfStatus status) @@ -2309,9 +2339,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_27(chip::to_underlying(status)); } - static void OnSuccessCallback_27(void * context, uint8_t colorLoopActive) + static void OnSuccessCallback_27(void * context, uint8_t enhancedColorMode) { - (static_cast(context))->OnSuccessResponse_27(colorLoopActive); + (static_cast(context))->OnSuccessResponse_27(enhancedColorMode); } static void OnFailureCallback_28(void * context, EmberAfStatus status) @@ -2329,26 +2359,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_29(chip::to_underlying(status)); } - static void OnSuccessCallback_29(void * context) { (static_cast(context))->OnSuccessResponse_29(); } + static void OnSuccessCallback_29(void * context, uint8_t colorLoopActive) + { + (static_cast(context))->OnSuccessResponse_29(colorLoopActive); + } static void OnFailureCallback_30(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_30(chip::to_underlying(status)); } - static void OnSuccessCallback_30(void * context, uint8_t colorLoopActive) - { - (static_cast(context))->OnSuccessResponse_30(colorLoopActive); - } + static void OnSuccessCallback_30(void * context) { (static_cast(context))->OnSuccessResponse_30(); } static void OnFailureCallback_31(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_31(chip::to_underlying(status)); } - static void OnSuccessCallback_31(void * context, uint8_t colorLoopDirection) + static void OnSuccessCallback_31(void * context, uint8_t colorLoopActive) { - (static_cast(context))->OnSuccessResponse_31(colorLoopDirection); + (static_cast(context))->OnSuccessResponse_31(colorLoopActive); } static void OnFailureCallback_32(void * context, EmberAfStatus status) @@ -2366,26 +2396,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_33(chip::to_underlying(status)); } - static void OnSuccessCallback_33(void * context) { (static_cast(context))->OnSuccessResponse_33(); } + static void OnSuccessCallback_33(void * context, uint8_t colorLoopDirection) + { + (static_cast(context))->OnSuccessResponse_33(colorLoopDirection); + } static void OnFailureCallback_34(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_34(chip::to_underlying(status)); } - static void OnSuccessCallback_34(void * context, uint8_t colorLoopDirection) - { - (static_cast(context))->OnSuccessResponse_34(colorLoopDirection); - } + static void OnSuccessCallback_34(void * context) { (static_cast(context))->OnSuccessResponse_34(); } static void OnFailureCallback_35(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_35(chip::to_underlying(status)); } - static void OnSuccessCallback_35(void * context, uint16_t colorLoopTime) + static void OnSuccessCallback_35(void * context, uint8_t colorLoopDirection) { - (static_cast(context))->OnSuccessResponse_35(colorLoopTime); + (static_cast(context))->OnSuccessResponse_35(colorLoopDirection); } static void OnFailureCallback_36(void * context, EmberAfStatus status) @@ -2403,26 +2433,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_37(chip::to_underlying(status)); } - static void OnSuccessCallback_37(void * context) { (static_cast(context))->OnSuccessResponse_37(); } + static void OnSuccessCallback_37(void * context, uint16_t colorLoopTime) + { + (static_cast(context))->OnSuccessResponse_37(colorLoopTime); + } static void OnFailureCallback_38(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_38(chip::to_underlying(status)); } - static void OnSuccessCallback_38(void * context, uint16_t colorLoopTime) - { - (static_cast(context))->OnSuccessResponse_38(colorLoopTime); - } + static void OnSuccessCallback_38(void * context) { (static_cast(context))->OnSuccessResponse_38(); } static void OnFailureCallback_39(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_39(chip::to_underlying(status)); } - static void OnSuccessCallback_39(void * context, uint16_t colorLoopStartEnhancedHue) + static void OnSuccessCallback_39(void * context, uint16_t colorLoopTime) { - (static_cast(context))->OnSuccessResponse_39(colorLoopStartEnhancedHue); + (static_cast(context))->OnSuccessResponse_39(colorLoopTime); } static void OnFailureCallback_40(void * context, EmberAfStatus status) @@ -2440,26 +2470,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_41(chip::to_underlying(status)); } - static void OnSuccessCallback_41(void * context) { (static_cast(context))->OnSuccessResponse_41(); } + static void OnSuccessCallback_41(void * context, uint16_t colorLoopStartEnhancedHue) + { + (static_cast(context))->OnSuccessResponse_41(colorLoopStartEnhancedHue); + } static void OnFailureCallback_42(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_42(chip::to_underlying(status)); } - static void OnSuccessCallback_42(void * context, uint16_t colorLoopStartEnhancedHue) - { - (static_cast(context))->OnSuccessResponse_42(colorLoopStartEnhancedHue); - } + static void OnSuccessCallback_42(void * context) { (static_cast(context))->OnSuccessResponse_42(); } static void OnFailureCallback_43(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_43(chip::to_underlying(status)); } - static void OnSuccessCallback_43(void * context, uint16_t colorLoopStoredEnhancedHue) + static void OnSuccessCallback_43(void * context, uint16_t colorLoopStartEnhancedHue) { - (static_cast(context))->OnSuccessResponse_43(colorLoopStoredEnhancedHue); + (static_cast(context))->OnSuccessResponse_43(colorLoopStartEnhancedHue); } static void OnFailureCallback_44(void * context, EmberAfStatus status) @@ -2477,26 +2507,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_45(chip::to_underlying(status)); } - static void OnSuccessCallback_45(void * context) { (static_cast(context))->OnSuccessResponse_45(); } + static void OnSuccessCallback_45(void * context, uint16_t colorLoopStoredEnhancedHue) + { + (static_cast(context))->OnSuccessResponse_45(colorLoopStoredEnhancedHue); + } static void OnFailureCallback_46(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_46(chip::to_underlying(status)); } - static void OnSuccessCallback_46(void * context, uint16_t colorLoopStoredEnhancedHue) - { - (static_cast(context))->OnSuccessResponse_46(colorLoopStoredEnhancedHue); - } + static void OnSuccessCallback_46(void * context) { (static_cast(context))->OnSuccessResponse_46(); } static void OnFailureCallback_47(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_47(chip::to_underlying(status)); } - static void OnSuccessCallback_47(void * context, uint16_t colorCapabilities) + static void OnSuccessCallback_47(void * context, uint16_t colorLoopStoredEnhancedHue) { - (static_cast(context))->OnSuccessResponse_47(colorCapabilities); + (static_cast(context))->OnSuccessResponse_47(colorLoopStoredEnhancedHue); } static void OnFailureCallback_48(void * context, EmberAfStatus status) @@ -2514,26 +2544,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_49(chip::to_underlying(status)); } - static void OnSuccessCallback_49(void * context) { (static_cast(context))->OnSuccessResponse_49(); } + static void OnSuccessCallback_49(void * context, uint16_t colorCapabilities) + { + (static_cast(context))->OnSuccessResponse_49(colorCapabilities); + } static void OnFailureCallback_50(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_50(chip::to_underlying(status)); } - static void OnSuccessCallback_50(void * context, uint16_t colorCapabilities) - { - (static_cast(context))->OnSuccessResponse_50(colorCapabilities); - } + static void OnSuccessCallback_50(void * context) { (static_cast(context))->OnSuccessResponse_50(); } static void OnFailureCallback_51(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_51(chip::to_underlying(status)); } - static void OnSuccessCallback_51(void * context, uint16_t colorTempPhysicalMin) + static void OnSuccessCallback_51(void * context, uint16_t colorCapabilities) { - (static_cast(context))->OnSuccessResponse_51(colorTempPhysicalMin); + (static_cast(context))->OnSuccessResponse_51(colorCapabilities); } static void OnFailureCallback_52(void * context, EmberAfStatus status) @@ -2551,26 +2581,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_53(chip::to_underlying(status)); } - static void OnSuccessCallback_53(void * context) { (static_cast(context))->OnSuccessResponse_53(); } + static void OnSuccessCallback_53(void * context, uint16_t colorTempPhysicalMin) + { + (static_cast(context))->OnSuccessResponse_53(colorTempPhysicalMin); + } static void OnFailureCallback_54(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_54(chip::to_underlying(status)); } - static void OnSuccessCallback_54(void * context, uint16_t colorTempPhysicalMin) - { - (static_cast(context))->OnSuccessResponse_54(colorTempPhysicalMin); - } + static void OnSuccessCallback_54(void * context) { (static_cast(context))->OnSuccessResponse_54(); } static void OnFailureCallback_55(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_55(chip::to_underlying(status)); } - static void OnSuccessCallback_55(void * context, uint16_t colorTempPhysicalMax) + static void OnSuccessCallback_55(void * context, uint16_t colorTempPhysicalMin) { - (static_cast(context))->OnSuccessResponse_55(colorTempPhysicalMax); + (static_cast(context))->OnSuccessResponse_55(colorTempPhysicalMin); } static void OnFailureCallback_56(void * context, EmberAfStatus status) @@ -2588,26 +2618,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_57(chip::to_underlying(status)); } - static void OnSuccessCallback_57(void * context) { (static_cast(context))->OnSuccessResponse_57(); } + static void OnSuccessCallback_57(void * context, uint16_t colorTempPhysicalMax) + { + (static_cast(context))->OnSuccessResponse_57(colorTempPhysicalMax); + } static void OnFailureCallback_58(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_58(chip::to_underlying(status)); } - static void OnSuccessCallback_58(void * context, uint16_t colorTempPhysicalMax) - { - (static_cast(context))->OnSuccessResponse_58(colorTempPhysicalMax); - } + static void OnSuccessCallback_58(void * context) { (static_cast(context))->OnSuccessResponse_58(); } static void OnFailureCallback_59(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_59(chip::to_underlying(status)); } - static void OnSuccessCallback_59(void * context, uint16_t coupleColorTempToLevelMinMireds) + static void OnSuccessCallback_59(void * context, uint16_t colorTempPhysicalMax) { - (static_cast(context))->OnSuccessResponse_59(coupleColorTempToLevelMinMireds); + (static_cast(context))->OnSuccessResponse_59(colorTempPhysicalMax); } static void OnFailureCallback_60(void * context, EmberAfStatus status) @@ -2615,26 +2645,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_60(chip::to_underlying(status)); } - static void OnSuccessCallback_60(void * context) { (static_cast(context))->OnSuccessResponse_60(); } + static void OnSuccessCallback_60(void * context, uint16_t coupleColorTempToLevelMinMireds) + { + (static_cast(context))->OnSuccessResponse_60(coupleColorTempToLevelMinMireds); + } static void OnFailureCallback_61(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_61(chip::to_underlying(status)); } - static void OnSuccessCallback_61(void * context, uint16_t coupleColorTempToLevelMinMireds) - { - (static_cast(context))->OnSuccessResponse_61(coupleColorTempToLevelMinMireds); - } + static void OnSuccessCallback_61(void * context) { (static_cast(context))->OnSuccessResponse_61(); } static void OnFailureCallback_62(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_62(chip::to_underlying(status)); } - static void OnSuccessCallback_62(void * context, uint16_t startUpColorTemperatureMireds) + static void OnSuccessCallback_62(void * context, uint16_t coupleColorTempToLevelMinMireds) { - (static_cast(context))->OnSuccessResponse_62(startUpColorTemperatureMireds); + (static_cast(context))->OnSuccessResponse_62(coupleColorTempToLevelMinMireds); } static void OnFailureCallback_63(void * context, EmberAfStatus status) @@ -2642,26 +2672,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_63(chip::to_underlying(status)); } - static void OnSuccessCallback_63(void * context) { (static_cast(context))->OnSuccessResponse_63(); } + static void OnSuccessCallback_63(void * context, uint16_t startUpColorTemperatureMireds) + { + (static_cast(context))->OnSuccessResponse_63(startUpColorTemperatureMireds); + } static void OnFailureCallback_64(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_64(chip::to_underlying(status)); } - static void OnSuccessCallback_64(void * context, uint16_t startUpColorTemperatureMireds) - { - (static_cast(context))->OnSuccessResponse_64(startUpColorTemperatureMireds); - } + static void OnSuccessCallback_64(void * context) { (static_cast(context))->OnSuccessResponse_64(); } static void OnFailureCallback_65(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_65(chip::to_underlying(status)); } - static void OnSuccessCallback_65(void * context, uint16_t remainingTime) + static void OnSuccessCallback_65(void * context, uint16_t startUpColorTemperatureMireds) { - (static_cast(context))->OnSuccessResponse_65(remainingTime); + (static_cast(context))->OnSuccessResponse_65(startUpColorTemperatureMireds); } static void OnFailureCallback_66(void * context, EmberAfStatus status) @@ -2679,26 +2709,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_67(chip::to_underlying(status)); } - static void OnSuccessCallback_67(void * context) { (static_cast(context))->OnSuccessResponse_67(); } + static void OnSuccessCallback_67(void * context, uint16_t remainingTime) + { + (static_cast(context))->OnSuccessResponse_67(remainingTime); + } static void OnFailureCallback_68(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_68(chip::to_underlying(status)); } - static void OnSuccessCallback_68(void * context, uint16_t remainingTime) - { - (static_cast(context))->OnSuccessResponse_68(remainingTime); - } + static void OnSuccessCallback_68(void * context) { (static_cast(context))->OnSuccessResponse_68(); } static void OnFailureCallback_69(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_69(chip::to_underlying(status)); } - static void OnSuccessCallback_69(void * context, uint8_t driftCompensation) + static void OnSuccessCallback_69(void * context, uint16_t remainingTime) { - (static_cast(context))->OnSuccessResponse_69(driftCompensation); + (static_cast(context))->OnSuccessResponse_69(remainingTime); } static void OnFailureCallback_70(void * context, EmberAfStatus status) @@ -2706,26 +2736,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_70(chip::to_underlying(status)); } - static void OnSuccessCallback_70(void * context) { (static_cast(context))->OnSuccessResponse_70(); } + static void OnSuccessCallback_70(void * context, uint8_t driftCompensation) + { + (static_cast(context))->OnSuccessResponse_70(driftCompensation); + } static void OnFailureCallback_71(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_71(chip::to_underlying(status)); } - static void OnSuccessCallback_71(void * context, uint8_t driftCompensation) - { - (static_cast(context))->OnSuccessResponse_71(driftCompensation); - } + static void OnSuccessCallback_71(void * context) { (static_cast(context))->OnSuccessResponse_71(); } static void OnFailureCallback_72(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_72(chip::to_underlying(status)); } - static void OnSuccessCallback_72(void * context, chip::CharSpan compensationText) + static void OnSuccessCallback_72(void * context, uint8_t driftCompensation) { - (static_cast(context))->OnSuccessResponse_72(compensationText); + (static_cast(context))->OnSuccessResponse_72(driftCompensation); } static void OnFailureCallback_73(void * context, EmberAfStatus status) @@ -2733,9 +2763,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_73(chip::to_underlying(status)); } - static void OnSuccessCallback_73(void * context, uint8_t numberOfPrimaries) + static void OnSuccessCallback_73(void * context, chip::CharSpan compensationText) { - (static_cast(context))->OnSuccessResponse_73(numberOfPrimaries); + (static_cast(context))->OnSuccessResponse_73(compensationText); } static void OnFailureCallback_74(void * context, EmberAfStatus status) @@ -2743,26 +2773,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_74(chip::to_underlying(status)); } - static void OnSuccessCallback_74(void * context) { (static_cast(context))->OnSuccessResponse_74(); } + static void OnSuccessCallback_74(void * context, uint8_t numberOfPrimaries) + { + (static_cast(context))->OnSuccessResponse_74(numberOfPrimaries); + } static void OnFailureCallback_75(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_75(chip::to_underlying(status)); } - static void OnSuccessCallback_75(void * context, uint8_t numberOfPrimaries) - { - (static_cast(context))->OnSuccessResponse_75(numberOfPrimaries); - } + static void OnSuccessCallback_75(void * context) { (static_cast(context))->OnSuccessResponse_75(); } static void OnFailureCallback_76(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_76(chip::to_underlying(status)); } - static void OnSuccessCallback_76(void * context, uint16_t primary1X) + static void OnSuccessCallback_76(void * context, uint8_t numberOfPrimaries) { - (static_cast(context))->OnSuccessResponse_76(primary1X); + (static_cast(context))->OnSuccessResponse_76(numberOfPrimaries); } static void OnFailureCallback_77(void * context, EmberAfStatus status) @@ -2770,26 +2800,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_77(chip::to_underlying(status)); } - static void OnSuccessCallback_77(void * context) { (static_cast(context))->OnSuccessResponse_77(); } + static void OnSuccessCallback_77(void * context, uint16_t primary1X) + { + (static_cast(context))->OnSuccessResponse_77(primary1X); + } static void OnFailureCallback_78(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_78(chip::to_underlying(status)); } - static void OnSuccessCallback_78(void * context, uint16_t primary1X) - { - (static_cast(context))->OnSuccessResponse_78(primary1X); - } + static void OnSuccessCallback_78(void * context) { (static_cast(context))->OnSuccessResponse_78(); } static void OnFailureCallback_79(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_79(chip::to_underlying(status)); } - static void OnSuccessCallback_79(void * context, uint16_t primary1Y) + static void OnSuccessCallback_79(void * context, uint16_t primary1X) { - (static_cast(context))->OnSuccessResponse_79(primary1Y); + (static_cast(context))->OnSuccessResponse_79(primary1X); } static void OnFailureCallback_80(void * context, EmberAfStatus status) @@ -2797,26 +2827,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_80(chip::to_underlying(status)); } - static void OnSuccessCallback_80(void * context) { (static_cast(context))->OnSuccessResponse_80(); } + static void OnSuccessCallback_80(void * context, uint16_t primary1Y) + { + (static_cast(context))->OnSuccessResponse_80(primary1Y); + } static void OnFailureCallback_81(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_81(chip::to_underlying(status)); } - static void OnSuccessCallback_81(void * context, uint16_t primary1Y) - { - (static_cast(context))->OnSuccessResponse_81(primary1Y); - } + static void OnSuccessCallback_81(void * context) { (static_cast(context))->OnSuccessResponse_81(); } static void OnFailureCallback_82(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_82(chip::to_underlying(status)); } - static void OnSuccessCallback_82(void * context, uint8_t primary1Intensity) + static void OnSuccessCallback_82(void * context, uint16_t primary1Y) { - (static_cast(context))->OnSuccessResponse_82(primary1Intensity); + (static_cast(context))->OnSuccessResponse_82(primary1Y); } static void OnFailureCallback_83(void * context, EmberAfStatus status) @@ -2824,9 +2854,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_83(chip::to_underlying(status)); } - static void OnSuccessCallback_83(void * context, uint16_t primary2X) + static void OnSuccessCallback_83(void * context, uint8_t primary1Intensity) { - (static_cast(context))->OnSuccessResponse_83(primary2X); + (static_cast(context))->OnSuccessResponse_83(primary1Intensity); } static void OnFailureCallback_84(void * context, EmberAfStatus status) @@ -2834,26 +2864,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_84(chip::to_underlying(status)); } - static void OnSuccessCallback_84(void * context) { (static_cast(context))->OnSuccessResponse_84(); } + static void OnSuccessCallback_84(void * context, uint16_t primary2X) + { + (static_cast(context))->OnSuccessResponse_84(primary2X); + } static void OnFailureCallback_85(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_85(chip::to_underlying(status)); } - static void OnSuccessCallback_85(void * context, uint16_t primary2X) - { - (static_cast(context))->OnSuccessResponse_85(primary2X); - } + static void OnSuccessCallback_85(void * context) { (static_cast(context))->OnSuccessResponse_85(); } static void OnFailureCallback_86(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_86(chip::to_underlying(status)); } - static void OnSuccessCallback_86(void * context, uint16_t primary2Y) + static void OnSuccessCallback_86(void * context, uint16_t primary2X) { - (static_cast(context))->OnSuccessResponse_86(primary2Y); + (static_cast(context))->OnSuccessResponse_86(primary2X); } static void OnFailureCallback_87(void * context, EmberAfStatus status) @@ -2861,26 +2891,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_87(chip::to_underlying(status)); } - static void OnSuccessCallback_87(void * context) { (static_cast(context))->OnSuccessResponse_87(); } + static void OnSuccessCallback_87(void * context, uint16_t primary2Y) + { + (static_cast(context))->OnSuccessResponse_87(primary2Y); + } static void OnFailureCallback_88(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_88(chip::to_underlying(status)); } - static void OnSuccessCallback_88(void * context, uint16_t primary2Y) - { - (static_cast(context))->OnSuccessResponse_88(primary2Y); - } + static void OnSuccessCallback_88(void * context) { (static_cast(context))->OnSuccessResponse_88(); } static void OnFailureCallback_89(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_89(chip::to_underlying(status)); } - static void OnSuccessCallback_89(void * context, uint8_t primary2Intensity) + static void OnSuccessCallback_89(void * context, uint16_t primary2Y) { - (static_cast(context))->OnSuccessResponse_89(primary2Intensity); + (static_cast(context))->OnSuccessResponse_89(primary2Y); } static void OnFailureCallback_90(void * context, EmberAfStatus status) @@ -2888,9 +2918,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_90(chip::to_underlying(status)); } - static void OnSuccessCallback_90(void * context, uint16_t primary3X) + static void OnSuccessCallback_90(void * context, uint8_t primary2Intensity) { - (static_cast(context))->OnSuccessResponse_90(primary3X); + (static_cast(context))->OnSuccessResponse_90(primary2Intensity); } static void OnFailureCallback_91(void * context, EmberAfStatus status) @@ -2898,26 +2928,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_91(chip::to_underlying(status)); } - static void OnSuccessCallback_91(void * context) { (static_cast(context))->OnSuccessResponse_91(); } + static void OnSuccessCallback_91(void * context, uint16_t primary3X) + { + (static_cast(context))->OnSuccessResponse_91(primary3X); + } static void OnFailureCallback_92(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_92(chip::to_underlying(status)); } - static void OnSuccessCallback_92(void * context, uint16_t primary3X) - { - (static_cast(context))->OnSuccessResponse_92(primary3X); - } + static void OnSuccessCallback_92(void * context) { (static_cast(context))->OnSuccessResponse_92(); } static void OnFailureCallback_93(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_93(chip::to_underlying(status)); } - static void OnSuccessCallback_93(void * context, uint16_t primary3Y) + static void OnSuccessCallback_93(void * context, uint16_t primary3X) { - (static_cast(context))->OnSuccessResponse_93(primary3Y); + (static_cast(context))->OnSuccessResponse_93(primary3X); } static void OnFailureCallback_94(void * context, EmberAfStatus status) @@ -2925,26 +2955,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_94(chip::to_underlying(status)); } - static void OnSuccessCallback_94(void * context) { (static_cast(context))->OnSuccessResponse_94(); } + static void OnSuccessCallback_94(void * context, uint16_t primary3Y) + { + (static_cast(context))->OnSuccessResponse_94(primary3Y); + } static void OnFailureCallback_95(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_95(chip::to_underlying(status)); } - static void OnSuccessCallback_95(void * context, uint16_t primary3Y) - { - (static_cast(context))->OnSuccessResponse_95(primary3Y); - } + static void OnSuccessCallback_95(void * context) { (static_cast(context))->OnSuccessResponse_95(); } static void OnFailureCallback_96(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_96(chip::to_underlying(status)); } - static void OnSuccessCallback_96(void * context, uint8_t primary3Intensity) + static void OnSuccessCallback_96(void * context, uint16_t primary3Y) { - (static_cast(context))->OnSuccessResponse_96(primary3Intensity); + (static_cast(context))->OnSuccessResponse_96(primary3Y); } static void OnFailureCallback_97(void * context, EmberAfStatus status) @@ -2952,9 +2982,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_97(chip::to_underlying(status)); } - static void OnSuccessCallback_97(void * context, uint16_t primary4X) + static void OnSuccessCallback_97(void * context, uint8_t primary3Intensity) { - (static_cast(context))->OnSuccessResponse_97(primary4X); + (static_cast(context))->OnSuccessResponse_97(primary3Intensity); } static void OnFailureCallback_98(void * context, EmberAfStatus status) @@ -2962,26 +2992,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_98(chip::to_underlying(status)); } - static void OnSuccessCallback_98(void * context) { (static_cast(context))->OnSuccessResponse_98(); } + static void OnSuccessCallback_98(void * context, uint16_t primary4X) + { + (static_cast(context))->OnSuccessResponse_98(primary4X); + } static void OnFailureCallback_99(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_99(chip::to_underlying(status)); } - static void OnSuccessCallback_99(void * context, uint16_t primary4X) - { - (static_cast(context))->OnSuccessResponse_99(primary4X); - } + static void OnSuccessCallback_99(void * context) { (static_cast(context))->OnSuccessResponse_99(); } static void OnFailureCallback_100(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_100(chip::to_underlying(status)); } - static void OnSuccessCallback_100(void * context, uint16_t primary4Y) + static void OnSuccessCallback_100(void * context, uint16_t primary4X) { - (static_cast(context))->OnSuccessResponse_100(primary4Y); + (static_cast(context))->OnSuccessResponse_100(primary4X); } static void OnFailureCallback_101(void * context, EmberAfStatus status) @@ -2989,26 +3019,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_101(chip::to_underlying(status)); } - static void OnSuccessCallback_101(void * context) { (static_cast(context))->OnSuccessResponse_101(); } + static void OnSuccessCallback_101(void * context, uint16_t primary4Y) + { + (static_cast(context))->OnSuccessResponse_101(primary4Y); + } static void OnFailureCallback_102(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_102(chip::to_underlying(status)); } - static void OnSuccessCallback_102(void * context, uint16_t primary4Y) - { - (static_cast(context))->OnSuccessResponse_102(primary4Y); - } + static void OnSuccessCallback_102(void * context) { (static_cast(context))->OnSuccessResponse_102(); } static void OnFailureCallback_103(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_103(chip::to_underlying(status)); } - static void OnSuccessCallback_103(void * context, uint8_t primary4Intensity) + static void OnSuccessCallback_103(void * context, uint16_t primary4Y) { - (static_cast(context))->OnSuccessResponse_103(primary4Intensity); + (static_cast(context))->OnSuccessResponse_103(primary4Y); } static void OnFailureCallback_104(void * context, EmberAfStatus status) @@ -3016,9 +3046,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_104(chip::to_underlying(status)); } - static void OnSuccessCallback_104(void * context, uint16_t primary5X) + static void OnSuccessCallback_104(void * context, uint8_t primary4Intensity) { - (static_cast(context))->OnSuccessResponse_104(primary5X); + (static_cast(context))->OnSuccessResponse_104(primary4Intensity); } static void OnFailureCallback_105(void * context, EmberAfStatus status) @@ -3026,26 +3056,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_105(chip::to_underlying(status)); } - static void OnSuccessCallback_105(void * context) { (static_cast(context))->OnSuccessResponse_105(); } + static void OnSuccessCallback_105(void * context, uint16_t primary5X) + { + (static_cast(context))->OnSuccessResponse_105(primary5X); + } static void OnFailureCallback_106(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_106(chip::to_underlying(status)); } - static void OnSuccessCallback_106(void * context, uint16_t primary5X) - { - (static_cast(context))->OnSuccessResponse_106(primary5X); - } + static void OnSuccessCallback_106(void * context) { (static_cast(context))->OnSuccessResponse_106(); } static void OnFailureCallback_107(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_107(chip::to_underlying(status)); } - static void OnSuccessCallback_107(void * context, uint16_t primary5Y) + static void OnSuccessCallback_107(void * context, uint16_t primary5X) { - (static_cast(context))->OnSuccessResponse_107(primary5Y); + (static_cast(context))->OnSuccessResponse_107(primary5X); } static void OnFailureCallback_108(void * context, EmberAfStatus status) @@ -3053,26 +3083,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_108(chip::to_underlying(status)); } - static void OnSuccessCallback_108(void * context) { (static_cast(context))->OnSuccessResponse_108(); } + static void OnSuccessCallback_108(void * context, uint16_t primary5Y) + { + (static_cast(context))->OnSuccessResponse_108(primary5Y); + } static void OnFailureCallback_109(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_109(chip::to_underlying(status)); } - static void OnSuccessCallback_109(void * context, uint16_t primary5Y) - { - (static_cast(context))->OnSuccessResponse_109(primary5Y); - } + static void OnSuccessCallback_109(void * context) { (static_cast(context))->OnSuccessResponse_109(); } static void OnFailureCallback_110(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_110(chip::to_underlying(status)); } - static void OnSuccessCallback_110(void * context, uint8_t primary5Intensity) + static void OnSuccessCallback_110(void * context, uint16_t primary5Y) { - (static_cast(context))->OnSuccessResponse_110(primary5Intensity); + (static_cast(context))->OnSuccessResponse_110(primary5Y); } static void OnFailureCallback_111(void * context, EmberAfStatus status) @@ -3080,9 +3110,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_111(chip::to_underlying(status)); } - static void OnSuccessCallback_111(void * context, uint16_t primary6X) + static void OnSuccessCallback_111(void * context, uint8_t primary5Intensity) { - (static_cast(context))->OnSuccessResponse_111(primary6X); + (static_cast(context))->OnSuccessResponse_111(primary5Intensity); } static void OnFailureCallback_112(void * context, EmberAfStatus status) @@ -3090,26 +3120,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_112(chip::to_underlying(status)); } - static void OnSuccessCallback_112(void * context) { (static_cast(context))->OnSuccessResponse_112(); } + static void OnSuccessCallback_112(void * context, uint16_t primary6X) + { + (static_cast(context))->OnSuccessResponse_112(primary6X); + } static void OnFailureCallback_113(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_113(chip::to_underlying(status)); } - static void OnSuccessCallback_113(void * context, uint16_t primary6X) - { - (static_cast(context))->OnSuccessResponse_113(primary6X); - } + static void OnSuccessCallback_113(void * context) { (static_cast(context))->OnSuccessResponse_113(); } static void OnFailureCallback_114(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_114(chip::to_underlying(status)); } - static void OnSuccessCallback_114(void * context, uint16_t primary6Y) + static void OnSuccessCallback_114(void * context, uint16_t primary6X) { - (static_cast(context))->OnSuccessResponse_114(primary6Y); + (static_cast(context))->OnSuccessResponse_114(primary6X); } static void OnFailureCallback_115(void * context, EmberAfStatus status) @@ -3117,26 +3147,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_115(chip::to_underlying(status)); } - static void OnSuccessCallback_115(void * context) { (static_cast(context))->OnSuccessResponse_115(); } + static void OnSuccessCallback_115(void * context, uint16_t primary6Y) + { + (static_cast(context))->OnSuccessResponse_115(primary6Y); + } static void OnFailureCallback_116(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_116(chip::to_underlying(status)); } - static void OnSuccessCallback_116(void * context, uint16_t primary6Y) - { - (static_cast(context))->OnSuccessResponse_116(primary6Y); - } + static void OnSuccessCallback_116(void * context) { (static_cast(context))->OnSuccessResponse_116(); } static void OnFailureCallback_117(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_117(chip::to_underlying(status)); } - static void OnSuccessCallback_117(void * context, uint8_t primary6Intensity) + static void OnSuccessCallback_117(void * context, uint16_t primary6Y) { - (static_cast(context))->OnSuccessResponse_117(primary6Intensity); + (static_cast(context))->OnSuccessResponse_117(primary6Y); } static void OnFailureCallback_118(void * context, EmberAfStatus status) @@ -3144,9 +3174,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_118(chip::to_underlying(status)); } - static void OnSuccessCallback_118(void * context, uint16_t whitePointX) + static void OnSuccessCallback_118(void * context, uint8_t primary6Intensity) { - (static_cast(context))->OnSuccessResponse_118(whitePointX); + (static_cast(context))->OnSuccessResponse_118(primary6Intensity); } static void OnFailureCallback_119(void * context, EmberAfStatus status) @@ -3154,26 +3184,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_119(chip::to_underlying(status)); } - static void OnSuccessCallback_119(void * context) { (static_cast(context))->OnSuccessResponse_119(); } + static void OnSuccessCallback_119(void * context, uint16_t whitePointX) + { + (static_cast(context))->OnSuccessResponse_119(whitePointX); + } static void OnFailureCallback_120(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_120(chip::to_underlying(status)); } - static void OnSuccessCallback_120(void * context, uint16_t whitePointX) - { - (static_cast(context))->OnSuccessResponse_120(whitePointX); - } + static void OnSuccessCallback_120(void * context) { (static_cast(context))->OnSuccessResponse_120(); } static void OnFailureCallback_121(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_121(chip::to_underlying(status)); } - static void OnSuccessCallback_121(void * context, uint16_t whitePointY) + static void OnSuccessCallback_121(void * context, uint16_t whitePointX) { - (static_cast(context))->OnSuccessResponse_121(whitePointY); + (static_cast(context))->OnSuccessResponse_121(whitePointX); } static void OnFailureCallback_122(void * context, EmberAfStatus status) @@ -3181,26 +3211,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_122(chip::to_underlying(status)); } - static void OnSuccessCallback_122(void * context) { (static_cast(context))->OnSuccessResponse_122(); } + static void OnSuccessCallback_122(void * context, uint16_t whitePointY) + { + (static_cast(context))->OnSuccessResponse_122(whitePointY); + } static void OnFailureCallback_123(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_123(chip::to_underlying(status)); } - static void OnSuccessCallback_123(void * context, uint16_t whitePointY) - { - (static_cast(context))->OnSuccessResponse_123(whitePointY); - } + static void OnSuccessCallback_123(void * context) { (static_cast(context))->OnSuccessResponse_123(); } static void OnFailureCallback_124(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_124(chip::to_underlying(status)); } - static void OnSuccessCallback_124(void * context, uint16_t colorPointRX) + static void OnSuccessCallback_124(void * context, uint16_t whitePointY) { - (static_cast(context))->OnSuccessResponse_124(colorPointRX); + (static_cast(context))->OnSuccessResponse_124(whitePointY); } static void OnFailureCallback_125(void * context, EmberAfStatus status) @@ -3208,26 +3238,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_125(chip::to_underlying(status)); } - static void OnSuccessCallback_125(void * context) { (static_cast(context))->OnSuccessResponse_125(); } + static void OnSuccessCallback_125(void * context, uint16_t colorPointRX) + { + (static_cast(context))->OnSuccessResponse_125(colorPointRX); + } static void OnFailureCallback_126(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_126(chip::to_underlying(status)); } - static void OnSuccessCallback_126(void * context, uint16_t colorPointRX) - { - (static_cast(context))->OnSuccessResponse_126(colorPointRX); - } + static void OnSuccessCallback_126(void * context) { (static_cast(context))->OnSuccessResponse_126(); } static void OnFailureCallback_127(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_127(chip::to_underlying(status)); } - static void OnSuccessCallback_127(void * context, uint16_t colorPointRY) + static void OnSuccessCallback_127(void * context, uint16_t colorPointRX) { - (static_cast(context))->OnSuccessResponse_127(colorPointRY); + (static_cast(context))->OnSuccessResponse_127(colorPointRX); } static void OnFailureCallback_128(void * context, EmberAfStatus status) @@ -3235,26 +3265,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_128(chip::to_underlying(status)); } - static void OnSuccessCallback_128(void * context) { (static_cast(context))->OnSuccessResponse_128(); } + static void OnSuccessCallback_128(void * context, uint16_t colorPointRY) + { + (static_cast(context))->OnSuccessResponse_128(colorPointRY); + } static void OnFailureCallback_129(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_129(chip::to_underlying(status)); } - static void OnSuccessCallback_129(void * context, uint16_t colorPointRY) - { - (static_cast(context))->OnSuccessResponse_129(colorPointRY); - } + static void OnSuccessCallback_129(void * context) { (static_cast(context))->OnSuccessResponse_129(); } static void OnFailureCallback_130(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_130(chip::to_underlying(status)); } - static void OnSuccessCallback_130(void * context, uint8_t colorPointRIntensity) + static void OnSuccessCallback_130(void * context, uint16_t colorPointRY) { - (static_cast(context))->OnSuccessResponse_130(colorPointRIntensity); + (static_cast(context))->OnSuccessResponse_130(colorPointRY); } static void OnFailureCallback_131(void * context, EmberAfStatus status) @@ -3262,9 +3292,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_131(chip::to_underlying(status)); } - static void OnSuccessCallback_131(void * context, uint16_t colorPointGX) + static void OnSuccessCallback_131(void * context, uint8_t colorPointRIntensity) { - (static_cast(context))->OnSuccessResponse_131(colorPointGX); + (static_cast(context))->OnSuccessResponse_131(colorPointRIntensity); } static void OnFailureCallback_132(void * context, EmberAfStatus status) @@ -3272,26 +3302,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_132(chip::to_underlying(status)); } - static void OnSuccessCallback_132(void * context) { (static_cast(context))->OnSuccessResponse_132(); } + static void OnSuccessCallback_132(void * context, uint16_t colorPointGX) + { + (static_cast(context))->OnSuccessResponse_132(colorPointGX); + } static void OnFailureCallback_133(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_133(chip::to_underlying(status)); } - static void OnSuccessCallback_133(void * context, uint16_t colorPointGX) - { - (static_cast(context))->OnSuccessResponse_133(colorPointGX); - } + static void OnSuccessCallback_133(void * context) { (static_cast(context))->OnSuccessResponse_133(); } static void OnFailureCallback_134(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_134(chip::to_underlying(status)); } - static void OnSuccessCallback_134(void * context, uint16_t colorPointGY) + static void OnSuccessCallback_134(void * context, uint16_t colorPointGX) { - (static_cast(context))->OnSuccessResponse_134(colorPointGY); + (static_cast(context))->OnSuccessResponse_134(colorPointGX); } static void OnFailureCallback_135(void * context, EmberAfStatus status) @@ -3299,26 +3329,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_135(chip::to_underlying(status)); } - static void OnSuccessCallback_135(void * context) { (static_cast(context))->OnSuccessResponse_135(); } + static void OnSuccessCallback_135(void * context, uint16_t colorPointGY) + { + (static_cast(context))->OnSuccessResponse_135(colorPointGY); + } static void OnFailureCallback_136(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_136(chip::to_underlying(status)); } - static void OnSuccessCallback_136(void * context, uint16_t colorPointGY) - { - (static_cast(context))->OnSuccessResponse_136(colorPointGY); - } + static void OnSuccessCallback_136(void * context) { (static_cast(context))->OnSuccessResponse_136(); } static void OnFailureCallback_137(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_137(chip::to_underlying(status)); } - static void OnSuccessCallback_137(void * context, uint8_t colorPointGIntensity) + static void OnSuccessCallback_137(void * context, uint16_t colorPointGY) { - (static_cast(context))->OnSuccessResponse_137(colorPointGIntensity); + (static_cast(context))->OnSuccessResponse_137(colorPointGY); } static void OnFailureCallback_138(void * context, EmberAfStatus status) @@ -3326,9 +3356,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_138(chip::to_underlying(status)); } - static void OnSuccessCallback_138(void * context, uint16_t colorPointBX) + static void OnSuccessCallback_138(void * context, uint8_t colorPointGIntensity) { - (static_cast(context))->OnSuccessResponse_138(colorPointBX); + (static_cast(context))->OnSuccessResponse_138(colorPointGIntensity); } static void OnFailureCallback_139(void * context, EmberAfStatus status) @@ -3336,26 +3366,26 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_139(chip::to_underlying(status)); } - static void OnSuccessCallback_139(void * context) { (static_cast(context))->OnSuccessResponse_139(); } + static void OnSuccessCallback_139(void * context, uint16_t colorPointBX) + { + (static_cast(context))->OnSuccessResponse_139(colorPointBX); + } static void OnFailureCallback_140(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_140(chip::to_underlying(status)); } - static void OnSuccessCallback_140(void * context, uint16_t colorPointBX) - { - (static_cast(context))->OnSuccessResponse_140(colorPointBX); - } + static void OnSuccessCallback_140(void * context) { (static_cast(context))->OnSuccessResponse_140(); } static void OnFailureCallback_141(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_141(chip::to_underlying(status)); } - static void OnSuccessCallback_141(void * context, uint16_t colorPointBY) + static void OnSuccessCallback_141(void * context, uint16_t colorPointBX) { - (static_cast(context))->OnSuccessResponse_141(colorPointBY); + (static_cast(context))->OnSuccessResponse_141(colorPointBX); } static void OnFailureCallback_142(void * context, EmberAfStatus status) @@ -3363,64 +3393,76 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_142(chip::to_underlying(status)); } - static void OnSuccessCallback_142(void * context) { (static_cast(context))->OnSuccessResponse_142(); } + static void OnSuccessCallback_142(void * context, uint16_t colorPointBY) + { + (static_cast(context))->OnSuccessResponse_142(colorPointBY); + } static void OnFailureCallback_143(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_143(chip::to_underlying(status)); } - static void OnSuccessCallback_143(void * context, uint16_t colorPointBY) - { - (static_cast(context))->OnSuccessResponse_143(colorPointBY); - } + static void OnSuccessCallback_143(void * context) { (static_cast(context))->OnSuccessResponse_143(); } static void OnFailureCallback_144(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_144(chip::to_underlying(status)); } - static void OnSuccessCallback_144(void * context, uint8_t colorPointBIntensity) + static void OnSuccessCallback_144(void * context, uint16_t colorPointBY) + { + (static_cast(context))->OnSuccessResponse_144(colorPointBY); + } + + static void OnFailureCallback_145(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_145(chip::to_underlying(status)); + } + + static void OnSuccessCallback_145(void * context, uint8_t colorPointBIntensity) { - (static_cast(context))->OnSuccessResponse_144(colorPointBIntensity); + (static_cast(context))->OnSuccessResponse_145(colorPointBIntensity); } // // Tests methods // - CHIP_ERROR TestReadsMandatoryAttributeCurrentHue_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadsMandatoryAttributeCurrentHue_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_0, - OnFailureCallback_0); + return cluster.ReadAttribute(this, OnSuccessCallback_1, + OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint8_t currentHue) + void OnSuccessResponse_1(uint8_t currentHue) { VerifyOrReturn(CheckValue("currentHue", currentHue, 0)); NextTest(); } - CHIP_ERROR TestValidateConstraintsOfAttributeCurrentHue_1() + CHIP_ERROR TestValidateConstraintsOfAttributeCurrentHue_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(uint8_t currentHue) + void OnSuccessResponse_2(uint8_t currentHue) { VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); VerifyOrReturn(CheckConstraintMaxValue("currentHue", currentHue, 254)); @@ -3428,7 +3470,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultValueToMandatoryAttributeCurrentHue_2() + CHIP_ERROR TestWriteTheDefaultValueToMandatoryAttributeCurrentHue_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -3438,68 +3480,68 @@ class Test_TC_CC_2_1 : public TestCommand currentHueArgument = 0; return cluster.WriteAttribute( - currentHueArgument, this, OnSuccessCallback_2, OnFailureCallback_2); + currentHueArgument, this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) + void OnFailureResponse_3(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_2() { ThrowSuccessResponse(); } + void OnSuccessResponse_3() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackMandatoryAttributeCurrentHue_3() + CHIP_ERROR TestReadsBackMandatoryAttributeCurrentHue_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_3, - OnFailureCallback_3); + return cluster.ReadAttribute(this, OnSuccessCallback_4, + OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint8_t currentHue) + void OnSuccessResponse_4(uint8_t currentHue) { VerifyOrReturn(CheckValue("currentHue", currentHue, 0)); NextTest(); } - CHIP_ERROR TestReadsMandatoryAttributeCurrentSaturation_4() + CHIP_ERROR TestReadsMandatoryAttributeCurrentSaturation_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_4, OnFailureCallback_4); + this, OnSuccessCallback_5, OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(uint8_t currentSaturation) + void OnSuccessResponse_5(uint8_t currentSaturation) { VerifyOrReturn(CheckValue("currentSaturation", currentSaturation, 0)); NextTest(); } - CHIP_ERROR TestValidateConstraintsOfAttributeCurrentSaturation_5() + CHIP_ERROR TestValidateConstraintsOfAttributeCurrentSaturation_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_5, OnFailureCallback_5); + this, OnSuccessCallback_6, OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(uint8_t currentSaturation) + void OnSuccessResponse_6(uint8_t currentSaturation) { VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); VerifyOrReturn(CheckConstraintMaxValue("currentSaturation", currentSaturation, 254)); @@ -3507,7 +3549,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultValueToMandatoryAttributeCurrentSaturation_6() + CHIP_ERROR TestWriteTheDefaultValueToMandatoryAttributeCurrentSaturation_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -3517,68 +3559,68 @@ class Test_TC_CC_2_1 : public TestCommand currentSaturationArgument = 0; return cluster.WriteAttribute( - currentSaturationArgument, this, OnSuccessCallback_6, OnFailureCallback_6); + currentSaturationArgument, this, OnSuccessCallback_7, OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) + void OnFailureResponse_7(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_6() { ThrowSuccessResponse(); } + void OnSuccessResponse_7() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackMandatoryAttributeCurrentSaturation_7() + CHIP_ERROR TestReadsBackMandatoryAttributeCurrentSaturation_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_7, OnFailureCallback_7); + this, OnSuccessCallback_8, OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(uint8_t currentSaturation) + void OnSuccessResponse_8(uint8_t currentSaturation) { VerifyOrReturn(CheckValue("currentSaturation", currentSaturation, 0)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeCurrentX_8() + CHIP_ERROR TestReadTheMandatoryAttributeCurrentX_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_8, - OnFailureCallback_8); + return cluster.ReadAttribute(this, OnSuccessCallback_9, + OnFailureCallback_9); } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8(uint16_t currentX) + void OnSuccessResponse_9(uint16_t currentX) { VerifyOrReturn(CheckValue("currentX", currentX, 24939U)); NextTest(); } - CHIP_ERROR TestValidateConstraintsOfAttributeCurrentX_9() + CHIP_ERROR TestValidateConstraintsOfAttributeCurrentX_10() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_9, - OnFailureCallback_9); + return cluster.ReadAttribute(this, OnSuccessCallback_10, + OnFailureCallback_10); } - void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9(uint16_t currentX) + void OnSuccessResponse_10(uint16_t currentX) { VerifyOrReturn(CheckConstraintType("currentX", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("currentX", currentX, 65279)); @@ -3586,7 +3628,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultValueToMandatoryAttributeCurrentX_10() + CHIP_ERROR TestWriteTheDefaultValueToMandatoryAttributeCurrentX_11() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -3596,68 +3638,68 @@ class Test_TC_CC_2_1 : public TestCommand currentXArgument = 24939U; return cluster.WriteAttribute( - currentXArgument, this, OnSuccessCallback_10, OnFailureCallback_10); + currentXArgument, this, OnSuccessCallback_11, OnFailureCallback_11); } - void OnFailureResponse_10(uint8_t status) + void OnFailureResponse_11(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_10() { ThrowSuccessResponse(); } + void OnSuccessResponse_11() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackMandatoryAttributeCurrentX_11() + CHIP_ERROR TestReadsBackMandatoryAttributeCurrentX_12() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_11, - OnFailureCallback_11); + return cluster.ReadAttribute(this, OnSuccessCallback_12, + OnFailureCallback_12); } - void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_11(uint16_t currentX) + void OnSuccessResponse_12(uint16_t currentX) { VerifyOrReturn(CheckValue("currentX", currentX, 24939U)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeCurrentY_12() + CHIP_ERROR TestReadTheMandatoryAttributeCurrentY_13() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_12, - OnFailureCallback_12); + return cluster.ReadAttribute(this, OnSuccessCallback_13, + OnFailureCallback_13); } - void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_12(uint16_t currentY) + void OnSuccessResponse_13(uint16_t currentY) { VerifyOrReturn(CheckValue("currentY", currentY, 24701U)); NextTest(); } - CHIP_ERROR TestValidateConstraintsOfAttributeCurrentY_13() + CHIP_ERROR TestValidateConstraintsOfAttributeCurrentY_14() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_13, - OnFailureCallback_13); + return cluster.ReadAttribute(this, OnSuccessCallback_14, + OnFailureCallback_14); } - void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_13(uint16_t currentY) + void OnSuccessResponse_14(uint16_t currentY) { VerifyOrReturn(CheckConstraintType("currentY", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("currentY", currentY, 65279)); @@ -3665,7 +3707,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeCurrentY_14() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeCurrentY_15() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -3675,49 +3717,49 @@ class Test_TC_CC_2_1 : public TestCommand currentYArgument = 24701U; return cluster.WriteAttribute( - currentYArgument, this, OnSuccessCallback_14, OnFailureCallback_14); + currentYArgument, this, OnSuccessCallback_15, OnFailureCallback_15); } - void OnFailureResponse_14(uint8_t status) + void OnFailureResponse_15(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_14() { ThrowSuccessResponse(); } + void OnSuccessResponse_15() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackMandatoryAttributeCurrentY_15() + CHIP_ERROR TestReadsBackMandatoryAttributeCurrentY_16() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_15, - OnFailureCallback_15); + return cluster.ReadAttribute(this, OnSuccessCallback_16, + OnFailureCallback_16); } - void OnFailureResponse_15(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_16(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_15(uint16_t currentY) + void OnSuccessResponse_16(uint16_t currentY) { VerifyOrReturn(CheckValue("currentY", currentY, 24701U)); NextTest(); } - CHIP_ERROR TestValidateConstraintsOfAttributeColorTemperatureMireds_16() + CHIP_ERROR TestValidateConstraintsOfAttributeColorTemperatureMireds_17() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_16, OnFailureCallback_16); + this, OnSuccessCallback_17, OnFailureCallback_17); } - void OnFailureResponse_16(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_17(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_16(uint16_t colorTemperature) + void OnSuccessResponse_17(uint16_t colorTemperature) { VerifyOrReturn(CheckConstraintType("colorTemperature", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("colorTemperature", colorTemperature, 65279)); @@ -3725,19 +3767,19 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestValidateConstraintsOfAttributeColorMode_17() + CHIP_ERROR TestValidateConstraintsOfAttributeColorMode_18() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_17, - OnFailureCallback_17); + return cluster.ReadAttribute(this, OnSuccessCallback_18, + OnFailureCallback_18); } - void OnFailureResponse_17(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_18(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_17(uint8_t colorMode) + void OnSuccessResponse_18(uint8_t colorMode) { VerifyOrReturn(CheckConstraintType("colorMode", "", "enum8")); VerifyOrReturn(CheckConstraintMaxValue("colorMode", colorMode, 2)); @@ -3745,45 +3787,45 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeOptions_18() + CHIP_ERROR TestReadTheMandatoryAttributeOptions_19() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_18, OnFailureCallback_18); + this, OnSuccessCallback_19, OnFailureCallback_19); } - void OnFailureResponse_18(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_19(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_18(uint8_t colorControlOptions) + void OnSuccessResponse_19(uint8_t colorControlOptions) { VerifyOrReturn(CheckValue("colorControlOptions", colorControlOptions, 0)); NextTest(); } - CHIP_ERROR TestValidateConstraintsOfAttributeOptions_19() + CHIP_ERROR TestValidateConstraintsOfAttributeOptions_20() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_19, OnFailureCallback_19); + this, OnSuccessCallback_20, OnFailureCallback_20); } - void OnFailureResponse_19(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_20(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_19(uint8_t colorControlOptions) + void OnSuccessResponse_20(uint8_t colorControlOptions) { VerifyOrReturn(CheckConstraintType("colorControlOptions", "", "map8")); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeOptions_20() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeOptions_21() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -3793,71 +3835,71 @@ class Test_TC_CC_2_1 : public TestCommand colorControlOptionsArgument = 0; return cluster.WriteAttribute( - colorControlOptionsArgument, this, OnSuccessCallback_20, OnFailureCallback_20); + colorControlOptionsArgument, this, OnSuccessCallback_21, OnFailureCallback_21); } - void OnFailureResponse_20(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_21(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_20() { NextTest(); } + void OnSuccessResponse_21() { NextTest(); } - CHIP_ERROR TestReadsBackMandatoryAttributeOptions_21() + CHIP_ERROR TestReadsBackMandatoryAttributeOptions_22() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_21, OnFailureCallback_21); + this, OnSuccessCallback_22, OnFailureCallback_22); } - void OnFailureResponse_21(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_22(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_21(uint8_t colorControlOptions) + void OnSuccessResponse_22(uint8_t colorControlOptions) { VerifyOrReturn(CheckValue("colorControlOptions", colorControlOptions, 0)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeEnhancedCurrentHue_22() + CHIP_ERROR TestReadTheMandatoryAttributeEnhancedCurrentHue_23() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_22, OnFailureCallback_22); + this, OnSuccessCallback_23, OnFailureCallback_23); } - void OnFailureResponse_22(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_23(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_22(uint16_t enhancedCurrentHue) + void OnSuccessResponse_23(uint16_t enhancedCurrentHue) { VerifyOrReturn(CheckValue("enhancedCurrentHue", enhancedCurrentHue, 0U)); NextTest(); } - CHIP_ERROR TestValidateConstraintsOfAttributeEnhancedCurrentHue_23() + CHIP_ERROR TestValidateConstraintsOfAttributeEnhancedCurrentHue_24() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_23, OnFailureCallback_23); + this, OnSuccessCallback_24, OnFailureCallback_24); } - void OnFailureResponse_23(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_24(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_23(uint16_t enhancedCurrentHue) + void OnSuccessResponse_24(uint16_t enhancedCurrentHue) { VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeEnhancedCurrentHue_24() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeEnhancedCurrentHue_25() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -3867,94 +3909,94 @@ class Test_TC_CC_2_1 : public TestCommand enhancedCurrentHueArgument = 0U; return cluster.WriteAttribute( - enhancedCurrentHueArgument, this, OnSuccessCallback_24, OnFailureCallback_24); + enhancedCurrentHueArgument, this, OnSuccessCallback_25, OnFailureCallback_25); } - void OnFailureResponse_24(uint8_t status) + void OnFailureResponse_25(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_24() { ThrowSuccessResponse(); } + void OnSuccessResponse_25() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackMandatoryAttributeEnhancedCurrentHue_25() + CHIP_ERROR TestReadsBackMandatoryAttributeEnhancedCurrentHue_26() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_25, OnFailureCallback_25); + this, OnSuccessCallback_26, OnFailureCallback_26); } - void OnFailureResponse_25(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_26(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_25(uint16_t enhancedCurrentHue) + void OnSuccessResponse_26(uint16_t enhancedCurrentHue) { VerifyOrReturn(CheckValue("enhancedCurrentHue", enhancedCurrentHue, 0U)); NextTest(); } - CHIP_ERROR TestValidateConstraintsOfAttributeEnhancedColorMode_26() + CHIP_ERROR TestValidateConstraintsOfAttributeEnhancedColorMode_27() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_26, OnFailureCallback_26); + this, OnSuccessCallback_27, OnFailureCallback_27); } - void OnFailureResponse_26(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_27(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_26(uint8_t enhancedColorMode) + void OnSuccessResponse_27(uint8_t enhancedColorMode) { VerifyOrReturn(CheckConstraintType("enhancedColorMode", "", "enum8")); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeColorLoopActive_27() + CHIP_ERROR TestReadTheMandatoryAttributeColorLoopActive_28() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_27, OnFailureCallback_27); + this, OnSuccessCallback_28, OnFailureCallback_28); } - void OnFailureResponse_27(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_28(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_27(uint8_t colorLoopActive) + void OnSuccessResponse_28(uint8_t colorLoopActive) { VerifyOrReturn(CheckValue("colorLoopActive", colorLoopActive, 0)); NextTest(); } - CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopActive_28() + CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopActive_29() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_28, OnFailureCallback_28); + this, OnSuccessCallback_29, OnFailureCallback_29); } - void OnFailureResponse_28(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_29(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_28(uint8_t colorLoopActive) + void OnSuccessResponse_29(uint8_t colorLoopActive) { VerifyOrReturn(CheckConstraintType("colorLoopActive", "", "uint8")); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorLoopActive_29() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorLoopActive_30() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -3964,75 +4006,75 @@ class Test_TC_CC_2_1 : public TestCommand colorLoopActiveArgument = 0; return cluster.WriteAttribute( - colorLoopActiveArgument, this, OnSuccessCallback_29, OnFailureCallback_29); + colorLoopActiveArgument, this, OnSuccessCallback_30, OnFailureCallback_30); } - void OnFailureResponse_29(uint8_t status) + void OnFailureResponse_30(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_29() { ThrowSuccessResponse(); } + void OnSuccessResponse_30() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopActive_30() + CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopActive_31() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_30, OnFailureCallback_30); + this, OnSuccessCallback_31, OnFailureCallback_31); } - void OnFailureResponse_30(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_31(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_30(uint8_t colorLoopActive) + void OnSuccessResponse_31(uint8_t colorLoopActive) { VerifyOrReturn(CheckValue("colorLoopActive", colorLoopActive, 0)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeColorLoopDirection_31() + CHIP_ERROR TestReadTheMandatoryAttributeColorLoopDirection_32() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_31, OnFailureCallback_31); + this, OnSuccessCallback_32, OnFailureCallback_32); } - void OnFailureResponse_31(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_32(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_31(uint8_t colorLoopDirection) + void OnSuccessResponse_32(uint8_t colorLoopDirection) { VerifyOrReturn(CheckValue("colorLoopDirection", colorLoopDirection, 0)); NextTest(); } - CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopDirection_32() + CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopDirection_33() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_32, OnFailureCallback_32); + this, OnSuccessCallback_33, OnFailureCallback_33); } - void OnFailureResponse_32(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_33(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_32(uint8_t colorLoopDirection) + void OnSuccessResponse_33(uint8_t colorLoopDirection) { VerifyOrReturn(CheckConstraintType("colorLoopDirection", "", "uint8")); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorLoopDirection_33() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorLoopDirection_34() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -4042,75 +4084,75 @@ class Test_TC_CC_2_1 : public TestCommand colorLoopDirectionArgument = 0; return cluster.WriteAttribute( - colorLoopDirectionArgument, this, OnSuccessCallback_33, OnFailureCallback_33); + colorLoopDirectionArgument, this, OnSuccessCallback_34, OnFailureCallback_34); } - void OnFailureResponse_33(uint8_t status) + void OnFailureResponse_34(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_33() { ThrowSuccessResponse(); } + void OnSuccessResponse_34() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopDirection_34() + CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopDirection_35() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_34, OnFailureCallback_34); + this, OnSuccessCallback_35, OnFailureCallback_35); } - void OnFailureResponse_34(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_35(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_34(uint8_t colorLoopDirection) + void OnSuccessResponse_35(uint8_t colorLoopDirection) { VerifyOrReturn(CheckValue("colorLoopDirection", colorLoopDirection, 0)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeColorLoopTime_35() + CHIP_ERROR TestReadTheMandatoryAttributeColorLoopTime_36() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_35, OnFailureCallback_35); + this, OnSuccessCallback_36, OnFailureCallback_36); } - void OnFailureResponse_35(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_36(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_35(uint16_t colorLoopTime) + void OnSuccessResponse_36(uint16_t colorLoopTime) { VerifyOrReturn(CheckValue("colorLoopTime", colorLoopTime, 25U)); NextTest(); } - CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopTime_36() + CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopTime_37() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_36, OnFailureCallback_36); + this, OnSuccessCallback_37, OnFailureCallback_37); } - void OnFailureResponse_36(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_37(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_36(uint16_t colorLoopTime) + void OnSuccessResponse_37(uint16_t colorLoopTime) { VerifyOrReturn(CheckConstraintType("colorLoopTime", "", "uint16")); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorLoopTime_37() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorLoopTime_38() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -4120,75 +4162,75 @@ class Test_TC_CC_2_1 : public TestCommand colorLoopTimeArgument = 25U; return cluster.WriteAttribute( - colorLoopTimeArgument, this, OnSuccessCallback_37, OnFailureCallback_37); + colorLoopTimeArgument, this, OnSuccessCallback_38, OnFailureCallback_38); } - void OnFailureResponse_37(uint8_t status) + void OnFailureResponse_38(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_37() { ThrowSuccessResponse(); } + void OnSuccessResponse_38() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopTime_38() + CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopTime_39() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_38, OnFailureCallback_38); + this, OnSuccessCallback_39, OnFailureCallback_39); } - void OnFailureResponse_38(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_39(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_38(uint16_t colorLoopTime) + void OnSuccessResponse_39(uint16_t colorLoopTime) { VerifyOrReturn(CheckValue("colorLoopTime", colorLoopTime, 25U)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeColorLoopStartEnhancedHue_39() + CHIP_ERROR TestReadTheMandatoryAttributeColorLoopStartEnhancedHue_40() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_39, OnFailureCallback_39); + this, OnSuccessCallback_40, OnFailureCallback_40); } - void OnFailureResponse_39(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_40(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_39(uint16_t colorLoopStartEnhancedHue) + void OnSuccessResponse_40(uint16_t colorLoopStartEnhancedHue) { VerifyOrReturn(CheckValue("colorLoopStartEnhancedHue", colorLoopStartEnhancedHue, 8960U)); NextTest(); } - CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopStartEnhancedHue_40() + CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopStartEnhancedHue_41() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_40, OnFailureCallback_40); + this, OnSuccessCallback_41, OnFailureCallback_41); } - void OnFailureResponse_40(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_41(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_40(uint16_t colorLoopStartEnhancedHue) + void OnSuccessResponse_41(uint16_t colorLoopStartEnhancedHue) { VerifyOrReturn(CheckConstraintType("colorLoopStartEnhancedHue", "", "uint16")); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorLoopStartEnhancedHue_41() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorLoopStartEnhancedHue_42() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -4198,75 +4240,75 @@ class Test_TC_CC_2_1 : public TestCommand colorLoopStartEnhancedHueArgument = 8960U; return cluster.WriteAttribute( - colorLoopStartEnhancedHueArgument, this, OnSuccessCallback_41, OnFailureCallback_41); + colorLoopStartEnhancedHueArgument, this, OnSuccessCallback_42, OnFailureCallback_42); } - void OnFailureResponse_41(uint8_t status) + void OnFailureResponse_42(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_41() { ThrowSuccessResponse(); } + void OnSuccessResponse_42() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopStartEnhancedHue_42() + CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopStartEnhancedHue_43() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_42, OnFailureCallback_42); + this, OnSuccessCallback_43, OnFailureCallback_43); } - void OnFailureResponse_42(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_43(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_42(uint16_t colorLoopStartEnhancedHue) + void OnSuccessResponse_43(uint16_t colorLoopStartEnhancedHue) { VerifyOrReturn(CheckValue("colorLoopStartEnhancedHue", colorLoopStartEnhancedHue, 8960U)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeColorLoopStoredEnhancedHue_43() + CHIP_ERROR TestReadTheMandatoryAttributeColorLoopStoredEnhancedHue_44() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_43, OnFailureCallback_43); + this, OnSuccessCallback_44, OnFailureCallback_44); } - void OnFailureResponse_43(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_44(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_43(uint16_t colorLoopStoredEnhancedHue) + void OnSuccessResponse_44(uint16_t colorLoopStoredEnhancedHue) { VerifyOrReturn(CheckValue("colorLoopStoredEnhancedHue", colorLoopStoredEnhancedHue, 0U)); NextTest(); } - CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopStoredEnhancedHue_44() + CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopStoredEnhancedHue_45() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_44, OnFailureCallback_44); + this, OnSuccessCallback_45, OnFailureCallback_45); } - void OnFailureResponse_44(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_45(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_44(uint16_t colorLoopStoredEnhancedHue) + void OnSuccessResponse_45(uint16_t colorLoopStoredEnhancedHue) { VerifyOrReturn(CheckConstraintType("colorLoopStoredEnhancedHue", "", "uint16")); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorLoopStoredEnhancedHue_45() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorLoopStoredEnhancedHue_46() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -4276,68 +4318,68 @@ class Test_TC_CC_2_1 : public TestCommand colorLoopStoredEnhancedHueArgument = 0U; return cluster.WriteAttribute( - colorLoopStoredEnhancedHueArgument, this, OnSuccessCallback_45, OnFailureCallback_45); + colorLoopStoredEnhancedHueArgument, this, OnSuccessCallback_46, OnFailureCallback_46); } - void OnFailureResponse_45(uint8_t status) + void OnFailureResponse_46(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_45() { ThrowSuccessResponse(); } + void OnSuccessResponse_46() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopStoredEnhancedHue_46() + CHIP_ERROR TestReadsBackMandatoryAttributeColorLoopStoredEnhancedHue_47() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_46, OnFailureCallback_46); + this, OnSuccessCallback_47, OnFailureCallback_47); } - void OnFailureResponse_46(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_47(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_46(uint16_t colorLoopStoredEnhancedHue) + void OnSuccessResponse_47(uint16_t colorLoopStoredEnhancedHue) { VerifyOrReturn(CheckValue("colorLoopStoredEnhancedHue", colorLoopStoredEnhancedHue, 0U)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeColorCapabilities_47() + CHIP_ERROR TestReadTheMandatoryAttributeColorCapabilities_48() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_47, OnFailureCallback_47); + this, OnSuccessCallback_48, OnFailureCallback_48); } - void OnFailureResponse_47(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_48(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_47(uint16_t colorCapabilities) + void OnSuccessResponse_48(uint16_t colorCapabilities) { VerifyOrReturn(CheckValue("colorCapabilities", colorCapabilities, 0U)); NextTest(); } - CHIP_ERROR TestValidateConstraintsOfAttributeColorCapabilities_48() + CHIP_ERROR TestValidateConstraintsOfAttributeColorCapabilities_49() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_48, OnFailureCallback_48); + this, OnSuccessCallback_49, OnFailureCallback_49); } - void OnFailureResponse_48(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_49(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_48(uint16_t colorCapabilities) + void OnSuccessResponse_49(uint16_t colorCapabilities) { VerifyOrReturn(CheckConstraintType("colorCapabilities", "", "map16")); VerifyOrReturn(CheckConstraintMaxValue("colorCapabilities", colorCapabilities, 65279)); @@ -4345,7 +4387,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorCapabilities_49() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorCapabilities_50() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -4355,68 +4397,68 @@ class Test_TC_CC_2_1 : public TestCommand colorCapabilitiesArgument = 0U; return cluster.WriteAttribute( - colorCapabilitiesArgument, this, OnSuccessCallback_49, OnFailureCallback_49); + colorCapabilitiesArgument, this, OnSuccessCallback_50, OnFailureCallback_50); } - void OnFailureResponse_49(uint8_t status) + void OnFailureResponse_50(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_49() { ThrowSuccessResponse(); } + void OnSuccessResponse_50() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackMandatoryAttributeColorCapabilities_50() + CHIP_ERROR TestReadsBackMandatoryAttributeColorCapabilities_51() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_50, OnFailureCallback_50); + this, OnSuccessCallback_51, OnFailureCallback_51); } - void OnFailureResponse_50(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_51(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_50(uint16_t colorCapabilities) + void OnSuccessResponse_51(uint16_t colorCapabilities) { VerifyOrReturn(CheckValue("colorCapabilities", colorCapabilities, 0U)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeColorTempPhysicalMinMireds_51() + CHIP_ERROR TestReadTheMandatoryAttributeColorTempPhysicalMinMireds_52() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_51, OnFailureCallback_51); + this, OnSuccessCallback_52, OnFailureCallback_52); } - void OnFailureResponse_51(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_52(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_51(uint16_t colorTempPhysicalMin) + void OnSuccessResponse_52(uint16_t colorTempPhysicalMin) { VerifyOrReturn(CheckValue("colorTempPhysicalMin", colorTempPhysicalMin, 0U)); NextTest(); } - CHIP_ERROR TestValidateConstraintsOfAttributeColorTempPhysicalMinMireds_52() + CHIP_ERROR TestValidateConstraintsOfAttributeColorTempPhysicalMinMireds_53() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_52, OnFailureCallback_52); + this, OnSuccessCallback_53, OnFailureCallback_53); } - void OnFailureResponse_52(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_53(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_52(uint16_t colorTempPhysicalMin) + void OnSuccessResponse_53(uint16_t colorTempPhysicalMin) { VerifyOrReturn(CheckConstraintType("colorTempPhysicalMin", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("colorTempPhysicalMin", colorTempPhysicalMin, 65279)); @@ -4424,7 +4466,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorTempPhysicalMinMireds_53() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorTempPhysicalMinMireds_54() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -4434,68 +4476,68 @@ class Test_TC_CC_2_1 : public TestCommand colorTempPhysicalMinArgument = 0U; return cluster.WriteAttribute( - colorTempPhysicalMinArgument, this, OnSuccessCallback_53, OnFailureCallback_53); + colorTempPhysicalMinArgument, this, OnSuccessCallback_54, OnFailureCallback_54); } - void OnFailureResponse_53(uint8_t status) + void OnFailureResponse_54(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_53() { ThrowSuccessResponse(); } + void OnSuccessResponse_54() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackMandatoryAttributeColorTempPhysicalMinMireds_54() + CHIP_ERROR TestReadsBackMandatoryAttributeColorTempPhysicalMinMireds_55() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_54, OnFailureCallback_54); + this, OnSuccessCallback_55, OnFailureCallback_55); } - void OnFailureResponse_54(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_55(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_54(uint16_t colorTempPhysicalMin) + void OnSuccessResponse_55(uint16_t colorTempPhysicalMin) { VerifyOrReturn(CheckValue("colorTempPhysicalMin", colorTempPhysicalMin, 0U)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeColorTempPhysicalMaxMireds_55() + CHIP_ERROR TestReadTheMandatoryAttributeColorTempPhysicalMaxMireds_56() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_55, OnFailureCallback_55); + this, OnSuccessCallback_56, OnFailureCallback_56); } - void OnFailureResponse_55(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_56(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_55(uint16_t colorTempPhysicalMax) + void OnSuccessResponse_56(uint16_t colorTempPhysicalMax) { VerifyOrReturn(CheckValue("colorTempPhysicalMax", colorTempPhysicalMax, 65279U)); NextTest(); } - CHIP_ERROR TestValidateConstraintsOfAttributeColorTempPhysicalMaxMireds_56() + CHIP_ERROR TestValidateConstraintsOfAttributeColorTempPhysicalMaxMireds_57() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_56, OnFailureCallback_56); + this, OnSuccessCallback_57, OnFailureCallback_57); } - void OnFailureResponse_56(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_57(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_56(uint16_t colorTempPhysicalMax) + void OnSuccessResponse_57(uint16_t colorTempPhysicalMax) { VerifyOrReturn(CheckConstraintType("colorTempPhysicalMax", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("colorTempPhysicalMax", colorTempPhysicalMax, 65279)); @@ -4503,7 +4545,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorTempPhysicalMaxMireds_57() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeColorTempPhysicalMaxMireds_58() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -4513,56 +4555,56 @@ class Test_TC_CC_2_1 : public TestCommand colorTempPhysicalMaxArgument = 65279U; return cluster.WriteAttribute( - colorTempPhysicalMaxArgument, this, OnSuccessCallback_57, OnFailureCallback_57); + colorTempPhysicalMaxArgument, this, OnSuccessCallback_58, OnFailureCallback_58); } - void OnFailureResponse_57(uint8_t status) + void OnFailureResponse_58(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_57() { ThrowSuccessResponse(); } + void OnSuccessResponse_58() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackMandatoryAttributeColorTempPhysicalMaxMireds_58() + CHIP_ERROR TestReadsBackMandatoryAttributeColorTempPhysicalMaxMireds_59() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_58, OnFailureCallback_58); + this, OnSuccessCallback_59, OnFailureCallback_59); } - void OnFailureResponse_58(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_59(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_58(uint16_t colorTempPhysicalMax) + void OnSuccessResponse_59(uint16_t colorTempPhysicalMax) { VerifyOrReturn(CheckValue("colorTempPhysicalMax", colorTempPhysicalMax, 65279U)); NextTest(); } - CHIP_ERROR TestReadTheOptionalAttributeCoupleColorTempToLevelMinMireds_59() + CHIP_ERROR TestReadTheOptionalAttributeCoupleColorTempToLevelMinMireds_60() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_59, OnFailureCallback_59); + this, OnSuccessCallback_60, OnFailureCallback_60); } - void OnFailureResponse_59(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_60(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_59(uint16_t coupleColorTempToLevelMinMireds) + void OnSuccessResponse_60(uint16_t coupleColorTempToLevelMinMireds) { VerifyOrReturn(CheckConstraintType("coupleColorTempToLevelMinMireds", "", "uint16")); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToOptionalAttributeCoupleColorTempToLevelMinMireds_60() + CHIP_ERROR TestWriteTheDefaultValuesToOptionalAttributeCoupleColorTempToLevelMinMireds_61() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -4572,49 +4614,49 @@ class Test_TC_CC_2_1 : public TestCommand coupleColorTempToLevelMinMiredsArgument = 0U; return cluster.WriteAttribute( - coupleColorTempToLevelMinMiredsArgument, this, OnSuccessCallback_60, OnFailureCallback_60); + coupleColorTempToLevelMinMiredsArgument, this, OnSuccessCallback_61, OnFailureCallback_61); } - void OnFailureResponse_60(uint8_t status) + void OnFailureResponse_61(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_60() { ThrowSuccessResponse(); } + void OnSuccessResponse_61() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackOptionalAttributeCoupleColorTempToLevelMinMireds_61() + CHIP_ERROR TestReadsBackOptionalAttributeCoupleColorTempToLevelMinMireds_62() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_61, OnFailureCallback_61); + this, OnSuccessCallback_62, OnFailureCallback_62); } - void OnFailureResponse_61(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_62(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_61(uint16_t coupleColorTempToLevelMinMireds) + void OnSuccessResponse_62(uint16_t coupleColorTempToLevelMinMireds) { VerifyOrReturn(CheckValue("coupleColorTempToLevelMinMireds", coupleColorTempToLevelMinMireds, 0U)); NextTest(); } - CHIP_ERROR TestReadTheOptionalAttributeStartUpColorTemperatureMireds_62() + CHIP_ERROR TestReadTheOptionalAttributeStartUpColorTemperatureMireds_63() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_62, OnFailureCallback_62); + this, OnSuccessCallback_63, OnFailureCallback_63); } - void OnFailureResponse_62(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_63(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_62(uint16_t startUpColorTemperatureMireds) + void OnSuccessResponse_63(uint16_t startUpColorTemperatureMireds) { VerifyOrReturn(CheckConstraintType("startUpColorTemperatureMireds", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("startUpColorTemperatureMireds", startUpColorTemperatureMireds, 65279)); @@ -4622,7 +4664,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToOptionalAttributeStartUpColorTemperatureMireds_63() + CHIP_ERROR TestWriteTheDefaultValuesToOptionalAttributeStartUpColorTemperatureMireds_64() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -4632,64 +4674,64 @@ class Test_TC_CC_2_1 : public TestCommand startUpColorTemperatureMiredsArgument = 0U; return cluster.WriteAttribute( - startUpColorTemperatureMiredsArgument, this, OnSuccessCallback_63, OnFailureCallback_63); + startUpColorTemperatureMiredsArgument, this, OnSuccessCallback_64, OnFailureCallback_64); } - void OnFailureResponse_63(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_64(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_63() { NextTest(); } + void OnSuccessResponse_64() { NextTest(); } - CHIP_ERROR TestReadsBackOptionalAttributeStartUpColorTemperatureMireds_64() + CHIP_ERROR TestReadsBackOptionalAttributeStartUpColorTemperatureMireds_65() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_64, OnFailureCallback_64); + this, OnSuccessCallback_65, OnFailureCallback_65); } - void OnFailureResponse_64(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_65(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_64(uint16_t startUpColorTemperatureMireds) + void OnSuccessResponse_65(uint16_t startUpColorTemperatureMireds) { VerifyOrReturn(CheckValue("startUpColorTemperatureMireds", startUpColorTemperatureMireds, 0U)); NextTest(); } - CHIP_ERROR TestReadTheOptionalAttributeRemainingTime_65() + CHIP_ERROR TestReadTheOptionalAttributeRemainingTime_66() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_65, OnFailureCallback_65); + this, OnSuccessCallback_66, OnFailureCallback_66); } - void OnFailureResponse_65(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_66(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_65(uint16_t remainingTime) + void OnSuccessResponse_66(uint16_t remainingTime) { VerifyOrReturn(CheckValue("remainingTime", remainingTime, 0U)); NextTest(); } - CHIP_ERROR TestValidateConstraintsOfAttributeRemainingTime_66() + CHIP_ERROR TestValidateConstraintsOfAttributeRemainingTime_67() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_66, OnFailureCallback_66); + this, OnSuccessCallback_67, OnFailureCallback_67); } - void OnFailureResponse_66(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_67(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_66(uint16_t remainingTime) + void OnSuccessResponse_67(uint16_t remainingTime) { VerifyOrReturn(CheckConstraintType("remainingTime", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("remainingTime", remainingTime, 254)); @@ -4697,7 +4739,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToOptionalAttributeRemainingTime_67() + CHIP_ERROR TestWriteTheDefaultValuesToOptionalAttributeRemainingTime_68() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -4707,49 +4749,49 @@ class Test_TC_CC_2_1 : public TestCommand remainingTimeArgument = 0U; return cluster.WriteAttribute( - remainingTimeArgument, this, OnSuccessCallback_67, OnFailureCallback_67); + remainingTimeArgument, this, OnSuccessCallback_68, OnFailureCallback_68); } - void OnFailureResponse_67(uint8_t status) + void OnFailureResponse_68(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_67() { ThrowSuccessResponse(); } + void OnSuccessResponse_68() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackOptionalAttributeRemainingTime_68() + CHIP_ERROR TestReadsBackOptionalAttributeRemainingTime_69() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_68, OnFailureCallback_68); + this, OnSuccessCallback_69, OnFailureCallback_69); } - void OnFailureResponse_68(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_69(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_68(uint16_t remainingTime) + void OnSuccessResponse_69(uint16_t remainingTime) { VerifyOrReturn(CheckValue("remainingTime", remainingTime, 0U)); NextTest(); } - CHIP_ERROR TestReadTheOptionalAttributeDriftCompensation_69() + CHIP_ERROR TestReadTheOptionalAttributeDriftCompensation_70() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_69, OnFailureCallback_69); + this, OnSuccessCallback_70, OnFailureCallback_70); } - void OnFailureResponse_69(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_70(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_69(uint8_t driftCompensation) + void OnSuccessResponse_70(uint8_t driftCompensation) { VerifyOrReturn(CheckConstraintType("driftCompensation", "", "enum8")); VerifyOrReturn(CheckConstraintMaxValue("driftCompensation", driftCompensation, 4)); @@ -4757,7 +4799,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToOptionalAttributeDriftCompensation_70() + CHIP_ERROR TestWriteTheDefaultValuesToOptionalAttributeDriftCompensation_71() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -4767,49 +4809,49 @@ class Test_TC_CC_2_1 : public TestCommand driftCompensationArgument = static_cast(0); return cluster.WriteAttribute( - driftCompensationArgument, this, OnSuccessCallback_70, OnFailureCallback_70); + driftCompensationArgument, this, OnSuccessCallback_71, OnFailureCallback_71); } - void OnFailureResponse_70(uint8_t status) + void OnFailureResponse_71(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_70() { ThrowSuccessResponse(); } + void OnSuccessResponse_71() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackOptionalAttributeDriftCompensation_71() + CHIP_ERROR TestReadsBackOptionalAttributeDriftCompensation_72() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_71, OnFailureCallback_71); + this, OnSuccessCallback_72, OnFailureCallback_72); } - void OnFailureResponse_71(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_72(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_71(uint8_t driftCompensation) + void OnSuccessResponse_72(uint8_t driftCompensation) { VerifyOrReturn(CheckValue("driftCompensation", driftCompensation, 0)); NextTest(); } - CHIP_ERROR TestReadTheOptionalAttributeCompensationText_72() + CHIP_ERROR TestReadTheOptionalAttributeCompensationText_73() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_72, OnFailureCallback_72); + this, OnSuccessCallback_73, OnFailureCallback_73); } - void OnFailureResponse_72(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_73(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_72(chip::CharSpan compensationText) + void OnSuccessResponse_73(chip::CharSpan compensationText) { VerifyOrReturn(CheckConstraintType("compensationText", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("compensationText", compensationText.size(), 254)); @@ -4817,19 +4859,19 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeNumberOfPrimaries_73() + CHIP_ERROR TestReadTheMandatoryAttributeNumberOfPrimaries_74() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_73, OnFailureCallback_73); + this, OnSuccessCallback_74, OnFailureCallback_74); } - void OnFailureResponse_73(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_74(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_73(uint8_t numberOfPrimaries) + void OnSuccessResponse_74(uint8_t numberOfPrimaries) { VerifyOrReturn(CheckConstraintType("numberOfPrimaries", "", "uint8")); VerifyOrReturn(CheckConstraintMaxValue("numberOfPrimaries", numberOfPrimaries, 6)); @@ -4837,7 +4879,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultMandatoryAttributeNumberOfPrimaries_74() + CHIP_ERROR TestWriteTheDefaultMandatoryAttributeNumberOfPrimaries_75() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -4847,49 +4889,49 @@ class Test_TC_CC_2_1 : public TestCommand numberOfPrimariesArgument = 0; return cluster.WriteAttribute( - numberOfPrimariesArgument, this, OnSuccessCallback_74, OnFailureCallback_74); + numberOfPrimariesArgument, this, OnSuccessCallback_75, OnFailureCallback_75); } - void OnFailureResponse_74(uint8_t status) + void OnFailureResponse_75(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_74() { ThrowSuccessResponse(); } + void OnSuccessResponse_75() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadBackTheMandatoryAttributeNumberOfPrimaries_75() + CHIP_ERROR TestReadBackTheMandatoryAttributeNumberOfPrimaries_76() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_75, OnFailureCallback_75); + this, OnSuccessCallback_76, OnFailureCallback_76); } - void OnFailureResponse_75(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_76(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_75(uint8_t numberOfPrimaries) + void OnSuccessResponse_76(uint8_t numberOfPrimaries) { VerifyOrReturn(CheckValue("numberOfPrimaries", numberOfPrimaries, 0)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributePrimary1X_76() + CHIP_ERROR TestReadTheMandatoryAttributePrimary1X_77() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_76, - OnFailureCallback_76); + return cluster.ReadAttribute(this, OnSuccessCallback_77, + OnFailureCallback_77); } - void OnFailureResponse_76(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_77(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_76(uint16_t primary1X) + void OnSuccessResponse_77(uint16_t primary1X) { VerifyOrReturn(CheckConstraintType("primary1X", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("primary1X", primary1X, 65279)); @@ -4897,7 +4939,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary1X_77() + CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary1X_78() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -4907,49 +4949,49 @@ class Test_TC_CC_2_1 : public TestCommand primary1XArgument = 0U; return cluster.WriteAttribute( - primary1XArgument, this, OnSuccessCallback_77, OnFailureCallback_77); + primary1XArgument, this, OnSuccessCallback_78, OnFailureCallback_78); } - void OnFailureResponse_77(uint8_t status) + void OnFailureResponse_78(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_77() { ThrowSuccessResponse(); } + void OnSuccessResponse_78() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary1X_78() + CHIP_ERROR TestReadBackTheMandatoryAttributePrimary1X_79() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_78, - OnFailureCallback_78); + return cluster.ReadAttribute(this, OnSuccessCallback_79, + OnFailureCallback_79); } - void OnFailureResponse_78(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_79(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_78(uint16_t primary1X) + void OnSuccessResponse_79(uint16_t primary1X) { VerifyOrReturn(CheckValue("primary1X", primary1X, 0U)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributePrimary1Y_79() + CHIP_ERROR TestReadTheMandatoryAttributePrimary1Y_80() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_79, - OnFailureCallback_79); + return cluster.ReadAttribute(this, OnSuccessCallback_80, + OnFailureCallback_80); } - void OnFailureResponse_79(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_80(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_79(uint16_t primary1Y) + void OnSuccessResponse_80(uint16_t primary1Y) { VerifyOrReturn(CheckConstraintType("primary1Y", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("primary1Y", primary1Y, 65279)); @@ -4957,7 +4999,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary1Y_80() + CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary1Y_81() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -4967,68 +5009,68 @@ class Test_TC_CC_2_1 : public TestCommand primary1YArgument = 0U; return cluster.WriteAttribute( - primary1YArgument, this, OnSuccessCallback_80, OnFailureCallback_80); + primary1YArgument, this, OnSuccessCallback_81, OnFailureCallback_81); } - void OnFailureResponse_80(uint8_t status) + void OnFailureResponse_81(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_80() { ThrowSuccessResponse(); } + void OnSuccessResponse_81() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary1Y_81() + CHIP_ERROR TestReadBackTheMandatoryAttributePrimary1Y_82() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_81, - OnFailureCallback_81); + return cluster.ReadAttribute(this, OnSuccessCallback_82, + OnFailureCallback_82); } - void OnFailureResponse_81(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_82(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_81(uint16_t primary1Y) + void OnSuccessResponse_82(uint16_t primary1Y) { VerifyOrReturn(CheckValue("primary1Y", primary1Y, 0U)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributePrimary1Intensity_82() + CHIP_ERROR TestReadTheMandatoryAttributePrimary1Intensity_83() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_82, OnFailureCallback_82); + this, OnSuccessCallback_83, OnFailureCallback_83); } - void OnFailureResponse_82(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_83(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_82(uint8_t primary1Intensity) + void OnSuccessResponse_83(uint8_t primary1Intensity) { VerifyOrReturn(CheckConstraintType("primary1Intensity", "", "uint8")); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributePrimary2X_83() + CHIP_ERROR TestReadTheMandatoryAttributePrimary2X_84() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_83, - OnFailureCallback_83); + return cluster.ReadAttribute(this, OnSuccessCallback_84, + OnFailureCallback_84); } - void OnFailureResponse_83(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_84(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_83(uint16_t primary2X) + void OnSuccessResponse_84(uint16_t primary2X) { VerifyOrReturn(CheckConstraintType("primary2X", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("primary2X", primary2X, 65279)); @@ -5036,7 +5078,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary2X_84() + CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary2X_85() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -5046,49 +5088,49 @@ class Test_TC_CC_2_1 : public TestCommand primary2XArgument = 0U; return cluster.WriteAttribute( - primary2XArgument, this, OnSuccessCallback_84, OnFailureCallback_84); + primary2XArgument, this, OnSuccessCallback_85, OnFailureCallback_85); } - void OnFailureResponse_84(uint8_t status) + void OnFailureResponse_85(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_84() { ThrowSuccessResponse(); } + void OnSuccessResponse_85() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary2X_85() + CHIP_ERROR TestReadBackTheMandatoryAttributePrimary2X_86() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_85, - OnFailureCallback_85); + return cluster.ReadAttribute(this, OnSuccessCallback_86, + OnFailureCallback_86); } - void OnFailureResponse_85(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_86(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_85(uint16_t primary2X) + void OnSuccessResponse_86(uint16_t primary2X) { VerifyOrReturn(CheckValue("primary2X", primary2X, 0U)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributePrimary2Y_86() + CHIP_ERROR TestReadTheMandatoryAttributePrimary2Y_87() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_86, - OnFailureCallback_86); + return cluster.ReadAttribute(this, OnSuccessCallback_87, + OnFailureCallback_87); } - void OnFailureResponse_86(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_87(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_86(uint16_t primary2Y) + void OnSuccessResponse_87(uint16_t primary2Y) { VerifyOrReturn(CheckConstraintType("primary2Y", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("primary2Y", primary2Y, 65279)); @@ -5096,7 +5138,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary2Y_87() + CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary2Y_88() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -5106,68 +5148,68 @@ class Test_TC_CC_2_1 : public TestCommand primary2YArgument = 0U; return cluster.WriteAttribute( - primary2YArgument, this, OnSuccessCallback_87, OnFailureCallback_87); + primary2YArgument, this, OnSuccessCallback_88, OnFailureCallback_88); } - void OnFailureResponse_87(uint8_t status) + void OnFailureResponse_88(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_87() { ThrowSuccessResponse(); } + void OnSuccessResponse_88() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary2Y_88() + CHIP_ERROR TestReadBackTheMandatoryAttributePrimary2Y_89() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_88, - OnFailureCallback_88); + return cluster.ReadAttribute(this, OnSuccessCallback_89, + OnFailureCallback_89); } - void OnFailureResponse_88(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_89(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_88(uint16_t primary2Y) + void OnSuccessResponse_89(uint16_t primary2Y) { VerifyOrReturn(CheckValue("primary2Y", primary2Y, 0U)); NextTest(); } - CHIP_ERROR TestValidateConstraintsOfAttributePrimary2Intensity_89() + CHIP_ERROR TestValidateConstraintsOfAttributePrimary2Intensity_90() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_89, OnFailureCallback_89); + this, OnSuccessCallback_90, OnFailureCallback_90); } - void OnFailureResponse_89(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_90(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_89(uint8_t primary2Intensity) + void OnSuccessResponse_90(uint8_t primary2Intensity) { VerifyOrReturn(CheckConstraintType("primary2Intensity", "", "uint8")); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributePrimary3X_90() + CHIP_ERROR TestReadTheMandatoryAttributePrimary3X_91() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_90, - OnFailureCallback_90); + return cluster.ReadAttribute(this, OnSuccessCallback_91, + OnFailureCallback_91); } - void OnFailureResponse_90(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_91(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_90(uint16_t primary3X) + void OnSuccessResponse_91(uint16_t primary3X) { VerifyOrReturn(CheckConstraintType("primary3X", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("primary3X", primary3X, 65279)); @@ -5175,7 +5217,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary3X_91() + CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary3X_92() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -5185,49 +5227,49 @@ class Test_TC_CC_2_1 : public TestCommand primary3XArgument = 0U; return cluster.WriteAttribute( - primary3XArgument, this, OnSuccessCallback_91, OnFailureCallback_91); + primary3XArgument, this, OnSuccessCallback_92, OnFailureCallback_92); } - void OnFailureResponse_91(uint8_t status) + void OnFailureResponse_92(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_91() { ThrowSuccessResponse(); } + void OnSuccessResponse_92() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary3X_92() + CHIP_ERROR TestReadBackTheMandatoryAttributePrimary3X_93() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_92, - OnFailureCallback_92); + return cluster.ReadAttribute(this, OnSuccessCallback_93, + OnFailureCallback_93); } - void OnFailureResponse_92(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_93(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_92(uint16_t primary3X) + void OnSuccessResponse_93(uint16_t primary3X) { VerifyOrReturn(CheckValue("primary3X", primary3X, 0U)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributePrimary3Y_93() + CHIP_ERROR TestReadTheMandatoryAttributePrimary3Y_94() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_93, - OnFailureCallback_93); + return cluster.ReadAttribute(this, OnSuccessCallback_94, + OnFailureCallback_94); } - void OnFailureResponse_93(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_94(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_93(uint16_t primary3Y) + void OnSuccessResponse_94(uint16_t primary3Y) { VerifyOrReturn(CheckConstraintType("primary3Y", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("primary3Y", primary3Y, 65279)); @@ -5235,7 +5277,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary3Y_94() + CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary3Y_95() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -5245,68 +5287,68 @@ class Test_TC_CC_2_1 : public TestCommand primary3YArgument = 0U; return cluster.WriteAttribute( - primary3YArgument, this, OnSuccessCallback_94, OnFailureCallback_94); + primary3YArgument, this, OnSuccessCallback_95, OnFailureCallback_95); } - void OnFailureResponse_94(uint8_t status) + void OnFailureResponse_95(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_94() { ThrowSuccessResponse(); } + void OnSuccessResponse_95() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary3Y_95() + CHIP_ERROR TestReadBackTheMandatoryAttributePrimary3Y_96() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_95, - OnFailureCallback_95); + return cluster.ReadAttribute(this, OnSuccessCallback_96, + OnFailureCallback_96); } - void OnFailureResponse_95(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_96(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_95(uint16_t primary3Y) + void OnSuccessResponse_96(uint16_t primary3Y) { VerifyOrReturn(CheckValue("primary3Y", primary3Y, 0U)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributePrimary3Intensity_96() + CHIP_ERROR TestReadTheMandatoryAttributePrimary3Intensity_97() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_96, OnFailureCallback_96); + this, OnSuccessCallback_97, OnFailureCallback_97); } - void OnFailureResponse_96(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_97(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_96(uint8_t primary3Intensity) + void OnSuccessResponse_97(uint8_t primary3Intensity) { VerifyOrReturn(CheckConstraintType("primary3Intensity", "", "uint8")); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributePrimary4X_97() + CHIP_ERROR TestReadTheMandatoryAttributePrimary4X_98() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_97, - OnFailureCallback_97); + return cluster.ReadAttribute(this, OnSuccessCallback_98, + OnFailureCallback_98); } - void OnFailureResponse_97(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_98(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_97(uint16_t primary4X) + void OnSuccessResponse_98(uint16_t primary4X) { VerifyOrReturn(CheckConstraintType("primary4X", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("primary4X", primary4X, 65279)); @@ -5314,7 +5356,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary4X_98() + CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary4X_99() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -5324,49 +5366,49 @@ class Test_TC_CC_2_1 : public TestCommand primary4XArgument = 0U; return cluster.WriteAttribute( - primary4XArgument, this, OnSuccessCallback_98, OnFailureCallback_98); + primary4XArgument, this, OnSuccessCallback_99, OnFailureCallback_99); } - void OnFailureResponse_98(uint8_t status) + void OnFailureResponse_99(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_98() { ThrowSuccessResponse(); } + void OnSuccessResponse_99() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary4X_99() + CHIP_ERROR TestReadBackTheMandatoryAttributePrimary4X_100() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_99, - OnFailureCallback_99); + return cluster.ReadAttribute( + this, OnSuccessCallback_100, OnFailureCallback_100); } - void OnFailureResponse_99(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_100(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_99(uint16_t primary4X) + void OnSuccessResponse_100(uint16_t primary4X) { VerifyOrReturn(CheckValue("primary4X", primary4X, 0U)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributePrimary4Y_100() + CHIP_ERROR TestReadTheMandatoryAttributePrimary4Y_101() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_100, OnFailureCallback_100); + this, OnSuccessCallback_101, OnFailureCallback_101); } - void OnFailureResponse_100(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_101(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_100(uint16_t primary4Y) + void OnSuccessResponse_101(uint16_t primary4Y) { VerifyOrReturn(CheckConstraintType("primary4Y", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("primary4Y", primary4Y, 65279)); @@ -5374,7 +5416,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary4Y_101() + CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary4Y_102() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -5384,68 +5426,68 @@ class Test_TC_CC_2_1 : public TestCommand primary4YArgument = 0U; return cluster.WriteAttribute( - primary4YArgument, this, OnSuccessCallback_101, OnFailureCallback_101); + primary4YArgument, this, OnSuccessCallback_102, OnFailureCallback_102); } - void OnFailureResponse_101(uint8_t status) + void OnFailureResponse_102(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_101() { ThrowSuccessResponse(); } + void OnSuccessResponse_102() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary4Y_102() + CHIP_ERROR TestReadBackTheMandatoryAttributePrimary4Y_103() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_102, OnFailureCallback_102); + this, OnSuccessCallback_103, OnFailureCallback_103); } - void OnFailureResponse_102(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_103(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_102(uint16_t primary4Y) + void OnSuccessResponse_103(uint16_t primary4Y) { VerifyOrReturn(CheckValue("primary4Y", primary4Y, 0U)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributePrimary4Intensity_103() + CHIP_ERROR TestReadTheMandatoryAttributePrimary4Intensity_104() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_103, OnFailureCallback_103); + this, OnSuccessCallback_104, OnFailureCallback_104); } - void OnFailureResponse_103(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_104(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_103(uint8_t primary4Intensity) + void OnSuccessResponse_104(uint8_t primary4Intensity) { VerifyOrReturn(CheckConstraintType("primary4Intensity", "", "uint8")); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributePrimary5X_104() + CHIP_ERROR TestReadTheMandatoryAttributePrimary5X_105() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_104, OnFailureCallback_104); + this, OnSuccessCallback_105, OnFailureCallback_105); } - void OnFailureResponse_104(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_105(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_104(uint16_t primary5X) + void OnSuccessResponse_105(uint16_t primary5X) { VerifyOrReturn(CheckConstraintType("primary5X", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("primary5X", primary5X, 65279)); @@ -5453,7 +5495,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary5X_105() + CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary5X_106() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -5463,49 +5505,49 @@ class Test_TC_CC_2_1 : public TestCommand primary5XArgument = 0U; return cluster.WriteAttribute( - primary5XArgument, this, OnSuccessCallback_105, OnFailureCallback_105); + primary5XArgument, this, OnSuccessCallback_106, OnFailureCallback_106); } - void OnFailureResponse_105(uint8_t status) + void OnFailureResponse_106(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_105() { ThrowSuccessResponse(); } + void OnSuccessResponse_106() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary5X_106() + CHIP_ERROR TestReadBackTheMandatoryAttributePrimary5X_107() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_106, OnFailureCallback_106); + this, OnSuccessCallback_107, OnFailureCallback_107); } - void OnFailureResponse_106(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_107(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_106(uint16_t primary5X) + void OnSuccessResponse_107(uint16_t primary5X) { VerifyOrReturn(CheckValue("primary5X", primary5X, 0U)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributePrimary5Y_107() + CHIP_ERROR TestReadTheMandatoryAttributePrimary5Y_108() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_107, OnFailureCallback_107); + this, OnSuccessCallback_108, OnFailureCallback_108); } - void OnFailureResponse_107(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_108(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_107(uint16_t primary5Y) + void OnSuccessResponse_108(uint16_t primary5Y) { VerifyOrReturn(CheckConstraintType("primary5Y", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("primary5Y", primary5Y, 65279)); @@ -5513,7 +5555,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary5Y_108() + CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary5Y_109() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -5523,68 +5565,68 @@ class Test_TC_CC_2_1 : public TestCommand primary5YArgument = 0U; return cluster.WriteAttribute( - primary5YArgument, this, OnSuccessCallback_108, OnFailureCallback_108); + primary5YArgument, this, OnSuccessCallback_109, OnFailureCallback_109); } - void OnFailureResponse_108(uint8_t status) + void OnFailureResponse_109(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_108() { ThrowSuccessResponse(); } + void OnSuccessResponse_109() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary5Y_109() + CHIP_ERROR TestReadBackTheMandatoryAttributePrimary5Y_110() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_109, OnFailureCallback_109); + this, OnSuccessCallback_110, OnFailureCallback_110); } - void OnFailureResponse_109(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_110(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_109(uint16_t primary5Y) + void OnSuccessResponse_110(uint16_t primary5Y) { VerifyOrReturn(CheckValue("primary5Y", primary5Y, 0U)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributePrimary5Intensity_110() + CHIP_ERROR TestReadTheMandatoryAttributePrimary5Intensity_111() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_110, OnFailureCallback_110); + this, OnSuccessCallback_111, OnFailureCallback_111); } - void OnFailureResponse_110(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_111(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_110(uint8_t primary5Intensity) + void OnSuccessResponse_111(uint8_t primary5Intensity) { VerifyOrReturn(CheckConstraintType("primary5Intensity", "", "uint8")); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributePrimary6X_111() + CHIP_ERROR TestReadTheMandatoryAttributePrimary6X_112() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_111, OnFailureCallback_111); + this, OnSuccessCallback_112, OnFailureCallback_112); } - void OnFailureResponse_111(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_112(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_111(uint16_t primary6X) + void OnSuccessResponse_112(uint16_t primary6X) { VerifyOrReturn(CheckConstraintType("primary6X", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("primary6X", primary6X, 65279)); @@ -5592,7 +5634,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary6X_112() + CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary6X_113() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -5602,49 +5644,49 @@ class Test_TC_CC_2_1 : public TestCommand primary6XArgument = 0U; return cluster.WriteAttribute( - primary6XArgument, this, OnSuccessCallback_112, OnFailureCallback_112); + primary6XArgument, this, OnSuccessCallback_113, OnFailureCallback_113); } - void OnFailureResponse_112(uint8_t status) + void OnFailureResponse_113(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_112() { ThrowSuccessResponse(); } + void OnSuccessResponse_113() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary6X_113() + CHIP_ERROR TestReadBackTheMandatoryAttributePrimary6X_114() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_113, OnFailureCallback_113); + this, OnSuccessCallback_114, OnFailureCallback_114); } - void OnFailureResponse_113(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_114(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_113(uint16_t primary6X) + void OnSuccessResponse_114(uint16_t primary6X) { VerifyOrReturn(CheckValue("primary6X", primary6X, 0U)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributePrimary6Y_114() + CHIP_ERROR TestReadTheMandatoryAttributePrimary6Y_115() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_114, OnFailureCallback_114); + this, OnSuccessCallback_115, OnFailureCallback_115); } - void OnFailureResponse_114(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_115(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_114(uint16_t primary6Y) + void OnSuccessResponse_115(uint16_t primary6Y) { VerifyOrReturn(CheckConstraintType("primary6Y", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("primary6Y", primary6Y, 65279)); @@ -5652,7 +5694,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary6Y_115() + CHIP_ERROR TestWriteTheDefaultMandatoryAttributePrimary6Y_116() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -5662,68 +5704,68 @@ class Test_TC_CC_2_1 : public TestCommand primary6YArgument = 0U; return cluster.WriteAttribute( - primary6YArgument, this, OnSuccessCallback_115, OnFailureCallback_115); + primary6YArgument, this, OnSuccessCallback_116, OnFailureCallback_116); } - void OnFailureResponse_115(uint8_t status) + void OnFailureResponse_116(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_115() { ThrowSuccessResponse(); } + void OnSuccessResponse_116() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadBackTheMandatoryAttributePrimary6Y_116() + CHIP_ERROR TestReadBackTheMandatoryAttributePrimary6Y_117() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_116, OnFailureCallback_116); + this, OnSuccessCallback_117, OnFailureCallback_117); } - void OnFailureResponse_116(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_117(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_116(uint16_t primary6Y) + void OnSuccessResponse_117(uint16_t primary6Y) { VerifyOrReturn(CheckValue("primary6Y", primary6Y, 0U)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributePrimary6Intensity_117() + CHIP_ERROR TestReadTheMandatoryAttributePrimary6Intensity_118() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_117, OnFailureCallback_117); + this, OnSuccessCallback_118, OnFailureCallback_118); } - void OnFailureResponse_117(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_118(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_117(uint8_t primary6Intensity) + void OnSuccessResponse_118(uint8_t primary6Intensity) { VerifyOrReturn(CheckConstraintType("primary6Intensity", "", "uint8")); NextTest(); } - CHIP_ERROR TestReadTheOptionalAttributeWhitePointX_118() + CHIP_ERROR TestReadTheOptionalAttributeWhitePointX_119() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_118, OnFailureCallback_118); + this, OnSuccessCallback_119, OnFailureCallback_119); } - void OnFailureResponse_118(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_119(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_118(uint16_t whitePointX) + void OnSuccessResponse_119(uint16_t whitePointX) { VerifyOrReturn(CheckConstraintType("whitePointX", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("whitePointX", whitePointX, 65279)); @@ -5731,7 +5773,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultOptionalAttributeWhitePointX_119() + CHIP_ERROR TestWriteTheDefaultOptionalAttributeWhitePointX_120() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -5741,45 +5783,45 @@ class Test_TC_CC_2_1 : public TestCommand whitePointXArgument = 0U; return cluster.WriteAttribute( - whitePointXArgument, this, OnSuccessCallback_119, OnFailureCallback_119); + whitePointXArgument, this, OnSuccessCallback_120, OnFailureCallback_120); } - void OnFailureResponse_119(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_120(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_119() { NextTest(); } + void OnSuccessResponse_120() { NextTest(); } - CHIP_ERROR TestReadBackTheOptionalAttributeWhitePointX_120() + CHIP_ERROR TestReadBackTheOptionalAttributeWhitePointX_121() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_120, OnFailureCallback_120); + this, OnSuccessCallback_121, OnFailureCallback_121); } - void OnFailureResponse_120(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_121(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_120(uint16_t whitePointX) + void OnSuccessResponse_121(uint16_t whitePointX) { VerifyOrReturn(CheckValue("whitePointX", whitePointX, 0U)); NextTest(); } - CHIP_ERROR TestReadTheOptionalAttributeWhitePointY_121() + CHIP_ERROR TestReadTheOptionalAttributeWhitePointY_122() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_121, OnFailureCallback_121); + this, OnSuccessCallback_122, OnFailureCallback_122); } - void OnFailureResponse_121(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_122(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_121(uint16_t whitePointY) + void OnSuccessResponse_122(uint16_t whitePointY) { VerifyOrReturn(CheckConstraintType("whitePointY", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("whitePointY", whitePointY, 65279)); @@ -5787,7 +5829,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultOptionalAttributeWhitePointY_122() + CHIP_ERROR TestWriteTheDefaultOptionalAttributeWhitePointY_123() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -5797,45 +5839,45 @@ class Test_TC_CC_2_1 : public TestCommand whitePointYArgument = 0U; return cluster.WriteAttribute( - whitePointYArgument, this, OnSuccessCallback_122, OnFailureCallback_122); + whitePointYArgument, this, OnSuccessCallback_123, OnFailureCallback_123); } - void OnFailureResponse_122(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_123(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_122() { NextTest(); } + void OnSuccessResponse_123() { NextTest(); } - CHIP_ERROR TestReadBackTheOptionalAttributeWhitePointY_123() + CHIP_ERROR TestReadBackTheOptionalAttributeWhitePointY_124() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_123, OnFailureCallback_123); + this, OnSuccessCallback_124, OnFailureCallback_124); } - void OnFailureResponse_123(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_124(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_123(uint16_t whitePointY) + void OnSuccessResponse_124(uint16_t whitePointY) { VerifyOrReturn(CheckValue("whitePointY", whitePointY, 0U)); NextTest(); } - CHIP_ERROR TestReadTheOptionalAttributeColorPointRX_124() + CHIP_ERROR TestReadTheOptionalAttributeColorPointRX_125() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_124, OnFailureCallback_124); + this, OnSuccessCallback_125, OnFailureCallback_125); } - void OnFailureResponse_124(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_125(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_124(uint16_t colorPointRX) + void OnSuccessResponse_125(uint16_t colorPointRX) { VerifyOrReturn(CheckConstraintType("colorPointRX", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("colorPointRX", colorPointRX, 65279)); @@ -5843,7 +5885,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointRX_125() + CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointRX_126() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -5853,45 +5895,45 @@ class Test_TC_CC_2_1 : public TestCommand colorPointRXArgument = 0U; return cluster.WriteAttribute( - colorPointRXArgument, this, OnSuccessCallback_125, OnFailureCallback_125); + colorPointRXArgument, this, OnSuccessCallback_126, OnFailureCallback_126); } - void OnFailureResponse_125(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_126(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_125() { NextTest(); } + void OnSuccessResponse_126() { NextTest(); } - CHIP_ERROR TestReadBackTheOptionalAttributeColorPointRX_126() + CHIP_ERROR TestReadBackTheOptionalAttributeColorPointRX_127() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_126, OnFailureCallback_126); + this, OnSuccessCallback_127, OnFailureCallback_127); } - void OnFailureResponse_126(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_127(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_126(uint16_t colorPointRX) + void OnSuccessResponse_127(uint16_t colorPointRX) { VerifyOrReturn(CheckValue("colorPointRX", colorPointRX, 0U)); NextTest(); } - CHIP_ERROR TestReadTheOptionalAttributeColorPointRY_127() + CHIP_ERROR TestReadTheOptionalAttributeColorPointRY_128() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_127, OnFailureCallback_127); + this, OnSuccessCallback_128, OnFailureCallback_128); } - void OnFailureResponse_127(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_128(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_127(uint16_t colorPointRY) + void OnSuccessResponse_128(uint16_t colorPointRY) { VerifyOrReturn(CheckConstraintType("colorPointRY", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("colorPointRY", colorPointRY, 65279)); @@ -5899,7 +5941,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointRY_128() + CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointRY_129() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -5909,64 +5951,64 @@ class Test_TC_CC_2_1 : public TestCommand colorPointRYArgument = 0U; return cluster.WriteAttribute( - colorPointRYArgument, this, OnSuccessCallback_128, OnFailureCallback_128); + colorPointRYArgument, this, OnSuccessCallback_129, OnFailureCallback_129); } - void OnFailureResponse_128(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_129(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_128() { NextTest(); } + void OnSuccessResponse_129() { NextTest(); } - CHIP_ERROR TestReadBackTheOptionalAttributeColorPointRY_129() + CHIP_ERROR TestReadBackTheOptionalAttributeColorPointRY_130() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_129, OnFailureCallback_129); + this, OnSuccessCallback_130, OnFailureCallback_130); } - void OnFailureResponse_129(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_130(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_129(uint16_t colorPointRY) + void OnSuccessResponse_130(uint16_t colorPointRY) { VerifyOrReturn(CheckValue("colorPointRY", colorPointRY, 0U)); NextTest(); } - CHIP_ERROR TestReadTheOptionalAttributeColorPointRIntensity_130() + CHIP_ERROR TestReadTheOptionalAttributeColorPointRIntensity_131() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_130, OnFailureCallback_130); + this, OnSuccessCallback_131, OnFailureCallback_131); } - void OnFailureResponse_130(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_131(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_130(uint8_t colorPointRIntensity) + void OnSuccessResponse_131(uint8_t colorPointRIntensity) { VerifyOrReturn(CheckConstraintType("colorPointRIntensity", "", "uint8")); NextTest(); } - CHIP_ERROR TestReadTheOptionalAttributeColorPointGX_131() + CHIP_ERROR TestReadTheOptionalAttributeColorPointGX_132() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_131, OnFailureCallback_131); + this, OnSuccessCallback_132, OnFailureCallback_132); } - void OnFailureResponse_131(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_132(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_131(uint16_t colorPointGX) + void OnSuccessResponse_132(uint16_t colorPointGX) { VerifyOrReturn(CheckConstraintType("colorPointGX", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("colorPointGX", colorPointGX, 65279)); @@ -5974,7 +6016,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointGX_132() + CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointGX_133() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -5984,45 +6026,45 @@ class Test_TC_CC_2_1 : public TestCommand colorPointGXArgument = 0U; return cluster.WriteAttribute( - colorPointGXArgument, this, OnSuccessCallback_132, OnFailureCallback_132); + colorPointGXArgument, this, OnSuccessCallback_133, OnFailureCallback_133); } - void OnFailureResponse_132(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_133(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_132() { NextTest(); } + void OnSuccessResponse_133() { NextTest(); } - CHIP_ERROR TestReadBackTheOptionalAttributeColorPointGX_133() + CHIP_ERROR TestReadBackTheOptionalAttributeColorPointGX_134() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_133, OnFailureCallback_133); + this, OnSuccessCallback_134, OnFailureCallback_134); } - void OnFailureResponse_133(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_134(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_133(uint16_t colorPointGX) + void OnSuccessResponse_134(uint16_t colorPointGX) { VerifyOrReturn(CheckValue("colorPointGX", colorPointGX, 0U)); NextTest(); } - CHIP_ERROR TestReadTheOptionalAttributeColorPointGY_134() + CHIP_ERROR TestReadTheOptionalAttributeColorPointGY_135() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_134, OnFailureCallback_134); + this, OnSuccessCallback_135, OnFailureCallback_135); } - void OnFailureResponse_134(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_135(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_134(uint16_t colorPointGY) + void OnSuccessResponse_135(uint16_t colorPointGY) { VerifyOrReturn(CheckConstraintType("colorPointGY", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("colorPointGY", colorPointGY, 65279)); @@ -6030,7 +6072,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointGY_135() + CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointGY_136() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -6040,64 +6082,64 @@ class Test_TC_CC_2_1 : public TestCommand colorPointGYArgument = 0U; return cluster.WriteAttribute( - colorPointGYArgument, this, OnSuccessCallback_135, OnFailureCallback_135); + colorPointGYArgument, this, OnSuccessCallback_136, OnFailureCallback_136); } - void OnFailureResponse_135(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_136(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_135() { NextTest(); } + void OnSuccessResponse_136() { NextTest(); } - CHIP_ERROR TestReadBackTheOptionalAttributeColorPointGY_136() + CHIP_ERROR TestReadBackTheOptionalAttributeColorPointGY_137() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_136, OnFailureCallback_136); + this, OnSuccessCallback_137, OnFailureCallback_137); } - void OnFailureResponse_136(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_137(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_136(uint16_t colorPointGY) + void OnSuccessResponse_137(uint16_t colorPointGY) { VerifyOrReturn(CheckValue("colorPointGY", colorPointGY, 0U)); NextTest(); } - CHIP_ERROR TestReadTheOptionalAttributeColorPointGIntensity_137() + CHIP_ERROR TestReadTheOptionalAttributeColorPointGIntensity_138() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_137, OnFailureCallback_137); + this, OnSuccessCallback_138, OnFailureCallback_138); } - void OnFailureResponse_137(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_138(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_137(uint8_t colorPointGIntensity) + void OnSuccessResponse_138(uint8_t colorPointGIntensity) { VerifyOrReturn(CheckConstraintType("colorPointGIntensity", "", "uint8")); NextTest(); } - CHIP_ERROR TestReadTheOptionalAttributeColorPointBX_138() + CHIP_ERROR TestReadTheOptionalAttributeColorPointBX_139() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_138, OnFailureCallback_138); + this, OnSuccessCallback_139, OnFailureCallback_139); } - void OnFailureResponse_138(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_139(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_138(uint16_t colorPointBX) + void OnSuccessResponse_139(uint16_t colorPointBX) { VerifyOrReturn(CheckConstraintType("colorPointBX", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("colorPointBX", colorPointBX, 65279)); @@ -6105,7 +6147,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointBX_139() + CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointBX_140() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -6115,45 +6157,45 @@ class Test_TC_CC_2_1 : public TestCommand colorPointBXArgument = 0U; return cluster.WriteAttribute( - colorPointBXArgument, this, OnSuccessCallback_139, OnFailureCallback_139); + colorPointBXArgument, this, OnSuccessCallback_140, OnFailureCallback_140); } - void OnFailureResponse_139(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_140(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_139() { NextTest(); } + void OnSuccessResponse_140() { NextTest(); } - CHIP_ERROR TestReadBackTheOptionalAttributeColorPointBX_140() + CHIP_ERROR TestReadBackTheOptionalAttributeColorPointBX_141() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_140, OnFailureCallback_140); + this, OnSuccessCallback_141, OnFailureCallback_141); } - void OnFailureResponse_140(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_141(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_140(uint16_t colorPointBX) + void OnSuccessResponse_141(uint16_t colorPointBX) { VerifyOrReturn(CheckValue("colorPointBX", colorPointBX, 0U)); NextTest(); } - CHIP_ERROR TestReadTheOptionalAttributeColorPointBY_141() + CHIP_ERROR TestReadTheOptionalAttributeColorPointBY_142() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_141, OnFailureCallback_141); + this, OnSuccessCallback_142, OnFailureCallback_142); } - void OnFailureResponse_141(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_142(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_141(uint16_t colorPointBY) + void OnSuccessResponse_142(uint16_t colorPointBY) { VerifyOrReturn(CheckConstraintType("colorPointBY", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("colorPointBY", colorPointBY, 65279)); @@ -6161,7 +6203,7 @@ class Test_TC_CC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointBY_142() + CHIP_ERROR TestWriteTheDefaultOptionalAttributeColorPointBY_143() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; @@ -6171,45 +6213,45 @@ class Test_TC_CC_2_1 : public TestCommand colorPointBYArgument = 0U; return cluster.WriteAttribute( - colorPointBYArgument, this, OnSuccessCallback_142, OnFailureCallback_142); + colorPointBYArgument, this, OnSuccessCallback_143, OnFailureCallback_143); } - void OnFailureResponse_142(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_143(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_142() { NextTest(); } + void OnSuccessResponse_143() { NextTest(); } - CHIP_ERROR TestReadBackTheOptionalAttributeColorPointBY_143() + CHIP_ERROR TestReadBackTheOptionalAttributeColorPointBY_144() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_143, OnFailureCallback_143); + this, OnSuccessCallback_144, OnFailureCallback_144); } - void OnFailureResponse_143(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_144(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_143(uint16_t colorPointBY) + void OnSuccessResponse_144(uint16_t colorPointBY) { VerifyOrReturn(CheckValue("colorPointBY", colorPointBY, 0U)); NextTest(); } - CHIP_ERROR TestReadTheOptionalAttributeColorPointBIntensity_144() + CHIP_ERROR TestReadTheOptionalAttributeColorPointBIntensity_145() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_144, OnFailureCallback_144); + this, OnSuccessCallback_145, OnFailureCallback_145); } - void OnFailureResponse_144(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_145(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_144(uint8_t colorPointBIntensity) + void OnSuccessResponse_145(uint8_t colorPointBIntensity) { VerifyOrReturn(CheckConstraintType("colorPointBIntensity", "", "uint8")); @@ -6248,36 +6290,40 @@ class Test_TC_CC_3_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Turn on light for color control tests\n"); - err = TestTurnOnLightForColorControlTests_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 : Check on/off attribute value is true after on command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Turn on light for color control tests\n"); + err = TestTurnOnLightForColorControlTests_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Move to hue shortest distance command\n"); - err = TestMoveToHueShortestDistanceCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Move to hue longest distance command\n"); - err = TestMoveToHueLongestDistanceCommand_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Move to hue shortest distance command\n"); + err = TestMoveToHueShortestDistanceCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Move to hue up command\n"); - err = TestMoveToHueUpCommand_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Move to hue longest distance command\n"); + err = TestMoveToHueLongestDistanceCommand_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Move to hue down command\n"); - err = TestMoveToHueDownCommand_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Move to hue up command\n"); + err = TestMoveToHueUpCommand_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Turn off light that we turned on\n"); - err = TestTurnOffLightThatWeTurnedOn_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Move to hue down command\n"); + err = TestMoveToHueDownCommand_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Check on/off attribute value is false after off command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Turn off light that we turned on\n"); + err = TestTurnOffLightThatWeTurnedOn_7(); + break; + case 8: + ChipLogProgress(chipTool, " ***** Test Step 8 : Check on/off attribute value is false after off command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_8(); break; } @@ -6290,33 +6336,35 @@ class Test_TC_CC_3_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 8; + const uint16_t mTestCount = 9; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, bool onOff) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_1(onOff); + (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, bool onOff) + static void OnSuccessCallback_8(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_7(onOff); + (static_cast(context))->OnSuccessResponse_8(onOff); } // // Tests methods // - CHIP_ERROR TestTurnOnLightForColorControlTests_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestTurnOnLightForColorControlTests_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -6324,41 +6372,41 @@ class Test_TC_CC_3_1 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestMoveToHueShortestDistanceCommand_2() + CHIP_ERROR TestMoveToHueShortestDistanceCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToHue::Type; @@ -6371,22 +6419,22 @@ class Test_TC_CC_3_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestMoveToHueLongestDistanceCommand_3() + CHIP_ERROR TestMoveToHueLongestDistanceCommand_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToHue::Type; @@ -6399,22 +6447,22 @@ class Test_TC_CC_3_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_3(); + (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_4(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3() { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } - CHIP_ERROR TestMoveToHueUpCommand_4() + CHIP_ERROR TestMoveToHueUpCommand_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToHue::Type; @@ -6427,22 +6475,22 @@ class Test_TC_CC_3_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_4(); + (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_5(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4() { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } - CHIP_ERROR TestMoveToHueDownCommand_5() + CHIP_ERROR TestMoveToHueDownCommand_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToHue::Type; @@ -6455,22 +6503,22 @@ class Test_TC_CC_3_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_5(); + (static_cast(context))->OnSuccessResponse_6(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_6(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5() { NextTest(); } + void OnSuccessResponse_6() { NextTest(); } - CHIP_ERROR TestTurnOffLightThatWeTurnedOn_6() + CHIP_ERROR TestTurnOffLightThatWeTurnedOn_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -6478,34 +6526,34 @@ class Test_TC_CC_3_1 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_6(); + (static_cast(context))->OnSuccessResponse_7(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_7(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6() { NextTest(); } + void OnSuccessResponse_7() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_7() + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_7, - OnFailureCallback_7); + return cluster.ReadAttribute(this, OnSuccessCallback_8, + OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(bool onOff) + void OnSuccessResponse_8(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); @@ -6544,36 +6592,40 @@ class Test_TC_CC_3_2 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Turn on light for color control tests\n"); - err = TestTurnOnLightForColorControlTests_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 : Check on/off attribute value is true after on command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Turn on light for color control tests\n"); + err = TestTurnOnLightForColorControlTests_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Move hue up command\n"); - err = TestMoveHueUpCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Move hue stop command\n"); - err = TestMoveHueStopCommand_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Move hue up command\n"); + err = TestMoveHueUpCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Move hue down command\n"); - err = TestMoveHueDownCommand_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Move hue stop command\n"); + err = TestMoveHueStopCommand_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Move hue stop command\n"); - err = TestMoveHueStopCommand_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Move hue down command\n"); + err = TestMoveHueDownCommand_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Turn off light that we turned on\n"); - err = TestTurnOffLightThatWeTurnedOn_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Move hue stop command\n"); + err = TestMoveHueStopCommand_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Check on/off attribute value is false after off command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Turn off light that we turned on\n"); + err = TestTurnOffLightThatWeTurnedOn_7(); + break; + case 8: + ChipLogProgress(chipTool, " ***** Test Step 8 : Check on/off attribute value is false after off command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_8(); break; } @@ -6586,33 +6638,35 @@ class Test_TC_CC_3_2 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 8; + const uint16_t mTestCount = 9; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, bool onOff) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_1(onOff); + (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, bool onOff) + static void OnSuccessCallback_8(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_7(onOff); + (static_cast(context))->OnSuccessResponse_8(onOff); } // // Tests methods // - CHIP_ERROR TestTurnOnLightForColorControlTests_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestTurnOnLightForColorControlTests_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -6620,41 +6674,41 @@ class Test_TC_CC_3_2 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestMoveHueUpCommand_2() + CHIP_ERROR TestMoveHueUpCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveHue::Type; @@ -6666,22 +6720,22 @@ class Test_TC_CC_3_2 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestMoveHueStopCommand_3() + CHIP_ERROR TestMoveHueStopCommand_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveHue::Type; @@ -6693,22 +6747,22 @@ class Test_TC_CC_3_2 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_3(); + (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_4(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3() { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } - CHIP_ERROR TestMoveHueDownCommand_4() + CHIP_ERROR TestMoveHueDownCommand_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveHue::Type; @@ -6720,22 +6774,22 @@ class Test_TC_CC_3_2 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_4(); + (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_5(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4() { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } - CHIP_ERROR TestMoveHueStopCommand_5() + CHIP_ERROR TestMoveHueStopCommand_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveHue::Type; @@ -6747,22 +6801,22 @@ class Test_TC_CC_3_2 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_5(); + (static_cast(context))->OnSuccessResponse_6(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_6(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5() { NextTest(); } + void OnSuccessResponse_6() { NextTest(); } - CHIP_ERROR TestTurnOffLightThatWeTurnedOn_6() + CHIP_ERROR TestTurnOffLightThatWeTurnedOn_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -6770,34 +6824,34 @@ class Test_TC_CC_3_2 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_6(); + (static_cast(context))->OnSuccessResponse_7(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_7(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6() { NextTest(); } + void OnSuccessResponse_7() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_7() + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_7, - OnFailureCallback_7); + return cluster.ReadAttribute(this, OnSuccessCallback_8, + OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(bool onOff) + void OnSuccessResponse_8(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); @@ -6836,28 +6890,32 @@ class Test_TC_CC_3_3 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Turn on light for color control tests\n"); - err = TestTurnOnLightForColorControlTests_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 : Check on/off attribute value is true after on command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Turn on light for color control tests\n"); + err = TestTurnOnLightForColorControlTests_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Step hue up command\n"); - err = TestStepHueUpCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Step hue down command\n"); - err = TestStepHueDownCommand_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Step hue up command\n"); + err = TestStepHueUpCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Turn off light that we turned on\n"); - err = TestTurnOffLightThatWeTurnedOn_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Step hue down command\n"); + err = TestStepHueDownCommand_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Check on/off attribute value is false after off command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Turn off light that we turned on\n"); + err = TestTurnOffLightThatWeTurnedOn_5(); + break; + case 6: + ChipLogProgress(chipTool, " ***** Test Step 6 : Check on/off attribute value is false after off command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6(); break; } @@ -6870,33 +6928,35 @@ class Test_TC_CC_3_3 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 6; + const uint16_t mTestCount = 7; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, bool onOff) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_1(onOff); + (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, bool onOff) + static void OnSuccessCallback_6(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_5(onOff); + (static_cast(context))->OnSuccessResponse_6(onOff); } // // Tests methods // - CHIP_ERROR TestTurnOnLightForColorControlTests_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestTurnOnLightForColorControlTests_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -6904,41 +6964,41 @@ class Test_TC_CC_3_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestStepHueUpCommand_2() + CHIP_ERROR TestStepHueUpCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::StepHue::Type; @@ -6951,22 +7011,22 @@ class Test_TC_CC_3_3 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestStepHueDownCommand_3() + CHIP_ERROR TestStepHueDownCommand_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::StepHue::Type; @@ -6979,22 +7039,22 @@ class Test_TC_CC_3_3 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_3(); + (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_4(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3() { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } - CHIP_ERROR TestTurnOffLightThatWeTurnedOn_4() + CHIP_ERROR TestTurnOffLightThatWeTurnedOn_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -7002,34 +7062,34 @@ class Test_TC_CC_3_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_4(); + (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_5(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4() { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5() + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_5, - OnFailureCallback_5); + return cluster.ReadAttribute(this, OnSuccessCallback_6, + OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(bool onOff) + void OnSuccessResponse_6(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); @@ -7068,24 +7128,28 @@ class Test_TC_CC_4_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Turn on light for color control tests\n"); - err = TestTurnOnLightForColorControlTests_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 : Check on/off attribute value is true after on command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Turn on light for color control tests\n"); + err = TestTurnOnLightForColorControlTests_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Move to saturation command\n"); - err = TestMoveToSaturationCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Turn off light that we turned on\n"); - err = TestTurnOffLightThatWeTurnedOn_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Move to saturation command\n"); + err = TestMoveToSaturationCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Check on/off attribute value is false after off command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Turn off light that we turned on\n"); + err = TestTurnOffLightThatWeTurnedOn_4(); + break; + case 5: + ChipLogProgress(chipTool, " ***** Test Step 5 : Check on/off attribute value is false after off command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5(); break; } @@ -7098,33 +7162,35 @@ class Test_TC_CC_4_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 5; + const uint16_t mTestCount = 6; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, bool onOff) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_1(onOff); + (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, bool onOff) + static void OnSuccessCallback_5(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_4(onOff); + (static_cast(context))->OnSuccessResponse_5(onOff); } // // Tests methods // - CHIP_ERROR TestTurnOnLightForColorControlTests_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestTurnOnLightForColorControlTests_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -7132,41 +7198,41 @@ class Test_TC_CC_4_1 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestMoveToSaturationCommand_2() + CHIP_ERROR TestMoveToSaturationCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToSaturation::Type; @@ -7178,22 +7244,22 @@ class Test_TC_CC_4_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestTurnOffLightThatWeTurnedOn_3() + CHIP_ERROR TestTurnOffLightThatWeTurnedOn_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -7201,34 +7267,34 @@ class Test_TC_CC_4_1 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_3(); + (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_4(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3() { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_4() + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_4, - OnFailureCallback_4); + return cluster.ReadAttribute(this, OnSuccessCallback_5, + OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(bool onOff) + void OnSuccessResponse_5(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); @@ -7267,28 +7333,32 @@ class Test_TC_CC_4_2 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Turn on light for color control tests\n"); - err = TestTurnOnLightForColorControlTests_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 : Check on/off attribute value is true after on command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Turn on light for color control tests\n"); + err = TestTurnOnLightForColorControlTests_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Move saturation up command\n"); - err = TestMoveSaturationUpCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Move saturation down command\n"); - err = TestMoveSaturationDownCommand_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Move saturation up command\n"); + err = TestMoveSaturationUpCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Turn off light that we turned on\n"); - err = TestTurnOffLightThatWeTurnedOn_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Move saturation down command\n"); + err = TestMoveSaturationDownCommand_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Check on/off attribute value is false after off command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Turn off light that we turned on\n"); + err = TestTurnOffLightThatWeTurnedOn_5(); + break; + case 6: + ChipLogProgress(chipTool, " ***** Test Step 6 : Check on/off attribute value is false after off command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6(); break; } @@ -7301,33 +7371,35 @@ class Test_TC_CC_4_2 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 6; + const uint16_t mTestCount = 7; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, bool onOff) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_1(onOff); + (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, bool onOff) + static void OnSuccessCallback_6(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_5(onOff); + (static_cast(context))->OnSuccessResponse_6(onOff); } // // Tests methods // - CHIP_ERROR TestTurnOnLightForColorControlTests_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestTurnOnLightForColorControlTests_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -7335,41 +7407,41 @@ class Test_TC_CC_4_2 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestMoveSaturationUpCommand_2() + CHIP_ERROR TestMoveSaturationUpCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type; @@ -7381,22 +7453,22 @@ class Test_TC_CC_4_2 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestMoveSaturationDownCommand_3() + CHIP_ERROR TestMoveSaturationDownCommand_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type; @@ -7408,22 +7480,22 @@ class Test_TC_CC_4_2 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_3(); + (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_4(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3() { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } - CHIP_ERROR TestTurnOffLightThatWeTurnedOn_4() + CHIP_ERROR TestTurnOffLightThatWeTurnedOn_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -7431,34 +7503,34 @@ class Test_TC_CC_4_2 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_4(); + (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_5(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4() { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5() + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_5, - OnFailureCallback_5); + return cluster.ReadAttribute(this, OnSuccessCallback_6, + OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(bool onOff) + void OnSuccessResponse_6(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); @@ -7497,28 +7569,32 @@ class Test_TC_CC_4_3 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Turn on light for color control tests\n"); - err = TestTurnOnLightForColorControlTests_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 : Check on/off attribute value is true after on command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Turn on light for color control tests\n"); + err = TestTurnOnLightForColorControlTests_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Step saturation up command\n"); - err = TestStepSaturationUpCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Step saturation down command\n"); - err = TestStepSaturationDownCommand_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Step saturation up command\n"); + err = TestStepSaturationUpCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Turn off light that we turned on\n"); - err = TestTurnOffLightThatWeTurnedOn_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Step saturation down command\n"); + err = TestStepSaturationDownCommand_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Check on/off attribute value is false after off command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Turn off light that we turned on\n"); + err = TestTurnOffLightThatWeTurnedOn_5(); + break; + case 6: + ChipLogProgress(chipTool, " ***** Test Step 6 : Check on/off attribute value is false after off command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6(); break; } @@ -7531,33 +7607,35 @@ class Test_TC_CC_4_3 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 6; + const uint16_t mTestCount = 7; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, bool onOff) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_1(onOff); + (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, bool onOff) + static void OnSuccessCallback_6(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_5(onOff); + (static_cast(context))->OnSuccessResponse_6(onOff); } // // Tests methods // - CHIP_ERROR TestTurnOnLightForColorControlTests_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestTurnOnLightForColorControlTests_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -7565,41 +7643,41 @@ class Test_TC_CC_4_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestStepSaturationUpCommand_2() + CHIP_ERROR TestStepSaturationUpCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::StepSaturation::Type; @@ -7612,22 +7690,22 @@ class Test_TC_CC_4_3 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestStepSaturationDownCommand_3() + CHIP_ERROR TestStepSaturationDownCommand_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::StepSaturation::Type; @@ -7640,22 +7718,22 @@ class Test_TC_CC_4_3 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_3(); + (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_4(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3() { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } - CHIP_ERROR TestTurnOffLightThatWeTurnedOn_4() + CHIP_ERROR TestTurnOffLightThatWeTurnedOn_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -7663,34 +7741,34 @@ class Test_TC_CC_4_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_4(); + (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_5(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4() { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5() + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_5, - OnFailureCallback_5); + return cluster.ReadAttribute(this, OnSuccessCallback_6, + OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(bool onOff) + void OnSuccessResponse_6(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); @@ -7729,24 +7807,28 @@ class Test_TC_CC_4_4 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Turn on light for color control tests\n"); - err = TestTurnOnLightForColorControlTests_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 : Check on/off attribute value is true after on command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Turn on light for color control tests\n"); + err = TestTurnOnLightForColorControlTests_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Move To current hue and saturation command\n"); - err = TestMoveToCurrentHueAndSaturationCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Turn off light that we turned on\n"); - err = TestTurnOffLightThatWeTurnedOn_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Move To current hue and saturation command\n"); + err = TestMoveToCurrentHueAndSaturationCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Check on/off attribute value is false after off command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Turn off light that we turned on\n"); + err = TestTurnOffLightThatWeTurnedOn_4(); + break; + case 5: + ChipLogProgress(chipTool, " ***** Test Step 5 : Check on/off attribute value is false after off command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5(); break; } @@ -7759,33 +7841,35 @@ class Test_TC_CC_4_4 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 5; + const uint16_t mTestCount = 6; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, bool onOff) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_1(onOff); + (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, bool onOff) + static void OnSuccessCallback_5(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_4(onOff); + (static_cast(context))->OnSuccessResponse_5(onOff); } // // Tests methods // - CHIP_ERROR TestTurnOnLightForColorControlTests_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestTurnOnLightForColorControlTests_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -7793,41 +7877,41 @@ class Test_TC_CC_4_4 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestMoveToCurrentHueAndSaturationCommand_2() + CHIP_ERROR TestMoveToCurrentHueAndSaturationCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToHueAndSaturation::Type; @@ -7840,22 +7924,22 @@ class Test_TC_CC_4_4 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestTurnOffLightThatWeTurnedOn_3() + CHIP_ERROR TestTurnOffLightThatWeTurnedOn_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -7863,34 +7947,34 @@ class Test_TC_CC_4_4 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_3(); + (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_4(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3() { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_4() + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_4, - OnFailureCallback_4); + return cluster.ReadAttribute(this, OnSuccessCallback_5, + OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(bool onOff) + void OnSuccessResponse_5(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); @@ -7929,24 +8013,28 @@ class Test_TC_CC_5_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Turn on light for color control tests\n"); - err = TestTurnOnLightForColorControlTests_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 : Check on/off attribute value is true after on command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Turn on light for color control tests\n"); + err = TestTurnOnLightForColorControlTests_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Move to Color command\n"); - err = TestMoveToColorCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Turn off light that we turned on\n"); - err = TestTurnOffLightThatWeTurnedOn_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Move to Color command\n"); + err = TestMoveToColorCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Check on/off attribute value is false after off command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Turn off light that we turned on\n"); + err = TestTurnOffLightThatWeTurnedOn_4(); + break; + case 5: + ChipLogProgress(chipTool, " ***** Test Step 5 : Check on/off attribute value is false after off command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5(); break; } @@ -7959,33 +8047,35 @@ class Test_TC_CC_5_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 5; + const uint16_t mTestCount = 6; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, bool onOff) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_1(onOff); + (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, bool onOff) + static void OnSuccessCallback_5(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_4(onOff); + (static_cast(context))->OnSuccessResponse_5(onOff); } // // Tests methods // - CHIP_ERROR TestTurnOnLightForColorControlTests_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestTurnOnLightForColorControlTests_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -7993,41 +8083,41 @@ class Test_TC_CC_5_1 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestMoveToColorCommand_2() + CHIP_ERROR TestMoveToColorCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToColor::Type; @@ -8040,22 +8130,22 @@ class Test_TC_CC_5_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestTurnOffLightThatWeTurnedOn_3() + CHIP_ERROR TestTurnOffLightThatWeTurnedOn_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -8063,34 +8153,34 @@ class Test_TC_CC_5_1 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_3(); + (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_4(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3() { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_4() + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_4, - OnFailureCallback_4); + return cluster.ReadAttribute(this, OnSuccessCallback_5, + OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(bool onOff) + void OnSuccessResponse_5(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); @@ -8129,28 +8219,32 @@ class Test_TC_CC_5_2 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Turn on light for color control tests\n"); - err = TestTurnOnLightForColorControlTests_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 : Check on/off attribute value is true after on command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Turn on light for color control tests\n"); + err = TestTurnOnLightForColorControlTests_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Move Color command\n"); - err = TestMoveColorCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Stop Move Step command\n"); - err = TestStopMoveStepCommand_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Move Color command\n"); + err = TestMoveColorCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Turn off light that we turned on\n"); - err = TestTurnOffLightThatWeTurnedOn_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Stop Move Step command\n"); + err = TestStopMoveStepCommand_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Check on/off attribute value is false after off command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Turn off light that we turned on\n"); + err = TestTurnOffLightThatWeTurnedOn_5(); + break; + case 6: + ChipLogProgress(chipTool, " ***** Test Step 6 : Check on/off attribute value is false after off command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6(); break; } @@ -8163,33 +8257,35 @@ class Test_TC_CC_5_2 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 6; + const uint16_t mTestCount = 7; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, bool onOff) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_1(onOff); + (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, bool onOff) + static void OnSuccessCallback_6(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_5(onOff); + (static_cast(context))->OnSuccessResponse_6(onOff); } // // Tests methods // - CHIP_ERROR TestTurnOnLightForColorControlTests_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestTurnOnLightForColorControlTests_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -8197,41 +8293,41 @@ class Test_TC_CC_5_2 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestMoveColorCommand_2() + CHIP_ERROR TestMoveColorCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveColor::Type; @@ -8243,22 +8339,22 @@ class Test_TC_CC_5_2 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestStopMoveStepCommand_3() + CHIP_ERROR TestStopMoveStepCommand_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::StopMoveStep::Type; @@ -8268,22 +8364,22 @@ class Test_TC_CC_5_2 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_3(); + (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_4(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3() { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } - CHIP_ERROR TestTurnOffLightThatWeTurnedOn_4() + CHIP_ERROR TestTurnOffLightThatWeTurnedOn_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -8291,34 +8387,34 @@ class Test_TC_CC_5_2 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_4(); + (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_5(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4() { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5() + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_5, - OnFailureCallback_5); + return cluster.ReadAttribute(this, OnSuccessCallback_6, + OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(bool onOff) + void OnSuccessResponse_6(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); @@ -8357,24 +8453,28 @@ class Test_TC_CC_5_3 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Turn on light for color control tests\n"); - err = TestTurnOnLightForColorControlTests_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 : Check on/off attribute value is true after on command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Turn on light for color control tests\n"); + err = TestTurnOnLightForColorControlTests_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Step Color command\n"); - err = TestStepColorCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Turn off light that we turned on\n"); - err = TestTurnOffLightThatWeTurnedOn_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Step Color command\n"); + err = TestStepColorCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Check on/off attribute value is false after off command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Turn off light that we turned on\n"); + err = TestTurnOffLightThatWeTurnedOn_4(); + break; + case 5: + ChipLogProgress(chipTool, " ***** Test Step 5 : Check on/off attribute value is false after off command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5(); break; } @@ -8387,33 +8487,35 @@ class Test_TC_CC_5_3 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 5; + const uint16_t mTestCount = 6; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, bool onOff) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_1(onOff); + (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, bool onOff) + static void OnSuccessCallback_5(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_4(onOff); + (static_cast(context))->OnSuccessResponse_5(onOff); } // // Tests methods // - CHIP_ERROR TestTurnOnLightForColorControlTests_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestTurnOnLightForColorControlTests_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -8421,41 +8523,41 @@ class Test_TC_CC_5_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestStepColorCommand_2() + CHIP_ERROR TestStepColorCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::StepColor::Type; @@ -8468,22 +8570,22 @@ class Test_TC_CC_5_3 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestTurnOffLightThatWeTurnedOn_3() + CHIP_ERROR TestTurnOffLightThatWeTurnedOn_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -8491,34 +8593,34 @@ class Test_TC_CC_5_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_3(); + (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_4(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3() { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_4() + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_4, - OnFailureCallback_4); + return cluster.ReadAttribute(this, OnSuccessCallback_5, + OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(bool onOff) + void OnSuccessResponse_5(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); @@ -8557,24 +8659,28 @@ class Test_TC_CC_6_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Turn on light for color control tests\n"); - err = TestTurnOnLightForColorControlTests_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 : Check on/off attribute value is true after on command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Turn on light for color control tests\n"); + err = TestTurnOnLightForColorControlTests_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Move To Color Temperature command\n"); - err = TestMoveToColorTemperatureCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Turn off light that we turned on\n"); - err = TestTurnOffLightThatWeTurnedOn_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Move To Color Temperature command\n"); + err = TestMoveToColorTemperatureCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Check on/off attribute value is false after off command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Turn off light that we turned on\n"); + err = TestTurnOffLightThatWeTurnedOn_4(); + break; + case 5: + ChipLogProgress(chipTool, " ***** Test Step 5 : Check on/off attribute value is false after off command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5(); break; } @@ -8587,33 +8693,35 @@ class Test_TC_CC_6_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 5; + const uint16_t mTestCount = 6; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, bool onOff) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_1(onOff); + (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, bool onOff) + static void OnSuccessCallback_5(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_4(onOff); + (static_cast(context))->OnSuccessResponse_5(onOff); } // // Tests methods // - CHIP_ERROR TestTurnOnLightForColorControlTests_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestTurnOnLightForColorControlTests_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -8621,41 +8729,41 @@ class Test_TC_CC_6_1 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestMoveToColorTemperatureCommand_2() + CHIP_ERROR TestMoveToColorTemperatureCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToColorTemperature::Type; @@ -8667,22 +8775,22 @@ class Test_TC_CC_6_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestTurnOffLightThatWeTurnedOn_3() + CHIP_ERROR TestTurnOffLightThatWeTurnedOn_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -8690,34 +8798,34 @@ class Test_TC_CC_6_1 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_3(); + (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_4(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3() { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_4() + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_4, - OnFailureCallback_4); + return cluster.ReadAttribute(this, OnSuccessCallback_5, + OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(bool onOff) + void OnSuccessResponse_5(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); @@ -8756,32 +8864,36 @@ class Test_TC_CC_6_2 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Turn on light for color control tests\n"); - err = TestTurnOnLightForColorControlTests_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 : Check on/off attribute value is true after on command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Turn on light for color control tests\n"); + err = TestTurnOnLightForColorControlTests_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Move up color temperature command\n"); - err = TestMoveUpColorTemperatureCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Stop Color Temperature command\n"); - err = TestStopColorTemperatureCommand_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Move up color temperature command\n"); + err = TestMoveUpColorTemperatureCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Move down color temperature command\n"); - err = TestMoveDownColorTemperatureCommand_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Stop Color Temperature command\n"); + err = TestStopColorTemperatureCommand_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Turn off light that we turned on\n"); - err = TestTurnOffLightThatWeTurnedOn_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Move down color temperature command\n"); + err = TestMoveDownColorTemperatureCommand_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Check on/off attribute value is false after off command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Turn off light that we turned on\n"); + err = TestTurnOffLightThatWeTurnedOn_6(); + break; + case 7: + ChipLogProgress(chipTool, " ***** Test Step 7 : Check on/off attribute value is false after off command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_7(); break; } @@ -8794,33 +8906,35 @@ class Test_TC_CC_6_2 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 7; + const uint16_t mTestCount = 8; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, bool onOff) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_1(onOff); + (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, bool onOff) + static void OnSuccessCallback_7(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_6(onOff); + (static_cast(context))->OnSuccessResponse_7(onOff); } // // Tests methods // - CHIP_ERROR TestTurnOnLightForColorControlTests_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestTurnOnLightForColorControlTests_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -8828,41 +8942,41 @@ class Test_TC_CC_6_2 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestMoveUpColorTemperatureCommand_2() + CHIP_ERROR TestMoveUpColorTemperatureCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type; @@ -8876,22 +8990,22 @@ class Test_TC_CC_6_2 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestStopColorTemperatureCommand_3() + CHIP_ERROR TestStopColorTemperatureCommand_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type; @@ -8905,22 +9019,22 @@ class Test_TC_CC_6_2 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_3(); + (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_4(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3() { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } - CHIP_ERROR TestMoveDownColorTemperatureCommand_4() + CHIP_ERROR TestMoveDownColorTemperatureCommand_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type; @@ -8934,22 +9048,22 @@ class Test_TC_CC_6_2 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_4(); + (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_5(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4() { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } - CHIP_ERROR TestTurnOffLightThatWeTurnedOn_5() + CHIP_ERROR TestTurnOffLightThatWeTurnedOn_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -8957,34 +9071,34 @@ class Test_TC_CC_6_2 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_5(); + (static_cast(context))->OnSuccessResponse_6(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_6(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5() { NextTest(); } + void OnSuccessResponse_6() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6() + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_6, - OnFailureCallback_6); + return cluster.ReadAttribute(this, OnSuccessCallback_7, + OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(bool onOff) + void OnSuccessResponse_7(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); @@ -9023,28 +9137,32 @@ class Test_TC_CC_6_3 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Turn on light for color control tests\n"); - err = TestTurnOnLightForColorControlTests_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 : Check on/off attribute value is true after on command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Turn on light for color control tests\n"); + err = TestTurnOnLightForColorControlTests_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Step up color temperature command\n"); - err = TestStepUpColorTemperatureCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Step down color temperature command\n"); - err = TestStepDownColorTemperatureCommand_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Step up color temperature command\n"); + err = TestStepUpColorTemperatureCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Turn off light that we turned on\n"); - err = TestTurnOffLightThatWeTurnedOn_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Step down color temperature command\n"); + err = TestStepDownColorTemperatureCommand_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Check on/off attribute value is false after off command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Turn off light that we turned on\n"); + err = TestTurnOffLightThatWeTurnedOn_5(); + break; + case 6: + ChipLogProgress(chipTool, " ***** Test Step 6 : Check on/off attribute value is false after off command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6(); break; } @@ -9057,33 +9175,35 @@ class Test_TC_CC_6_3 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 6; + const uint16_t mTestCount = 7; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, bool onOff) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_1(onOff); + (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, bool onOff) + static void OnSuccessCallback_6(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_5(onOff); + (static_cast(context))->OnSuccessResponse_6(onOff); } // // Tests methods // - CHIP_ERROR TestTurnOnLightForColorControlTests_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestTurnOnLightForColorControlTests_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -9091,41 +9211,41 @@ class Test_TC_CC_6_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestStepUpColorTemperatureCommand_2() + CHIP_ERROR TestStepUpColorTemperatureCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::StepColorTemperature::Type; @@ -9140,22 +9260,22 @@ class Test_TC_CC_6_3 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestStepDownColorTemperatureCommand_3() + CHIP_ERROR TestStepDownColorTemperatureCommand_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::StepColorTemperature::Type; @@ -9170,22 +9290,22 @@ class Test_TC_CC_6_3 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_3(); + (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_4(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3() { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } - CHIP_ERROR TestTurnOffLightThatWeTurnedOn_4() + CHIP_ERROR TestTurnOffLightThatWeTurnedOn_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -9193,34 +9313,34 @@ class Test_TC_CC_6_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_4(); + (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_5(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4() { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5() + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_5, - OnFailureCallback_5); + return cluster.ReadAttribute(this, OnSuccessCallback_6, + OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(bool onOff) + void OnSuccessResponse_6(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); @@ -9259,29 +9379,33 @@ class Test_TC_CC_7_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Turn on light for color control tests\n"); - err = TestTurnOnLightForColorControlTests_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 : Check on/off attribute value is true after on command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Turn on light for color control tests\n"); + err = TestTurnOnLightForColorControlTests_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Enhanced Move To Hue command\n"); - err = TestEnhancedMoveToHueCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress( - chipTool, " ***** Test Step 3 : Check Remaining time attribute value matched the value sent by the last command\n"); - err = TestCheckRemainingTimeAttributeValueMatchedTheValueSentByTheLastCommand_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Enhanced Move To Hue command\n"); + err = TestEnhancedMoveToHueCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Turn off light that we turned on\n"); - err = TestTurnOffLightThatWeTurnedOn_4(); + ChipLogProgress( + chipTool, " ***** Test Step 4 : Check Remaining time attribute value matched the value sent by the last command\n"); + err = TestCheckRemainingTimeAttributeValueMatchedTheValueSentByTheLastCommand_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Check on/off attribute value is false after off command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Turn off light that we turned on\n"); + err = TestTurnOffLightThatWeTurnedOn_5(); + break; + case 6: + ChipLogProgress(chipTool, " ***** Test Step 6 : Check on/off attribute value is false after off command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6(); break; } @@ -9294,43 +9418,45 @@ class Test_TC_CC_7_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 6; + const uint16_t mTestCount = 7; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, bool onOff) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_1(onOff); + (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, uint16_t remainingTime) + static void OnSuccessCallback_4(void * context, uint16_t remainingTime) { - (static_cast(context))->OnSuccessResponse_3(remainingTime); + (static_cast(context))->OnSuccessResponse_4(remainingTime); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, bool onOff) + static void OnSuccessCallback_6(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_5(onOff); + (static_cast(context))->OnSuccessResponse_6(onOff); } // // Tests methods // - CHIP_ERROR TestTurnOnLightForColorControlTests_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestTurnOnLightForColorControlTests_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -9338,41 +9464,41 @@ class Test_TC_CC_7_1 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestEnhancedMoveToHueCommand_2() + CHIP_ERROR TestEnhancedMoveToHueCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type; @@ -9385,41 +9511,41 @@ class Test_TC_CC_7_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestCheckRemainingTimeAttributeValueMatchedTheValueSentByTheLastCommand_3() + CHIP_ERROR TestCheckRemainingTimeAttributeValueMatchedTheValueSentByTheLastCommand_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_3, OnFailureCallback_3); + this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint16_t remainingTime) + void OnSuccessResponse_4(uint16_t remainingTime) { VerifyOrReturn(CheckValue("remainingTime", remainingTime, 1U)); NextTest(); } - CHIP_ERROR TestTurnOffLightThatWeTurnedOn_4() + CHIP_ERROR TestTurnOffLightThatWeTurnedOn_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -9427,34 +9553,34 @@ class Test_TC_CC_7_1 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_4(); + (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_5(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4() { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5() + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_5, - OnFailureCallback_5); + return cluster.ReadAttribute(this, OnSuccessCallback_6, + OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(bool onOff) + void OnSuccessResponse_6(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); @@ -9493,36 +9619,40 @@ class Test_TC_CC_7_2 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Turn on light for color control tests\n"); - err = TestTurnOnLightForColorControlTests_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 : Check on/off attribute value is true after on command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Turn on light for color control tests\n"); + err = TestTurnOnLightForColorControlTests_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Enhanced Move Hue Down command \n"); - err = TestEnhancedMoveHueDownCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Enhanced Move Hue Stop command\n"); - err = TestEnhancedMoveHueStopCommand_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Enhanced Move Hue Down command \n"); + err = TestEnhancedMoveHueDownCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Enhanced Move Hue Up command\n"); - err = TestEnhancedMoveHueUpCommand_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Enhanced Move Hue Stop command\n"); + err = TestEnhancedMoveHueStopCommand_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Enhanced Move Hue Stop command\n"); - err = TestEnhancedMoveHueStopCommand_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Enhanced Move Hue Up command\n"); + err = TestEnhancedMoveHueUpCommand_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Turn off light that we turned on\n"); - err = TestTurnOffLightThatWeTurnedOn_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Enhanced Move Hue Stop command\n"); + err = TestEnhancedMoveHueStopCommand_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Check on/off attribute value is false after off command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Turn off light that we turned on\n"); + err = TestTurnOffLightThatWeTurnedOn_7(); + break; + case 8: + ChipLogProgress(chipTool, " ***** Test Step 8 : Check on/off attribute value is false after off command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_8(); break; } @@ -9535,33 +9665,35 @@ class Test_TC_CC_7_2 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 8; + const uint16_t mTestCount = 9; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, bool onOff) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_1(onOff); + (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, bool onOff) + static void OnSuccessCallback_8(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_7(onOff); + (static_cast(context))->OnSuccessResponse_8(onOff); } // // Tests methods // - CHIP_ERROR TestTurnOnLightForColorControlTests_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestTurnOnLightForColorControlTests_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -9569,41 +9701,41 @@ class Test_TC_CC_7_2 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestEnhancedMoveHueDownCommand_2() + CHIP_ERROR TestEnhancedMoveHueDownCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type; @@ -9614,33 +9746,6 @@ class Test_TC_CC_7_2 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); - }; - - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); - }; - - ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); - return CHIP_NO_ERROR; - } - - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - - void OnSuccessResponse_2() { NextTest(); } - - CHIP_ERROR TestEnhancedMoveHueStopCommand_3() - { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; - using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type; - - RequestType request; - request.moveMode = static_cast(0); - request.rate = 0U; - request.optionsMask = 0; - request.optionsOverride = 0; - auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(); }; @@ -9657,14 +9762,14 @@ class Test_TC_CC_7_2 : public TestCommand void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestEnhancedMoveHueUpCommand_4() + CHIP_ERROR TestEnhancedMoveHueStopCommand_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type; RequestType request; - request.moveMode = static_cast(1); - request.rate = 50U; + request.moveMode = static_cast(0); + request.rate = 0U; request.optionsMask = 0; request.optionsOverride = 0; @@ -9684,14 +9789,14 @@ class Test_TC_CC_7_2 : public TestCommand void OnSuccessResponse_4() { NextTest(); } - CHIP_ERROR TestEnhancedMoveHueStopCommand_5() + CHIP_ERROR TestEnhancedMoveHueUpCommand_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type; RequestType request; - request.moveMode = static_cast(0); - request.rate = 0U; + request.moveMode = static_cast(1); + request.rate = 50U; request.optionsMask = 0; request.optionsOverride = 0; @@ -9711,12 +9816,16 @@ class Test_TC_CC_7_2 : public TestCommand void OnSuccessResponse_5() { NextTest(); } - CHIP_ERROR TestTurnOffLightThatWeTurnedOn_6() + CHIP_ERROR TestEnhancedMoveHueStopCommand_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; - using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; + using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type; RequestType request; + request.moveMode = static_cast(0); + request.rate = 0U; + request.optionsMask = 0; + request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_6(); @@ -9734,19 +9843,42 @@ class Test_TC_CC_7_2 : public TestCommand void OnSuccessResponse_6() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_7() + CHIP_ERROR TestTurnOffLightThatWeTurnedOn_7() + { + const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; + + RequestType request; + + auto success = [](void * context, const typename RequestType::ResponseType & data) { + (static_cast(context))->OnSuccessResponse_7(); + }; + + auto failure = [](void * context, EmberAfStatus status) { + (static_cast(context))->OnFailureResponse_7(status); + }; + + ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + + void OnSuccessResponse_7() { NextTest(); } + + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_7, - OnFailureCallback_7); + return cluster.ReadAttribute(this, OnSuccessCallback_8, + OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(bool onOff) + void OnSuccessResponse_8(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); @@ -9785,28 +9917,32 @@ class Test_TC_CC_7_3 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Turn on light for color control tests\n"); - err = TestTurnOnLightForColorControlTests_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 : Check on/off attribute value is true after on command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Turn on light for color control tests\n"); + err = TestTurnOnLightForColorControlTests_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Enhanced Step Hue Up command\n"); - err = TestEnhancedStepHueUpCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Enhanced Step Hue Down command\n"); - err = TestEnhancedStepHueDownCommand_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Enhanced Step Hue Up command\n"); + err = TestEnhancedStepHueUpCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Turn off light that we turned on\n"); - err = TestTurnOffLightThatWeTurnedOn_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Enhanced Step Hue Down command\n"); + err = TestEnhancedStepHueDownCommand_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Check on/off attribute value is false after off command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Turn off light that we turned on\n"); + err = TestTurnOffLightThatWeTurnedOn_5(); + break; + case 6: + ChipLogProgress(chipTool, " ***** Test Step 6 : Check on/off attribute value is false after off command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6(); break; } @@ -9819,33 +9955,35 @@ class Test_TC_CC_7_3 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 6; + const uint16_t mTestCount = 7; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, bool onOff) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_1(onOff); + (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, bool onOff) + static void OnSuccessCallback_6(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_5(onOff); + (static_cast(context))->OnSuccessResponse_6(onOff); } // // Tests methods // - CHIP_ERROR TestTurnOnLightForColorControlTests_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestTurnOnLightForColorControlTests_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -9853,41 +9991,41 @@ class Test_TC_CC_7_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestEnhancedStepHueUpCommand_2() + CHIP_ERROR TestEnhancedStepHueUpCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedStepHue::Type; @@ -9900,22 +10038,22 @@ class Test_TC_CC_7_3 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestEnhancedStepHueDownCommand_3() + CHIP_ERROR TestEnhancedStepHueDownCommand_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedStepHue::Type; @@ -9928,22 +10066,22 @@ class Test_TC_CC_7_3 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_3(); + (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_4(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3() { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } - CHIP_ERROR TestTurnOffLightThatWeTurnedOn_4() + CHIP_ERROR TestTurnOffLightThatWeTurnedOn_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -9951,34 +10089,34 @@ class Test_TC_CC_7_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_4(); + (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_5(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4() { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5() + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_5, - OnFailureCallback_5); + return cluster.ReadAttribute(this, OnSuccessCallback_6, + OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(bool onOff) + void OnSuccessResponse_6(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); @@ -10017,24 +10155,28 @@ class Test_TC_CC_7_4 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Turn on light for color control tests\n"); - err = TestTurnOnLightForColorControlTests_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 : Check on/off attribute value is true after on command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Turn on light for color control tests\n"); + err = TestTurnOnLightForColorControlTests_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Enhanced move to hue and saturation command\n"); - err = TestEnhancedMoveToHueAndSaturationCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Turn off light that we turned on\n"); - err = TestTurnOffLightThatWeTurnedOn_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Enhanced move to hue and saturation command\n"); + err = TestEnhancedMoveToHueAndSaturationCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Check on/off attribute value is false after off command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Turn off light that we turned on\n"); + err = TestTurnOffLightThatWeTurnedOn_4(); + break; + case 5: + ChipLogProgress(chipTool, " ***** Test Step 5 : Check on/off attribute value is false after off command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5(); break; } @@ -10047,33 +10189,35 @@ class Test_TC_CC_7_4 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 5; + const uint16_t mTestCount = 6; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, bool onOff) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_1(onOff); + (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, bool onOff) + static void OnSuccessCallback_5(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_4(onOff); + (static_cast(context))->OnSuccessResponse_5(onOff); } // // Tests methods // - CHIP_ERROR TestTurnOnLightForColorControlTests_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestTurnOnLightForColorControlTests_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -10081,41 +10225,41 @@ class Test_TC_CC_7_4 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestEnhancedMoveToHueAndSaturationCommand_2() + CHIP_ERROR TestEnhancedMoveToHueAndSaturationCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHueAndSaturation::Type; @@ -10128,22 +10272,22 @@ class Test_TC_CC_7_4 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestTurnOffLightThatWeTurnedOn_3() + CHIP_ERROR TestTurnOffLightThatWeTurnedOn_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -10151,34 +10295,34 @@ class Test_TC_CC_7_4 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_3(); + (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_4(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3() { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_4() + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_4, - OnFailureCallback_4); + return cluster.ReadAttribute(this, OnSuccessCallback_5, + OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(bool onOff) + void OnSuccessResponse_5(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); @@ -10217,68 +10361,72 @@ class Test_TC_CC_8_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Turn on light for color control tests\n"); - err = TestTurnOnLightForColorControlTests_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 : Check on/off attribute value is true after on command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Turn on light for color control tests\n"); + err = TestTurnOnLightForColorControlTests_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Color Loop Set Command - Set all Attributs\n"); - err = TestColorLoopSetCommandSetAllAttributs_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Check ColorLoopDirection Value\n"); - err = TestCheckColorLoopDirectionValue_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Color Loop Set Command - Set all Attributs\n"); + err = TestColorLoopSetCommandSetAllAttributs_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Check ColorLoopTime Value\n"); - err = TestCheckColorLoopTimeValue_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Check ColorLoopDirection Value\n"); + err = TestCheckColorLoopDirectionValue_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Check ColorLoopStartEnhancedHue Value\n"); - err = TestCheckColorLoopStartEnhancedHueValue_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Check ColorLoopTime Value\n"); + err = TestCheckColorLoopTimeValue_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Check ColorLoopActive Value\n"); - err = TestCheckColorLoopActiveValue_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Check ColorLoopStartEnhancedHue Value\n"); + err = TestCheckColorLoopStartEnhancedHueValue_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Color Loop Set Command - Start Color Loop\n"); - err = TestColorLoopSetCommandStartColorLoop_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Check ColorLoopActive Value\n"); + err = TestCheckColorLoopActiveValue_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Check ColorLoopActive Value\n"); - err = TestCheckColorLoopActiveValue_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : Color Loop Set Command - Start Color Loop\n"); + err = TestColorLoopSetCommandStartColorLoop_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Color Loop Set Command - Set direction and time while running\n"); - err = TestColorLoopSetCommandSetDirectionAndTimeWhileRunning_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : Check ColorLoopActive Value\n"); + err = TestCheckColorLoopActiveValue_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Check ColorLoopDirection Value\n"); - err = TestCheckColorLoopDirectionValue_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : Color Loop Set Command - Set direction and time while running\n"); + err = TestColorLoopSetCommandSetDirectionAndTimeWhileRunning_10(); break; case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : Check ColorLoopTime Value\n"); - err = TestCheckColorLoopTimeValue_11(); + ChipLogProgress(chipTool, " ***** Test Step 11 : Check ColorLoopDirection Value\n"); + err = TestCheckColorLoopDirectionValue_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : Color Loop Set Command - Set direction while running\n"); - err = TestColorLoopSetCommandSetDirectionWhileRunning_12(); + ChipLogProgress(chipTool, " ***** Test Step 12 : Check ColorLoopTime Value\n"); + err = TestCheckColorLoopTimeValue_12(); break; case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : Check ColorLoopDirection Value\n"); - err = TestCheckColorLoopDirectionValue_13(); + ChipLogProgress(chipTool, " ***** Test Step 13 : Color Loop Set Command - Set direction while running\n"); + err = TestColorLoopSetCommandSetDirectionWhileRunning_13(); break; case 14: - ChipLogProgress(chipTool, " ***** Test Step 14 : Turn off light that we turned on\n"); - err = TestTurnOffLightThatWeTurnedOn_14(); + ChipLogProgress(chipTool, " ***** Test Step 14 : Check ColorLoopDirection Value\n"); + err = TestCheckColorLoopDirectionValue_14(); break; case 15: - ChipLogProgress(chipTool, " ***** Test Step 15 : Check on/off attribute value is false after off command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_15(); + ChipLogProgress(chipTool, " ***** Test Step 15 : Turn off light that we turned on\n"); + err = TestTurnOffLightThatWeTurnedOn_15(); + break; + case 16: + ChipLogProgress(chipTool, " ***** Test Step 16 : Check on/off attribute value is false after off command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_16(); break; } @@ -10291,26 +10439,16 @@ class Test_TC_CC_8_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 16; - - static void OnFailureCallback_1(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); - } + const uint16_t mTestCount = 17; - static void OnSuccessCallback_1(void * context, bool onOff) - { - (static_cast(context))->OnSuccessResponse_1(onOff); - } - - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, uint8_t colorLoopDirection) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_3(colorLoopDirection); + (static_cast(context))->OnSuccessResponse_2(onOff); } static void OnFailureCallback_4(void * context, EmberAfStatus status) @@ -10318,9 +10456,9 @@ class Test_TC_CC_8_1 : public TestCommand (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, uint16_t colorLoopTime) + static void OnSuccessCallback_4(void * context, uint8_t colorLoopDirection) { - (static_cast(context))->OnSuccessResponse_4(colorLoopTime); + (static_cast(context))->OnSuccessResponse_4(colorLoopDirection); } static void OnFailureCallback_5(void * context, EmberAfStatus status) @@ -10328,9 +10466,9 @@ class Test_TC_CC_8_1 : public TestCommand (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, uint16_t colorLoopStartEnhancedHue) + static void OnSuccessCallback_5(void * context, uint16_t colorLoopTime) { - (static_cast(context))->OnSuccessResponse_5(colorLoopStartEnhancedHue); + (static_cast(context))->OnSuccessResponse_5(colorLoopTime); } static void OnFailureCallback_6(void * context, EmberAfStatus status) @@ -10338,29 +10476,29 @@ class Test_TC_CC_8_1 : public TestCommand (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, uint8_t colorLoopActive) + static void OnSuccessCallback_6(void * context, uint16_t colorLoopStartEnhancedHue) { - (static_cast(context))->OnSuccessResponse_6(colorLoopActive); + (static_cast(context))->OnSuccessResponse_6(colorLoopStartEnhancedHue); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_8(void * context, uint8_t colorLoopActive) + static void OnSuccessCallback_7(void * context, uint8_t colorLoopActive) { - (static_cast(context))->OnSuccessResponse_8(colorLoopActive); + (static_cast(context))->OnSuccessResponse_7(colorLoopActive); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); } - static void OnSuccessCallback_10(void * context, uint8_t colorLoopDirection) + static void OnSuccessCallback_9(void * context, uint8_t colorLoopActive) { - (static_cast(context))->OnSuccessResponse_10(colorLoopDirection); + (static_cast(context))->OnSuccessResponse_9(colorLoopActive); } static void OnFailureCallback_11(void * context, EmberAfStatus status) @@ -10368,36 +10506,48 @@ class Test_TC_CC_8_1 : public TestCommand (static_cast(context))->OnFailureResponse_11(chip::to_underlying(status)); } - static void OnSuccessCallback_11(void * context, uint16_t colorLoopTime) + static void OnSuccessCallback_11(void * context, uint8_t colorLoopDirection) { - (static_cast(context))->OnSuccessResponse_11(colorLoopTime); + (static_cast(context))->OnSuccessResponse_11(colorLoopDirection); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_13(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_12(chip::to_underlying(status)); } - static void OnSuccessCallback_13(void * context, uint8_t colorLoopDirection) + static void OnSuccessCallback_12(void * context, uint16_t colorLoopTime) { - (static_cast(context))->OnSuccessResponse_13(colorLoopDirection); + (static_cast(context))->OnSuccessResponse_12(colorLoopTime); } - static void OnFailureCallback_15(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_15(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_14(chip::to_underlying(status)); } - static void OnSuccessCallback_15(void * context, bool onOff) + static void OnSuccessCallback_14(void * context, uint8_t colorLoopDirection) { - (static_cast(context))->OnSuccessResponse_15(onOff); + (static_cast(context))->OnSuccessResponse_14(colorLoopDirection); + } + + static void OnFailureCallback_16(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_16(chip::to_underlying(status)); + } + + static void OnSuccessCallback_16(void * context, bool onOff) + { + (static_cast(context))->OnSuccessResponse_16(onOff); } // // Tests methods // - CHIP_ERROR TestTurnOnLightForColorControlTests_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestTurnOnLightForColorControlTests_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -10405,41 +10555,41 @@ class Test_TC_CC_8_1 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestColorLoopSetCommandSetAllAttributs_2() + CHIP_ERROR TestColorLoopSetCommandSetAllAttributs_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -10454,98 +10604,98 @@ class Test_TC_CC_8_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestCheckColorLoopDirectionValue_3() + CHIP_ERROR TestCheckColorLoopDirectionValue_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_3, OnFailureCallback_3); + this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint8_t colorLoopDirection) + void OnSuccessResponse_4(uint8_t colorLoopDirection) { VerifyOrReturn(CheckValue("colorLoopDirection", colorLoopDirection, 1)); NextTest(); } - CHIP_ERROR TestCheckColorLoopTimeValue_4() + CHIP_ERROR TestCheckColorLoopTimeValue_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_4, OnFailureCallback_4); + this, OnSuccessCallback_5, OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(uint16_t colorLoopTime) + void OnSuccessResponse_5(uint16_t colorLoopTime) { VerifyOrReturn(CheckValue("colorLoopTime", colorLoopTime, 100U)); NextTest(); } - CHIP_ERROR TestCheckColorLoopStartEnhancedHueValue_5() + CHIP_ERROR TestCheckColorLoopStartEnhancedHueValue_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_5, OnFailureCallback_5); + this, OnSuccessCallback_6, OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(uint16_t colorLoopStartEnhancedHue) + void OnSuccessResponse_6(uint16_t colorLoopStartEnhancedHue) { VerifyOrReturn(CheckValue("colorLoopStartEnhancedHue", colorLoopStartEnhancedHue, 500U)); NextTest(); } - CHIP_ERROR TestCheckColorLoopActiveValue_6() + CHIP_ERROR TestCheckColorLoopActiveValue_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_6, OnFailureCallback_6); + this, OnSuccessCallback_7, OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(uint8_t colorLoopActive) + void OnSuccessResponse_7(uint8_t colorLoopActive) { VerifyOrReturn(CheckValue("colorLoopActive", colorLoopActive, 0)); NextTest(); } - CHIP_ERROR TestColorLoopSetCommandStartColorLoop_7() + CHIP_ERROR TestColorLoopSetCommandStartColorLoop_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -10560,41 +10710,41 @@ class Test_TC_CC_8_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_7(); + (static_cast(context))->OnSuccessResponse_8(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_8(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7() { NextTest(); } + void OnSuccessResponse_8() { NextTest(); } - CHIP_ERROR TestCheckColorLoopActiveValue_8() + CHIP_ERROR TestCheckColorLoopActiveValue_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_8, OnFailureCallback_8); + this, OnSuccessCallback_9, OnFailureCallback_9); } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8(uint8_t colorLoopActive) + void OnSuccessResponse_9(uint8_t colorLoopActive) { VerifyOrReturn(CheckValue("colorLoopActive", colorLoopActive, 1)); NextTest(); } - CHIP_ERROR TestColorLoopSetCommandSetDirectionAndTimeWhileRunning_9() + CHIP_ERROR TestColorLoopSetCommandSetDirectionAndTimeWhileRunning_10() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -10609,60 +10759,60 @@ class Test_TC_CC_8_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_9(); + (static_cast(context))->OnSuccessResponse_10(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_10(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9() { NextTest(); } + void OnSuccessResponse_10() { NextTest(); } - CHIP_ERROR TestCheckColorLoopDirectionValue_10() + CHIP_ERROR TestCheckColorLoopDirectionValue_11() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_10, OnFailureCallback_10); + this, OnSuccessCallback_11, OnFailureCallback_11); } - void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_10(uint8_t colorLoopDirection) + void OnSuccessResponse_11(uint8_t colorLoopDirection) { VerifyOrReturn(CheckValue("colorLoopDirection", colorLoopDirection, 0)); NextTest(); } - CHIP_ERROR TestCheckColorLoopTimeValue_11() + CHIP_ERROR TestCheckColorLoopTimeValue_12() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_11, OnFailureCallback_11); + this, OnSuccessCallback_12, OnFailureCallback_12); } - void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_11(uint16_t colorLoopTime) + void OnSuccessResponse_12(uint16_t colorLoopTime) { VerifyOrReturn(CheckValue("colorLoopTime", colorLoopTime, 3500U)); NextTest(); } - CHIP_ERROR TestColorLoopSetCommandSetDirectionWhileRunning_12() + CHIP_ERROR TestColorLoopSetCommandSetDirectionWhileRunning_13() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -10677,41 +10827,41 @@ class Test_TC_CC_8_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_12(); + (static_cast(context))->OnSuccessResponse_13(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_13(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_12() { NextTest(); } + void OnSuccessResponse_13() { NextTest(); } - CHIP_ERROR TestCheckColorLoopDirectionValue_13() + CHIP_ERROR TestCheckColorLoopDirectionValue_14() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_13, OnFailureCallback_13); + this, OnSuccessCallback_14, OnFailureCallback_14); } - void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_13(uint8_t colorLoopDirection) + void OnSuccessResponse_14(uint8_t colorLoopDirection) { VerifyOrReturn(CheckValue("colorLoopDirection", colorLoopDirection, 1)); NextTest(); } - CHIP_ERROR TestTurnOffLightThatWeTurnedOn_14() + CHIP_ERROR TestTurnOffLightThatWeTurnedOn_15() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -10719,34 +10869,34 @@ class Test_TC_CC_8_1 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_14(); + (static_cast(context))->OnSuccessResponse_15(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_15(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_15(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_14() { NextTest(); } + void OnSuccessResponse_15() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_15() + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_16() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_15, - OnFailureCallback_15); + return cluster.ReadAttribute(this, OnSuccessCallback_16, + OnFailureCallback_16); } - void OnFailureResponse_15(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_16(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_15(bool onOff) + void OnSuccessResponse_16(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); @@ -10785,148 +10935,152 @@ class Test_TC_CC_9_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Precondition : Turn on light for color control tests\n"); - err = TestPreconditionTurnOnLightForColorControlTests_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 : Check on/off attribute value is true after on command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Precondition : Turn on light for color control tests\n"); + err = TestPreconditionTurnOnLightForColorControlTests_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Sends ColorLoopSet Command - Set all Attributes\n"); - err = TestSendsColorLoopSetCommandSetAllAttributes_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is true after on command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Read ColorLoopActive attribute from DUT\n"); - err = TestReadColorLoopActiveAttributeFromDut_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Sends ColorLoopSet Command - Set all Attributes\n"); + err = TestSendsColorLoopSetCommandSetAllAttributes_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Sends ColorLoopSet Command - Set all Attributes\n"); - err = TestSendsColorLoopSetCommandSetAllAttributes_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Read ColorLoopActive attribute from DUT\n"); + err = TestReadColorLoopActiveAttributeFromDut_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Read ColorLoopDirection attribute from DUT\n"); - err = TestReadColorLoopDirectionAttributeFromDut_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Sends ColorLoopSet Command - Set all Attributes\n"); + err = TestSendsColorLoopSetCommandSetAllAttributes_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Sends ColorLoopSet Command - Set all Attributes\n"); - err = TestSendsColorLoopSetCommandSetAllAttributes_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Read ColorLoopDirection attribute from DUT\n"); + err = TestReadColorLoopDirectionAttributeFromDut_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Read ColorLoopTime attribute from DUT\n"); - err = TestReadColorLoopTimeAttributeFromDut_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Sends ColorLoopSet Command - Set all Attributes\n"); + err = TestSendsColorLoopSetCommandSetAllAttributes_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Sends ColorLoopSet Command - Set all Attributes\n"); - err = TestSendsColorLoopSetCommandSetAllAttributes_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : Read ColorLoopTime attribute from DUT\n"); + err = TestReadColorLoopTimeAttributeFromDut_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Read ColorLoopStartEnhancedHue attribute from DUT\n"); - err = TestReadColorLoopStartEnhancedHueAttributeFromDut_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : Sends ColorLoopSet Command - Set all Attributes\n"); + err = TestSendsColorLoopSetCommandSetAllAttributes_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Sends ColorLoopSet Command - Set all Attributes\n"); - err = TestSendsColorLoopSetCommandSetAllAttributes_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : Read ColorLoopStartEnhancedHue attribute from DUT\n"); + err = TestReadColorLoopStartEnhancedHueAttributeFromDut_10(); break; case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : Read ColorLoopActive attribute from DUT\n"); - err = TestReadColorLoopActiveAttributeFromDut_11(); + ChipLogProgress(chipTool, " ***** Test Step 11 : Sends ColorLoopSet Command - Set all Attributes\n"); + err = TestSendsColorLoopSetCommandSetAllAttributes_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : Sends ColorLoopSet Command - Set all Attributes\n"); - err = TestSendsColorLoopSetCommandSetAllAttributes_12(); + ChipLogProgress(chipTool, " ***** Test Step 12 : Read ColorLoopActive attribute from DUT\n"); + err = TestReadColorLoopActiveAttributeFromDut_12(); break; case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : Read ColorLoopActive attribute from DUT\n"); - err = TestReadColorLoopActiveAttributeFromDut_13(); + ChipLogProgress(chipTool, " ***** Test Step 13 : Sends ColorLoopSet Command - Set all Attributes\n"); + err = TestSendsColorLoopSetCommandSetAllAttributes_13(); break; case 14: - ChipLogProgress(chipTool, " ***** Test Step 14 : Sends ColorLoopSet Command - Set all Attributes\n"); - err = TestSendsColorLoopSetCommandSetAllAttributes_14(); + ChipLogProgress(chipTool, " ***** Test Step 14 : Read ColorLoopActive attribute from DUT\n"); + err = TestReadColorLoopActiveAttributeFromDut_14(); break; case 15: - ChipLogProgress(chipTool, " ***** Test Step 15 : Read ColorLoopDirection attribute from DUT\n"); - err = TestReadColorLoopDirectionAttributeFromDut_15(); + ChipLogProgress(chipTool, " ***** Test Step 15 : Sends ColorLoopSet Command - Set all Attributes\n"); + err = TestSendsColorLoopSetCommandSetAllAttributes_15(); break; case 16: - ChipLogProgress(chipTool, " ***** Test Step 16 : Sends ColorLoopSet Command - Set all Attributes\n"); - err = TestSendsColorLoopSetCommandSetAllAttributes_16(); + ChipLogProgress(chipTool, " ***** Test Step 16 : Read ColorLoopDirection attribute from DUT\n"); + err = TestReadColorLoopDirectionAttributeFromDut_16(); break; case 17: - ChipLogProgress(chipTool, " ***** Test Step 17 : Read ColorLoopActive attribute from DUT\n"); - err = TestReadColorLoopActiveAttributeFromDut_17(); + ChipLogProgress(chipTool, " ***** Test Step 17 : Sends ColorLoopSet Command - Set all Attributes\n"); + err = TestSendsColorLoopSetCommandSetAllAttributes_17(); break; case 18: - ChipLogProgress(chipTool, " ***** Test Step 18 : Sends ColorLoopSet Command - Set all Attributes\n"); - err = TestSendsColorLoopSetCommandSetAllAttributes_18(); + ChipLogProgress(chipTool, " ***** Test Step 18 : Read ColorLoopActive attribute from DUT\n"); + err = TestReadColorLoopActiveAttributeFromDut_18(); break; case 19: - ChipLogProgress(chipTool, " ***** Test Step 19 : Read ColorLoopActive attribute from DUT\n"); - err = TestReadColorLoopActiveAttributeFromDut_19(); + ChipLogProgress(chipTool, " ***** Test Step 19 : Sends ColorLoopSet Command - Set all Attributes\n"); + err = TestSendsColorLoopSetCommandSetAllAttributes_19(); break; case 20: - ChipLogProgress(chipTool, " ***** Test Step 20 : Enhanced Move To Hue command 10\n"); - err = TestEnhancedMoveToHueCommand10_20(); + ChipLogProgress(chipTool, " ***** Test Step 20 : Read ColorLoopActive attribute from DUT\n"); + err = TestReadColorLoopActiveAttributeFromDut_20(); break; case 21: - ChipLogProgress(chipTool, " ***** Test Step 21 : Wait 2000ms\n"); - err = TestWait2000ms_21(); + ChipLogProgress(chipTool, " ***** Test Step 21 : Enhanced Move To Hue command 10\n"); + err = TestEnhancedMoveToHueCommand10_21(); break; case 22: - ChipLogProgress(chipTool, " ***** Test Step 22 : Read EnhancedCurrentHue attribute from DUT\n"); - err = TestReadEnhancedCurrentHueAttributeFromDut_22(); + ChipLogProgress(chipTool, " ***** Test Step 22 : Wait 2000ms\n"); + err = TestWait2000ms_22(); break; case 23: - ChipLogProgress(chipTool, " ***** Test Step 23 : Sends ColorLoopSet Command - Set all Attributes\n"); - err = TestSendsColorLoopSetCommandSetAllAttributes_23(); + ChipLogProgress(chipTool, " ***** Test Step 23 : Read EnhancedCurrentHue attribute from DUT\n"); + err = TestReadEnhancedCurrentHueAttributeFromDut_23(); break; case 24: - ChipLogProgress(chipTool, " ***** Test Step 24 : Read ColorLoopDirection attribute from DUT\n"); - err = TestReadColorLoopDirectionAttributeFromDut_24(); + ChipLogProgress(chipTool, " ***** Test Step 24 : Sends ColorLoopSet Command - Set all Attributes\n"); + err = TestSendsColorLoopSetCommandSetAllAttributes_24(); break; case 25: - ChipLogProgress(chipTool, " ***** Test Step 25 : Sends ColorLoopSet Command - Set all Attributes\n"); - err = TestSendsColorLoopSetCommandSetAllAttributes_25(); + ChipLogProgress(chipTool, " ***** Test Step 25 : Read ColorLoopDirection attribute from DUT\n"); + err = TestReadColorLoopDirectionAttributeFromDut_25(); break; case 26: - ChipLogProgress(chipTool, " ***** Test Step 26 : Read ColorLoopActive attribute from DUT\n"); - err = TestReadColorLoopActiveAttributeFromDut_26(); + ChipLogProgress(chipTool, " ***** Test Step 26 : Sends ColorLoopSet Command - Set all Attributes\n"); + err = TestSendsColorLoopSetCommandSetAllAttributes_26(); break; case 27: - ChipLogProgress(chipTool, " ***** Test Step 27 : Sends ColorLoopSet Command - Set all Attributes\n"); - err = TestSendsColorLoopSetCommandSetAllAttributes_27(); + ChipLogProgress(chipTool, " ***** Test Step 27 : Read ColorLoopActive attribute from DUT\n"); + err = TestReadColorLoopActiveAttributeFromDut_27(); break; case 28: - ChipLogProgress(chipTool, " ***** Test Step 28 : Read ColorLoopActive attribute from DUT\n"); - err = TestReadColorLoopActiveAttributeFromDut_28(); + ChipLogProgress(chipTool, " ***** Test Step 28 : Sends ColorLoopSet Command - Set all Attributes\n"); + err = TestSendsColorLoopSetCommandSetAllAttributes_28(); break; case 29: - ChipLogProgress(chipTool, " ***** Test Step 29 : Sends ColorLoopSet Command - Set all Attributes\n"); - err = TestSendsColorLoopSetCommandSetAllAttributes_29(); + ChipLogProgress(chipTool, " ***** Test Step 29 : Read ColorLoopActive attribute from DUT\n"); + err = TestReadColorLoopActiveAttributeFromDut_29(); break; case 30: - ChipLogProgress(chipTool, " ***** Test Step 30 : Read ColorLoopDirection attribute from DUT\n"); - err = TestReadColorLoopDirectionAttributeFromDut_30(); + ChipLogProgress(chipTool, " ***** Test Step 30 : Sends ColorLoopSet Command - Set all Attributes\n"); + err = TestSendsColorLoopSetCommandSetAllAttributes_30(); break; case 31: - ChipLogProgress(chipTool, " ***** Test Step 31 : Sends ColorLoopSet Command - Set all Attributes\n"); - err = TestSendsColorLoopSetCommandSetAllAttributes_31(); + ChipLogProgress(chipTool, " ***** Test Step 31 : Read ColorLoopDirection attribute from DUT\n"); + err = TestReadColorLoopDirectionAttributeFromDut_31(); break; case 32: - ChipLogProgress(chipTool, " ***** Test Step 32 : Read ColorLoopActive attribute from DUT\n"); - err = TestReadColorLoopActiveAttributeFromDut_32(); + ChipLogProgress(chipTool, " ***** Test Step 32 : Sends ColorLoopSet Command - Set all Attributes\n"); + err = TestSendsColorLoopSetCommandSetAllAttributes_32(); break; case 33: - ChipLogProgress(chipTool, " ***** Test Step 33 : Sends ColorLoopSet Command - Set all Attributes\n"); - err = TestSendsColorLoopSetCommandSetAllAttributes_33(); + ChipLogProgress(chipTool, " ***** Test Step 33 : Read ColorLoopActive attribute from DUT\n"); + err = TestReadColorLoopActiveAttributeFromDut_33(); break; case 34: - ChipLogProgress(chipTool, " ***** Test Step 34 : Read ColorLoopActive attribute from DUT\n"); - err = TestReadColorLoopActiveAttributeFromDut_34(); + ChipLogProgress(chipTool, " ***** Test Step 34 : Sends ColorLoopSet Command - Set all Attributes\n"); + err = TestSendsColorLoopSetCommandSetAllAttributes_34(); break; case 35: - ChipLogProgress(chipTool, " ***** Test Step 35 : Turn Off light for color control tests\n"); - err = TestTurnOffLightForColorControlTests_35(); + ChipLogProgress(chipTool, " ***** Test Step 35 : Read ColorLoopActive attribute from DUT\n"); + err = TestReadColorLoopActiveAttributeFromDut_35(); + break; + case 36: + ChipLogProgress(chipTool, " ***** Test Step 36 : Turn Off light for color control tests\n"); + err = TestTurnOffLightForColorControlTests_36(); break; } @@ -10939,183 +11093,185 @@ class Test_TC_CC_9_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 36; + const uint16_t mTestCount = 37; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, bool onOff) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_1(onOff); + (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, uint8_t colorLoopActive) + static void OnSuccessCallback_4(void * context, uint8_t colorLoopActive) { - (static_cast(context))->OnSuccessResponse_3(colorLoopActive); + (static_cast(context))->OnSuccessResponse_4(colorLoopActive); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, uint8_t colorLoopDirection) + static void OnSuccessCallback_6(void * context, uint8_t colorLoopDirection) { - (static_cast(context))->OnSuccessResponse_5(colorLoopDirection); + (static_cast(context))->OnSuccessResponse_6(colorLoopDirection); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, uint16_t colorLoopTime) + static void OnSuccessCallback_8(void * context, uint16_t colorLoopTime) { - (static_cast(context))->OnSuccessResponse_7(colorLoopTime); + (static_cast(context))->OnSuccessResponse_8(colorLoopTime); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); } - static void OnSuccessCallback_9(void * context, uint16_t colorLoopStartEnhancedHue) + static void OnSuccessCallback_10(void * context, uint16_t colorLoopStartEnhancedHue) { - (static_cast(context))->OnSuccessResponse_9(colorLoopStartEnhancedHue); + (static_cast(context))->OnSuccessResponse_10(colorLoopStartEnhancedHue); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_11(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_12(chip::to_underlying(status)); } - static void OnSuccessCallback_11(void * context, uint8_t colorLoopActive) + static void OnSuccessCallback_12(void * context, uint8_t colorLoopActive) { - (static_cast(context))->OnSuccessResponse_11(colorLoopActive); + (static_cast(context))->OnSuccessResponse_12(colorLoopActive); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_13(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_14(chip::to_underlying(status)); } - static void OnSuccessCallback_13(void * context, uint8_t colorLoopActive) + static void OnSuccessCallback_14(void * context, uint8_t colorLoopActive) { - (static_cast(context))->OnSuccessResponse_13(colorLoopActive); + (static_cast(context))->OnSuccessResponse_14(colorLoopActive); } - static void OnFailureCallback_15(void * context, EmberAfStatus status) + static void OnFailureCallback_16(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_15(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_16(chip::to_underlying(status)); } - static void OnSuccessCallback_15(void * context, uint8_t colorLoopDirection) + static void OnSuccessCallback_16(void * context, uint8_t colorLoopDirection) { - (static_cast(context))->OnSuccessResponse_15(colorLoopDirection); + (static_cast(context))->OnSuccessResponse_16(colorLoopDirection); } - static void OnFailureCallback_17(void * context, EmberAfStatus status) + static void OnFailureCallback_18(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_17(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_18(chip::to_underlying(status)); } - static void OnSuccessCallback_17(void * context, uint8_t colorLoopActive) + static void OnSuccessCallback_18(void * context, uint8_t colorLoopActive) { - (static_cast(context))->OnSuccessResponse_17(colorLoopActive); + (static_cast(context))->OnSuccessResponse_18(colorLoopActive); } - static void OnFailureCallback_19(void * context, EmberAfStatus status) + static void OnFailureCallback_20(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_19(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_20(chip::to_underlying(status)); } - static void OnSuccessCallback_19(void * context, uint8_t colorLoopActive) + static void OnSuccessCallback_20(void * context, uint8_t colorLoopActive) { - (static_cast(context))->OnSuccessResponse_19(colorLoopActive); + (static_cast(context))->OnSuccessResponse_20(colorLoopActive); } - static void OnFailureCallback_22(void * context, EmberAfStatus status) + static void OnFailureCallback_23(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_22(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_23(chip::to_underlying(status)); } - static void OnSuccessCallback_22(void * context, uint16_t enhancedCurrentHue) + static void OnSuccessCallback_23(void * context, uint16_t enhancedCurrentHue) { - (static_cast(context))->OnSuccessResponse_22(enhancedCurrentHue); + (static_cast(context))->OnSuccessResponse_23(enhancedCurrentHue); } - static void OnFailureCallback_24(void * context, EmberAfStatus status) + static void OnFailureCallback_25(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_24(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_25(chip::to_underlying(status)); } - static void OnSuccessCallback_24(void * context, uint8_t colorLoopDirection) + static void OnSuccessCallback_25(void * context, uint8_t colorLoopDirection) { - (static_cast(context))->OnSuccessResponse_24(colorLoopDirection); + (static_cast(context))->OnSuccessResponse_25(colorLoopDirection); } - static void OnFailureCallback_26(void * context, EmberAfStatus status) + static void OnFailureCallback_27(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_26(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_27(chip::to_underlying(status)); } - static void OnSuccessCallback_26(void * context, uint8_t colorLoopActive) + static void OnSuccessCallback_27(void * context, uint8_t colorLoopActive) { - (static_cast(context))->OnSuccessResponse_26(colorLoopActive); + (static_cast(context))->OnSuccessResponse_27(colorLoopActive); } - static void OnFailureCallback_28(void * context, EmberAfStatus status) + static void OnFailureCallback_29(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_28(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_29(chip::to_underlying(status)); } - static void OnSuccessCallback_28(void * context, uint8_t colorLoopActive) + static void OnSuccessCallback_29(void * context, uint8_t colorLoopActive) { - (static_cast(context))->OnSuccessResponse_28(colorLoopActive); + (static_cast(context))->OnSuccessResponse_29(colorLoopActive); } - static void OnFailureCallback_30(void * context, EmberAfStatus status) + static void OnFailureCallback_31(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_30(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_31(chip::to_underlying(status)); } - static void OnSuccessCallback_30(void * context, uint8_t colorLoopDirection) + static void OnSuccessCallback_31(void * context, uint8_t colorLoopDirection) { - (static_cast(context))->OnSuccessResponse_30(colorLoopDirection); + (static_cast(context))->OnSuccessResponse_31(colorLoopDirection); } - static void OnFailureCallback_32(void * context, EmberAfStatus status) + static void OnFailureCallback_33(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_32(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_33(chip::to_underlying(status)); } - static void OnSuccessCallback_32(void * context, uint8_t colorLoopActive) + static void OnSuccessCallback_33(void * context, uint8_t colorLoopActive) { - (static_cast(context))->OnSuccessResponse_32(colorLoopActive); + (static_cast(context))->OnSuccessResponse_33(colorLoopActive); } - static void OnFailureCallback_34(void * context, EmberAfStatus status) + static void OnFailureCallback_35(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_34(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_35(chip::to_underlying(status)); } - static void OnSuccessCallback_34(void * context, uint8_t colorLoopActive) + static void OnSuccessCallback_35(void * context, uint8_t colorLoopActive) { - (static_cast(context))->OnSuccessResponse_34(colorLoopActive); + (static_cast(context))->OnSuccessResponse_35(colorLoopActive); } // // Tests methods // - CHIP_ERROR TestPreconditionTurnOnLightForColorControlTests_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestPreconditionTurnOnLightForColorControlTests_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -11123,41 +11279,41 @@ class Test_TC_CC_9_1 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_1() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_2() + CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -11172,41 +11328,41 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_3() + CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_3, OnFailureCallback_3); + this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint8_t colorLoopActive) + void OnSuccessResponse_4(uint8_t colorLoopActive) { VerifyOrReturn(CheckValue("colorLoopActive", colorLoopActive, 0)); NextTest(); } - CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_4() + CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -11221,41 +11377,41 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_4(); + (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_5(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4() { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } - CHIP_ERROR TestReadColorLoopDirectionAttributeFromDut_5() + CHIP_ERROR TestReadColorLoopDirectionAttributeFromDut_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_5, OnFailureCallback_5); + this, OnSuccessCallback_6, OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(uint8_t colorLoopDirection) + void OnSuccessResponse_6(uint8_t colorLoopDirection) { VerifyOrReturn(CheckValue("colorLoopDirection", colorLoopDirection, 0)); NextTest(); } - CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_6() + CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -11270,41 +11426,41 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_6(); + (static_cast(context))->OnSuccessResponse_7(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_7(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6() { NextTest(); } + void OnSuccessResponse_7() { NextTest(); } - CHIP_ERROR TestReadColorLoopTimeAttributeFromDut_7() + CHIP_ERROR TestReadColorLoopTimeAttributeFromDut_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_7, OnFailureCallback_7); + this, OnSuccessCallback_8, OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(uint16_t colorLoopTime) + void OnSuccessResponse_8(uint16_t colorLoopTime) { VerifyOrReturn(CheckValue("colorLoopTime", colorLoopTime, 30U)); NextTest(); } - CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_8() + CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -11319,41 +11475,41 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_8(); + (static_cast(context))->OnSuccessResponse_9(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_9(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8() { NextTest(); } + void OnSuccessResponse_9() { NextTest(); } - CHIP_ERROR TestReadColorLoopStartEnhancedHueAttributeFromDut_9() + CHIP_ERROR TestReadColorLoopStartEnhancedHueAttributeFromDut_10() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_9, OnFailureCallback_9); + this, OnSuccessCallback_10, OnFailureCallback_10); } - void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9(uint16_t colorLoopStartEnhancedHue) + void OnSuccessResponse_10(uint16_t colorLoopStartEnhancedHue) { VerifyOrReturn(CheckValue("colorLoopStartEnhancedHue", colorLoopStartEnhancedHue, 160U)); NextTest(); } - CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_10() + CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_11() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -11368,41 +11524,41 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_10(); + (static_cast(context))->OnSuccessResponse_11(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_11(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_10() { NextTest(); } + void OnSuccessResponse_11() { NextTest(); } - CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_11() + CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_12() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_11, OnFailureCallback_11); + this, OnSuccessCallback_12, OnFailureCallback_12); } - void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_11(uint8_t colorLoopActive) + void OnSuccessResponse_12(uint8_t colorLoopActive) { VerifyOrReturn(CheckValue("colorLoopActive", colorLoopActive, 1)); NextTest(); } - CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_12() + CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_13() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -11417,41 +11573,41 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_12(); + (static_cast(context))->OnSuccessResponse_13(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_13(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_12() { NextTest(); } + void OnSuccessResponse_13() { NextTest(); } - CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_13() + CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_14() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_13, OnFailureCallback_13); + this, OnSuccessCallback_14, OnFailureCallback_14); } - void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_13(uint8_t colorLoopActive) + void OnSuccessResponse_14(uint8_t colorLoopActive) { VerifyOrReturn(CheckValue("colorLoopActive", colorLoopActive, 0)); NextTest(); } - CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_14() + CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_15() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -11466,41 +11622,41 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_14(); + (static_cast(context))->OnSuccessResponse_15(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_15(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_15(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_14() { NextTest(); } + void OnSuccessResponse_15() { NextTest(); } - CHIP_ERROR TestReadColorLoopDirectionAttributeFromDut_15() + CHIP_ERROR TestReadColorLoopDirectionAttributeFromDut_16() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_15, OnFailureCallback_15); + this, OnSuccessCallback_16, OnFailureCallback_16); } - void OnFailureResponse_15(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_16(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_15(uint8_t colorLoopDirection) + void OnSuccessResponse_16(uint8_t colorLoopDirection) { VerifyOrReturn(CheckValue("colorLoopDirection", colorLoopDirection, 1)); NextTest(); } - CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_16() + CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_17() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -11515,41 +11671,41 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_16(); + (static_cast(context))->OnSuccessResponse_17(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_16(status); + (static_cast(context))->OnFailureResponse_17(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_16(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_17(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_16() { NextTest(); } + void OnSuccessResponse_17() { NextTest(); } - CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_17() + CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_18() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_17, OnFailureCallback_17); + this, OnSuccessCallback_18, OnFailureCallback_18); } - void OnFailureResponse_17(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_18(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_17(uint8_t colorLoopActive) + void OnSuccessResponse_18(uint8_t colorLoopActive) { VerifyOrReturn(CheckValue("colorLoopActive", colorLoopActive, 1)); NextTest(); } - CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_18() + CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_19() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -11564,41 +11720,41 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_18(); + (static_cast(context))->OnSuccessResponse_19(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_18(status); + (static_cast(context))->OnFailureResponse_19(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_18(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_19(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_18() { NextTest(); } + void OnSuccessResponse_19() { NextTest(); } - CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_19() + CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_20() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_19, OnFailureCallback_19); + this, OnSuccessCallback_20, OnFailureCallback_20); } - void OnFailureResponse_19(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_20(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_19(uint8_t colorLoopActive) + void OnSuccessResponse_20(uint8_t colorLoopActive) { VerifyOrReturn(CheckValue("colorLoopActive", colorLoopActive, 0)); NextTest(); } - CHIP_ERROR TestEnhancedMoveToHueCommand10_20() + CHIP_ERROR TestEnhancedMoveToHueCommand10_21() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type; @@ -11611,43 +11767,43 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_20(); + (static_cast(context))->OnSuccessResponse_21(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_20(status); + (static_cast(context))->OnFailureResponse_21(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_20(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_21(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_20() { NextTest(); } + void OnSuccessResponse_21() { NextTest(); } - CHIP_ERROR TestWait2000ms_21() { return WaitForMs(2000); } + CHIP_ERROR TestWait2000ms_22() { return WaitForMs(2000); } - CHIP_ERROR TestReadEnhancedCurrentHueAttributeFromDut_22() + CHIP_ERROR TestReadEnhancedCurrentHueAttributeFromDut_23() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_22, OnFailureCallback_22); + this, OnSuccessCallback_23, OnFailureCallback_23); } - void OnFailureResponse_22(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_23(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_22(uint16_t enhancedCurrentHue) + void OnSuccessResponse_23(uint16_t enhancedCurrentHue) { VerifyOrReturn(CheckValue("enhancedCurrentHue", enhancedCurrentHue, 40960U)); NextTest(); } - CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_23() + CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_24() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -11662,41 +11818,41 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_23(); + (static_cast(context))->OnSuccessResponse_24(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_23(status); + (static_cast(context))->OnFailureResponse_24(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_23(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_24(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_23() { NextTest(); } + void OnSuccessResponse_24() { NextTest(); } - CHIP_ERROR TestReadColorLoopDirectionAttributeFromDut_24() + CHIP_ERROR TestReadColorLoopDirectionAttributeFromDut_25() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_24, OnFailureCallback_24); + this, OnSuccessCallback_25, OnFailureCallback_25); } - void OnFailureResponse_24(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_25(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_24(uint8_t colorLoopDirection) + void OnSuccessResponse_25(uint8_t colorLoopDirection) { VerifyOrReturn(CheckValue("colorLoopDirection", colorLoopDirection, 0)); NextTest(); } - CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_25() + CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_26() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -11711,41 +11867,41 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_25(); + (static_cast(context))->OnSuccessResponse_26(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_25(status); + (static_cast(context))->OnFailureResponse_26(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_25(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_26(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_25() { NextTest(); } + void OnSuccessResponse_26() { NextTest(); } - CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_26() + CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_27() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_26, OnFailureCallback_26); + this, OnSuccessCallback_27, OnFailureCallback_27); } - void OnFailureResponse_26(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_27(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_26(uint8_t colorLoopActive) + void OnSuccessResponse_27(uint8_t colorLoopActive) { VerifyOrReturn(CheckValue("colorLoopActive", colorLoopActive, 1)); NextTest(); } - CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_27() + CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_28() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -11760,41 +11916,41 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_27(); + (static_cast(context))->OnSuccessResponse_28(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_27(status); + (static_cast(context))->OnFailureResponse_28(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_27(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_28(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_27() { NextTest(); } + void OnSuccessResponse_28() { NextTest(); } - CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_28() + CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_29() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_28, OnFailureCallback_28); + this, OnSuccessCallback_29, OnFailureCallback_29); } - void OnFailureResponse_28(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_29(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_28(uint8_t colorLoopActive) + void OnSuccessResponse_29(uint8_t colorLoopActive) { VerifyOrReturn(CheckValue("colorLoopActive", colorLoopActive, 0)); NextTest(); } - CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_29() + CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_30() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -11809,41 +11965,41 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_29(); + (static_cast(context))->OnSuccessResponse_30(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_29(status); + (static_cast(context))->OnFailureResponse_30(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_29(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_30(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_29() { NextTest(); } + void OnSuccessResponse_30() { NextTest(); } - CHIP_ERROR TestReadColorLoopDirectionAttributeFromDut_30() + CHIP_ERROR TestReadColorLoopDirectionAttributeFromDut_31() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_30, OnFailureCallback_30); + this, OnSuccessCallback_31, OnFailureCallback_31); } - void OnFailureResponse_30(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_31(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_30(uint8_t colorLoopDirection) + void OnSuccessResponse_31(uint8_t colorLoopDirection) { VerifyOrReturn(CheckValue("colorLoopDirection", colorLoopDirection, 1)); NextTest(); } - CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_31() + CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_32() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -11858,41 +12014,41 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_31(); + (static_cast(context))->OnSuccessResponse_32(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_31(status); + (static_cast(context))->OnFailureResponse_32(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_31(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_32(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_31() { NextTest(); } + void OnSuccessResponse_32() { NextTest(); } - CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_32() + CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_33() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_32, OnFailureCallback_32); + this, OnSuccessCallback_33, OnFailureCallback_33); } - void OnFailureResponse_32(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_33(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_32(uint8_t colorLoopActive) + void OnSuccessResponse_33(uint8_t colorLoopActive) { VerifyOrReturn(CheckValue("colorLoopActive", colorLoopActive, 1)); NextTest(); } - CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_33() + CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_34() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -11907,41 +12063,41 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_33(); + (static_cast(context))->OnSuccessResponse_34(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_33(status); + (static_cast(context))->OnFailureResponse_34(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_33(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_34(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_33() { NextTest(); } + void OnSuccessResponse_34() { NextTest(); } - CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_34() + CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_35() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_34, OnFailureCallback_34); + this, OnSuccessCallback_35, OnFailureCallback_35); } - void OnFailureResponse_34(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_35(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_34(uint8_t colorLoopActive) + void OnSuccessResponse_35(uint8_t colorLoopActive) { VerifyOrReturn(CheckValue("colorLoopActive", colorLoopActive, 0)); NextTest(); } - CHIP_ERROR TestTurnOffLightForColorControlTests_35() + CHIP_ERROR TestTurnOffLightForColorControlTests_36() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -11949,20 +12105,20 @@ class Test_TC_CC_9_1 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_35(); + (static_cast(context))->OnSuccessResponse_36(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_35(status); + (static_cast(context))->OnFailureResponse_36(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_35(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_36(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_35() { NextTest(); } + void OnSuccessResponse_36() { NextTest(); } }; class Test_TC_CC_9_2 : public TestCommand @@ -11996,60 +12152,64 @@ class Test_TC_CC_9_2 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Precondition: Turn on light for color control tests\n"); - err = TestPreconditionTurnOnLightForColorControlTests_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 : Precondition: Check on/off attribute value is true after on command\n"); - err = TestPreconditionCheckOnOffAttributeValueIsTrueAfterOnCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Precondition: Turn on light for color control tests\n"); + err = TestPreconditionTurnOnLightForColorControlTests_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Sends ColorLoopSet Command - Set all Attributes\n"); - err = TestSendsColorLoopSetCommandSetAllAttributes_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Precondition: Check on/off attribute value is true after on command\n"); + err = TestPreconditionCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Read ColorLoopActive attribute from DUT\n"); - err = TestReadColorLoopActiveAttributeFromDut_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Sends ColorLoopSet Command - Set all Attributes\n"); + err = TestSendsColorLoopSetCommandSetAllAttributes_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Read ColorLoopDirection attribute from DUT.\n"); - err = TestReadColorLoopDirectionAttributeFromDut_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Read ColorLoopActive attribute from DUT\n"); + err = TestReadColorLoopActiveAttributeFromDut_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Read ColorLoopTime attribute from DUT.\n"); - err = TestReadColorLoopTimeAttributeFromDut_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Read ColorLoopDirection attribute from DUT.\n"); + err = TestReadColorLoopDirectionAttributeFromDut_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Read ColorLoopStartEnhancedHue attribute from DUT.\n"); - err = TestReadColorLoopStartEnhancedHueAttributeFromDut_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Read ColorLoopTime attribute from DUT.\n"); + err = TestReadColorLoopTimeAttributeFromDut_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Color Loop Set Command - Set all Attributes\n"); - err = TestColorLoopSetCommandSetAllAttributes_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Read ColorLoopStartEnhancedHue attribute from DUT.\n"); + err = TestReadColorLoopStartEnhancedHueAttributeFromDut_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Read ColorLoopActive attribute from DUT.\n"); - err = TestReadColorLoopActiveAttributeFromDut_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : Color Loop Set Command - Set all Attributes\n"); + err = TestColorLoopSetCommandSetAllAttributes_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Color Loop Set Command - Start Color Loop\n"); - err = TestColorLoopSetCommandStartColorLoop_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : Read ColorLoopActive attribute from DUT.\n"); + err = TestReadColorLoopActiveAttributeFromDut_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Read ColorLoopDirection attribute from DUT.\n"); - err = TestReadColorLoopDirectionAttributeFromDut_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : Color Loop Set Command - Start Color Loop\n"); + err = TestColorLoopSetCommandStartColorLoop_10(); break; case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : Color Loop Set Command - Start Color Loop\n"); - err = TestColorLoopSetCommandStartColorLoop_11(); + ChipLogProgress(chipTool, " ***** Test Step 11 : Read ColorLoopDirection attribute from DUT.\n"); + err = TestReadColorLoopDirectionAttributeFromDut_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : Read ColorLoopActive attribute from DUT\n"); - err = TestReadColorLoopActiveAttributeFromDut_12(); + ChipLogProgress(chipTool, " ***** Test Step 12 : Color Loop Set Command - Start Color Loop\n"); + err = TestColorLoopSetCommandStartColorLoop_12(); break; case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : Turn off light for color control tests\n"); - err = TestTurnOffLightForColorControlTests_13(); + ChipLogProgress(chipTool, " ***** Test Step 13 : Read ColorLoopActive attribute from DUT\n"); + err = TestReadColorLoopActiveAttributeFromDut_13(); + break; + case 14: + ChipLogProgress(chipTool, " ***** Test Step 14 : Turn off light for color control tests\n"); + err = TestTurnOffLightForColorControlTests_14(); break; } @@ -12062,26 +12222,16 @@ class Test_TC_CC_9_2 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 14; - - static void OnFailureCallback_1(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); - } - - static void OnSuccessCallback_1(void * context, bool onOff) - { - (static_cast(context))->OnSuccessResponse_1(onOff); - } + const uint16_t mTestCount = 15; - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, uint8_t colorLoopActive) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_3(colorLoopActive); + (static_cast(context))->OnSuccessResponse_2(onOff); } static void OnFailureCallback_4(void * context, EmberAfStatus status) @@ -12089,9 +12239,9 @@ class Test_TC_CC_9_2 : public TestCommand (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, uint8_t colorLoopDirection) + static void OnSuccessCallback_4(void * context, uint8_t colorLoopActive) { - (static_cast(context))->OnSuccessResponse_4(colorLoopDirection); + (static_cast(context))->OnSuccessResponse_4(colorLoopActive); } static void OnFailureCallback_5(void * context, EmberAfStatus status) @@ -12099,9 +12249,9 @@ class Test_TC_CC_9_2 : public TestCommand (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, uint16_t colorLoopTime) + static void OnSuccessCallback_5(void * context, uint8_t colorLoopDirection) { - (static_cast(context))->OnSuccessResponse_5(colorLoopTime); + (static_cast(context))->OnSuccessResponse_5(colorLoopDirection); } static void OnFailureCallback_6(void * context, EmberAfStatus status) @@ -12109,46 +12259,58 @@ class Test_TC_CC_9_2 : public TestCommand (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, uint16_t colorLoopStartEnhancedHue) + static void OnSuccessCallback_6(void * context, uint16_t colorLoopTime) { - (static_cast(context))->OnSuccessResponse_6(colorLoopStartEnhancedHue); + (static_cast(context))->OnSuccessResponse_6(colorLoopTime); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_8(void * context, uint8_t colorLoopActive) + static void OnSuccessCallback_7(void * context, uint16_t colorLoopStartEnhancedHue) { - (static_cast(context))->OnSuccessResponse_8(colorLoopActive); + (static_cast(context))->OnSuccessResponse_7(colorLoopStartEnhancedHue); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); } - static void OnSuccessCallback_10(void * context, uint8_t colorLoopDirection) + static void OnSuccessCallback_9(void * context, uint8_t colorLoopActive) { - (static_cast(context))->OnSuccessResponse_10(colorLoopDirection); + (static_cast(context))->OnSuccessResponse_9(colorLoopActive); } - static void OnFailureCallback_12(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_12(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_11(chip::to_underlying(status)); } - static void OnSuccessCallback_12(void * context, uint8_t colorLoopActive) + static void OnSuccessCallback_11(void * context, uint8_t colorLoopDirection) + { + (static_cast(context))->OnSuccessResponse_11(colorLoopDirection); + } + + static void OnFailureCallback_13(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_13(chip::to_underlying(status)); + } + + static void OnSuccessCallback_13(void * context, uint8_t colorLoopActive) { - (static_cast(context))->OnSuccessResponse_12(colorLoopActive); + (static_cast(context))->OnSuccessResponse_13(colorLoopActive); } // // Tests methods // - CHIP_ERROR TestPreconditionTurnOnLightForColorControlTests_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestPreconditionTurnOnLightForColorControlTests_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -12156,41 +12318,41 @@ class Test_TC_CC_9_2 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestPreconditionCheckOnOffAttributeValueIsTrueAfterOnCommand_1() + CHIP_ERROR TestPreconditionCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_2() + CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -12205,98 +12367,98 @@ class Test_TC_CC_9_2 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_3() + CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_3, OnFailureCallback_3); + this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint8_t colorLoopActive) + void OnSuccessResponse_4(uint8_t colorLoopActive) { VerifyOrReturn(CheckValue("colorLoopActive", colorLoopActive, 0)); NextTest(); } - CHIP_ERROR TestReadColorLoopDirectionAttributeFromDut_4() + CHIP_ERROR TestReadColorLoopDirectionAttributeFromDut_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_4, OnFailureCallback_4); + this, OnSuccessCallback_5, OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(uint8_t colorLoopDirection) + void OnSuccessResponse_5(uint8_t colorLoopDirection) { VerifyOrReturn(CheckValue("colorLoopDirection", colorLoopDirection, 0)); NextTest(); } - CHIP_ERROR TestReadColorLoopTimeAttributeFromDut_5() + CHIP_ERROR TestReadColorLoopTimeAttributeFromDut_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_5, OnFailureCallback_5); + this, OnSuccessCallback_6, OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(uint16_t colorLoopTime) + void OnSuccessResponse_6(uint16_t colorLoopTime) { VerifyOrReturn(CheckValue("colorLoopTime", colorLoopTime, 30U)); NextTest(); } - CHIP_ERROR TestReadColorLoopStartEnhancedHueAttributeFromDut_6() + CHIP_ERROR TestReadColorLoopStartEnhancedHueAttributeFromDut_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_6, OnFailureCallback_6); + this, OnSuccessCallback_7, OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(uint16_t colorLoopStartEnhancedHue) + void OnSuccessResponse_7(uint16_t colorLoopStartEnhancedHue) { VerifyOrReturn(CheckValue("colorLoopStartEnhancedHue", colorLoopStartEnhancedHue, 160U)); NextTest(); } - CHIP_ERROR TestColorLoopSetCommandSetAllAttributes_7() + CHIP_ERROR TestColorLoopSetCommandSetAllAttributes_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -12311,41 +12473,41 @@ class Test_TC_CC_9_2 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_7(); + (static_cast(context))->OnSuccessResponse_8(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_8(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7() { NextTest(); } + void OnSuccessResponse_8() { NextTest(); } - CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_8() + CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_8, OnFailureCallback_8); + this, OnSuccessCallback_9, OnFailureCallback_9); } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8(uint8_t colorLoopActive) + void OnSuccessResponse_9(uint8_t colorLoopActive) { VerifyOrReturn(CheckValue("colorLoopActive", colorLoopActive, 1)); NextTest(); } - CHIP_ERROR TestColorLoopSetCommandStartColorLoop_9() + CHIP_ERROR TestColorLoopSetCommandStartColorLoop_10() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -12360,41 +12522,41 @@ class Test_TC_CC_9_2 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_9(); + (static_cast(context))->OnSuccessResponse_10(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_10(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9() { NextTest(); } + void OnSuccessResponse_10() { NextTest(); } - CHIP_ERROR TestReadColorLoopDirectionAttributeFromDut_10() + CHIP_ERROR TestReadColorLoopDirectionAttributeFromDut_11() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_10, OnFailureCallback_10); + this, OnSuccessCallback_11, OnFailureCallback_11); } - void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_10(uint8_t colorLoopDirection) + void OnSuccessResponse_11(uint8_t colorLoopDirection) { VerifyOrReturn(CheckValue("colorLoopDirection", colorLoopDirection, 1)); NextTest(); } - CHIP_ERROR TestColorLoopSetCommandStartColorLoop_11() + CHIP_ERROR TestColorLoopSetCommandStartColorLoop_12() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -12409,41 +12571,41 @@ class Test_TC_CC_9_2 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_11(); + (static_cast(context))->OnSuccessResponse_12(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_12(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_11() { NextTest(); } + void OnSuccessResponse_12() { NextTest(); } - CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_12() + CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_13() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_12, OnFailureCallback_12); + this, OnSuccessCallback_13, OnFailureCallback_13); } - void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_12(uint8_t colorLoopActive) + void OnSuccessResponse_13(uint8_t colorLoopActive) { VerifyOrReturn(CheckValue("colorLoopActive", colorLoopActive, 0)); NextTest(); } - CHIP_ERROR TestTurnOffLightForColorControlTests_13() + CHIP_ERROR TestTurnOffLightForColorControlTests_14() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -12451,20 +12613,20 @@ class Test_TC_CC_9_2 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_13(); + (static_cast(context))->OnSuccessResponse_14(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_14(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_13() { NextTest(); } + void OnSuccessResponse_14() { NextTest(); } }; class Test_TC_CC_9_3 : public TestCommand @@ -12498,60 +12660,64 @@ class Test_TC_CC_9_3 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Precondition: Turn on light for color control tests\n"); - err = TestPreconditionTurnOnLightForColorControlTests_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 : Precondition: Check on/off attribute value is true after on command\n"); - err = TestPreconditionCheckOnOffAttributeValueIsTrueAfterOnCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Precondition: Turn on light for color control tests\n"); + err = TestPreconditionTurnOnLightForColorControlTests_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Sends ColorLoopSet Command - Set all Attributes\n"); - err = TestSendsColorLoopSetCommandSetAllAttributes_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Precondition: Check on/off attribute value is true after on command\n"); + err = TestPreconditionCheckOnOffAttributeValueIsTrueAfterOnCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Read ColorLoopActive attribute from DUT\n"); - err = TestReadColorLoopActiveAttributeFromDut_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Sends ColorLoopSet Command - Set all Attributes\n"); + err = TestSendsColorLoopSetCommandSetAllAttributes_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Read ColorLoopDirection attribute from DUT.\n"); - err = TestReadColorLoopDirectionAttributeFromDut_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Read ColorLoopActive attribute from DUT\n"); + err = TestReadColorLoopActiveAttributeFromDut_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Read ColorLoopTime attribute from DUT.\n"); - err = TestReadColorLoopTimeAttributeFromDut_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Read ColorLoopDirection attribute from DUT.\n"); + err = TestReadColorLoopDirectionAttributeFromDut_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Read ColorLoopStartEnhancedHue attribute from DUT.\n"); - err = TestReadColorLoopStartEnhancedHueAttributeFromDut_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Read ColorLoopTime attribute from DUT.\n"); + err = TestReadColorLoopTimeAttributeFromDut_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Color Loop Set Command - Set all Attributes\n"); - err = TestColorLoopSetCommandSetAllAttributes_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Read ColorLoopStartEnhancedHue attribute from DUT.\n"); + err = TestReadColorLoopStartEnhancedHueAttributeFromDut_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Read ColorLoopActive attribute from DUT.\n"); - err = TestReadColorLoopActiveAttributeFromDut_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : Color Loop Set Command - Set all Attributes\n"); + err = TestColorLoopSetCommandSetAllAttributes_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Color Loop Set Command - Start Color Loop\n"); - err = TestColorLoopSetCommandStartColorLoop_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : Read ColorLoopActive attribute from DUT.\n"); + err = TestReadColorLoopActiveAttributeFromDut_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Read ColorLoopTime attribute from DUT.\n"); - err = TestReadColorLoopTimeAttributeFromDut_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : Color Loop Set Command - Start Color Loop\n"); + err = TestColorLoopSetCommandStartColorLoop_10(); break; case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : Color Loop Set Command - Start Color Loop\n"); - err = TestColorLoopSetCommandStartColorLoop_11(); + ChipLogProgress(chipTool, " ***** Test Step 11 : Read ColorLoopTime attribute from DUT.\n"); + err = TestReadColorLoopTimeAttributeFromDut_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : Read ColorLoopActive attribute from DUT\n"); - err = TestReadColorLoopActiveAttributeFromDut_12(); + ChipLogProgress(chipTool, " ***** Test Step 12 : Color Loop Set Command - Start Color Loop\n"); + err = TestColorLoopSetCommandStartColorLoop_12(); break; case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : Turn off light for color control tests\n"); - err = TestTurnOffLightForColorControlTests_13(); + ChipLogProgress(chipTool, " ***** Test Step 13 : Read ColorLoopActive attribute from DUT\n"); + err = TestReadColorLoopActiveAttributeFromDut_13(); + break; + case 14: + ChipLogProgress(chipTool, " ***** Test Step 14 : Turn off light for color control tests\n"); + err = TestTurnOffLightForColorControlTests_14(); break; } @@ -12564,26 +12730,16 @@ class Test_TC_CC_9_3 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 14; - - static void OnFailureCallback_1(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); - } - - static void OnSuccessCallback_1(void * context, bool onOff) - { - (static_cast(context))->OnSuccessResponse_1(onOff); - } + const uint16_t mTestCount = 15; - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, uint8_t colorLoopActive) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_3(colorLoopActive); + (static_cast(context))->OnSuccessResponse_2(onOff); } static void OnFailureCallback_4(void * context, EmberAfStatus status) @@ -12591,9 +12747,9 @@ class Test_TC_CC_9_3 : public TestCommand (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, uint8_t colorLoopDirection) + static void OnSuccessCallback_4(void * context, uint8_t colorLoopActive) { - (static_cast(context))->OnSuccessResponse_4(colorLoopDirection); + (static_cast(context))->OnSuccessResponse_4(colorLoopActive); } static void OnFailureCallback_5(void * context, EmberAfStatus status) @@ -12601,9 +12757,9 @@ class Test_TC_CC_9_3 : public TestCommand (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, uint16_t colorLoopTime) + static void OnSuccessCallback_5(void * context, uint8_t colorLoopDirection) { - (static_cast(context))->OnSuccessResponse_5(colorLoopTime); + (static_cast(context))->OnSuccessResponse_5(colorLoopDirection); } static void OnFailureCallback_6(void * context, EmberAfStatus status) @@ -12611,46 +12767,58 @@ class Test_TC_CC_9_3 : public TestCommand (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, uint16_t colorLoopStartEnhancedHue) + static void OnSuccessCallback_6(void * context, uint16_t colorLoopTime) { - (static_cast(context))->OnSuccessResponse_6(colorLoopStartEnhancedHue); + (static_cast(context))->OnSuccessResponse_6(colorLoopTime); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_8(void * context, uint8_t colorLoopActive) + static void OnSuccessCallback_7(void * context, uint16_t colorLoopStartEnhancedHue) { - (static_cast(context))->OnSuccessResponse_8(colorLoopActive); + (static_cast(context))->OnSuccessResponse_7(colorLoopStartEnhancedHue); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); } - static void OnSuccessCallback_10(void * context, uint16_t colorLoopTime) + static void OnSuccessCallback_9(void * context, uint8_t colorLoopActive) { - (static_cast(context))->OnSuccessResponse_10(colorLoopTime); + (static_cast(context))->OnSuccessResponse_9(colorLoopActive); } - static void OnFailureCallback_12(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_12(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_11(chip::to_underlying(status)); } - static void OnSuccessCallback_12(void * context, uint8_t colorLoopActive) + static void OnSuccessCallback_11(void * context, uint16_t colorLoopTime) + { + (static_cast(context))->OnSuccessResponse_11(colorLoopTime); + } + + static void OnFailureCallback_13(void * context, EmberAfStatus status) { - (static_cast(context))->OnSuccessResponse_12(colorLoopActive); + (static_cast(context))->OnFailureResponse_13(chip::to_underlying(status)); + } + + static void OnSuccessCallback_13(void * context, uint8_t colorLoopActive) + { + (static_cast(context))->OnSuccessResponse_13(colorLoopActive); } // // Tests methods // - CHIP_ERROR TestPreconditionTurnOnLightForColorControlTests_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestPreconditionTurnOnLightForColorControlTests_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -12658,41 +12826,41 @@ class Test_TC_CC_9_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestPreconditionCheckOnOffAttributeValueIsTrueAfterOnCommand_1() + CHIP_ERROR TestPreconditionCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_2() + CHIP_ERROR TestSendsColorLoopSetCommandSetAllAttributes_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -12707,98 +12875,98 @@ class Test_TC_CC_9_3 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_3() + CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_3, OnFailureCallback_3); + this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint8_t colorLoopActive) + void OnSuccessResponse_4(uint8_t colorLoopActive) { VerifyOrReturn(CheckValue("colorLoopActive", colorLoopActive, 0)); NextTest(); } - CHIP_ERROR TestReadColorLoopDirectionAttributeFromDut_4() + CHIP_ERROR TestReadColorLoopDirectionAttributeFromDut_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_4, OnFailureCallback_4); + this, OnSuccessCallback_5, OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(uint8_t colorLoopDirection) + void OnSuccessResponse_5(uint8_t colorLoopDirection) { VerifyOrReturn(CheckValue("colorLoopDirection", colorLoopDirection, 0)); NextTest(); } - CHIP_ERROR TestReadColorLoopTimeAttributeFromDut_5() + CHIP_ERROR TestReadColorLoopTimeAttributeFromDut_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_5, OnFailureCallback_5); + this, OnSuccessCallback_6, OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(uint16_t colorLoopTime) + void OnSuccessResponse_6(uint16_t colorLoopTime) { VerifyOrReturn(CheckValue("colorLoopTime", colorLoopTime, 30U)); NextTest(); } - CHIP_ERROR TestReadColorLoopStartEnhancedHueAttributeFromDut_6() + CHIP_ERROR TestReadColorLoopStartEnhancedHueAttributeFromDut_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_6, OnFailureCallback_6); + this, OnSuccessCallback_7, OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(uint16_t colorLoopStartEnhancedHue) + void OnSuccessResponse_7(uint16_t colorLoopStartEnhancedHue) { VerifyOrReturn(CheckValue("colorLoopStartEnhancedHue", colorLoopStartEnhancedHue, 160U)); NextTest(); } - CHIP_ERROR TestColorLoopSetCommandSetAllAttributes_7() + CHIP_ERROR TestColorLoopSetCommandSetAllAttributes_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -12813,41 +12981,41 @@ class Test_TC_CC_9_3 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_7(); + (static_cast(context))->OnSuccessResponse_8(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_8(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7() { NextTest(); } + void OnSuccessResponse_8() { NextTest(); } - CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_8() + CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_8, OnFailureCallback_8); + this, OnSuccessCallback_9, OnFailureCallback_9); } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8(uint8_t colorLoopActive) + void OnSuccessResponse_9(uint8_t colorLoopActive) { VerifyOrReturn(CheckValue("colorLoopActive", colorLoopActive, 1)); NextTest(); } - CHIP_ERROR TestColorLoopSetCommandStartColorLoop_9() + CHIP_ERROR TestColorLoopSetCommandStartColorLoop_10() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -12862,41 +13030,41 @@ class Test_TC_CC_9_3 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_9(); + (static_cast(context))->OnSuccessResponse_10(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_10(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9() { NextTest(); } + void OnSuccessResponse_10() { NextTest(); } - CHIP_ERROR TestReadColorLoopTimeAttributeFromDut_10() + CHIP_ERROR TestReadColorLoopTimeAttributeFromDut_11() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_10, OnFailureCallback_10); + this, OnSuccessCallback_11, OnFailureCallback_11); } - void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_10(uint16_t colorLoopTime) + void OnSuccessResponse_11(uint16_t colorLoopTime) { VerifyOrReturn(CheckValue("colorLoopTime", colorLoopTime, 60U)); NextTest(); } - CHIP_ERROR TestColorLoopSetCommandStartColorLoop_11() + CHIP_ERROR TestColorLoopSetCommandStartColorLoop_12() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; @@ -12911,41 +13079,41 @@ class Test_TC_CC_9_3 : public TestCommand request.optionsOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_11(); + (static_cast(context))->OnSuccessResponse_12(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_12(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_11() { NextTest(); } + void OnSuccessResponse_12() { NextTest(); } - CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_12() + CHIP_ERROR TestReadColorLoopActiveAttributeFromDut_13() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_12, OnFailureCallback_12); + this, OnSuccessCallback_13, OnFailureCallback_13); } - void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_12(uint8_t colorLoopActive) + void OnSuccessResponse_13(uint8_t colorLoopActive) { VerifyOrReturn(CheckValue("colorLoopActive", colorLoopActive, 0)); NextTest(); } - CHIP_ERROR TestTurnOffLightForColorControlTests_13() + CHIP_ERROR TestTurnOffLightForColorControlTests_14() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -12953,20 +13121,20 @@ class Test_TC_CC_9_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_13(); + (static_cast(context))->OnSuccessResponse_14(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_14(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_13() { NextTest(); } + void OnSuccessResponse_14() { NextTest(); } }; class Test_TC_DM_1_1 : public TestCommand @@ -13000,80 +13168,84 @@ class Test_TC_DM_1_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Query Interaction Model Version\n"); - err = TestQueryInteractionModelVersion_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 : Query Vendor Name\n"); - err = TestQueryVendorName_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Query Interaction Model Version\n"); + err = TestQueryInteractionModelVersion_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Query VendorID\n"); - err = TestQueryVendorID_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Query Vendor Name\n"); + err = TestQueryVendorName_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Query Product Name\n"); - err = TestQueryProductName_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Query VendorID\n"); + err = TestQueryVendorID_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Query ProductID\n"); - err = TestQueryProductID_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Query Product Name\n"); + err = TestQueryProductName_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Query Node Label\n"); - err = TestQueryNodeLabel_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Query ProductID\n"); + err = TestQueryProductID_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Query User Location\n"); - err = TestQueryUserLocation_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Query Node Label\n"); + err = TestQueryNodeLabel_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Query HardwareVersion\n"); - err = TestQueryHardwareVersion_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Query User Location\n"); + err = TestQueryUserLocation_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Query HardwareVersionString\n"); - err = TestQueryHardwareVersionString_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : Query HardwareVersion\n"); + err = TestQueryHardwareVersion_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Query SoftwareVersion\n"); - err = TestQuerySoftwareVersion_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : Query HardwareVersionString\n"); + err = TestQueryHardwareVersionString_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Query SoftwareVersionString\n"); - err = TestQuerySoftwareVersionString_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : Query SoftwareVersion\n"); + err = TestQuerySoftwareVersion_10(); break; case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : Query ManufacturingDate\n"); - err = ShouldSkip("MANF_DATE") ? CHIP_NO_ERROR : TestQueryManufacturingDate_11(); + ChipLogProgress(chipTool, " ***** Test Step 11 : Query SoftwareVersionString\n"); + err = TestQuerySoftwareVersionString_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : Query PartNumber\n"); - err = ShouldSkip("PART_NUM") ? CHIP_NO_ERROR : TestQueryPartNumber_12(); + ChipLogProgress(chipTool, " ***** Test Step 12 : Query ManufacturingDate\n"); + err = ShouldSkip("MANF_DATE") ? CHIP_NO_ERROR : TestQueryManufacturingDate_12(); break; case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : Query ProductURL\n"); - err = TestQueryProductURL_13(); + ChipLogProgress(chipTool, " ***** Test Step 13 : Query PartNumber\n"); + err = ShouldSkip("PART_NUM") ? CHIP_NO_ERROR : TestQueryPartNumber_13(); break; case 14: - ChipLogProgress(chipTool, " ***** Test Step 14 : Query ProductLabel\n"); - err = TestQueryProductLabel_14(); + ChipLogProgress(chipTool, " ***** Test Step 14 : Query ProductURL\n"); + err = TestQueryProductURL_14(); break; case 15: - ChipLogProgress(chipTool, " ***** Test Step 15 : Query SerialNumber\n"); - err = TestQuerySerialNumber_15(); + ChipLogProgress(chipTool, " ***** Test Step 15 : Query ProductLabel\n"); + err = TestQueryProductLabel_15(); break; case 16: - ChipLogProgress(chipTool, " ***** Test Step 16 : Query LocalConfigDisabled\n"); - err = TestQueryLocalConfigDisabled_16(); + ChipLogProgress(chipTool, " ***** Test Step 16 : Query SerialNumber\n"); + err = TestQuerySerialNumber_16(); break; case 17: - ChipLogProgress(chipTool, " ***** Test Step 17 : Query Reachable\n"); - err = TestQueryReachable_17(); + ChipLogProgress(chipTool, " ***** Test Step 17 : Query LocalConfigDisabled\n"); + err = TestQueryLocalConfigDisabled_17(); break; case 18: - ChipLogProgress(chipTool, " ***** Test Step 18 : Query UniqueID\n"); - err = TestQueryUniqueID_18(); + ChipLogProgress(chipTool, " ***** Test Step 18 : Query Reachable\n"); + err = TestQueryReachable_18(); + break; + case 19: + ChipLogProgress(chipTool, " ***** Test Step 19 : Query UniqueID\n"); + err = TestQueryUniqueID_19(); break; } @@ -13086,26 +13258,16 @@ class Test_TC_DM_1_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 19; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context, uint16_t interactionModelVersion) - { - (static_cast(context))->OnSuccessResponse_0(interactionModelVersion); - } + const uint16_t mTestCount = 20; static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, chip::CharSpan vendorName) + static void OnSuccessCallback_1(void * context, uint16_t interactionModelVersion) { - (static_cast(context))->OnSuccessResponse_1(vendorName); + (static_cast(context))->OnSuccessResponse_1(interactionModelVersion); } static void OnFailureCallback_2(void * context, EmberAfStatus status) @@ -13113,9 +13275,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint16_t vendorID) + static void OnSuccessCallback_2(void * context, chip::CharSpan vendorName) { - (static_cast(context))->OnSuccessResponse_2(vendorID); + (static_cast(context))->OnSuccessResponse_2(vendorName); } static void OnFailureCallback_3(void * context, EmberAfStatus status) @@ -13123,9 +13285,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, chip::CharSpan productName) + static void OnSuccessCallback_3(void * context, uint16_t vendorID) { - (static_cast(context))->OnSuccessResponse_3(productName); + (static_cast(context))->OnSuccessResponse_3(vendorID); } static void OnFailureCallback_4(void * context, EmberAfStatus status) @@ -13133,9 +13295,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, uint16_t productID) + static void OnSuccessCallback_4(void * context, chip::CharSpan productName) { - (static_cast(context))->OnSuccessResponse_4(productID); + (static_cast(context))->OnSuccessResponse_4(productName); } static void OnFailureCallback_5(void * context, EmberAfStatus status) @@ -13143,9 +13305,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, chip::CharSpan nodeLabel) + static void OnSuccessCallback_5(void * context, uint16_t productID) { - (static_cast(context))->OnSuccessResponse_5(nodeLabel); + (static_cast(context))->OnSuccessResponse_5(productID); } static void OnFailureCallback_6(void * context, EmberAfStatus status) @@ -13153,9 +13315,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, chip::CharSpan location) + static void OnSuccessCallback_6(void * context, chip::CharSpan nodeLabel) { - (static_cast(context))->OnSuccessResponse_6(location); + (static_cast(context))->OnSuccessResponse_6(nodeLabel); } static void OnFailureCallback_7(void * context, EmberAfStatus status) @@ -13163,9 +13325,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, uint16_t hardwareVersion) + static void OnSuccessCallback_7(void * context, chip::CharSpan location) { - (static_cast(context))->OnSuccessResponse_7(hardwareVersion); + (static_cast(context))->OnSuccessResponse_7(location); } static void OnFailureCallback_8(void * context, EmberAfStatus status) @@ -13173,9 +13335,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_8(void * context, chip::CharSpan hardwareVersionString) + static void OnSuccessCallback_8(void * context, uint16_t hardwareVersion) { - (static_cast(context))->OnSuccessResponse_8(hardwareVersionString); + (static_cast(context))->OnSuccessResponse_8(hardwareVersion); } static void OnFailureCallback_9(void * context, EmberAfStatus status) @@ -13183,9 +13345,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); } - static void OnSuccessCallback_9(void * context, uint32_t softwareVersion) + static void OnSuccessCallback_9(void * context, chip::CharSpan hardwareVersionString) { - (static_cast(context))->OnSuccessResponse_9(softwareVersion); + (static_cast(context))->OnSuccessResponse_9(hardwareVersionString); } static void OnFailureCallback_10(void * context, EmberAfStatus status) @@ -13193,9 +13355,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); } - static void OnSuccessCallback_10(void * context, chip::CharSpan softwareVersionString) + static void OnSuccessCallback_10(void * context, uint32_t softwareVersion) { - (static_cast(context))->OnSuccessResponse_10(softwareVersionString); + (static_cast(context))->OnSuccessResponse_10(softwareVersion); } static void OnFailureCallback_11(void * context, EmberAfStatus status) @@ -13203,9 +13365,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnFailureResponse_11(chip::to_underlying(status)); } - static void OnSuccessCallback_11(void * context, chip::CharSpan manufacturingDate) + static void OnSuccessCallback_11(void * context, chip::CharSpan softwareVersionString) { - (static_cast(context))->OnSuccessResponse_11(manufacturingDate); + (static_cast(context))->OnSuccessResponse_11(softwareVersionString); } static void OnFailureCallback_12(void * context, EmberAfStatus status) @@ -13213,9 +13375,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnFailureResponse_12(chip::to_underlying(status)); } - static void OnSuccessCallback_12(void * context, chip::CharSpan partNumber) + static void OnSuccessCallback_12(void * context, chip::CharSpan manufacturingDate) { - (static_cast(context))->OnSuccessResponse_12(partNumber); + (static_cast(context))->OnSuccessResponse_12(manufacturingDate); } static void OnFailureCallback_13(void * context, EmberAfStatus status) @@ -13223,9 +13385,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnFailureResponse_13(chip::to_underlying(status)); } - static void OnSuccessCallback_13(void * context, chip::CharSpan productURL) + static void OnSuccessCallback_13(void * context, chip::CharSpan partNumber) { - (static_cast(context))->OnSuccessResponse_13(productURL); + (static_cast(context))->OnSuccessResponse_13(partNumber); } static void OnFailureCallback_14(void * context, EmberAfStatus status) @@ -13233,9 +13395,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnFailureResponse_14(chip::to_underlying(status)); } - static void OnSuccessCallback_14(void * context, chip::CharSpan productLabel) + static void OnSuccessCallback_14(void * context, chip::CharSpan productURL) { - (static_cast(context))->OnSuccessResponse_14(productLabel); + (static_cast(context))->OnSuccessResponse_14(productURL); } static void OnFailureCallback_15(void * context, EmberAfStatus status) @@ -13243,9 +13405,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnFailureResponse_15(chip::to_underlying(status)); } - static void OnSuccessCallback_15(void * context, chip::CharSpan serialNumber) + static void OnSuccessCallback_15(void * context, chip::CharSpan productLabel) { - (static_cast(context))->OnSuccessResponse_15(serialNumber); + (static_cast(context))->OnSuccessResponse_15(productLabel); } static void OnFailureCallback_16(void * context, EmberAfStatus status) @@ -13253,9 +13415,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnFailureResponse_16(chip::to_underlying(status)); } - static void OnSuccessCallback_16(void * context, bool localConfigDisabled) + static void OnSuccessCallback_16(void * context, chip::CharSpan serialNumber) { - (static_cast(context))->OnSuccessResponse_16(localConfigDisabled); + (static_cast(context))->OnSuccessResponse_16(serialNumber); } static void OnFailureCallback_17(void * context, EmberAfStatus status) @@ -13263,9 +13425,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnFailureResponse_17(chip::to_underlying(status)); } - static void OnSuccessCallback_17(void * context, bool reachable) + static void OnSuccessCallback_17(void * context, bool localConfigDisabled) { - (static_cast(context))->OnSuccessResponse_17(reachable); + (static_cast(context))->OnSuccessResponse_17(localConfigDisabled); } static void OnFailureCallback_18(void * context, EmberAfStatus status) @@ -13273,47 +13435,59 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnFailureResponse_18(chip::to_underlying(status)); } - static void OnSuccessCallback_18(void * context, chip::CharSpan uniqueID) + static void OnSuccessCallback_18(void * context, bool reachable) + { + (static_cast(context))->OnSuccessResponse_18(reachable); + } + + static void OnFailureCallback_19(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_19(chip::to_underlying(status)); + } + + static void OnSuccessCallback_19(void * context, chip::CharSpan uniqueID) { - (static_cast(context))->OnSuccessResponse_18(uniqueID); + (static_cast(context))->OnSuccessResponse_19(uniqueID); } // // Tests methods // - CHIP_ERROR TestQueryInteractionModelVersion_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestQueryInteractionModelVersion_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint16_t interactionModelVersion) + void OnSuccessResponse_1(uint16_t interactionModelVersion) { VerifyOrReturn(CheckConstraintType("interactionModelVersion", "", "uint16")); NextTest(); } - CHIP_ERROR TestQueryVendorName_1() + CHIP_ERROR TestQueryVendorName_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(chip::CharSpan vendorName) + void OnSuccessResponse_2(chip::CharSpan vendorName) { VerifyOrReturn(CheckConstraintType("vendorName", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("vendorName", vendorName.size(), 32)); @@ -13321,38 +13495,38 @@ class Test_TC_DM_1_1 : public TestCommand NextTest(); } - CHIP_ERROR TestQueryVendorID_2() + CHIP_ERROR TestQueryVendorID_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_2, - OnFailureCallback_2); + return cluster.ReadAttribute(this, OnSuccessCallback_3, + OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint16_t vendorID) + void OnSuccessResponse_3(uint16_t vendorID) { VerifyOrReturn(CheckConstraintType("vendorID", "", "uint16")); NextTest(); } - CHIP_ERROR TestQueryProductName_3() + CHIP_ERROR TestQueryProductName_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_3, - OnFailureCallback_3); + return cluster.ReadAttribute(this, OnSuccessCallback_4, + OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(chip::CharSpan productName) + void OnSuccessResponse_4(chip::CharSpan productName) { VerifyOrReturn(CheckConstraintType("productName", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("productName", productName.size(), 32)); @@ -13360,38 +13534,38 @@ class Test_TC_DM_1_1 : public TestCommand NextTest(); } - CHIP_ERROR TestQueryProductID_4() + CHIP_ERROR TestQueryProductID_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_4, - OnFailureCallback_4); + return cluster.ReadAttribute(this, OnSuccessCallback_5, + OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(uint16_t productID) + void OnSuccessResponse_5(uint16_t productID) { VerifyOrReturn(CheckConstraintType("productID", "", "uint16")); NextTest(); } - CHIP_ERROR TestQueryNodeLabel_5() + CHIP_ERROR TestQueryNodeLabel_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_5, - OnFailureCallback_5); + return cluster.ReadAttribute(this, OnSuccessCallback_6, + OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(chip::CharSpan nodeLabel) + void OnSuccessResponse_6(chip::CharSpan nodeLabel) { VerifyOrReturn(CheckConstraintType("nodeLabel", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("nodeLabel", nodeLabel.size(), 32)); @@ -13399,19 +13573,19 @@ class Test_TC_DM_1_1 : public TestCommand NextTest(); } - CHIP_ERROR TestQueryUserLocation_6() + CHIP_ERROR TestQueryUserLocation_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_6, - OnFailureCallback_6); + return cluster.ReadAttribute(this, OnSuccessCallback_7, + OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(chip::CharSpan location) + void OnSuccessResponse_7(chip::CharSpan location) { VerifyOrReturn(CheckConstraintType("location", "", "string")); VerifyOrReturn(CheckConstraintFormat("location", "", "ISO 3166-1 alpha-2")); @@ -13420,38 +13594,38 @@ class Test_TC_DM_1_1 : public TestCommand NextTest(); } - CHIP_ERROR TestQueryHardwareVersion_7() + CHIP_ERROR TestQueryHardwareVersion_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_7, - OnFailureCallback_7); + return cluster.ReadAttribute(this, OnSuccessCallback_8, + OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(uint16_t hardwareVersion) + void OnSuccessResponse_8(uint16_t hardwareVersion) { VerifyOrReturn(CheckConstraintType("hardwareVersion", "", "uint16")); NextTest(); } - CHIP_ERROR TestQueryHardwareVersionString_8() + CHIP_ERROR TestQueryHardwareVersionString_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_8, OnFailureCallback_8); + this, OnSuccessCallback_9, OnFailureCallback_9); } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8(chip::CharSpan hardwareVersionString) + void OnSuccessResponse_9(chip::CharSpan hardwareVersionString) { VerifyOrReturn(CheckConstraintType("hardwareVersionString", "", "string")); VerifyOrReturn(CheckConstraintMinLength("hardwareVersionString", hardwareVersionString.size(), 1)); @@ -13460,38 +13634,38 @@ class Test_TC_DM_1_1 : public TestCommand NextTest(); } - CHIP_ERROR TestQuerySoftwareVersion_9() + CHIP_ERROR TestQuerySoftwareVersion_10() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_9, - OnFailureCallback_9); + return cluster.ReadAttribute(this, OnSuccessCallback_10, + OnFailureCallback_10); } - void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9(uint32_t softwareVersion) + void OnSuccessResponse_10(uint32_t softwareVersion) { VerifyOrReturn(CheckConstraintType("softwareVersion", "", "uint32")); NextTest(); } - CHIP_ERROR TestQuerySoftwareVersionString_10() + CHIP_ERROR TestQuerySoftwareVersionString_11() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_10, OnFailureCallback_10); + this, OnSuccessCallback_11, OnFailureCallback_11); } - void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_10(chip::CharSpan softwareVersionString) + void OnSuccessResponse_11(chip::CharSpan softwareVersionString) { VerifyOrReturn(CheckConstraintType("softwareVersionString", "", "string")); VerifyOrReturn(CheckConstraintFormat("softwareVersionString", "", "ASCII")); @@ -13501,22 +13675,22 @@ class Test_TC_DM_1_1 : public TestCommand NextTest(); } - CHIP_ERROR TestQueryManufacturingDate_11() + CHIP_ERROR TestQueryManufacturingDate_12() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_11, OnFailureCallback_11); + this, OnSuccessCallback_12, OnFailureCallback_12); } - void OnFailureResponse_11(uint8_t status) + void OnFailureResponse_12(uint8_t status) { (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); } - void OnSuccessResponse_11(chip::CharSpan manufacturingDate) + void OnSuccessResponse_12(chip::CharSpan manufacturingDate) { VerifyOrReturn(CheckConstraintType("manufacturingDate", "", "string")); VerifyOrReturn(CheckConstraintFormat("manufacturingDate", "", "ISO 8601")); @@ -13526,22 +13700,22 @@ class Test_TC_DM_1_1 : public TestCommand NextTest(); } - CHIP_ERROR TestQueryPartNumber_12() + CHIP_ERROR TestQueryPartNumber_13() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_12, - OnFailureCallback_12); + return cluster.ReadAttribute(this, OnSuccessCallback_13, + OnFailureCallback_13); } - void OnFailureResponse_12(uint8_t status) + void OnFailureResponse_13(uint8_t status) { (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); } - void OnSuccessResponse_12(chip::CharSpan partNumber) + void OnSuccessResponse_13(chip::CharSpan partNumber) { VerifyOrReturn(CheckConstraintType("partNumber", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("partNumber", partNumber.size(), 32)); @@ -13549,22 +13723,22 @@ class Test_TC_DM_1_1 : public TestCommand NextTest(); } - CHIP_ERROR TestQueryProductURL_13() + CHIP_ERROR TestQueryProductURL_14() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_13, - OnFailureCallback_13); + return cluster.ReadAttribute(this, OnSuccessCallback_14, + OnFailureCallback_14); } - void OnFailureResponse_13(uint8_t status) + void OnFailureResponse_14(uint8_t status) { (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); } - void OnSuccessResponse_13(chip::CharSpan productURL) + void OnSuccessResponse_14(chip::CharSpan productURL) { VerifyOrReturn(CheckConstraintType("productURL", "", "string")); VerifyOrReturn(CheckConstraintFormat("productURL", "", "RFC3986")); @@ -13573,22 +13747,22 @@ class Test_TC_DM_1_1 : public TestCommand NextTest(); } - CHIP_ERROR TestQueryProductLabel_14() + CHIP_ERROR TestQueryProductLabel_15() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_14, - OnFailureCallback_14); + return cluster.ReadAttribute(this, OnSuccessCallback_15, + OnFailureCallback_15); } - void OnFailureResponse_14(uint8_t status) + void OnFailureResponse_15(uint8_t status) { (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); } - void OnSuccessResponse_14(chip::CharSpan productLabel) + void OnSuccessResponse_15(chip::CharSpan productLabel) { VerifyOrReturn(CheckConstraintType("productLabel", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("productLabel", productLabel.size(), 64)); @@ -13596,22 +13770,22 @@ class Test_TC_DM_1_1 : public TestCommand NextTest(); } - CHIP_ERROR TestQuerySerialNumber_15() + CHIP_ERROR TestQuerySerialNumber_16() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_15, - OnFailureCallback_15); + return cluster.ReadAttribute(this, OnSuccessCallback_16, + OnFailureCallback_16); } - void OnFailureResponse_15(uint8_t status) + void OnFailureResponse_16(uint8_t status) { (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); } - void OnSuccessResponse_15(chip::CharSpan serialNumber) + void OnSuccessResponse_16(chip::CharSpan serialNumber) { VerifyOrReturn(CheckConstraintType("serialNumber", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("serialNumber", serialNumber.size(), 32)); @@ -13619,66 +13793,66 @@ class Test_TC_DM_1_1 : public TestCommand NextTest(); } - CHIP_ERROR TestQueryLocalConfigDisabled_16() + CHIP_ERROR TestQueryLocalConfigDisabled_17() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_16, OnFailureCallback_16); + this, OnSuccessCallback_17, OnFailureCallback_17); } - void OnFailureResponse_16(uint8_t status) + void OnFailureResponse_17(uint8_t status) { (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); } - void OnSuccessResponse_16(bool localConfigDisabled) + void OnSuccessResponse_17(bool localConfigDisabled) { VerifyOrReturn(CheckConstraintType("localConfigDisabled", "", "boolean")); NextTest(); } - CHIP_ERROR TestQueryReachable_17() + CHIP_ERROR TestQueryReachable_18() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_17, - OnFailureCallback_17); + return cluster.ReadAttribute(this, OnSuccessCallback_18, + OnFailureCallback_18); } - void OnFailureResponse_17(uint8_t status) + void OnFailureResponse_18(uint8_t status) { (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); } - void OnSuccessResponse_17(bool reachable) + void OnSuccessResponse_18(bool reachable) { VerifyOrReturn(CheckConstraintType("reachable", "", "boolean")); NextTest(); } - CHIP_ERROR TestQueryUniqueID_18() + CHIP_ERROR TestQueryUniqueID_19() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_18, - OnFailureCallback_18); + return cluster.ReadAttribute(this, OnSuccessCallback_19, + OnFailureCallback_19); } - void OnFailureResponse_18(uint8_t status) + void OnFailureResponse_19(uint8_t status) { (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); } - void OnSuccessResponse_18(chip::CharSpan uniqueID) + void OnSuccessResponse_19(chip::CharSpan uniqueID) { VerifyOrReturn(CheckConstraintType("uniqueID", "", "string")); VerifyOrReturn(CheckConstraintMaxLength("uniqueID", uniqueID.size(), 32)); @@ -13717,6 +13891,10 @@ class Test_TC_DM_3_1 : public TestCommand // 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; } if (CHIP_NO_ERROR != err) @@ -13728,11 +13906,13 @@ class Test_TC_DM_3_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 0; + const uint16_t mTestCount = 1; // // Tests methods // + + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } }; class Test_TC_DM_2_2 : public TestCommand @@ -13766,20 +13946,24 @@ class Test_TC_DM_2_2 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Query fabrics list\n"); - err = TestQueryFabricsList_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 : Query Supported Fabrics\n"); - err = TestQuerySupportedFabrics_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Query fabrics list\n"); + err = TestQueryFabricsList_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Query Commissioned Fabrics\n"); - err = TestQueryCommissionedFabrics_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Query Supported Fabrics\n"); + err = TestQuerySupportedFabrics_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Query User Trusted Root Certificates\n"); - err = TestQueryUserTrustedRootCertificates_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Query Commissioned Fabrics\n"); + err = TestQueryCommissionedFabrics_3(); + break; + case 4: + ChipLogProgress(chipTool, " ***** Test Step 4 : Query User Trusted Root Certificates\n"); + err = TestQueryUserTrustedRootCertificates_4(); break; } @@ -13792,69 +13976,71 @@ class Test_TC_DM_2_2 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 4; + const uint16_t mTestCount = 5; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } static void - OnSuccessCallback_0(void * context, + OnSuccessCallback_1(void * context, const chip::app::DataModel::DecodableList< chip::app::Clusters::OperationalCredentials::Structs::FabricDescriptor::DecodableType> & fabricsList) { - (static_cast(context))->OnSuccessResponse_0(fabricsList); + (static_cast(context))->OnSuccessResponse_1(fabricsList); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint8_t supportedFabrics) + static void OnSuccessCallback_2(void * context, uint8_t supportedFabrics) { - (static_cast(context))->OnSuccessResponse_1(supportedFabrics); + (static_cast(context))->OnSuccessResponse_2(supportedFabrics); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint8_t commissionedFabrics) + static void OnSuccessCallback_3(void * context, uint8_t commissionedFabrics) { - (static_cast(context))->OnSuccessResponse_2(commissionedFabrics); + (static_cast(context))->OnSuccessResponse_3(commissionedFabrics); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, + static void OnSuccessCallback_4(void * context, const chip::app::DataModel::DecodableList & trustedRootCertificates) { - (static_cast(context))->OnSuccessResponse_3(trustedRootCertificates); + (static_cast(context))->OnSuccessResponse_4(trustedRootCertificates); } // // Tests methods // - CHIP_ERROR TestQueryFabricsList_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestQueryFabricsList_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::OperationalCredentialsClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(const chip::app::DataModel::DecodableList< + void OnSuccessResponse_1(const chip::app::DataModel::DecodableList< chip::app::Clusters::OperationalCredentials::Structs::FabricDescriptor::DecodableType> & fabricsList) { auto iter = fabricsList.begin(); @@ -13864,57 +14050,57 @@ class Test_TC_DM_2_2 : public TestCommand NextTest(); } - CHIP_ERROR TestQuerySupportedFabrics_1() + CHIP_ERROR TestQuerySupportedFabrics_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::OperationalCredentialsClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_1, OnFailureCallback_1); + this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(uint8_t supportedFabrics) + void OnSuccessResponse_2(uint8_t supportedFabrics) { VerifyOrReturn(CheckValue("supportedFabrics", supportedFabrics, 16)); NextTest(); } - CHIP_ERROR TestQueryCommissionedFabrics_2() + CHIP_ERROR TestQueryCommissionedFabrics_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::OperationalCredentialsClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint8_t commissionedFabrics) + void OnSuccessResponse_3(uint8_t commissionedFabrics) { VerifyOrReturn(CheckValue("commissionedFabrics", commissionedFabrics, 1)); NextTest(); } - CHIP_ERROR TestQueryUserTrustedRootCertificates_3() + CHIP_ERROR TestQueryUserTrustedRootCertificates_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::OperationalCredentialsClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_3, OnFailureCallback_3); + this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(const chip::app::DataModel::DecodableList & trustedRootCertificates) + void OnSuccessResponse_4(const chip::app::DataModel::DecodableList & trustedRootCertificates) { VerifyOrReturn(CheckConstraintType("trustedRootCertificates", "", "list")); @@ -13953,17 +14139,21 @@ class Test_TC_EMR_1_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : read the global attribute: ClusterRevision\n"); - err = TestReadTheGlobalAttributeClusterRevision_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 : write the default values to mandatory global attribute: ClusterRevision\n"); - err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : read the global attribute: ClusterRevision\n"); + err = TestReadTheGlobalAttributeClusterRevision_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : reads back global attribute: ClusterRevision\n"); - err = TestReadsBackGlobalAttributeClusterRevision_2(); + ChipLogProgress(chipTool, + " ***** Test Step 2 : write the default values to mandatory global attribute: ClusterRevision\n"); + err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2(); + break; + case 3: + ChipLogProgress(chipTool, " ***** Test Step 3 : reads back global attribute: ClusterRevision\n"); + err = TestReadsBackGlobalAttributeClusterRevision_3(); break; } @@ -13976,59 +14166,61 @@ class Test_TC_EMR_1_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 3; + const uint16_t mTestCount = 4; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) + static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); + (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint16_t clusterRevision) + static void OnSuccessCallback_3(void * context, uint16_t clusterRevision) { - (static_cast(context))->OnSuccessResponse_2(clusterRevision); + (static_cast(context))->OnSuccessResponse_3(clusterRevision); } // // Tests methods // - CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ElectricalMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint16_t clusterRevision) + void OnSuccessResponse_1(uint16_t clusterRevision) { VerifyOrReturn(CheckValue("clusterRevision", clusterRevision, 3U)); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ElectricalMeasurementClusterTest cluster; @@ -14038,30 +14230,30 @@ class Test_TC_EMR_1_1 : public TestCommand clusterRevisionArgument = 1U; return cluster.WriteAttribute( - clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); + clusterRevisionArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) + void OnFailureResponse_2(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_1() { ThrowSuccessResponse(); } + void OnSuccessResponse_2() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_2() + CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ElectricalMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint16_t clusterRevision) + void OnSuccessResponse_3(uint16_t clusterRevision) { VerifyOrReturn(CheckValue("clusterRevision", clusterRevision, 3U)); @@ -14100,9 +14292,13 @@ class Test_TC_FLW_1_1 : public TestCommand 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 0 : write the default values to mandatory global attribute: ClusterRevision\n"); - err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_0(); + " ***** Test Step 1 : write the default values to mandatory global attribute: ClusterRevision\n"); + err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1(); break; } @@ -14115,20 +14311,22 @@ class Test_TC_FLW_1_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 1; + const uint16_t mTestCount = 2; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } // // Tests methods // - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; @@ -14138,16 +14336,16 @@ class Test_TC_FLW_1_1 : public TestCommand clusterRevisionArgument = 2U; return cluster.WriteAttribute( - clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) + void OnFailureResponse_1(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_0() { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } }; class Test_TC_FLW_2_1 : public TestCommand @@ -14181,36 +14379,40 @@ class Test_TC_FLW_2_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : read the mandatory attribute: MeasuredValue\n"); - err = TestReadTheMandatoryAttributeMeasuredValue_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 : read the mandatory attribute: MinMeasuredValue\n"); - err = TestReadTheMandatoryAttributeMinMeasuredValue_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : read the mandatory attribute: MeasuredValue\n"); + err = TestReadTheMandatoryAttributeMeasuredValue_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : read the mandatory attribute: MaxMeasuredValue\n"); - err = TestReadTheMandatoryAttributeMaxMeasuredValue_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : read the mandatory attribute: MinMeasuredValue\n"); + err = TestReadTheMandatoryAttributeMinMeasuredValue_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : write the default value to optional attribute: MinMeasuredValue\n"); - err = TestWriteTheDefaultValueToOptionalAttributeMinMeasuredValue_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : read the mandatory attribute: MaxMeasuredValue\n"); + err = TestReadTheMandatoryAttributeMaxMeasuredValue_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : write the default value to optional attribute: MaxMeasuredValue\n"); - err = TestWriteTheDefaultValueToOptionalAttributeMaxMeasuredValue_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : write the default value to optional attribute: MinMeasuredValue\n"); + err = TestWriteTheDefaultValueToOptionalAttributeMinMeasuredValue_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : read the mandatory attribute: MeasuredValue\n"); - err = TestReadTheMandatoryAttributeMeasuredValue_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : write the default value to optional attribute: MaxMeasuredValue\n"); + err = TestWriteTheDefaultValueToOptionalAttributeMaxMeasuredValue_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : read the mandatory attribute: MinMeasuredValue\n"); - err = TestReadTheMandatoryAttributeMinMeasuredValue_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : read the mandatory attribute: MeasuredValue\n"); + err = TestReadTheMandatoryAttributeMeasuredValue_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : read the mandatory attribute: MaxMeasuredValue\n"); - err = TestReadTheMandatoryAttributeMaxMeasuredValue_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : read the mandatory attribute: MinMeasuredValue\n"); + err = TestReadTheMandatoryAttributeMinMeasuredValue_7(); + break; + case 8: + ChipLogProgress(chipTool, " ***** Test Step 8 : read the mandatory attribute: MaxMeasuredValue\n"); + err = TestReadTheMandatoryAttributeMaxMeasuredValue_8(); break; } @@ -14223,26 +14425,16 @@ class Test_TC_FLW_2_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 8; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context, int16_t measuredValue) - { - (static_cast(context))->OnSuccessResponse_0(measuredValue); - } + const uint16_t mTestCount = 9; static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, int16_t minMeasuredValue) + static void OnSuccessCallback_1(void * context, int16_t measuredValue) { - (static_cast(context))->OnSuccessResponse_1(minMeasuredValue); + (static_cast(context))->OnSuccessResponse_1(measuredValue); } static void OnFailureCallback_2(void * context, EmberAfStatus status) @@ -14250,9 +14442,9 @@ class Test_TC_FLW_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, int16_t maxMeasuredValue) + static void OnSuccessCallback_2(void * context, int16_t minMeasuredValue) { - (static_cast(context))->OnSuccessResponse_2(maxMeasuredValue); + (static_cast(context))->OnSuccessResponse_2(minMeasuredValue); } static void OnFailureCallback_3(void * context, EmberAfStatus status) @@ -14260,7 +14452,10 @@ class Test_TC_FLW_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } + static void OnSuccessCallback_3(void * context, int16_t maxMeasuredValue) + { + (static_cast(context))->OnSuccessResponse_3(maxMeasuredValue); + } static void OnFailureCallback_4(void * context, EmberAfStatus status) { @@ -14274,19 +14469,16 @@ class Test_TC_FLW_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, int16_t measuredValue) - { - (static_cast(context))->OnSuccessResponse_5(measuredValue); - } + static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } static void OnFailureCallback_6(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, int16_t minMeasuredValue) + static void OnSuccessCallback_6(void * context, int16_t measuredValue) { - (static_cast(context))->OnSuccessResponse_6(minMeasuredValue); + (static_cast(context))->OnSuccessResponse_6(measuredValue); } static void OnFailureCallback_7(void * context, EmberAfStatus status) @@ -14294,73 +14486,85 @@ class Test_TC_FLW_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, int16_t maxMeasuredValue) + static void OnSuccessCallback_7(void * context, int16_t minMeasuredValue) + { + (static_cast(context))->OnSuccessResponse_7(minMeasuredValue); + } + + static void OnFailureCallback_8(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); + } + + static void OnSuccessCallback_8(void * context, int16_t maxMeasuredValue) { - (static_cast(context))->OnSuccessResponse_7(maxMeasuredValue); + (static_cast(context))->OnSuccessResponse_8(maxMeasuredValue); } // // Tests methods // - CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(int16_t measuredValue) + void OnSuccessResponse_1(int16_t measuredValue) { VerifyOrReturn(CheckConstraintType("measuredValue", "", "uint16")); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeMinMeasuredValue_1() + CHIP_ERROR TestReadTheMandatoryAttributeMinMeasuredValue_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_1, OnFailureCallback_1); + this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(int16_t minMeasuredValue) + void OnSuccessResponse_2(int16_t minMeasuredValue) { VerifyOrReturn(CheckConstraintType("minMeasuredValue", "", "uint16")); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeMaxMeasuredValue_2() + CHIP_ERROR TestReadTheMandatoryAttributeMaxMeasuredValue_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(int16_t maxMeasuredValue) + void OnSuccessResponse_3(int16_t maxMeasuredValue) { VerifyOrReturn(CheckConstraintType("maxMeasuredValue", "", "uint16")); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValueToOptionalAttributeMinMeasuredValue_3() + CHIP_ERROR TestWriteTheDefaultValueToOptionalAttributeMinMeasuredValue_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; @@ -14370,18 +14574,18 @@ class Test_TC_FLW_2_1 : public TestCommand minMeasuredValueArgument = 0; return cluster.WriteAttribute( - minMeasuredValueArgument, this, OnSuccessCallback_3, OnFailureCallback_3); + minMeasuredValueArgument, this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) + void OnFailureResponse_4(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_3() { ThrowSuccessResponse(); } + void OnSuccessResponse_4() { ThrowSuccessResponse(); } - CHIP_ERROR TestWriteTheDefaultValueToOptionalAttributeMaxMeasuredValue_4() + CHIP_ERROR TestWriteTheDefaultValueToOptionalAttributeMaxMeasuredValue_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; @@ -14391,68 +14595,68 @@ class Test_TC_FLW_2_1 : public TestCommand maxMeasuredValueArgument = 0; return cluster.WriteAttribute( - maxMeasuredValueArgument, this, OnSuccessCallback_4, OnFailureCallback_4); + maxMeasuredValueArgument, this, OnSuccessCallback_5, OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) + void OnFailureResponse_5(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_4() { ThrowSuccessResponse(); } + void OnSuccessResponse_5() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_5() + CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_5, OnFailureCallback_5); + this, OnSuccessCallback_6, OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(int16_t measuredValue) + void OnSuccessResponse_6(int16_t measuredValue) { VerifyOrReturn(CheckConstraintType("measuredValue", "", "uint16")); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeMinMeasuredValue_6() + CHIP_ERROR TestReadTheMandatoryAttributeMinMeasuredValue_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_6, OnFailureCallback_6); + this, OnSuccessCallback_7, OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(int16_t minMeasuredValue) + void OnSuccessResponse_7(int16_t minMeasuredValue) { VerifyOrReturn(CheckConstraintType("minMeasuredValue", "", "uint16")); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeMaxMeasuredValue_7() + CHIP_ERROR TestReadTheMandatoryAttributeMaxMeasuredValue_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_7, OnFailureCallback_7); + this, OnSuccessCallback_8, OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(int16_t maxMeasuredValue) + void OnSuccessResponse_8(int16_t maxMeasuredValue) { VerifyOrReturn(CheckConstraintType("maxMeasuredValue", "", "uint16")); @@ -14491,13 +14695,17 @@ class Test_TC_FLW_2_2 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : read the mandatory attribute: MeasuredValue\n"); - err = TestReadTheMandatoryAttributeMeasuredValue_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 : read the mandatory attribute: MeasuredValue\n"); err = TestReadTheMandatoryAttributeMeasuredValue_1(); break; + case 2: + ChipLogProgress(chipTool, " ***** Test Step 2 : read the mandatory attribute: MeasuredValue\n"); + err = TestReadTheMandatoryAttributeMeasuredValue_2(); + break; } if (CHIP_NO_ERROR != err) @@ -14509,64 +14717,66 @@ class Test_TC_FLW_2_2 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 2; + const uint16_t mTestCount = 3; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, int16_t measuredValue) + static void OnSuccessCallback_1(void * context, int16_t measuredValue) { - (static_cast(context))->OnSuccessResponse_0(measuredValue); + (static_cast(context))->OnSuccessResponse_1(measuredValue); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, int16_t measuredValue) + static void OnSuccessCallback_2(void * context, int16_t measuredValue) { - (static_cast(context))->OnSuccessResponse_1(measuredValue); + (static_cast(context))->OnSuccessResponse_2(measuredValue); } // // Tests methods // - CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(int16_t measuredValue) + void OnSuccessResponse_1(int16_t measuredValue) { VerifyOrReturn(CheckConstraintType("measuredValue", "", "uint16")); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_1() + CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::FlowMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_1, OnFailureCallback_1); + this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(int16_t measuredValue) + void OnSuccessResponse_2(int16_t measuredValue) { VerifyOrReturn(CheckConstraintType("measuredValue", "", "uint16")); @@ -14605,17 +14815,21 @@ class Test_TC_ILL_1_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : read the global attribute: ClusterRevision\n"); - err = TestReadTheGlobalAttributeClusterRevision_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 : write the default values to mandatory global attribute: ClusterRevision\n"); - err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : read the global attribute: ClusterRevision\n"); + err = TestReadTheGlobalAttributeClusterRevision_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : reads back global attribute: ClusterRevision\n"); - err = TestReadsBackGlobalAttributeClusterRevision_2(); + ChipLogProgress(chipTool, + " ***** Test Step 2 : write the default values to mandatory global attribute: ClusterRevision\n"); + err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2(); + break; + case 3: + ChipLogProgress(chipTool, " ***** Test Step 3 : reads back global attribute: ClusterRevision\n"); + err = TestReadsBackGlobalAttributeClusterRevision_3(); break; } @@ -14628,59 +14842,61 @@ class Test_TC_ILL_1_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 3; + const uint16_t mTestCount = 4; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) + static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); + (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint16_t clusterRevision) + static void OnSuccessCallback_3(void * context, uint16_t clusterRevision) { - (static_cast(context))->OnSuccessResponse_2(clusterRevision); + (static_cast(context))->OnSuccessResponse_3(clusterRevision); } // // Tests methods // - CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::IlluminanceMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint16_t clusterRevision) + void OnSuccessResponse_1(uint16_t clusterRevision) { VerifyOrReturn(CheckValue("clusterRevision", clusterRevision, 2U)); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::IlluminanceMeasurementClusterTest cluster; @@ -14690,30 +14906,30 @@ class Test_TC_ILL_1_1 : public TestCommand clusterRevisionArgument = 1U; return cluster.WriteAttribute( - clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); + clusterRevisionArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) + void OnFailureResponse_2(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_1() { ThrowSuccessResponse(); } + void OnSuccessResponse_2() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_2() + CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::IlluminanceMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint16_t clusterRevision) + void OnSuccessResponse_3(uint16_t clusterRevision) { VerifyOrReturn(CheckValue("clusterRevision", clusterRevision, 2U)); @@ -14752,9 +14968,13 @@ class Test_TC_LVL_1_1 : public TestCommand 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 0 : write the default values to mandatory global attribute: ClusterRevision\n"); - err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_0(); + " ***** Test Step 1 : write the default values to mandatory global attribute: ClusterRevision\n"); + err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1(); break; } @@ -14767,20 +14987,22 @@ class Test_TC_LVL_1_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 1; + const uint16_t mTestCount = 2; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } // // Tests methods // - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::LevelControlClusterTest cluster; @@ -14790,16 +15012,16 @@ class Test_TC_LVL_1_1 : public TestCommand clusterRevisionArgument = 4U; return cluster.WriteAttribute( - clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) + void OnFailureResponse_1(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_0() { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } }; class Test_TC_LVL_2_1 : public TestCommand @@ -14833,56 +15055,60 @@ class Test_TC_LVL_2_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : reads current Level attribute from DUT\n"); - err = TestReadsCurrentLevelAttributeFromDut_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 : sends a Move to level command\n"); - err = TestSendsAMoveToLevelCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : reads current Level attribute from DUT\n"); + err = TestReadsCurrentLevelAttributeFromDut_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Wait 100ms\n"); - err = TestWait100ms_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : sends a Move to level command\n"); + err = TestSendsAMoveToLevelCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : reads current Level attribute from DUT\n"); - err = TestReadsCurrentLevelAttributeFromDut_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Wait 100ms\n"); + err = TestWait100ms_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : sends a Move to level command\n"); - err = TestSendsAMoveToLevelCommand_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : reads current Level attribute from DUT\n"); + err = TestReadsCurrentLevelAttributeFromDut_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Wait 200ms\n"); - err = TestWait200ms_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : sends a Move to level command\n"); + err = TestSendsAMoveToLevelCommand_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : reads current Level attribute from DUT\n"); - err = TestReadsCurrentLevelAttributeFromDut_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Wait 200ms\n"); + err = TestWait200ms_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : reads On Off Transition Time attribute from DUT\n"); - err = TestReadsOnOffTransitionTimeAttributeFromDut_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : reads current Level attribute from DUT\n"); + err = TestReadsCurrentLevelAttributeFromDut_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : sends a Move to level command\n"); - err = TestSendsAMoveToLevelCommand_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : reads On Off Transition Time attribute from DUT\n"); + err = TestReadsOnOffTransitionTimeAttributeFromDut_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Wait 10ms\n"); - err = TestWait10ms_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : sends a Move to level command\n"); + err = TestSendsAMoveToLevelCommand_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : reads current Level attribute from DUT\n"); - err = TestReadsCurrentLevelAttributeFromDut_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : Wait 10ms\n"); + err = TestWait10ms_10(); break; case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : Reset level to 0\n"); - err = TestResetLevelTo0_11(); + ChipLogProgress(chipTool, " ***** Test Step 11 : reads current Level attribute from DUT\n"); + err = TestReadsCurrentLevelAttributeFromDut_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : Wait 100ms\n"); - err = TestWait100ms_12(); + ChipLogProgress(chipTool, " ***** Test Step 12 : Reset level to 0\n"); + err = TestResetLevelTo0_12(); + break; + case 13: + ChipLogProgress(chipTool, " ***** Test Step 13 : Wait 100ms\n"); + err = TestWait100ms_13(); break; } @@ -14895,82 +15121,84 @@ class Test_TC_LVL_2_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 13; + const uint16_t mTestCount = 14; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint8_t currentLevel) + static void OnSuccessCallback_1(void * context, uint8_t currentLevel) { - (static_cast(context))->OnSuccessResponse_0(currentLevel); + (static_cast(context))->OnSuccessResponse_1(currentLevel); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, uint8_t currentLevel) + static void OnSuccessCallback_4(void * context, uint8_t currentLevel) { - (static_cast(context))->OnSuccessResponse_3(currentLevel); + (static_cast(context))->OnSuccessResponse_4(currentLevel); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, uint8_t currentLevel) + static void OnSuccessCallback_7(void * context, uint8_t currentLevel) { - (static_cast(context))->OnSuccessResponse_6(currentLevel); + (static_cast(context))->OnSuccessResponse_7(currentLevel); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, uint16_t onOffTransitionTime) + static void OnSuccessCallback_8(void * context, uint16_t onOffTransitionTime) { - (static_cast(context))->OnSuccessResponse_7(onOffTransitionTime); + (static_cast(context))->OnSuccessResponse_8(onOffTransitionTime); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_11(chip::to_underlying(status)); } - static void OnSuccessCallback_10(void * context, uint8_t currentLevel) + static void OnSuccessCallback_11(void * context, uint8_t currentLevel) { - (static_cast(context))->OnSuccessResponse_10(currentLevel); + (static_cast(context))->OnSuccessResponse_11(currentLevel); } // // Tests methods // - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint8_t currentLevel) + void OnSuccessResponse_1(uint8_t currentLevel) { VerifyOrReturn(CheckValue("currentLevel", currentLevel, 0)); NextTest(); } - CHIP_ERROR TestSendsAMoveToLevelCommand_1() + CHIP_ERROR TestSendsAMoveToLevelCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type; @@ -14982,43 +15210,43 @@ class Test_TC_LVL_2_1 : public TestCommand request.optionOverride = 1; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_1(); + (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_2(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1() { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } - CHIP_ERROR TestWait100ms_2() { return WaitForMs(100); } + CHIP_ERROR TestWait100ms_3() { return WaitForMs(100); } - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_3() + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_3, OnFailureCallback_3); + this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint8_t currentLevel) + void OnSuccessResponse_4(uint8_t currentLevel) { VerifyOrReturn(CheckValue("currentLevel", currentLevel, 64)); NextTest(); } - CHIP_ERROR TestSendsAMoveToLevelCommand_4() + CHIP_ERROR TestSendsAMoveToLevelCommand_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type; @@ -15030,62 +15258,62 @@ class Test_TC_LVL_2_1 : public TestCommand request.optionOverride = 1; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_4(); + (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_5(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4() { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } - CHIP_ERROR TestWait200ms_5() { return WaitForMs(200); } + CHIP_ERROR TestWait200ms_6() { return WaitForMs(200); } - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_6() + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_6, OnFailureCallback_6); + this, OnSuccessCallback_7, OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(uint8_t currentLevel) + void OnSuccessResponse_7(uint8_t currentLevel) { VerifyOrReturn(CheckValue("currentLevel", currentLevel, 128)); NextTest(); } - CHIP_ERROR TestReadsOnOffTransitionTimeAttributeFromDut_7() + CHIP_ERROR TestReadsOnOffTransitionTimeAttributeFromDut_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_7, OnFailureCallback_7); + this, OnSuccessCallback_8, OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(uint16_t onOffTransitionTime) + void OnSuccessResponse_8(uint16_t onOffTransitionTime) { VerifyOrReturn(CheckValue("onOffTransitionTime", onOffTransitionTime, 0U)); NextTest(); } - CHIP_ERROR TestSendsAMoveToLevelCommand_8() + CHIP_ERROR TestSendsAMoveToLevelCommand_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type; @@ -15097,43 +15325,43 @@ class Test_TC_LVL_2_1 : public TestCommand request.optionOverride = 1; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_8(); + (static_cast(context))->OnSuccessResponse_9(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_9(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8() { NextTest(); } + void OnSuccessResponse_9() { NextTest(); } - CHIP_ERROR TestWait10ms_9() { return WaitForMs(10); } + CHIP_ERROR TestWait10ms_10() { return WaitForMs(10); } - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_10() + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_11() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_10, OnFailureCallback_10); + this, OnSuccessCallback_11, OnFailureCallback_11); } - void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_10(uint8_t currentLevel) + void OnSuccessResponse_11(uint8_t currentLevel) { VerifyOrReturn(CheckValue("currentLevel", currentLevel, 254)); NextTest(); } - CHIP_ERROR TestResetLevelTo0_11() + CHIP_ERROR TestResetLevelTo0_12() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type; @@ -15145,22 +15373,22 @@ class Test_TC_LVL_2_1 : public TestCommand request.optionOverride = 1; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_11(); + (static_cast(context))->OnSuccessResponse_12(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_12(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_11() { NextTest(); } + void OnSuccessResponse_12() { NextTest(); } - CHIP_ERROR TestWait100ms_12() { return WaitForMs(100); } + CHIP_ERROR TestWait100ms_13() { return WaitForMs(100); } }; class Test_TC_LVL_3_1 : public TestCommand @@ -15194,60 +15422,64 @@ class Test_TC_LVL_3_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : reads current level attribute from DUT\n"); - err = TestReadsCurrentLevelAttributeFromDut_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 : reads max level attribute from DUT\n"); - err = TestReadsMaxLevelAttributeFromDut_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : reads current level attribute from DUT\n"); + err = TestReadsCurrentLevelAttributeFromDut_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : sends a Move up command\n"); - err = TestSendsAMoveUpCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : reads max level attribute from DUT\n"); + err = TestReadsMaxLevelAttributeFromDut_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Wait 3000ms\n"); - err = TestWait3000ms_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : sends a Move up command\n"); + err = TestSendsAMoveUpCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : reads current level attribute from DUT\n"); - err = TestReadsCurrentLevelAttributeFromDut_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Wait 3000ms\n"); + err = TestWait3000ms_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : reads min level attribute from DUT\n"); - err = TestReadsMinLevelAttributeFromDut_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : reads current level attribute from DUT\n"); + err = TestReadsCurrentLevelAttributeFromDut_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : sends a Move down command\n"); - err = TestSendsAMoveDownCommand_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : reads min level attribute from DUT\n"); + err = TestReadsMinLevelAttributeFromDut_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Wait 3000ms\n"); - err = TestWait3000ms_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : sends a Move down command\n"); + err = TestSendsAMoveDownCommand_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : reads current level attribute from DUT\n"); - err = TestReadsCurrentLevelAttributeFromDut_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : Wait 3000ms\n"); + err = TestWait3000ms_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Write default move rate attribute from DUT\n"); - err = TestWriteDefaultMoveRateAttributeFromDut_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : reads current level attribute from DUT\n"); + err = TestReadsCurrentLevelAttributeFromDut_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : reads default move rate attribute from DUT\n"); - err = TestReadsDefaultMoveRateAttributeFromDut_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : Write default move rate attribute from DUT\n"); + err = TestWriteDefaultMoveRateAttributeFromDut_10(); break; case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : sends a Move up command at default move rate\n"); - err = TestSendsAMoveUpCommandAtDefaultMoveRate_11(); + ChipLogProgress(chipTool, " ***** Test Step 11 : reads default move rate attribute from DUT\n"); + err = TestReadsDefaultMoveRateAttributeFromDut_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : Wait 100ms\n"); - err = TestWait100ms_12(); + ChipLogProgress(chipTool, " ***** Test Step 12 : sends a Move up command at default move rate\n"); + err = TestSendsAMoveUpCommandAtDefaultMoveRate_12(); break; case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : reads current level attribute from DUT\n"); - err = TestReadsCurrentLevelAttributeFromDut_13(); + ChipLogProgress(chipTool, " ***** Test Step 13 : Wait 100ms\n"); + err = TestWait100ms_13(); + break; + case 14: + ChipLogProgress(chipTool, " ***** Test Step 14 : reads current level attribute from DUT\n"); + err = TestReadsCurrentLevelAttributeFromDut_14(); break; } @@ -15260,36 +15492,26 @@ class Test_TC_LVL_3_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 14; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context, uint8_t currentLevel) - { - (static_cast(context))->OnSuccessResponse_0(currentLevel); - } + const uint16_t mTestCount = 15; static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint8_t maxLevel) + static void OnSuccessCallback_1(void * context, uint8_t currentLevel) { - (static_cast(context))->OnSuccessResponse_1(maxLevel); + (static_cast(context))->OnSuccessResponse_1(currentLevel); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, uint8_t currentLevel) + static void OnSuccessCallback_2(void * context, uint8_t maxLevel) { - (static_cast(context))->OnSuccessResponse_4(currentLevel); + (static_cast(context))->OnSuccessResponse_2(maxLevel); } static void OnFailureCallback_5(void * context, EmberAfStatus status) @@ -15297,19 +15519,19 @@ class Test_TC_LVL_3_1 : public TestCommand (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, uint8_t minLevel) + static void OnSuccessCallback_5(void * context, uint8_t currentLevel) { - (static_cast(context))->OnSuccessResponse_5(minLevel); + (static_cast(context))->OnSuccessResponse_5(currentLevel); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_8(void * context, uint8_t currentLevel) + static void OnSuccessCallback_6(void * context, uint8_t minLevel) { - (static_cast(context))->OnSuccessResponse_8(currentLevel); + (static_cast(context))->OnSuccessResponse_6(minLevel); } static void OnFailureCallback_9(void * context, EmberAfStatus status) @@ -15317,71 +15539,83 @@ class Test_TC_LVL_3_1 : public TestCommand (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); } - static void OnSuccessCallback_9(void * context) { (static_cast(context))->OnSuccessResponse_9(); } + static void OnSuccessCallback_9(void * context, uint8_t currentLevel) + { + (static_cast(context))->OnSuccessResponse_9(currentLevel); + } static void OnFailureCallback_10(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); } - static void OnSuccessCallback_10(void * context, const chip::app::DataModel::Nullable & defaultMoveRate) + static void OnSuccessCallback_10(void * context) { (static_cast(context))->OnSuccessResponse_10(); } + + static void OnFailureCallback_11(void * context, EmberAfStatus status) { - (static_cast(context))->OnSuccessResponse_10(defaultMoveRate); + (static_cast(context))->OnFailureResponse_11(chip::to_underlying(status)); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnSuccessCallback_11(void * context, const chip::app::DataModel::Nullable & defaultMoveRate) + { + (static_cast(context))->OnSuccessResponse_11(defaultMoveRate); + } + + static void OnFailureCallback_14(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_13(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_14(chip::to_underlying(status)); } - static void OnSuccessCallback_13(void * context, uint8_t currentLevel) + static void OnSuccessCallback_14(void * context, uint8_t currentLevel) { - (static_cast(context))->OnSuccessResponse_13(currentLevel); + (static_cast(context))->OnSuccessResponse_14(currentLevel); } // // Tests methods // - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint8_t currentLevel) + void OnSuccessResponse_1(uint8_t currentLevel) { VerifyOrReturn(CheckValue("currentLevel", currentLevel, 0)); NextTest(); } - CHIP_ERROR TestReadsMaxLevelAttributeFromDut_1() + CHIP_ERROR TestReadsMaxLevelAttributeFromDut_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(uint8_t maxLevel) + void OnSuccessResponse_2(uint8_t maxLevel) { VerifyOrReturn(CheckValue("maxLevel", maxLevel, 255)); NextTest(); } - CHIP_ERROR TestSendsAMoveUpCommand_2() + CHIP_ERROR TestSendsAMoveUpCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::Move::Type; @@ -15393,62 +15627,62 @@ class Test_TC_LVL_3_1 : public TestCommand request.optionOverride = 1; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestWait3000ms_3() { return WaitForMs(3000); } + CHIP_ERROR TestWait3000ms_4() { return WaitForMs(3000); } - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_4() + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_4, OnFailureCallback_4); + this, OnSuccessCallback_5, OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(uint8_t currentLevel) + void OnSuccessResponse_5(uint8_t currentLevel) { VerifyOrReturn(CheckValue("currentLevel", currentLevel, 255)); NextTest(); } - CHIP_ERROR TestReadsMinLevelAttributeFromDut_5() + CHIP_ERROR TestReadsMinLevelAttributeFromDut_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_5, - OnFailureCallback_5); + return cluster.ReadAttribute(this, OnSuccessCallback_6, + OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(uint8_t minLevel) + void OnSuccessResponse_6(uint8_t minLevel) { VerifyOrReturn(CheckValue("minLevel", minLevel, 0)); NextTest(); } - CHIP_ERROR TestSendsAMoveDownCommand_6() + CHIP_ERROR TestSendsAMoveDownCommand_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::Move::Type; @@ -15460,43 +15694,43 @@ class Test_TC_LVL_3_1 : public TestCommand request.optionOverride = 1; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_6(); + (static_cast(context))->OnSuccessResponse_7(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_7(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6() { NextTest(); } + void OnSuccessResponse_7() { NextTest(); } - CHIP_ERROR TestWait3000ms_7() { return WaitForMs(3000); } + CHIP_ERROR TestWait3000ms_8() { return WaitForMs(3000); } - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_8() + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_8, OnFailureCallback_8); + this, OnSuccessCallback_9, OnFailureCallback_9); } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8(uint8_t currentLevel) + void OnSuccessResponse_9(uint8_t currentLevel) { VerifyOrReturn(CheckValue("currentLevel", currentLevel, 0)); NextTest(); } - CHIP_ERROR TestWriteDefaultMoveRateAttributeFromDut_9() + CHIP_ERROR TestWriteDefaultMoveRateAttributeFromDut_10() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::LevelControlClusterTest cluster; @@ -15506,26 +15740,26 @@ class Test_TC_LVL_3_1 : public TestCommand defaultMoveRateArgument.SetNonNull() = 20; return cluster.WriteAttribute( - defaultMoveRateArgument, this, OnSuccessCallback_9, OnFailureCallback_9); + defaultMoveRateArgument, this, OnSuccessCallback_10, OnFailureCallback_10); } - void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9() { NextTest(); } + void OnSuccessResponse_10() { NextTest(); } - CHIP_ERROR TestReadsDefaultMoveRateAttributeFromDut_10() + CHIP_ERROR TestReadsDefaultMoveRateAttributeFromDut_11() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_10, OnFailureCallback_10); + this, OnSuccessCallback_11, OnFailureCallback_11); } - void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_10(const chip::app::DataModel::Nullable & defaultMoveRate) + void OnSuccessResponse_11(const chip::app::DataModel::Nullable & defaultMoveRate) { VerifyOrReturn(CheckValueNonNull("defaultMoveRate", defaultMoveRate)); VerifyOrReturn(CheckValue("defaultMoveRate.Value()", defaultMoveRate.Value(), 20)); @@ -15533,7 +15767,7 @@ class Test_TC_LVL_3_1 : public TestCommand NextTest(); } - CHIP_ERROR TestSendsAMoveUpCommandAtDefaultMoveRate_11() + CHIP_ERROR TestSendsAMoveUpCommandAtDefaultMoveRate_12() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::Move::Type; @@ -15545,36 +15779,36 @@ class Test_TC_LVL_3_1 : public TestCommand request.optionOverride = 1; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_11(); + (static_cast(context))->OnSuccessResponse_12(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_12(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_11() { NextTest(); } + void OnSuccessResponse_12() { NextTest(); } - CHIP_ERROR TestWait100ms_12() { return WaitForMs(100); } + CHIP_ERROR TestWait100ms_13() { return WaitForMs(100); } - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_13() + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_14() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_13, OnFailureCallback_13); + this, OnSuccessCallback_14, OnFailureCallback_14); } - void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_13(uint8_t currentLevel) + void OnSuccessResponse_14(uint8_t currentLevel) { VerifyOrReturn(CheckConstraintNotValue("currentLevel", currentLevel, 255)); @@ -15613,48 +15847,52 @@ class Test_TC_LVL_4_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Sending on command\n"); - err = TestSendingOnCommand_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 : Precondition: DUT level is set to 0x80\n"); - err = TestPreconditionDutLevelIsSetTo0x80_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Sending on command\n"); + err = TestSendingOnCommand_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Wait 3000ms\n"); - err = TestWait3000ms_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Precondition: DUT level is set to 0x80\n"); + err = TestPreconditionDutLevelIsSetTo0x80_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Reads current level attribute from DUT\n"); - err = TestReadsCurrentLevelAttributeFromDut_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Wait 3000ms\n"); + err = TestWait3000ms_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Sends step down command to DUT\n"); - err = TestSendsStepDownCommandToDut_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Reads current level attribute from DUT\n"); + err = TestReadsCurrentLevelAttributeFromDut_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Wait 3000ms\n"); - err = TestWait3000ms_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Sends step down command to DUT\n"); + err = TestSendsStepDownCommandToDut_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Reads current level attribute from DUT\n"); - err = TestReadsCurrentLevelAttributeFromDut_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Wait 3000ms\n"); + err = TestWait3000ms_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Sends a Step up command\n"); - err = TestSendsAStepUpCommand_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Reads current level attribute from DUT\n"); + err = TestReadsCurrentLevelAttributeFromDut_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Wait 3000ms\n"); - err = TestWait3000ms_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : Sends a Step up command\n"); + err = TestSendsAStepUpCommand_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Reads current level attribute from DUT\n"); - err = TestReadsCurrentLevelAttributeFromDut_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : Wait 3000ms\n"); + err = TestWait3000ms_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Sending off command\n"); - err = TestSendingOffCommand_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : Reads current level attribute from DUT\n"); + err = TestReadsCurrentLevelAttributeFromDut_10(); + break; + case 11: + ChipLogProgress(chipTool, " ***** Test Step 11 : Sending off command\n"); + err = TestSendingOffCommand_11(); break; } @@ -15667,43 +15905,45 @@ class Test_TC_LVL_4_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 11; + const uint16_t mTestCount = 12; - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, uint8_t currentLevel) + static void OnSuccessCallback_4(void * context, uint8_t currentLevel) { - (static_cast(context))->OnSuccessResponse_3(currentLevel); + (static_cast(context))->OnSuccessResponse_4(currentLevel); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, uint8_t currentLevel) + static void OnSuccessCallback_7(void * context, uint8_t currentLevel) { - (static_cast(context))->OnSuccessResponse_6(currentLevel); + (static_cast(context))->OnSuccessResponse_7(currentLevel); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); } - static void OnSuccessCallback_9(void * context, uint8_t currentLevel) + static void OnSuccessCallback_10(void * context, uint8_t currentLevel) { - (static_cast(context))->OnSuccessResponse_9(currentLevel); + (static_cast(context))->OnSuccessResponse_10(currentLevel); } // // Tests methods // - CHIP_ERROR TestSendingOnCommand_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestSendingOnCommand_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -15711,22 +15951,22 @@ class Test_TC_LVL_4_1 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestPreconditionDutLevelIsSetTo0x80_1() + CHIP_ERROR TestPreconditionDutLevelIsSetTo0x80_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::Step::Type; @@ -15739,43 +15979,43 @@ class Test_TC_LVL_4_1 : public TestCommand request.optionOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_1(); + (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_2(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1() { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } - CHIP_ERROR TestWait3000ms_2() { return WaitForMs(3000); } + CHIP_ERROR TestWait3000ms_3() { return WaitForMs(3000); } - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_3() + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_3, OnFailureCallback_3); + this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint8_t currentLevel) + void OnSuccessResponse_4(uint8_t currentLevel) { VerifyOrReturn(CheckValue("currentLevel", currentLevel, 128)); NextTest(); } - CHIP_ERROR TestSendsStepDownCommandToDut_4() + CHIP_ERROR TestSendsStepDownCommandToDut_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::Step::Type; @@ -15788,43 +16028,43 @@ class Test_TC_LVL_4_1 : public TestCommand request.optionOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_4(); + (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_5(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4() { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } - CHIP_ERROR TestWait3000ms_5() { return WaitForMs(3000); } + CHIP_ERROR TestWait3000ms_6() { return WaitForMs(3000); } - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_6() + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_6, OnFailureCallback_6); + this, OnSuccessCallback_7, OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(uint8_t currentLevel) + void OnSuccessResponse_7(uint8_t currentLevel) { VerifyOrReturn(CheckValue("currentLevel", currentLevel, 64)); NextTest(); } - CHIP_ERROR TestSendsAStepUpCommand_7() + CHIP_ERROR TestSendsAStepUpCommand_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::Step::Type; @@ -15837,43 +16077,43 @@ class Test_TC_LVL_4_1 : public TestCommand request.optionOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_7(); + (static_cast(context))->OnSuccessResponse_8(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_8(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7() { NextTest(); } + void OnSuccessResponse_8() { NextTest(); } - CHIP_ERROR TestWait3000ms_8() { return WaitForMs(3000); } + CHIP_ERROR TestWait3000ms_9() { return WaitForMs(3000); } - CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_9() + CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_10() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_9, OnFailureCallback_9); + this, OnSuccessCallback_10, OnFailureCallback_10); } - void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9(uint8_t currentLevel) + void OnSuccessResponse_10(uint8_t currentLevel) { VerifyOrReturn(CheckValue("currentLevel", currentLevel, 128)); NextTest(); } - CHIP_ERROR TestSendingOffCommand_10() + CHIP_ERROR TestSendingOffCommand_11() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -15881,20 +16121,20 @@ class Test_TC_LVL_4_1 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_10(); + (static_cast(context))->OnSuccessResponse_11(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_11(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_10() { NextTest(); } + void OnSuccessResponse_11() { NextTest(); } }; class Test_TC_LVL_5_1 : public TestCommand @@ -15928,32 +16168,36 @@ class Test_TC_LVL_5_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Sending on command\n"); - err = TestSendingOnCommand_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 : Precondition: DUT level is set to 0x80\n"); - err = TestPreconditionDutLevelIsSetTo0x80_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Sending on command\n"); + err = TestSendingOnCommand_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Wait 3000ms\n"); - err = TestWait3000ms_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Precondition: DUT level is set to 0x80\n"); + err = TestPreconditionDutLevelIsSetTo0x80_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Sends a move up command to DUT\n"); - err = TestSendsAMoveUpCommandToDut_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Wait 3000ms\n"); + err = TestWait3000ms_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Wait 3000ms\n"); - err = TestWait3000ms_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Sends a move up command to DUT\n"); + err = TestSendsAMoveUpCommandToDut_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Sends stop command to DUT\n"); - err = TestSendsStopCommandToDut_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Wait 3000ms\n"); + err = TestWait3000ms_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Sending off command\n"); - err = TestSendingOffCommand_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Sends stop command to DUT\n"); + err = TestSendsStopCommandToDut_6(); + break; + case 7: + ChipLogProgress(chipTool, " ***** Test Step 7 : Sending off command\n"); + err = TestSendingOffCommand_7(); break; } @@ -15966,13 +16210,15 @@ class Test_TC_LVL_5_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 7; + const uint16_t mTestCount = 8; // // Tests methods // - CHIP_ERROR TestSendingOnCommand_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestSendingOnCommand_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -15980,22 +16226,22 @@ class Test_TC_LVL_5_1 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestPreconditionDutLevelIsSetTo0x80_1() + CHIP_ERROR TestPreconditionDutLevelIsSetTo0x80_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::Step::Type; @@ -16008,24 +16254,24 @@ class Test_TC_LVL_5_1 : public TestCommand request.optionOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_1(); + (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_2(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1() { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } - CHIP_ERROR TestWait3000ms_2() { return WaitForMs(3000); } + CHIP_ERROR TestWait3000ms_3() { return WaitForMs(3000); } - CHIP_ERROR TestSendsAMoveUpCommandToDut_3() + CHIP_ERROR TestSendsAMoveUpCommandToDut_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::Move::Type; @@ -16037,24 +16283,24 @@ class Test_TC_LVL_5_1 : public TestCommand request.optionOverride = 1; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_3(); + (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_4(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3() { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } - CHIP_ERROR TestWait3000ms_4() { return WaitForMs(3000); } + CHIP_ERROR TestWait3000ms_5() { return WaitForMs(3000); } - CHIP_ERROR TestSendsStopCommandToDut_5() + CHIP_ERROR TestSendsStopCommandToDut_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::LevelControl::Commands::Stop::Type; @@ -16064,22 +16310,22 @@ class Test_TC_LVL_5_1 : public TestCommand request.optionOverride = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_5(); + (static_cast(context))->OnSuccessResponse_6(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_6(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5() { NextTest(); } + void OnSuccessResponse_6() { NextTest(); } - CHIP_ERROR TestSendingOffCommand_6() + CHIP_ERROR TestSendingOffCommand_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -16087,20 +16333,20 @@ class Test_TC_LVL_5_1 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_6(); + (static_cast(context))->OnSuccessResponse_7(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_7(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6() { NextTest(); } + void OnSuccessResponse_7() { NextTest(); } }; class Test_TC_MC_1_1 : public TestCommand @@ -16134,9 +16380,13 @@ class Test_TC_MC_1_1 : public TestCommand 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 0 : write the default values to mandatory global attribute: ClusterRevision\n"); - err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_0(); + " ***** Test Step 1 : write the default values to mandatory global attribute: ClusterRevision\n"); + err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1(); break; } @@ -16149,20 +16399,22 @@ class Test_TC_MC_1_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 1; + const uint16_t mTestCount = 2; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } // // Tests methods // - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::RelativeHumidityMeasurementClusterTest cluster; @@ -16172,16 +16424,16 @@ class Test_TC_MC_1_1 : public TestCommand clusterRevisionArgument = 1U; return cluster.WriteAttribute( - clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) + void OnFailureResponse_1(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_0() { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } }; class Test_TC_MC_2_1 : public TestCommand @@ -16215,8 +16467,12 @@ class Test_TC_MC_2_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Put the device into low power mode\n"); - err = TestPutTheDeviceIntoLowPowerMode_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 : Put the device into low power mode\n"); + err = TestPutTheDeviceIntoLowPowerMode_1(); break; } @@ -16229,13 +16485,15 @@ class Test_TC_MC_2_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 1; + const uint16_t mTestCount = 2; // // Tests methods // - CHIP_ERROR TestPutTheDeviceIntoLowPowerMode_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestPutTheDeviceIntoLowPowerMode_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::LowPower::Commands::Sleep::Type; @@ -16243,20 +16501,20 @@ class Test_TC_MC_2_1 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } }; class Test_TC_MC_3_1 : public TestCommand @@ -16289,6 +16547,10 @@ class Test_TC_MC_3_1 : public TestCommand // 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; } if (CHIP_NO_ERROR != err) @@ -16300,11 +16562,13 @@ class Test_TC_MC_3_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 0; + const uint16_t mTestCount = 1; // // Tests methods // + + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } }; class Test_TC_MC_3_2 : public TestCommand @@ -16337,6 +16601,10 @@ class Test_TC_MC_3_2 : public TestCommand // 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; } if (CHIP_NO_ERROR != err) @@ -16348,11 +16616,13 @@ class Test_TC_MC_3_2 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 0; + const uint16_t mTestCount = 1; // // Tests methods // + + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } }; class Test_TC_MC_3_3 : public TestCommand @@ -16385,6 +16655,10 @@ class Test_TC_MC_3_3 : public TestCommand // 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; } if (CHIP_NO_ERROR != err) @@ -16396,11 +16670,13 @@ class Test_TC_MC_3_3 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 0; + const uint16_t mTestCount = 1; // // Tests methods // + + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } }; class Test_TC_MC_3_4 : public TestCommand @@ -16433,6 +16709,10 @@ class Test_TC_MC_3_4 : public TestCommand // 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; } if (CHIP_NO_ERROR != err) @@ -16444,11 +16724,13 @@ class Test_TC_MC_3_4 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 0; + const uint16_t mTestCount = 1; // // Tests methods // + + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } }; class Test_TC_MC_3_5 : public TestCommand @@ -16481,6 +16763,10 @@ class Test_TC_MC_3_5 : public TestCommand // 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; } if (CHIP_NO_ERROR != err) @@ -16492,11 +16778,13 @@ class Test_TC_MC_3_5 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 0; + const uint16_t mTestCount = 1; // // Tests methods // + + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } }; class Test_TC_MC_3_6 : public TestCommand @@ -16529,6 +16817,10 @@ class Test_TC_MC_3_6 : public TestCommand // 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; } if (CHIP_NO_ERROR != err) @@ -16540,11 +16832,13 @@ class Test_TC_MC_3_6 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 0; + const uint16_t mTestCount = 1; // // Tests methods // + + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } }; class Test_TC_MC_3_7 : public TestCommand @@ -16577,6 +16871,10 @@ class Test_TC_MC_3_7 : public TestCommand // 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; } if (CHIP_NO_ERROR != err) @@ -16588,11 +16886,13 @@ class Test_TC_MC_3_7 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 0; + const uint16_t mTestCount = 1; // // Tests methods // + + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } }; class Test_TC_MC_3_8 : public TestCommand @@ -16625,6 +16925,10 @@ class Test_TC_MC_3_8 : public TestCommand // 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; } if (CHIP_NO_ERROR != err) @@ -16636,11 +16940,13 @@ class Test_TC_MC_3_8 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 0; + const uint16_t mTestCount = 1; // // Tests methods // + + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } }; class Test_TC_MC_3_9 : public TestCommand @@ -16673,6 +16979,10 @@ class Test_TC_MC_3_9 : public TestCommand // 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; } if (CHIP_NO_ERROR != err) @@ -16684,11 +16994,13 @@ class Test_TC_MC_3_9 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 0; + const uint16_t mTestCount = 1; // // Tests methods // + + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } }; class Test_TC_MC_3_10 : public TestCommand @@ -16721,6 +17033,10 @@ class Test_TC_MC_3_10 : public TestCommand // 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; } if (CHIP_NO_ERROR != err) @@ -16732,11 +17048,13 @@ class Test_TC_MC_3_10 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 0; + const uint16_t mTestCount = 1; // // Tests methods // + + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } }; class Test_TC_MC_3_11 : public TestCommand @@ -16769,6 +17087,10 @@ class Test_TC_MC_3_11 : public TestCommand // 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; } if (CHIP_NO_ERROR != err) @@ -16780,11 +17102,13 @@ class Test_TC_MC_3_11 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 0; + const uint16_t mTestCount = 1; // // Tests methods // + + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } }; class Test_TC_OCC_1_1 : public TestCommand @@ -16818,13 +17142,17 @@ class Test_TC_OCC_1_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : read the global attribute: ClusterRevision\n"); - err = TestReadTheGlobalAttributeClusterRevision_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 : read the global attribute: ClusterRevision\n"); + err = TestReadTheGlobalAttributeClusterRevision_1(); + break; + case 2: ChipLogProgress(chipTool, - " ***** Test Step 1 : write the default values to mandatory global attribute: ClusterRevision\n"); - err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1(); + " ***** Test Step 2 : write the default values to mandatory global attribute: ClusterRevision\n"); + err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2(); break; } @@ -16837,49 +17165,51 @@ class Test_TC_OCC_1_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 2; + const uint16_t mTestCount = 3; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) + static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); + (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } // // Tests methods // - CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint16_t clusterRevision) + void OnSuccessResponse_1(uint16_t clusterRevision) { VerifyOrReturn(CheckValue("clusterRevision", clusterRevision, 2U)); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; @@ -16889,16 +17219,16 @@ class Test_TC_OCC_1_1 : public TestCommand clusterRevisionArgument = 2U; return cluster.WriteAttribute( - clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); + clusterRevisionArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) + void OnFailureResponse_2(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_1() { ThrowSuccessResponse(); } + void OnSuccessResponse_2() { ThrowSuccessResponse(); } }; class Test_TC_OCC_2_1 : public TestCommand @@ -16932,44 +17262,48 @@ class Test_TC_OCC_2_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Reads mandatory attribute constrains: Occupancy\n"); - err = TestReadsMandatoryAttributeConstrainsOccupancy_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 : Writes the respective default value to mandatory attribute: Occupancy\n"); - err = TestWritesTheRespectiveDefaultValueToMandatoryAttributeOccupancy_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Reads mandatory attribute constrains: Occupancy\n"); + err = TestReadsMandatoryAttributeConstrainsOccupancy_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Reads back mandatory attribute: Occupancy\n"); - err = TestReadsBackMandatoryAttributeOccupancy_2(); + ChipLogProgress(chipTool, + " ***** Test Step 2 : Writes the respective default value to mandatory attribute: Occupancy\n"); + err = TestWritesTheRespectiveDefaultValueToMandatoryAttributeOccupancy_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Reads mandatory attribute constrains: OccupancySensorType\n"); - err = TestReadsMandatoryAttributeConstrainsOccupancySensorType_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Reads back mandatory attribute: Occupancy\n"); + err = TestReadsBackMandatoryAttributeOccupancy_3(); break; case 4: - ChipLogProgress( - chipTool, " ***** Test Step 4 : Writes the respective default value to mandatory attribute: OccupancySensorType\n"); - err = TestWritesTheRespectiveDefaultValueToMandatoryAttributeOccupancySensorType_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Reads mandatory attribute constrains: OccupancySensorType\n"); + err = TestReadsMandatoryAttributeConstrainsOccupancySensorType_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Reads back mandatory attribute: OccupancySensorType\n"); - err = TestReadsBackMandatoryAttributeOccupancySensorType_5(); + ChipLogProgress( + chipTool, " ***** Test Step 5 : Writes the respective default value to mandatory attribute: OccupancySensorType\n"); + err = TestWritesTheRespectiveDefaultValueToMandatoryAttributeOccupancySensorType_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Reads mandatory attribute constrains: OccupancySensorTypeBitmap\n"); - err = TestReadsMandatoryAttributeConstrainsOccupancySensorTypeBitmap_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Reads back mandatory attribute: OccupancySensorType\n"); + err = TestReadsBackMandatoryAttributeOccupancySensorType_6(); break; case 7: + ChipLogProgress(chipTool, " ***** Test Step 7 : Reads mandatory attribute constrains: OccupancySensorTypeBitmap\n"); + err = TestReadsMandatoryAttributeConstrainsOccupancySensorTypeBitmap_7(); + break; + case 8: ChipLogProgress( chipTool, - " ***** Test Step 7 : Writes the respective default value to mandatory attribute: OccupancySensorTypeBitmap\n"); - err = TestWritesTheRespectiveDefaultValueToMandatoryAttributeOccupancySensorTypeBitmap_7(); + " ***** Test Step 8 : Writes the respective default value to mandatory attribute: OccupancySensorTypeBitmap\n"); + err = TestWritesTheRespectiveDefaultValueToMandatoryAttributeOccupancySensorTypeBitmap_8(); break; - case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Reads back mandatory attribute: OccupancySensorTypeBitmap\n"); - err = TestReadsBackMandatoryAttributeOccupancySensorTypeBitmap_8(); + case 9: + ChipLogProgress(chipTool, " ***** Test Step 9 : Reads back mandatory attribute: OccupancySensorTypeBitmap\n"); + err = TestReadsBackMandatoryAttributeOccupancySensorTypeBitmap_9(); break; } @@ -16982,43 +17316,33 @@ class Test_TC_OCC_2_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 9; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context, uint8_t occupancy) - { - (static_cast(context))->OnSuccessResponse_0(occupancy); - } + const uint16_t mTestCount = 10; static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } + static void OnSuccessCallback_1(void * context, uint8_t occupancy) + { + (static_cast(context))->OnSuccessResponse_1(occupancy); + } static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint8_t occupancy) - { - (static_cast(context))->OnSuccessResponse_2(occupancy); - } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } static void OnFailureCallback_3(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, uint8_t occupancySensorType) + static void OnSuccessCallback_3(void * context, uint8_t occupancy) { - (static_cast(context))->OnSuccessResponse_3(occupancySensorType); + (static_cast(context))->OnSuccessResponse_3(occupancy); } static void OnFailureCallback_4(void * context, EmberAfStatus status) @@ -17026,26 +17350,26 @@ class Test_TC_OCC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } + static void OnSuccessCallback_4(void * context, uint8_t occupancySensorType) + { + (static_cast(context))->OnSuccessResponse_4(occupancySensorType); + } static void OnFailureCallback_5(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, uint8_t occupancySensorType) - { - (static_cast(context))->OnSuccessResponse_5(occupancySensorType); - } + static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } static void OnFailureCallback_6(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, uint8_t occupancySensorTypeBitmap) + static void OnSuccessCallback_6(void * context, uint8_t occupancySensorType) { - (static_cast(context))->OnSuccessResponse_6(occupancySensorTypeBitmap); + (static_cast(context))->OnSuccessResponse_6(occupancySensorType); } static void OnFailureCallback_7(void * context, EmberAfStatus status) @@ -17053,35 +17377,47 @@ class Test_TC_OCC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } + static void OnSuccessCallback_7(void * context, uint8_t occupancySensorTypeBitmap) + { + (static_cast(context))->OnSuccessResponse_7(occupancySensorTypeBitmap); + } static void OnFailureCallback_8(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_8(void * context, uint8_t occupancySensorTypeBitmap) + static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } + + static void OnFailureCallback_9(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); + } + + static void OnSuccessCallback_9(void * context, uint8_t occupancySensorTypeBitmap) { - (static_cast(context))->OnSuccessResponse_8(occupancySensorTypeBitmap); + (static_cast(context))->OnSuccessResponse_9(occupancySensorTypeBitmap); } // // Tests methods // - CHIP_ERROR TestReadsMandatoryAttributeConstrainsOccupancy_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadsMandatoryAttributeConstrainsOccupancy_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint8_t occupancy) + void OnSuccessResponse_1(uint8_t occupancy) { VerifyOrReturn(CheckConstraintType("occupancy", "", "map8")); VerifyOrReturn(CheckConstraintMaxValue("occupancy", occupancy, 1)); @@ -17089,7 +17425,7 @@ class Test_TC_OCC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributeOccupancy_1() + CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributeOccupancy_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; @@ -17099,49 +17435,49 @@ class Test_TC_OCC_2_1 : public TestCommand occupancyArgument = 0; return cluster.WriteAttribute( - occupancyArgument, this, OnSuccessCallback_1, OnFailureCallback_1); + occupancyArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) + void OnFailureResponse_2(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_1() { ThrowSuccessResponse(); } + void OnSuccessResponse_2() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackMandatoryAttributeOccupancy_2() + CHIP_ERROR TestReadsBackMandatoryAttributeOccupancy_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint8_t occupancy) + void OnSuccessResponse_3(uint8_t occupancy) { VerifyOrReturn(CheckValue("occupancy", occupancy, 0)); NextTest(); } - CHIP_ERROR TestReadsMandatoryAttributeConstrainsOccupancySensorType_3() + CHIP_ERROR TestReadsMandatoryAttributeConstrainsOccupancySensorType_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_3, OnFailureCallback_3); + this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint8_t occupancySensorType) + void OnSuccessResponse_4(uint8_t occupancySensorType) { VerifyOrReturn(CheckConstraintType("occupancySensorType", "", "enum8")); VerifyOrReturn(CheckConstraintMaxValue("occupancySensorType", occupancySensorType, 3)); @@ -17149,7 +17485,7 @@ class Test_TC_OCC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributeOccupancySensorType_4() + CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributeOccupancySensorType_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; @@ -17159,49 +17495,49 @@ class Test_TC_OCC_2_1 : public TestCommand occupancySensorTypeArgument = static_cast(0); return cluster.WriteAttribute( - occupancySensorTypeArgument, this, OnSuccessCallback_4, OnFailureCallback_4); + occupancySensorTypeArgument, this, OnSuccessCallback_5, OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) + void OnFailureResponse_5(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_4() { ThrowSuccessResponse(); } + void OnSuccessResponse_5() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackMandatoryAttributeOccupancySensorType_5() + CHIP_ERROR TestReadsBackMandatoryAttributeOccupancySensorType_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_5, OnFailureCallback_5); + this, OnSuccessCallback_6, OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(uint8_t occupancySensorType) + void OnSuccessResponse_6(uint8_t occupancySensorType) { VerifyOrReturn(CheckValue("occupancySensorType", occupancySensorType, 0)); NextTest(); } - CHIP_ERROR TestReadsMandatoryAttributeConstrainsOccupancySensorTypeBitmap_6() + CHIP_ERROR TestReadsMandatoryAttributeConstrainsOccupancySensorTypeBitmap_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_6, OnFailureCallback_6); + this, OnSuccessCallback_7, OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(uint8_t occupancySensorTypeBitmap) + void OnSuccessResponse_7(uint8_t occupancySensorTypeBitmap) { VerifyOrReturn(CheckConstraintType("occupancySensorTypeBitmap", "", "map8")); VerifyOrReturn(CheckConstraintMinValue("occupancySensorTypeBitmap", occupancySensorTypeBitmap, 1)); @@ -17210,7 +17546,7 @@ class Test_TC_OCC_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributeOccupancySensorTypeBitmap_7() + CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributeOccupancySensorTypeBitmap_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; @@ -17220,30 +17556,30 @@ class Test_TC_OCC_2_1 : public TestCommand occupancySensorTypeBitmapArgument = 1; return cluster.WriteAttribute( - occupancySensorTypeBitmapArgument, this, OnSuccessCallback_7, OnFailureCallback_7); + occupancySensorTypeBitmapArgument, this, OnSuccessCallback_8, OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) + void OnFailureResponse_8(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_7() { ThrowSuccessResponse(); } + void OnSuccessResponse_8() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackMandatoryAttributeOccupancySensorTypeBitmap_8() + CHIP_ERROR TestReadsBackMandatoryAttributeOccupancySensorTypeBitmap_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_8, OnFailureCallback_8); + this, OnSuccessCallback_9, OnFailureCallback_9); } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8(uint8_t occupancySensorTypeBitmap) + void OnSuccessResponse_9(uint8_t occupancySensorTypeBitmap) { VerifyOrReturn(CheckValue("occupancySensorTypeBitmap", occupancySensorTypeBitmap, 1)); @@ -17282,13 +17618,17 @@ class Test_TC_OCC_2_2 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Reads Occupancy attribute from DUT\n"); - err = TestReadsOccupancyAttributeFromDut_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 : Reads Occupancy attribute from DUT\n"); err = TestReadsOccupancyAttributeFromDut_1(); break; + case 2: + ChipLogProgress(chipTool, " ***** Test Step 2 : Reads Occupancy attribute from DUT\n"); + err = TestReadsOccupancyAttributeFromDut_2(); + break; } if (CHIP_NO_ERROR != err) @@ -17300,64 +17640,66 @@ class Test_TC_OCC_2_2 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 2; + const uint16_t mTestCount = 3; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint8_t occupancy) + static void OnSuccessCallback_1(void * context, uint8_t occupancy) { - (static_cast(context))->OnSuccessResponse_0(occupancy); + (static_cast(context))->OnSuccessResponse_1(occupancy); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint8_t occupancy) + static void OnSuccessCallback_2(void * context, uint8_t occupancy) { - (static_cast(context))->OnSuccessResponse_1(occupancy); + (static_cast(context))->OnSuccessResponse_2(occupancy); } // // Tests methods // - CHIP_ERROR TestReadsOccupancyAttributeFromDut_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadsOccupancyAttributeFromDut_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint8_t occupancy) + void OnSuccessResponse_1(uint8_t occupancy) { VerifyOrReturn(CheckConstraintType("occupancy", "", "map8")); NextTest(); } - CHIP_ERROR TestReadsOccupancyAttributeFromDut_1() + CHIP_ERROR TestReadsOccupancyAttributeFromDut_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OccupancySensingClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_1, OnFailureCallback_1); + this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(uint8_t occupancy) + void OnSuccessResponse_2(uint8_t occupancy) { VerifyOrReturn(CheckConstraintType("occupancy", "", "map8")); @@ -17396,29 +17738,37 @@ class Test_TC_OO_1_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : read the global attribute: ClusterRevision\n"); - err = TestReadTheGlobalAttributeClusterRevision_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 : write the default values to mandatory global attribute: ClusterRevision\n"); - err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Wait for the commissioned device to be retrieved\n"); + err = TestWaitForTheCommissionedDeviceToBeRetrieved_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : reads back global attribute: ClusterRevision\n"); - err = TestReadsBackGlobalAttributeClusterRevision_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : read the global attribute: ClusterRevision\n"); + err = TestReadTheGlobalAttributeClusterRevision_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : read the optional global attribute: FeatureMap\n"); - err = TestReadTheOptionalGlobalAttributeFeatureMap_3(); + ChipLogProgress(chipTool, + " ***** Test Step 3 : write the default values to mandatory global attribute: ClusterRevision\n"); + err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : write the default values to optional global attribute: FeatureMap\n"); - err = TestWriteTheDefaultValuesToOptionalGlobalAttributeFeatureMap_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : reads back global attribute: ClusterRevision\n"); + err = TestReadsBackGlobalAttributeClusterRevision_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : reads back optional global attribute: FeatureMap\n"); - err = TestReadsBackOptionalGlobalAttributeFeatureMap_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : read the optional global attribute: FeatureMap\n"); + err = TestReadTheOptionalGlobalAttributeFeatureMap_5(); + break; + case 6: + ChipLogProgress(chipTool, " ***** Test Step 6 : write the default values to optional global attribute: FeatureMap\n"); + err = TestWriteTheDefaultValuesToOptionalGlobalAttributeFeatureMap_6(); + break; + case 7: + ChipLogProgress(chipTool, " ***** Test Step 7 : reads back optional global attribute: FeatureMap\n"); + err = TestReadsBackOptionalGlobalAttributeFeatureMap_7(); break; } @@ -17431,24 +17781,7 @@ class Test_TC_OO_1_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 6; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); - } - - static void OnFailureCallback_1(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); - } - - static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } + const uint16_t mTestCount = 8; static void OnFailureCallback_2(void * context, EmberAfStatus status) { @@ -17465,17 +17798,17 @@ class Test_TC_OO_1_1 : public TestCommand (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, uint32_t featureMap) - { - (static_cast(context))->OnSuccessResponse_3(featureMap); - } + static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } static void OnFailureCallback_4(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } + static void OnSuccessCallback_4(void * context, uint16_t clusterRevision) + { + (static_cast(context))->OnSuccessResponse_4(clusterRevision); + } static void OnFailureCallback_5(void * context, EmberAfStatus status) { @@ -17487,30 +17820,51 @@ class Test_TC_OO_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(featureMap); } + static void OnFailureCallback_6(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); + } + + static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } + + static void OnFailureCallback_7(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); + } + + static void OnSuccessCallback_7(void * context, uint32_t featureMap) + { + (static_cast(context))->OnSuccessResponse_7(featureMap); + } + // // Tests methods // - CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_1() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_0, - OnFailureCallback_0); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint16_t clusterRevision) + void OnSuccessResponse_2(uint16_t clusterRevision) { VerifyOrReturn(CheckValue("clusterRevision", clusterRevision, 4U)); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; @@ -17520,56 +17874,56 @@ class Test_TC_OO_1_1 : public TestCommand clusterRevisionArgument = 3U; return cluster.WriteAttribute( - clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); + clusterRevisionArgument, this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_1(uint8_t status) + void OnFailureResponse_3(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_1() { ThrowSuccessResponse(); } + void OnSuccessResponse_3() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_2() + CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_2, - OnFailureCallback_2); + return cluster.ReadAttribute(this, OnSuccessCallback_4, + OnFailureCallback_4); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint16_t clusterRevision) + void OnSuccessResponse_4(uint16_t clusterRevision) { VerifyOrReturn(CheckValue("clusterRevision", clusterRevision, 4U)); NextTest(); } - CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_3() + CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_3, - OnFailureCallback_3); + return cluster.ReadAttribute(this, OnSuccessCallback_5, + OnFailureCallback_5); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint32_t featureMap) + void OnSuccessResponse_5(uint32_t featureMap) { VerifyOrReturn(CheckValue("featureMap", featureMap, 0UL)); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToOptionalGlobalAttributeFeatureMap_4() + CHIP_ERROR TestWriteTheDefaultValuesToOptionalGlobalAttributeFeatureMap_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; @@ -17579,30 +17933,30 @@ class Test_TC_OO_1_1 : public TestCommand featureMapArgument = 0UL; return cluster.WriteAttribute( - featureMapArgument, this, OnSuccessCallback_4, OnFailureCallback_4); + featureMapArgument, this, OnSuccessCallback_6, OnFailureCallback_6); } - void OnFailureResponse_4(uint8_t status) + void OnFailureResponse_6(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_4() { ThrowSuccessResponse(); } + void OnSuccessResponse_6() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackOptionalGlobalAttributeFeatureMap_5() + CHIP_ERROR TestReadsBackOptionalGlobalAttributeFeatureMap_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_5, - OnFailureCallback_5); + return cluster.ReadAttribute(this, OnSuccessCallback_7, + OnFailureCallback_7); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(uint32_t featureMap) + void OnSuccessResponse_7(uint32_t featureMap) { VerifyOrReturn(CheckValue("featureMap", featureMap, 0UL)); @@ -17641,52 +17995,56 @@ class Test_TC_OO_2_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : read the mandatory attribute: OnOff\n"); - err = TestReadTheMandatoryAttributeOnOff_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 : reads back mandatory attribute: OnOff\n"); - err = TestReadsBackMandatoryAttributeOnOff_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : read the mandatory attribute: OnOff\n"); + err = TestReadTheMandatoryAttributeOnOff_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : read LT attribute: GlobalSceneControl\n"); - err = TestReadLtAttributeGlobalSceneControl_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : reads back mandatory attribute: OnOff\n"); + err = TestReadsBackMandatoryAttributeOnOff_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : read LT attribute: OnTime\n"); - err = TestReadLtAttributeOnTime_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : read LT attribute: GlobalSceneControl\n"); + err = TestReadLtAttributeGlobalSceneControl_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : read LT attribute: OffWaitTime\n"); - err = TestReadLtAttributeOffWaitTime_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : read LT attribute: OnTime\n"); + err = TestReadLtAttributeOnTime_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : read LT attribute: StartUpOnOff\n"); - err = TestReadLtAttributeStartUpOnOff_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : read LT attribute: OffWaitTime\n"); + err = TestReadLtAttributeOffWaitTime_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : write the default value to LT attribute: OnTime\n"); - err = TestWriteTheDefaultValueToLtAttributeOnTime_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : read LT attribute: StartUpOnOff\n"); + err = TestReadLtAttributeStartUpOnOff_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : write the default value to LT attribute: OffWaitTime\n"); - err = TestWriteTheDefaultValueToLtAttributeOffWaitTime_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : write the default value to LT attribute: OnTime\n"); + err = TestWriteTheDefaultValueToLtAttributeOnTime_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : write the default value to LT attribute: StartUpOnOff\n"); - err = TestWriteTheDefaultValueToLtAttributeStartUpOnOff_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : write the default value to LT attribute: OffWaitTime\n"); + err = TestWriteTheDefaultValueToLtAttributeOffWaitTime_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : reads back LT attribute: OnTime\n"); - err = TestReadsBackLtAttributeOnTime_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : write the default value to LT attribute: StartUpOnOff\n"); + err = TestWriteTheDefaultValueToLtAttributeStartUpOnOff_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : reads back LT attribute: OffWaitTime\n"); - err = TestReadsBackLtAttributeOffWaitTime_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : reads back LT attribute: OnTime\n"); + err = TestReadsBackLtAttributeOnTime_10(); break; case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : reads back LT attribute: StartUpOnOff\n"); - err = TestReadsBackLtAttributeStartUpOnOff_11(); + ChipLogProgress(chipTool, " ***** Test Step 11 : reads back LT attribute: OffWaitTime\n"); + err = TestReadsBackLtAttributeOffWaitTime_11(); + break; + case 12: + ChipLogProgress(chipTool, " ***** Test Step 12 : reads back LT attribute: StartUpOnOff\n"); + err = TestReadsBackLtAttributeStartUpOnOff_12(); break; } @@ -17699,17 +18057,7 @@ class Test_TC_OO_2_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 12; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context, bool onOff) - { - (static_cast(context))->OnSuccessResponse_0(onOff); - } + const uint16_t mTestCount = 13; static void OnFailureCallback_1(void * context, EmberAfStatus status) { @@ -17726,9 +18074,9 @@ class Test_TC_OO_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, bool globalSceneControl) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_2(globalSceneControl); + (static_cast(context))->OnSuccessResponse_2(onOff); } static void OnFailureCallback_3(void * context, EmberAfStatus status) @@ -17736,9 +18084,9 @@ class Test_TC_OO_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, uint16_t onTime) + static void OnSuccessCallback_3(void * context, bool globalSceneControl) { - (static_cast(context))->OnSuccessResponse_3(onTime); + (static_cast(context))->OnSuccessResponse_3(globalSceneControl); } static void OnFailureCallback_4(void * context, EmberAfStatus status) @@ -17746,9 +18094,9 @@ class Test_TC_OO_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, uint16_t offWaitTime) + static void OnSuccessCallback_4(void * context, uint16_t onTime) { - (static_cast(context))->OnSuccessResponse_4(offWaitTime); + (static_cast(context))->OnSuccessResponse_4(onTime); } static void OnFailureCallback_5(void * context, EmberAfStatus status) @@ -17756,9 +18104,9 @@ class Test_TC_OO_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, uint8_t startUpOnOff) + static void OnSuccessCallback_5(void * context, uint16_t offWaitTime) { - (static_cast(context))->OnSuccessResponse_5(startUpOnOff); + (static_cast(context))->OnSuccessResponse_5(offWaitTime); } static void OnFailureCallback_6(void * context, EmberAfStatus status) @@ -17766,7 +18114,10 @@ class Test_TC_OO_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } + static void OnSuccessCallback_6(void * context, uint8_t startUpOnOff) + { + (static_cast(context))->OnSuccessResponse_6(startUpOnOff); + } static void OnFailureCallback_7(void * context, EmberAfStatus status) { @@ -17787,19 +18138,16 @@ class Test_TC_OO_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); } - static void OnSuccessCallback_9(void * context, uint16_t onTime) - { - (static_cast(context))->OnSuccessResponse_9(onTime); - } + static void OnSuccessCallback_9(void * context) { (static_cast(context))->OnSuccessResponse_9(); } static void OnFailureCallback_10(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); } - static void OnSuccessCallback_10(void * context, uint16_t offWaitTime) + static void OnSuccessCallback_10(void * context, uint16_t onTime) { - (static_cast(context))->OnSuccessResponse_10(offWaitTime); + (static_cast(context))->OnSuccessResponse_10(onTime); } static void OnFailureCallback_11(void * context, EmberAfStatus status) @@ -17807,130 +18155,142 @@ class Test_TC_OO_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_11(chip::to_underlying(status)); } - static void OnSuccessCallback_11(void * context, uint8_t startUpOnOff) + static void OnSuccessCallback_11(void * context, uint16_t offWaitTime) + { + (static_cast(context))->OnSuccessResponse_11(offWaitTime); + } + + static void OnFailureCallback_12(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_12(chip::to_underlying(status)); + } + + static void OnSuccessCallback_12(void * context, uint8_t startUpOnOff) { - (static_cast(context))->OnSuccessResponse_11(startUpOnOff); + (static_cast(context))->OnSuccessResponse_12(startUpOnOff); } // // Tests methods // - CHIP_ERROR TestReadTheMandatoryAttributeOnOff_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadTheMandatoryAttributeOnOff_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_0, - OnFailureCallback_0); + return cluster.ReadAttribute(this, OnSuccessCallback_1, + OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(bool onOff) + void OnSuccessResponse_1(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); NextTest(); } - CHIP_ERROR TestReadsBackMandatoryAttributeOnOff_1() + CHIP_ERROR TestReadsBackMandatoryAttributeOnOff_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); NextTest(); } - CHIP_ERROR TestReadLtAttributeGlobalSceneControl_2() + CHIP_ERROR TestReadLtAttributeGlobalSceneControl_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(bool globalSceneControl) + void OnSuccessResponse_3(bool globalSceneControl) { VerifyOrReturn(CheckValue("globalSceneControl", globalSceneControl, 1)); NextTest(); } - CHIP_ERROR TestReadLtAttributeOnTime_3() + CHIP_ERROR TestReadLtAttributeOnTime_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_3, - OnFailureCallback_3); + return cluster.ReadAttribute(this, OnSuccessCallback_4, + OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint16_t onTime) + void OnSuccessResponse_4(uint16_t onTime) { VerifyOrReturn(CheckValue("onTime", onTime, 0U)); NextTest(); } - CHIP_ERROR TestReadLtAttributeOffWaitTime_4() + CHIP_ERROR TestReadLtAttributeOffWaitTime_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_4, - OnFailureCallback_4); + return cluster.ReadAttribute(this, OnSuccessCallback_5, + OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(uint16_t offWaitTime) + void OnSuccessResponse_5(uint16_t offWaitTime) { VerifyOrReturn(CheckValue("offWaitTime", offWaitTime, 0U)); NextTest(); } - CHIP_ERROR TestReadLtAttributeStartUpOnOff_5() + CHIP_ERROR TestReadLtAttributeStartUpOnOff_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_5, - OnFailureCallback_5); + return cluster.ReadAttribute(this, OnSuccessCallback_6, + OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(uint8_t startUpOnOff) + void OnSuccessResponse_6(uint8_t startUpOnOff) { VerifyOrReturn(CheckValue("startUpOnOff", startUpOnOff, 0)); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValueToLtAttributeOnTime_6() + CHIP_ERROR TestWriteTheDefaultValueToLtAttributeOnTime_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; @@ -17940,14 +18300,14 @@ class Test_TC_OO_2_1 : public TestCommand onTimeArgument = 0U; return cluster.WriteAttribute( - onTimeArgument, this, OnSuccessCallback_6, OnFailureCallback_6); + onTimeArgument, this, OnSuccessCallback_7, OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6() { NextTest(); } + void OnSuccessResponse_7() { NextTest(); } - CHIP_ERROR TestWriteTheDefaultValueToLtAttributeOffWaitTime_7() + CHIP_ERROR TestWriteTheDefaultValueToLtAttributeOffWaitTime_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; @@ -17957,14 +18317,14 @@ class Test_TC_OO_2_1 : public TestCommand offWaitTimeArgument = 0U; return cluster.WriteAttribute( - offWaitTimeArgument, this, OnSuccessCallback_7, OnFailureCallback_7); + offWaitTimeArgument, this, OnSuccessCallback_8, OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7() { NextTest(); } + void OnSuccessResponse_8() { NextTest(); } - CHIP_ERROR TestWriteTheDefaultValueToLtAttributeStartUpOnOff_8() + CHIP_ERROR TestWriteTheDefaultValueToLtAttributeStartUpOnOff_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; @@ -17974,64 +18334,64 @@ class Test_TC_OO_2_1 : public TestCommand startUpOnOffArgument = static_cast(0); return cluster.WriteAttribute( - startUpOnOffArgument, this, OnSuccessCallback_8, OnFailureCallback_8); + startUpOnOffArgument, this, OnSuccessCallback_9, OnFailureCallback_9); } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8() { NextTest(); } + void OnSuccessResponse_9() { NextTest(); } - CHIP_ERROR TestReadsBackLtAttributeOnTime_9() + CHIP_ERROR TestReadsBackLtAttributeOnTime_10() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_9, - OnFailureCallback_9); + return cluster.ReadAttribute(this, OnSuccessCallback_10, + OnFailureCallback_10); } - void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9(uint16_t onTime) + void OnSuccessResponse_10(uint16_t onTime) { VerifyOrReturn(CheckValue("onTime", onTime, 0U)); NextTest(); } - CHIP_ERROR TestReadsBackLtAttributeOffWaitTime_10() + CHIP_ERROR TestReadsBackLtAttributeOffWaitTime_11() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_10, - OnFailureCallback_10); + return cluster.ReadAttribute(this, OnSuccessCallback_11, + OnFailureCallback_11); } - void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_10(uint16_t offWaitTime) + void OnSuccessResponse_11(uint16_t offWaitTime) { VerifyOrReturn(CheckValue("offWaitTime", offWaitTime, 0U)); NextTest(); } - CHIP_ERROR TestReadsBackLtAttributeStartUpOnOff_11() + CHIP_ERROR TestReadsBackLtAttributeStartUpOnOff_12() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_11, - OnFailureCallback_11); + return cluster.ReadAttribute(this, OnSuccessCallback_12, + OnFailureCallback_12); } - void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_11(uint8_t startUpOnOff) + void OnSuccessResponse_12(uint8_t startUpOnOff) { VerifyOrReturn(CheckValue("startUpOnOff", startUpOnOff, 0)); @@ -18070,60 +18430,64 @@ class Test_TC_OO_2_2 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Send Off Command\n"); - err = TestSendOffCommand_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 : Check on/off attribute value is false after off command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Send Off Command\n"); + err = TestSendOffCommand_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Send On Command\n"); - err = TestSendOnCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Check on/off attribute value is false after off command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Check on/off attribute value is true after on command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Send On Command\n"); + err = TestSendOnCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Send Off Command\n"); - err = TestSendOffCommand_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Check on/off attribute value is true after on command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Check on/off attribute value is false after off command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Send Off Command\n"); + err = TestSendOffCommand_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Send Toggle Command\n"); - err = TestSendToggleCommand_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Check on/off attribute value is false after off command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Check on/off attribute value is true after toggle command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterToggleCommand_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Send Toggle Command\n"); + err = TestSendToggleCommand_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Send Toggle Command\n"); - err = TestSendToggleCommand_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : Check on/off attribute value is true after toggle command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterToggleCommand_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Check on/off attribute value is false after toggle command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterToggleCommand_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : Send Toggle Command\n"); + err = TestSendToggleCommand_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Send On Command\n"); - err = TestSendOnCommand_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : Check on/off attribute value is false after toggle command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterToggleCommand_10(); break; case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : Check on/off attribute value is true after on command\n"); - err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_11(); + ChipLogProgress(chipTool, " ***** Test Step 11 : Send On Command\n"); + err = TestSendOnCommand_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : Send Off Command\n"); - err = TestSendOffCommand_12(); + ChipLogProgress(chipTool, " ***** Test Step 12 : Check on/off attribute value is true after on command\n"); + err = TestCheckOnOffAttributeValueIsTrueAfterOnCommand_12(); break; case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : Check on/off attribute value is false after off command\n"); - err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_13(); + ChipLogProgress(chipTool, " ***** Test Step 13 : Send Off Command\n"); + err = TestSendOffCommand_13(); + break; + case 14: + ChipLogProgress(chipTool, " ***** Test Step 14 : Check on/off attribute value is false after off command\n"); + err = TestCheckOnOffAttributeValueIsFalseAfterOffCommand_14(); break; } @@ -18136,83 +18500,85 @@ class Test_TC_OO_2_2 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 14; + const uint16_t mTestCount = 15; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, bool onOff) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_1(onOff); + (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, bool onOff) + static void OnSuccessCallback_4(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_3(onOff); + (static_cast(context))->OnSuccessResponse_4(onOff); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, bool onOff) + static void OnSuccessCallback_6(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_5(onOff); + (static_cast(context))->OnSuccessResponse_6(onOff); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, bool onOff) + static void OnSuccessCallback_8(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_7(onOff); + (static_cast(context))->OnSuccessResponse_8(onOff); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); } - static void OnSuccessCallback_9(void * context, bool onOff) + static void OnSuccessCallback_10(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_9(onOff); + (static_cast(context))->OnSuccessResponse_10(onOff); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_11(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_12(chip::to_underlying(status)); } - static void OnSuccessCallback_11(void * context, bool onOff) + static void OnSuccessCallback_12(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_11(onOff); + (static_cast(context))->OnSuccessResponse_12(onOff); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_13(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_14(chip::to_underlying(status)); } - static void OnSuccessCallback_13(void * context, bool onOff) + static void OnSuccessCallback_14(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_13(onOff); + (static_cast(context))->OnSuccessResponse_14(onOff); } // // Tests methods // - CHIP_ERROR TestSendOffCommand_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestSendOffCommand_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -18220,41 +18586,41 @@ class Test_TC_OO_2_2 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_1() + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); NextTest(); } - CHIP_ERROR TestSendOnCommand_2() + CHIP_ERROR TestSendOnCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -18262,41 +18628,41 @@ class Test_TC_OO_2_2 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_3() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_3, - OnFailureCallback_3); + return cluster.ReadAttribute(this, OnSuccessCallback_4, + OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(bool onOff) + void OnSuccessResponse_4(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestSendOffCommand_4() + CHIP_ERROR TestSendOffCommand_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -18304,41 +18670,41 @@ class Test_TC_OO_2_2 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_4(); + (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_5(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4() { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_5() + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_5, - OnFailureCallback_5); + return cluster.ReadAttribute(this, OnSuccessCallback_6, + OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(bool onOff) + void OnSuccessResponse_6(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); NextTest(); } - CHIP_ERROR TestSendToggleCommand_6() + CHIP_ERROR TestSendToggleCommand_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Toggle::Type; @@ -18346,41 +18712,41 @@ class Test_TC_OO_2_2 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_6(); + (static_cast(context))->OnSuccessResponse_7(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_7(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6() { NextTest(); } + void OnSuccessResponse_7() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterToggleCommand_7() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterToggleCommand_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_7, - OnFailureCallback_7); + return cluster.ReadAttribute(this, OnSuccessCallback_8, + OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(bool onOff) + void OnSuccessResponse_8(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestSendToggleCommand_8() + CHIP_ERROR TestSendToggleCommand_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Toggle::Type; @@ -18388,41 +18754,41 @@ class Test_TC_OO_2_2 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_8(); + (static_cast(context))->OnSuccessResponse_9(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_9(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8() { NextTest(); } + void OnSuccessResponse_9() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterToggleCommand_9() + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterToggleCommand_10() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_9, - OnFailureCallback_9); + return cluster.ReadAttribute(this, OnSuccessCallback_10, + OnFailureCallback_10); } - void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9(bool onOff) + void OnSuccessResponse_10(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); NextTest(); } - CHIP_ERROR TestSendOnCommand_10() + CHIP_ERROR TestSendOnCommand_11() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -18430,41 +18796,41 @@ class Test_TC_OO_2_2 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_10(); + (static_cast(context))->OnSuccessResponse_11(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_11(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_10() { NextTest(); } + void OnSuccessResponse_11() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_11() + CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_12() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_11, - OnFailureCallback_11); + return cluster.ReadAttribute(this, OnSuccessCallback_12, + OnFailureCallback_12); } - void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_11(bool onOff) + void OnSuccessResponse_12(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestSendOffCommand_12() + CHIP_ERROR TestSendOffCommand_13() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -18472,34 +18838,34 @@ class Test_TC_OO_2_2 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_12(); + (static_cast(context))->OnSuccessResponse_13(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_13(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_12() { NextTest(); } + void OnSuccessResponse_13() { NextTest(); } - CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_13() + CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_14() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_13, - OnFailureCallback_13); + return cluster.ReadAttribute(this, OnSuccessCallback_14, + OnFailureCallback_14); } - void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_13(bool onOff) + void OnSuccessResponse_14(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); @@ -18538,188 +18904,192 @@ class Test_TC_OO_2_3 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Send On Command\n"); - err = TestSendOnCommand_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 : Wait 1000ms\n"); - err = TestWait1000ms_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Send On Command\n"); + err = TestSendOnCommand_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Reads OnOff attribute from DUT\n"); - err = TestReadsOnOffAttributeFromDut_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Wait 1000ms\n"); + err = TestWait1000ms_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Reads GlobalSceneControl attribute from DUT\n"); - err = TestReadsGlobalSceneControlAttributeFromDut_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Reads OnOff attribute from DUT\n"); + err = TestReadsOnOffAttributeFromDut_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Send On Command\n"); - err = TestSendOnCommand_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Reads GlobalSceneControl attribute from DUT\n"); + err = TestReadsGlobalSceneControlAttributeFromDut_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Wait 1000ms\n"); - err = TestWait1000ms_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Send On Command\n"); + err = TestSendOnCommand_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Reads OnOff attribute from DUT\n"); - err = TestReadsOnOffAttributeFromDut_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Wait 1000ms\n"); + err = TestWait1000ms_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Reads GlobalSceneControl attribute from DUT\n"); - err = TestReadsGlobalSceneControlAttributeFromDut_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Reads OnOff attribute from DUT\n"); + err = TestReadsOnOffAttributeFromDut_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Send On Command\n"); - err = TestSendOnCommand_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : Reads GlobalSceneControl attribute from DUT\n"); + err = TestReadsGlobalSceneControlAttributeFromDut_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Wait 1000ms\n"); - err = TestWait1000ms_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : Send On Command\n"); + err = TestSendOnCommand_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Reads OnOff attribute from DUT\n"); - err = TestReadsOnOffAttributeFromDut_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : Wait 1000ms\n"); + err = TestWait1000ms_10(); break; case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : Reads GlobalSceneControl attribute from DUT\n"); - err = TestReadsGlobalSceneControlAttributeFromDut_11(); + ChipLogProgress(chipTool, " ***** Test Step 11 : Reads OnOff attribute from DUT\n"); + err = TestReadsOnOffAttributeFromDut_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : Reads OnTime attribute from DUT\n"); - err = TestReadsOnTimeAttributeFromDut_12(); + ChipLogProgress(chipTool, " ***** Test Step 12 : Reads GlobalSceneControl attribute from DUT\n"); + err = TestReadsGlobalSceneControlAttributeFromDut_12(); break; case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : Reads OffWaitTime attribute from DUT\n"); - err = TestReadsOffWaitTimeAttributeFromDut_13(); + ChipLogProgress(chipTool, " ***** Test Step 13 : Reads OnTime attribute from DUT\n"); + err = TestReadsOnTimeAttributeFromDut_13(); break; case 14: - ChipLogProgress(chipTool, " ***** Test Step 14 : Send On Command\n"); - err = TestSendOnCommand_14(); + ChipLogProgress(chipTool, " ***** Test Step 14 : Reads OffWaitTime attribute from DUT\n"); + err = TestReadsOffWaitTimeAttributeFromDut_14(); break; case 15: - ChipLogProgress(chipTool, " ***** Test Step 15 : Reads OnOff attribute from DUT\n"); - err = TestReadsOnOffAttributeFromDut_15(); + ChipLogProgress(chipTool, " ***** Test Step 15 : Send On Command\n"); + err = TestSendOnCommand_15(); break; case 16: - ChipLogProgress(chipTool, " ***** Test Step 16 : Reads OnTime attribute from DUT\n"); - err = TestReadsOnTimeAttributeFromDut_16(); + ChipLogProgress(chipTool, " ***** Test Step 16 : Reads OnOff attribute from DUT\n"); + err = TestReadsOnOffAttributeFromDut_16(); break; case 17: - ChipLogProgress(chipTool, " ***** Test Step 17 : Reads OffWaitTime attribute from DUT\n"); - err = TestReadsOffWaitTimeAttributeFromDut_17(); + ChipLogProgress(chipTool, " ***** Test Step 17 : Reads OnTime attribute from DUT\n"); + err = TestReadsOnTimeAttributeFromDut_17(); break; case 18: - ChipLogProgress(chipTool, " ***** Test Step 18 : Send Off Command\n"); - err = TestSendOffCommand_18(); + ChipLogProgress(chipTool, " ***** Test Step 18 : Reads OffWaitTime attribute from DUT\n"); + err = TestReadsOffWaitTimeAttributeFromDut_18(); break; case 19: - ChipLogProgress(chipTool, " ***** Test Step 19 : Reads OnOff attribute from DUT\n"); - err = TestReadsOnOffAttributeFromDut_19(); + ChipLogProgress(chipTool, " ***** Test Step 19 : Send Off Command\n"); + err = TestSendOffCommand_19(); break; case 20: - ChipLogProgress(chipTool, " ***** Test Step 20 : Reads OnTime attribute from DUT\n"); - err = TestReadsOnTimeAttributeFromDut_20(); + ChipLogProgress(chipTool, " ***** Test Step 20 : Reads OnOff attribute from DUT\n"); + err = TestReadsOnOffAttributeFromDut_20(); break; case 21: - ChipLogProgress(chipTool, " ***** Test Step 21 : Reads OnOff attribute from DUT\n"); - err = TestReadsOnOffAttributeFromDut_21(); + ChipLogProgress(chipTool, " ***** Test Step 21 : Reads OnTime attribute from DUT\n"); + err = TestReadsOnTimeAttributeFromDut_21(); break; case 22: - ChipLogProgress(chipTool, " ***** Test Step 22 : Reads OnTime attribute from DUT\n"); - err = TestReadsOnTimeAttributeFromDut_22(); + ChipLogProgress(chipTool, " ***** Test Step 22 : Reads OnOff attribute from DUT\n"); + err = TestReadsOnOffAttributeFromDut_22(); break; case 23: - ChipLogProgress(chipTool, " ***** Test Step 23 : Reads OffWaitTime attribute from DUT\n"); - err = TestReadsOffWaitTimeAttributeFromDut_23(); + ChipLogProgress(chipTool, " ***** Test Step 23 : Reads OnTime attribute from DUT\n"); + err = TestReadsOnTimeAttributeFromDut_23(); break; case 24: - ChipLogProgress(chipTool, " ***** Test Step 24 : Send On Command\n"); - err = TestSendOnCommand_24(); + ChipLogProgress(chipTool, " ***** Test Step 24 : Reads OffWaitTime attribute from DUT\n"); + err = TestReadsOffWaitTimeAttributeFromDut_24(); break; case 25: - ChipLogProgress(chipTool, " ***** Test Step 25 : Reads OnTime attribute from DUT\n"); - err = TestReadsOnTimeAttributeFromDut_25(); + ChipLogProgress(chipTool, " ***** Test Step 25 : Send On Command\n"); + err = TestSendOnCommand_25(); break; case 26: - ChipLogProgress(chipTool, " ***** Test Step 26 : Reads OffWaitTime attribute from DUT\n"); - err = TestReadsOffWaitTimeAttributeFromDut_26(); + ChipLogProgress(chipTool, " ***** Test Step 26 : Reads OnTime attribute from DUT\n"); + err = TestReadsOnTimeAttributeFromDut_26(); break; case 27: - ChipLogProgress(chipTool, " ***** Test Step 27 : Send Off Command\n"); - err = TestSendOffCommand_27(); + ChipLogProgress(chipTool, " ***** Test Step 27 : Reads OffWaitTime attribute from DUT\n"); + err = TestReadsOffWaitTimeAttributeFromDut_27(); break; case 28: - ChipLogProgress(chipTool, " ***** Test Step 28 : Reads OnOff attribute from DUT\n"); - err = TestReadsOnOffAttributeFromDut_28(); + ChipLogProgress(chipTool, " ***** Test Step 28 : Send Off Command\n"); + err = TestSendOffCommand_28(); break; case 29: - ChipLogProgress(chipTool, " ***** Test Step 29 : Reads OnTime attribute from DUT\n"); - err = TestReadsOnTimeAttributeFromDut_29(); + ChipLogProgress(chipTool, " ***** Test Step 29 : Reads OnOff attribute from DUT\n"); + err = TestReadsOnOffAttributeFromDut_29(); break; case 30: - ChipLogProgress(chipTool, " ***** Test Step 30 : Reads OnOff attribute from DUT\n"); - err = TestReadsOnOffAttributeFromDut_30(); + ChipLogProgress(chipTool, " ***** Test Step 30 : Reads OnTime attribute from DUT\n"); + err = TestReadsOnTimeAttributeFromDut_30(); break; case 31: - ChipLogProgress(chipTool, " ***** Test Step 31 : Reads OnTime attribute from DUT\n"); - err = TestReadsOnTimeAttributeFromDut_31(); + ChipLogProgress(chipTool, " ***** Test Step 31 : Reads OnOff attribute from DUT\n"); + err = TestReadsOnOffAttributeFromDut_31(); break; case 32: - ChipLogProgress(chipTool, " ***** Test Step 32 : Send On Command\n"); - err = TestSendOnCommand_32(); + ChipLogProgress(chipTool, " ***** Test Step 32 : Reads OnTime attribute from DUT\n"); + err = TestReadsOnTimeAttributeFromDut_32(); break; case 33: - ChipLogProgress(chipTool, " ***** Test Step 33 : Reads OnOff attribute from DUT\n"); - err = TestReadsOnOffAttributeFromDut_33(); + ChipLogProgress(chipTool, " ***** Test Step 33 : Send On Command\n"); + err = TestSendOnCommand_33(); break; case 34: - ChipLogProgress(chipTool, " ***** Test Step 34 : Reads OnTime attribute from DUT\n"); - err = TestReadsOnTimeAttributeFromDut_34(); + ChipLogProgress(chipTool, " ***** Test Step 34 : Reads OnOff attribute from DUT\n"); + err = TestReadsOnOffAttributeFromDut_34(); break; case 35: - ChipLogProgress(chipTool, " ***** Test Step 35 : Reads OffWaitTime attribute from DUT\n"); - err = TestReadsOffWaitTimeAttributeFromDut_35(); + ChipLogProgress(chipTool, " ***** Test Step 35 : Reads OnTime attribute from DUT\n"); + err = TestReadsOnTimeAttributeFromDut_35(); break; case 36: - ChipLogProgress(chipTool, " ***** Test Step 36 : Send Off Command\n"); - err = TestSendOffCommand_36(); + ChipLogProgress(chipTool, " ***** Test Step 36 : Reads OffWaitTime attribute from DUT\n"); + err = TestReadsOffWaitTimeAttributeFromDut_36(); break; case 37: - ChipLogProgress(chipTool, " ***** Test Step 37 : Reads OnOff attribute from DUT\n"); - err = TestReadsOnOffAttributeFromDut_37(); + ChipLogProgress(chipTool, " ***** Test Step 37 : Send Off Command\n"); + err = TestSendOffCommand_37(); break; case 38: - ChipLogProgress(chipTool, " ***** Test Step 38 : Reads OnTime attribute from DUT\n"); - err = TestReadsOnTimeAttributeFromDut_38(); + ChipLogProgress(chipTool, " ***** Test Step 38 : Reads OnOff attribute from DUT\n"); + err = TestReadsOnOffAttributeFromDut_38(); break; case 39: - ChipLogProgress(chipTool, " ***** Test Step 39 : Reads OnOff attribute from DUT\n"); - err = TestReadsOnOffAttributeFromDut_39(); + ChipLogProgress(chipTool, " ***** Test Step 39 : Reads OnTime attribute from DUT\n"); + err = TestReadsOnTimeAttributeFromDut_39(); break; case 40: - ChipLogProgress(chipTool, " ***** Test Step 40 : Reads OnTime attribute from DUT\n"); - err = TestReadsOnTimeAttributeFromDut_40(); + ChipLogProgress(chipTool, " ***** Test Step 40 : Reads OnOff attribute from DUT\n"); + err = TestReadsOnOffAttributeFromDut_40(); break; case 41: - ChipLogProgress(chipTool, " ***** Test Step 41 : Reads OffWaitTime attribute from DUT\n"); - err = TestReadsOffWaitTimeAttributeFromDut_41(); + ChipLogProgress(chipTool, " ***** Test Step 41 : Reads OnTime attribute from DUT\n"); + err = TestReadsOnTimeAttributeFromDut_41(); break; case 42: - ChipLogProgress(chipTool, " ***** Test Step 42 : Reads OnOff attribute from DUT\n"); - err = TestReadsOnOffAttributeFromDut_42(); + ChipLogProgress(chipTool, " ***** Test Step 42 : Reads OffWaitTime attribute from DUT\n"); + err = TestReadsOffWaitTimeAttributeFromDut_42(); break; case 43: - ChipLogProgress(chipTool, " ***** Test Step 43 : Reads OnTime attribute from DUT\n"); - err = TestReadsOnTimeAttributeFromDut_43(); + ChipLogProgress(chipTool, " ***** Test Step 43 : Reads OnOff attribute from DUT\n"); + err = TestReadsOnOffAttributeFromDut_43(); break; case 44: - ChipLogProgress(chipTool, " ***** Test Step 44 : Reads OffWaitTime attribute from DUT\n"); - err = TestReadsOffWaitTimeAttributeFromDut_44(); + ChipLogProgress(chipTool, " ***** Test Step 44 : Reads OnTime attribute from DUT\n"); + err = TestReadsOnTimeAttributeFromDut_44(); break; case 45: - ChipLogProgress(chipTool, " ***** Test Step 45 : Send Off Command\n"); - err = TestSendOffCommand_45(); + ChipLogProgress(chipTool, " ***** Test Step 45 : Reads OffWaitTime attribute from DUT\n"); + err = TestReadsOffWaitTimeAttributeFromDut_45(); + break; + case 46: + ChipLogProgress(chipTool, " ***** Test Step 46 : Send Off Command\n"); + err = TestSendOffCommand_46(); break; } @@ -18732,36 +19102,26 @@ class Test_TC_OO_2_3 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 46; - - static void OnFailureCallback_2(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); - } - - static void OnSuccessCallback_2(void * context, bool onOff) - { - (static_cast(context))->OnSuccessResponse_2(onOff); - } + const uint16_t mTestCount = 47; static void OnFailureCallback_3(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, bool globalSceneControl) + static void OnSuccessCallback_3(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_3(globalSceneControl); + (static_cast(context))->OnSuccessResponse_3(onOff); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, bool onOff) + static void OnSuccessCallback_4(void * context, bool globalSceneControl) { - (static_cast(context))->OnSuccessResponse_6(onOff); + (static_cast(context))->OnSuccessResponse_4(globalSceneControl); } static void OnFailureCallback_7(void * context, EmberAfStatus status) @@ -18769,19 +19129,19 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, bool globalSceneControl) + static void OnSuccessCallback_7(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_7(globalSceneControl); + (static_cast(context))->OnSuccessResponse_7(onOff); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_10(void * context, bool onOff) + static void OnSuccessCallback_8(void * context, bool globalSceneControl) { - (static_cast(context))->OnSuccessResponse_10(onOff); + (static_cast(context))->OnSuccessResponse_8(globalSceneControl); } static void OnFailureCallback_11(void * context, EmberAfStatus status) @@ -18789,9 +19149,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_11(chip::to_underlying(status)); } - static void OnSuccessCallback_11(void * context, bool globalSceneControl) + static void OnSuccessCallback_11(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_11(globalSceneControl); + (static_cast(context))->OnSuccessResponse_11(onOff); } static void OnFailureCallback_12(void * context, EmberAfStatus status) @@ -18799,9 +19159,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_12(chip::to_underlying(status)); } - static void OnSuccessCallback_12(void * context, uint16_t onTime) + static void OnSuccessCallback_12(void * context, bool globalSceneControl) { - (static_cast(context))->OnSuccessResponse_12(onTime); + (static_cast(context))->OnSuccessResponse_12(globalSceneControl); } static void OnFailureCallback_13(void * context, EmberAfStatus status) @@ -18809,19 +19169,19 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_13(chip::to_underlying(status)); } - static void OnSuccessCallback_13(void * context, uint16_t offWaitTime) + static void OnSuccessCallback_13(void * context, uint16_t onTime) { - (static_cast(context))->OnSuccessResponse_13(offWaitTime); + (static_cast(context))->OnSuccessResponse_13(onTime); } - static void OnFailureCallback_15(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_15(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_14(chip::to_underlying(status)); } - static void OnSuccessCallback_15(void * context, bool onOff) + static void OnSuccessCallback_14(void * context, uint16_t offWaitTime) { - (static_cast(context))->OnSuccessResponse_15(onOff); + (static_cast(context))->OnSuccessResponse_14(offWaitTime); } static void OnFailureCallback_16(void * context, EmberAfStatus status) @@ -18829,9 +19189,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_16(chip::to_underlying(status)); } - static void OnSuccessCallback_16(void * context, uint16_t onTime) + static void OnSuccessCallback_16(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_16(onTime); + (static_cast(context))->OnSuccessResponse_16(onOff); } static void OnFailureCallback_17(void * context, EmberAfStatus status) @@ -18839,19 +19199,19 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_17(chip::to_underlying(status)); } - static void OnSuccessCallback_17(void * context, uint16_t offWaitTime) + static void OnSuccessCallback_17(void * context, uint16_t onTime) { - (static_cast(context))->OnSuccessResponse_17(offWaitTime); + (static_cast(context))->OnSuccessResponse_17(onTime); } - static void OnFailureCallback_19(void * context, EmberAfStatus status) + static void OnFailureCallback_18(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_19(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_18(chip::to_underlying(status)); } - static void OnSuccessCallback_19(void * context, bool onOff) + static void OnSuccessCallback_18(void * context, uint16_t offWaitTime) { - (static_cast(context))->OnSuccessResponse_19(onOff); + (static_cast(context))->OnSuccessResponse_18(offWaitTime); } static void OnFailureCallback_20(void * context, EmberAfStatus status) @@ -18859,9 +19219,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_20(chip::to_underlying(status)); } - static void OnSuccessCallback_20(void * context, uint16_t onTime) + static void OnSuccessCallback_20(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_20(onTime); + (static_cast(context))->OnSuccessResponse_20(onOff); } static void OnFailureCallback_21(void * context, EmberAfStatus status) @@ -18869,9 +19229,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_21(chip::to_underlying(status)); } - static void OnSuccessCallback_21(void * context, bool onOff) + static void OnSuccessCallback_21(void * context, uint16_t onTime) { - (static_cast(context))->OnSuccessResponse_21(onOff); + (static_cast(context))->OnSuccessResponse_21(onTime); } static void OnFailureCallback_22(void * context, EmberAfStatus status) @@ -18879,9 +19239,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_22(chip::to_underlying(status)); } - static void OnSuccessCallback_22(void * context, uint16_t onTime) + static void OnSuccessCallback_22(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_22(onTime); + (static_cast(context))->OnSuccessResponse_22(onOff); } static void OnFailureCallback_23(void * context, EmberAfStatus status) @@ -18889,19 +19249,19 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_23(chip::to_underlying(status)); } - static void OnSuccessCallback_23(void * context, uint16_t offWaitTime) + static void OnSuccessCallback_23(void * context, uint16_t onTime) { - (static_cast(context))->OnSuccessResponse_23(offWaitTime); + (static_cast(context))->OnSuccessResponse_23(onTime); } - static void OnFailureCallback_25(void * context, EmberAfStatus status) + static void OnFailureCallback_24(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_25(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_24(chip::to_underlying(status)); } - static void OnSuccessCallback_25(void * context, uint16_t onTime) + static void OnSuccessCallback_24(void * context, uint16_t offWaitTime) { - (static_cast(context))->OnSuccessResponse_25(onTime); + (static_cast(context))->OnSuccessResponse_24(offWaitTime); } static void OnFailureCallback_26(void * context, EmberAfStatus status) @@ -18909,19 +19269,19 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_26(chip::to_underlying(status)); } - static void OnSuccessCallback_26(void * context, uint16_t offWaitTime) + static void OnSuccessCallback_26(void * context, uint16_t onTime) { - (static_cast(context))->OnSuccessResponse_26(offWaitTime); + (static_cast(context))->OnSuccessResponse_26(onTime); } - static void OnFailureCallback_28(void * context, EmberAfStatus status) + static void OnFailureCallback_27(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_28(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_27(chip::to_underlying(status)); } - static void OnSuccessCallback_28(void * context, bool onOff) + static void OnSuccessCallback_27(void * context, uint16_t offWaitTime) { - (static_cast(context))->OnSuccessResponse_28(onOff); + (static_cast(context))->OnSuccessResponse_27(offWaitTime); } static void OnFailureCallback_29(void * context, EmberAfStatus status) @@ -18929,9 +19289,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_29(chip::to_underlying(status)); } - static void OnSuccessCallback_29(void * context, uint16_t onTime) + static void OnSuccessCallback_29(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_29(onTime); + (static_cast(context))->OnSuccessResponse_29(onOff); } static void OnFailureCallback_30(void * context, EmberAfStatus status) @@ -18939,9 +19299,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_30(chip::to_underlying(status)); } - static void OnSuccessCallback_30(void * context, bool onOff) + static void OnSuccessCallback_30(void * context, uint16_t onTime) { - (static_cast(context))->OnSuccessResponse_30(onOff); + (static_cast(context))->OnSuccessResponse_30(onTime); } static void OnFailureCallback_31(void * context, EmberAfStatus status) @@ -18949,19 +19309,19 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_31(chip::to_underlying(status)); } - static void OnSuccessCallback_31(void * context, uint16_t onTime) + static void OnSuccessCallback_31(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_31(onTime); + (static_cast(context))->OnSuccessResponse_31(onOff); } - static void OnFailureCallback_33(void * context, EmberAfStatus status) + static void OnFailureCallback_32(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_33(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_32(chip::to_underlying(status)); } - static void OnSuccessCallback_33(void * context, bool onOff) + static void OnSuccessCallback_32(void * context, uint16_t onTime) { - (static_cast(context))->OnSuccessResponse_33(onOff); + (static_cast(context))->OnSuccessResponse_32(onTime); } static void OnFailureCallback_34(void * context, EmberAfStatus status) @@ -18969,9 +19329,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_34(chip::to_underlying(status)); } - static void OnSuccessCallback_34(void * context, uint16_t onTime) + static void OnSuccessCallback_34(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_34(onTime); + (static_cast(context))->OnSuccessResponse_34(onOff); } static void OnFailureCallback_35(void * context, EmberAfStatus status) @@ -18979,19 +19339,19 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_35(chip::to_underlying(status)); } - static void OnSuccessCallback_35(void * context, uint16_t offWaitTime) + static void OnSuccessCallback_35(void * context, uint16_t onTime) { - (static_cast(context))->OnSuccessResponse_35(offWaitTime); + (static_cast(context))->OnSuccessResponse_35(onTime); } - static void OnFailureCallback_37(void * context, EmberAfStatus status) + static void OnFailureCallback_36(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_37(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_36(chip::to_underlying(status)); } - static void OnSuccessCallback_37(void * context, bool onOff) + static void OnSuccessCallback_36(void * context, uint16_t offWaitTime) { - (static_cast(context))->OnSuccessResponse_37(onOff); + (static_cast(context))->OnSuccessResponse_36(offWaitTime); } static void OnFailureCallback_38(void * context, EmberAfStatus status) @@ -18999,9 +19359,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_38(chip::to_underlying(status)); } - static void OnSuccessCallback_38(void * context, uint16_t onTime) + static void OnSuccessCallback_38(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_38(onTime); + (static_cast(context))->OnSuccessResponse_38(onOff); } static void OnFailureCallback_39(void * context, EmberAfStatus status) @@ -19009,9 +19369,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_39(chip::to_underlying(status)); } - static void OnSuccessCallback_39(void * context, bool onOff) + static void OnSuccessCallback_39(void * context, uint16_t onTime) { - (static_cast(context))->OnSuccessResponse_39(onOff); + (static_cast(context))->OnSuccessResponse_39(onTime); } static void OnFailureCallback_40(void * context, EmberAfStatus status) @@ -19019,9 +19379,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_40(chip::to_underlying(status)); } - static void OnSuccessCallback_40(void * context, uint16_t onTime) + static void OnSuccessCallback_40(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_40(onTime); + (static_cast(context))->OnSuccessResponse_40(onOff); } static void OnFailureCallback_41(void * context, EmberAfStatus status) @@ -19029,9 +19389,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_41(chip::to_underlying(status)); } - static void OnSuccessCallback_41(void * context, uint16_t offWaitTime) + static void OnSuccessCallback_41(void * context, uint16_t onTime) { - (static_cast(context))->OnSuccessResponse_41(offWaitTime); + (static_cast(context))->OnSuccessResponse_41(onTime); } static void OnFailureCallback_42(void * context, EmberAfStatus status) @@ -19039,9 +19399,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_42(chip::to_underlying(status)); } - static void OnSuccessCallback_42(void * context, bool onOff) + static void OnSuccessCallback_42(void * context, uint16_t offWaitTime) { - (static_cast(context))->OnSuccessResponse_42(onOff); + (static_cast(context))->OnSuccessResponse_42(offWaitTime); } static void OnFailureCallback_43(void * context, EmberAfStatus status) @@ -19049,9 +19409,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_43(chip::to_underlying(status)); } - static void OnSuccessCallback_43(void * context, uint16_t onTime) + static void OnSuccessCallback_43(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_43(onTime); + (static_cast(context))->OnSuccessResponse_43(onOff); } static void OnFailureCallback_44(void * context, EmberAfStatus status) @@ -19059,16 +19419,28 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnFailureResponse_44(chip::to_underlying(status)); } - static void OnSuccessCallback_44(void * context, uint16_t offWaitTime) + static void OnSuccessCallback_44(void * context, uint16_t onTime) + { + (static_cast(context))->OnSuccessResponse_44(onTime); + } + + static void OnFailureCallback_45(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_45(chip::to_underlying(status)); + } + + static void OnSuccessCallback_45(void * context, uint16_t offWaitTime) { - (static_cast(context))->OnSuccessResponse_44(offWaitTime); + (static_cast(context))->OnSuccessResponse_45(offWaitTime); } // // Tests methods // - CHIP_ERROR TestSendOnCommand_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestSendOnCommand_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -19076,62 +19448,62 @@ class Test_TC_OO_2_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestWait1000ms_1() { return WaitForMs(1000); } + CHIP_ERROR TestWait1000ms_2() { return WaitForMs(1000); } - CHIP_ERROR TestReadsOnOffAttributeFromDut_2() + CHIP_ERROR TestReadsOnOffAttributeFromDut_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_2, - OnFailureCallback_2); + return cluster.ReadAttribute(this, OnSuccessCallback_3, + OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(bool onOff) + void OnSuccessResponse_3(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestReadsGlobalSceneControlAttributeFromDut_3() + CHIP_ERROR TestReadsGlobalSceneControlAttributeFromDut_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_3, OnFailureCallback_3); + this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(bool globalSceneControl) + void OnSuccessResponse_4(bool globalSceneControl) { VerifyOrReturn(CheckValue("globalSceneControl", globalSceneControl, 1)); NextTest(); } - CHIP_ERROR TestSendOnCommand_4() + CHIP_ERROR TestSendOnCommand_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -19139,62 +19511,62 @@ class Test_TC_OO_2_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_4(); + (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_5(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4() { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } - CHIP_ERROR TestWait1000ms_5() { return WaitForMs(1000); } + CHIP_ERROR TestWait1000ms_6() { return WaitForMs(1000); } - CHIP_ERROR TestReadsOnOffAttributeFromDut_6() + CHIP_ERROR TestReadsOnOffAttributeFromDut_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_6, - OnFailureCallback_6); + return cluster.ReadAttribute(this, OnSuccessCallback_7, + OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(bool onOff) + void OnSuccessResponse_7(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestReadsGlobalSceneControlAttributeFromDut_7() + CHIP_ERROR TestReadsGlobalSceneControlAttributeFromDut_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_7, OnFailureCallback_7); + this, OnSuccessCallback_8, OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(bool globalSceneControl) + void OnSuccessResponse_8(bool globalSceneControl) { VerifyOrReturn(CheckValue("globalSceneControl", globalSceneControl, 1)); NextTest(); } - CHIP_ERROR TestSendOnCommand_8() + CHIP_ERROR TestSendOnCommand_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -19202,100 +19574,100 @@ class Test_TC_OO_2_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_8(); + (static_cast(context))->OnSuccessResponse_9(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_9(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8() { NextTest(); } + void OnSuccessResponse_9() { NextTest(); } - CHIP_ERROR TestWait1000ms_9() { return WaitForMs(1000); } + CHIP_ERROR TestWait1000ms_10() { return WaitForMs(1000); } - CHIP_ERROR TestReadsOnOffAttributeFromDut_10() + CHIP_ERROR TestReadsOnOffAttributeFromDut_11() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_10, - OnFailureCallback_10); + return cluster.ReadAttribute(this, OnSuccessCallback_11, + OnFailureCallback_11); } - void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_10(bool onOff) + void OnSuccessResponse_11(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestReadsGlobalSceneControlAttributeFromDut_11() + CHIP_ERROR TestReadsGlobalSceneControlAttributeFromDut_12() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_11, OnFailureCallback_11); + this, OnSuccessCallback_12, OnFailureCallback_12); } - void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_11(bool globalSceneControl) + void OnSuccessResponse_12(bool globalSceneControl) { VerifyOrReturn(CheckValue("globalSceneControl", globalSceneControl, 1)); NextTest(); } - CHIP_ERROR TestReadsOnTimeAttributeFromDut_12() + CHIP_ERROR TestReadsOnTimeAttributeFromDut_13() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_12, - OnFailureCallback_12); + return cluster.ReadAttribute(this, OnSuccessCallback_13, + OnFailureCallback_13); } - void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_12(uint16_t onTime) + void OnSuccessResponse_13(uint16_t onTime) { VerifyOrReturn(CheckValue("onTime", onTime, 0U)); NextTest(); } - CHIP_ERROR TestReadsOffWaitTimeAttributeFromDut_13() + CHIP_ERROR TestReadsOffWaitTimeAttributeFromDut_14() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_13, - OnFailureCallback_13); + return cluster.ReadAttribute(this, OnSuccessCallback_14, + OnFailureCallback_14); } - void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_13(uint16_t offWaitTime) + void OnSuccessResponse_14(uint16_t offWaitTime) { VerifyOrReturn(CheckValue("offWaitTime", offWaitTime, 0U)); NextTest(); } - CHIP_ERROR TestSendOnCommand_14() + CHIP_ERROR TestSendOnCommand_15() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -19303,79 +19675,79 @@ class Test_TC_OO_2_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_14(); + (static_cast(context))->OnSuccessResponse_15(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_15(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_15(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_14() { NextTest(); } + void OnSuccessResponse_15() { NextTest(); } - CHIP_ERROR TestReadsOnOffAttributeFromDut_15() + CHIP_ERROR TestReadsOnOffAttributeFromDut_16() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_15, - OnFailureCallback_15); + return cluster.ReadAttribute(this, OnSuccessCallback_16, + OnFailureCallback_16); } - void OnFailureResponse_15(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_16(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_15(bool onOff) + void OnSuccessResponse_16(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestReadsOnTimeAttributeFromDut_16() + CHIP_ERROR TestReadsOnTimeAttributeFromDut_17() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_16, - OnFailureCallback_16); + return cluster.ReadAttribute(this, OnSuccessCallback_17, + OnFailureCallback_17); } - void OnFailureResponse_16(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_17(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_16(uint16_t onTime) + void OnSuccessResponse_17(uint16_t onTime) { VerifyOrReturn(CheckValue("onTime", onTime, 0U)); NextTest(); } - CHIP_ERROR TestReadsOffWaitTimeAttributeFromDut_17() + CHIP_ERROR TestReadsOffWaitTimeAttributeFromDut_18() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_17, - OnFailureCallback_17); + return cluster.ReadAttribute(this, OnSuccessCallback_18, + OnFailureCallback_18); } - void OnFailureResponse_17(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_18(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_17(uint16_t offWaitTime) + void OnSuccessResponse_18(uint16_t offWaitTime) { VerifyOrReturn(CheckValue("offWaitTime", offWaitTime, 0U)); NextTest(); } - CHIP_ERROR TestSendOffCommand_18() + CHIP_ERROR TestSendOffCommand_19() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -19383,117 +19755,117 @@ class Test_TC_OO_2_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_18(); + (static_cast(context))->OnSuccessResponse_19(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_18(status); + (static_cast(context))->OnFailureResponse_19(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_18(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_19(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_18() { NextTest(); } + void OnSuccessResponse_19() { NextTest(); } - CHIP_ERROR TestReadsOnOffAttributeFromDut_19() + CHIP_ERROR TestReadsOnOffAttributeFromDut_20() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_19, - OnFailureCallback_19); + return cluster.ReadAttribute(this, OnSuccessCallback_20, + OnFailureCallback_20); } - void OnFailureResponse_19(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_20(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_19(bool onOff) + void OnSuccessResponse_20(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); NextTest(); } - CHIP_ERROR TestReadsOnTimeAttributeFromDut_20() + CHIP_ERROR TestReadsOnTimeAttributeFromDut_21() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_20, - OnFailureCallback_20); + return cluster.ReadAttribute(this, OnSuccessCallback_21, + OnFailureCallback_21); } - void OnFailureResponse_20(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_21(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_20(uint16_t onTime) + void OnSuccessResponse_21(uint16_t onTime) { VerifyOrReturn(CheckValue("onTime", onTime, 0U)); NextTest(); } - CHIP_ERROR TestReadsOnOffAttributeFromDut_21() + CHIP_ERROR TestReadsOnOffAttributeFromDut_22() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_21, - OnFailureCallback_21); + return cluster.ReadAttribute(this, OnSuccessCallback_22, + OnFailureCallback_22); } - void OnFailureResponse_21(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_22(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_21(bool onOff) + void OnSuccessResponse_22(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); NextTest(); } - CHIP_ERROR TestReadsOnTimeAttributeFromDut_22() + CHIP_ERROR TestReadsOnTimeAttributeFromDut_23() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_22, - OnFailureCallback_22); + return cluster.ReadAttribute(this, OnSuccessCallback_23, + OnFailureCallback_23); } - void OnFailureResponse_22(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_23(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_22(uint16_t onTime) + void OnSuccessResponse_23(uint16_t onTime) { VerifyOrReturn(CheckValue("onTime", onTime, 0U)); NextTest(); } - CHIP_ERROR TestReadsOffWaitTimeAttributeFromDut_23() + CHIP_ERROR TestReadsOffWaitTimeAttributeFromDut_24() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_23, - OnFailureCallback_23); + return cluster.ReadAttribute(this, OnSuccessCallback_24, + OnFailureCallback_24); } - void OnFailureResponse_23(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_24(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_23(uint16_t offWaitTime) + void OnSuccessResponse_24(uint16_t offWaitTime) { VerifyOrReturn(CheckValue("offWaitTime", offWaitTime, 0U)); NextTest(); } - CHIP_ERROR TestSendOnCommand_24() + CHIP_ERROR TestSendOnCommand_25() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -19501,60 +19873,60 @@ class Test_TC_OO_2_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_24(); + (static_cast(context))->OnSuccessResponse_25(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_24(status); + (static_cast(context))->OnFailureResponse_25(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_24(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_25(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_24() { NextTest(); } + void OnSuccessResponse_25() { NextTest(); } - CHIP_ERROR TestReadsOnTimeAttributeFromDut_25() + CHIP_ERROR TestReadsOnTimeAttributeFromDut_26() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_25, - OnFailureCallback_25); + return cluster.ReadAttribute(this, OnSuccessCallback_26, + OnFailureCallback_26); } - void OnFailureResponse_25(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_26(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_25(uint16_t onTime) + void OnSuccessResponse_26(uint16_t onTime) { VerifyOrReturn(CheckValue("onTime", onTime, 0U)); NextTest(); } - CHIP_ERROR TestReadsOffWaitTimeAttributeFromDut_26() + CHIP_ERROR TestReadsOffWaitTimeAttributeFromDut_27() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_26, - OnFailureCallback_26); + return cluster.ReadAttribute(this, OnSuccessCallback_27, + OnFailureCallback_27); } - void OnFailureResponse_26(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_27(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_26(uint16_t offWaitTime) + void OnSuccessResponse_27(uint16_t offWaitTime) { VerifyOrReturn(CheckValue("offWaitTime", offWaitTime, 0U)); NextTest(); } - CHIP_ERROR TestSendOffCommand_27() + CHIP_ERROR TestSendOffCommand_28() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -19562,98 +19934,98 @@ class Test_TC_OO_2_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_27(); + (static_cast(context))->OnSuccessResponse_28(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_27(status); + (static_cast(context))->OnFailureResponse_28(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_27(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_28(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_27() { NextTest(); } + void OnSuccessResponse_28() { NextTest(); } - CHIP_ERROR TestReadsOnOffAttributeFromDut_28() + CHIP_ERROR TestReadsOnOffAttributeFromDut_29() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_28, - OnFailureCallback_28); + return cluster.ReadAttribute(this, OnSuccessCallback_29, + OnFailureCallback_29); } - void OnFailureResponse_28(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_29(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_28(bool onOff) + void OnSuccessResponse_29(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); NextTest(); } - CHIP_ERROR TestReadsOnTimeAttributeFromDut_29() + CHIP_ERROR TestReadsOnTimeAttributeFromDut_30() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_29, - OnFailureCallback_29); + return cluster.ReadAttribute(this, OnSuccessCallback_30, + OnFailureCallback_30); } - void OnFailureResponse_29(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_30(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_29(uint16_t onTime) + void OnSuccessResponse_30(uint16_t onTime) { VerifyOrReturn(CheckValue("onTime", onTime, 0U)); NextTest(); } - CHIP_ERROR TestReadsOnOffAttributeFromDut_30() + CHIP_ERROR TestReadsOnOffAttributeFromDut_31() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_30, - OnFailureCallback_30); + return cluster.ReadAttribute(this, OnSuccessCallback_31, + OnFailureCallback_31); } - void OnFailureResponse_30(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_31(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_30(bool onOff) + void OnSuccessResponse_31(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); NextTest(); } - CHIP_ERROR TestReadsOnTimeAttributeFromDut_31() + CHIP_ERROR TestReadsOnTimeAttributeFromDut_32() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_31, - OnFailureCallback_31); + return cluster.ReadAttribute(this, OnSuccessCallback_32, + OnFailureCallback_32); } - void OnFailureResponse_31(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_32(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_31(uint16_t onTime) + void OnSuccessResponse_32(uint16_t onTime) { VerifyOrReturn(CheckValue("onTime", onTime, 0U)); NextTest(); } - CHIP_ERROR TestSendOnCommand_32() + CHIP_ERROR TestSendOnCommand_33() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -19661,79 +20033,79 @@ class Test_TC_OO_2_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_32(); + (static_cast(context))->OnSuccessResponse_33(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_32(status); + (static_cast(context))->OnFailureResponse_33(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_32(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_33(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_32() { NextTest(); } + void OnSuccessResponse_33() { NextTest(); } - CHIP_ERROR TestReadsOnOffAttributeFromDut_33() + CHIP_ERROR TestReadsOnOffAttributeFromDut_34() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_33, - OnFailureCallback_33); + return cluster.ReadAttribute(this, OnSuccessCallback_34, + OnFailureCallback_34); } - void OnFailureResponse_33(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_34(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_33(bool onOff) + void OnSuccessResponse_34(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 1)); NextTest(); } - CHIP_ERROR TestReadsOnTimeAttributeFromDut_34() + CHIP_ERROR TestReadsOnTimeAttributeFromDut_35() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_34, - OnFailureCallback_34); + return cluster.ReadAttribute(this, OnSuccessCallback_35, + OnFailureCallback_35); } - void OnFailureResponse_34(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_35(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_34(uint16_t onTime) + void OnSuccessResponse_35(uint16_t onTime) { VerifyOrReturn(CheckValue("onTime", onTime, 0U)); NextTest(); } - CHIP_ERROR TestReadsOffWaitTimeAttributeFromDut_35() + CHIP_ERROR TestReadsOffWaitTimeAttributeFromDut_36() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_35, - OnFailureCallback_35); + return cluster.ReadAttribute(this, OnSuccessCallback_36, + OnFailureCallback_36); } - void OnFailureResponse_35(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_36(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_35(uint16_t offWaitTime) + void OnSuccessResponse_36(uint16_t offWaitTime) { VerifyOrReturn(CheckValue("offWaitTime", offWaitTime, 0U)); NextTest(); } - CHIP_ERROR TestSendOffCommand_36() + CHIP_ERROR TestSendOffCommand_37() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -19741,174 +20113,174 @@ class Test_TC_OO_2_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_36(); + (static_cast(context))->OnSuccessResponse_37(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_36(status); + (static_cast(context))->OnFailureResponse_37(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_36(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_37(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_36() { NextTest(); } + void OnSuccessResponse_37() { NextTest(); } - CHIP_ERROR TestReadsOnOffAttributeFromDut_37() + CHIP_ERROR TestReadsOnOffAttributeFromDut_38() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_37, - OnFailureCallback_37); + return cluster.ReadAttribute(this, OnSuccessCallback_38, + OnFailureCallback_38); } - void OnFailureResponse_37(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_38(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_37(bool onOff) + void OnSuccessResponse_38(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); NextTest(); } - CHIP_ERROR TestReadsOnTimeAttributeFromDut_38() + CHIP_ERROR TestReadsOnTimeAttributeFromDut_39() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_38, - OnFailureCallback_38); + return cluster.ReadAttribute(this, OnSuccessCallback_39, + OnFailureCallback_39); } - void OnFailureResponse_38(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_39(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_38(uint16_t onTime) + void OnSuccessResponse_39(uint16_t onTime) { VerifyOrReturn(CheckValue("onTime", onTime, 0U)); NextTest(); } - CHIP_ERROR TestReadsOnOffAttributeFromDut_39() + CHIP_ERROR TestReadsOnOffAttributeFromDut_40() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_39, - OnFailureCallback_39); + return cluster.ReadAttribute(this, OnSuccessCallback_40, + OnFailureCallback_40); } - void OnFailureResponse_39(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_40(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_39(bool onOff) + void OnSuccessResponse_40(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); NextTest(); } - CHIP_ERROR TestReadsOnTimeAttributeFromDut_40() + CHIP_ERROR TestReadsOnTimeAttributeFromDut_41() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_40, - OnFailureCallback_40); + return cluster.ReadAttribute(this, OnSuccessCallback_41, + OnFailureCallback_41); } - void OnFailureResponse_40(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_41(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_40(uint16_t onTime) + void OnSuccessResponse_41(uint16_t onTime) { VerifyOrReturn(CheckValue("onTime", onTime, 0U)); NextTest(); } - CHIP_ERROR TestReadsOffWaitTimeAttributeFromDut_41() + CHIP_ERROR TestReadsOffWaitTimeAttributeFromDut_42() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_41, - OnFailureCallback_41); + return cluster.ReadAttribute(this, OnSuccessCallback_42, + OnFailureCallback_42); } - void OnFailureResponse_41(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_42(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_41(uint16_t offWaitTime) + void OnSuccessResponse_42(uint16_t offWaitTime) { VerifyOrReturn(CheckValue("offWaitTime", offWaitTime, 0U)); NextTest(); } - CHIP_ERROR TestReadsOnOffAttributeFromDut_42() + CHIP_ERROR TestReadsOnOffAttributeFromDut_43() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_42, - OnFailureCallback_42); + return cluster.ReadAttribute(this, OnSuccessCallback_43, + OnFailureCallback_43); } - void OnFailureResponse_42(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_43(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_42(bool onOff) + void OnSuccessResponse_43(bool onOff) { VerifyOrReturn(CheckValue("onOff", onOff, 0)); NextTest(); } - CHIP_ERROR TestReadsOnTimeAttributeFromDut_43() + CHIP_ERROR TestReadsOnTimeAttributeFromDut_44() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_43, - OnFailureCallback_43); + return cluster.ReadAttribute(this, OnSuccessCallback_44, + OnFailureCallback_44); } - void OnFailureResponse_43(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_44(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_43(uint16_t onTime) + void OnSuccessResponse_44(uint16_t onTime) { VerifyOrReturn(CheckValue("onTime", onTime, 0U)); NextTest(); } - CHIP_ERROR TestReadsOffWaitTimeAttributeFromDut_44() + CHIP_ERROR TestReadsOffWaitTimeAttributeFromDut_45() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_44, - OnFailureCallback_44); + return cluster.ReadAttribute(this, OnSuccessCallback_45, + OnFailureCallback_45); } - void OnFailureResponse_44(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_45(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_44(uint16_t offWaitTime) + void OnSuccessResponse_45(uint16_t offWaitTime) { VerifyOrReturn(CheckValue("offWaitTime", offWaitTime, 0U)); NextTest(); } - CHIP_ERROR TestSendOffCommand_45() + CHIP_ERROR TestSendOffCommand_46() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -19916,20 +20288,20 @@ class Test_TC_OO_2_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_45(); + (static_cast(context))->OnSuccessResponse_46(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_45(status); + (static_cast(context))->OnFailureResponse_46(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_45(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_46(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_45() { NextTest(); } + void OnSuccessResponse_46() { NextTest(); } }; class Test_TC_PRS_1_1 : public TestCommand @@ -19963,21 +20335,25 @@ class Test_TC_PRS_1_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Read the global attribute: ClusterRevision\n"); - err = TestReadTheGlobalAttributeClusterRevision_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 : Read the global attribute constraints: ClusterRevision\n"); - err = TestReadTheGlobalAttributeConstraintsClusterRevision_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Read the global attribute: ClusterRevision\n"); + err = TestReadTheGlobalAttributeClusterRevision_1(); break; case 2: - ChipLogProgress(chipTool, - " ***** Test Step 2 : Write the default values to mandatory global attribute: ClusterRevision\n"); - err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Read the global attribute constraints: ClusterRevision\n"); + err = TestReadTheGlobalAttributeConstraintsClusterRevision_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Reads back global attribute: ClusterRevision\n"); - err = TestReadsBackGlobalAttributeClusterRevision_3(); + ChipLogProgress(chipTool, + " ***** Test Step 3 : Write the default values to mandatory global attribute: ClusterRevision\n"); + err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_3(); + break; + case 4: + ChipLogProgress(chipTool, " ***** Test Step 4 : Reads back global attribute: ClusterRevision\n"); + err = TestReadsBackGlobalAttributeClusterRevision_4(); break; } @@ -19990,17 +20366,7 @@ class Test_TC_PRS_1_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 4; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); - } + const uint16_t mTestCount = 5; static void OnFailureCallback_1(void * context, EmberAfStatus status) { @@ -20017,61 +20383,73 @@ class Test_TC_PRS_1_1 : public TestCommand (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } + static void OnSuccessCallback_2(void * context, uint16_t clusterRevision) + { + (static_cast(context))->OnSuccessResponse_2(clusterRevision); + } static void OnFailureCallback_3(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, uint16_t clusterRevision) + static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } + + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnSuccessResponse_3(clusterRevision); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); + } + + static void OnSuccessCallback_4(void * context, uint16_t clusterRevision) + { + (static_cast(context))->OnSuccessResponse_4(clusterRevision); } // // Tests methods // - CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint16_t clusterRevision) + void OnSuccessResponse_1(uint16_t clusterRevision) { VerifyOrReturn(CheckValue("clusterRevision", clusterRevision, 2U)); NextTest(); } - CHIP_ERROR TestReadTheGlobalAttributeConstraintsClusterRevision_1() + CHIP_ERROR TestReadTheGlobalAttributeConstraintsClusterRevision_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_1, OnFailureCallback_1); + this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(uint16_t clusterRevision) + void OnSuccessResponse_2(uint16_t clusterRevision) { VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; @@ -20081,30 +20459,30 @@ class Test_TC_PRS_1_1 : public TestCommand clusterRevisionArgument = 2U; return cluster.WriteAttribute( - clusterRevisionArgument, this, OnSuccessCallback_2, OnFailureCallback_2); + clusterRevisionArgument, this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) + void OnFailureResponse_3(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_2() { ThrowSuccessResponse(); } + void OnSuccessResponse_3() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_3() + CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_3, OnFailureCallback_3); + this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint16_t clusterRevision) + void OnSuccessResponse_4(uint16_t clusterRevision) { VerifyOrReturn(CheckValue("clusterRevision", clusterRevision, 2U)); @@ -20143,40 +20521,44 @@ class Test_TC_PRS_2_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Read the mandatory attribute constraints: MeasuredValue\n"); - err = TestReadTheMandatoryAttributeConstraintsMeasuredValue_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 : Write the default values to mandatory attribute: MeasuredValue\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeMeasuredValue_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Read the mandatory attribute constraints: MeasuredValue\n"); + err = TestReadTheMandatoryAttributeConstraintsMeasuredValue_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Reads back mandatory attribute: MeasuredValue\n"); - err = TestReadsBackMandatoryAttributeMeasuredValue_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Write the default values to mandatory attribute: MeasuredValue\n"); + err = TestWriteTheDefaultValuesToMandatoryAttributeMeasuredValue_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Read the mandatory attribute constraints: MinMeasuredValue\n"); - err = TestReadTheMandatoryAttributeConstraintsMinMeasuredValue_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Reads back mandatory attribute: MeasuredValue\n"); + err = TestReadsBackMandatoryAttributeMeasuredValue_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Write the default values to mandatory attribute: MinMeasuredValue\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeMinMeasuredValue_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Read the mandatory attribute constraints: MinMeasuredValue\n"); + err = TestReadTheMandatoryAttributeConstraintsMinMeasuredValue_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Reads back mandatory attribute: MinMeasuredValue\n"); - err = TestReadsBackMandatoryAttributeMinMeasuredValue_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Write the default values to mandatory attribute: MinMeasuredValue\n"); + err = TestWriteTheDefaultValuesToMandatoryAttributeMinMeasuredValue_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Read the mandatory attribute constraints: MaxMeasuredValue\n"); - err = TestReadTheMandatoryAttributeConstraintsMaxMeasuredValue_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Reads back mandatory attribute: MinMeasuredValue\n"); + err = TestReadsBackMandatoryAttributeMinMeasuredValue_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Write the default values to mandatory attribute: MaxMeasuredValue\n"); - err = TestWriteTheDefaultValuesToMandatoryAttributeMaxMeasuredValue_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Read the mandatory attribute constraints: MaxMeasuredValue\n"); + err = TestReadTheMandatoryAttributeConstraintsMaxMeasuredValue_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Reads back mandatory attribute: MaxMeasuredValue\n"); - err = TestReadsBackMandatoryAttributeMaxMeasuredValue_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : Write the default values to mandatory attribute: MaxMeasuredValue\n"); + err = TestWriteTheDefaultValuesToMandatoryAttributeMaxMeasuredValue_8(); + break; + case 9: + ChipLogProgress(chipTool, " ***** Test Step 9 : Reads back mandatory attribute: MaxMeasuredValue\n"); + err = TestReadsBackMandatoryAttributeMaxMeasuredValue_9(); break; } @@ -20189,43 +20571,33 @@ class Test_TC_PRS_2_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 9; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context, int16_t measuredValue) - { - (static_cast(context))->OnSuccessResponse_0(measuredValue); - } + const uint16_t mTestCount = 10; static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } + static void OnSuccessCallback_1(void * context, int16_t measuredValue) + { + (static_cast(context))->OnSuccessResponse_1(measuredValue); + } static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, int16_t measuredValue) - { - (static_cast(context))->OnSuccessResponse_2(measuredValue); - } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } static void OnFailureCallback_3(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, int16_t minMeasuredValue) + static void OnSuccessCallback_3(void * context, int16_t measuredValue) { - (static_cast(context))->OnSuccessResponse_3(minMeasuredValue); + (static_cast(context))->OnSuccessResponse_3(measuredValue); } static void OnFailureCallback_4(void * context, EmberAfStatus status) @@ -20233,26 +20605,26 @@ class Test_TC_PRS_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } + static void OnSuccessCallback_4(void * context, int16_t minMeasuredValue) + { + (static_cast(context))->OnSuccessResponse_4(minMeasuredValue); + } static void OnFailureCallback_5(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, int16_t minMeasuredValue) - { - (static_cast(context))->OnSuccessResponse_5(minMeasuredValue); - } + static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } static void OnFailureCallback_6(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, int16_t maxMeasuredValue) + static void OnSuccessCallback_6(void * context, int16_t minMeasuredValue) { - (static_cast(context))->OnSuccessResponse_6(maxMeasuredValue); + (static_cast(context))->OnSuccessResponse_6(minMeasuredValue); } static void OnFailureCallback_7(void * context, EmberAfStatus status) @@ -20260,42 +20632,54 @@ class Test_TC_PRS_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } + static void OnSuccessCallback_7(void * context, int16_t maxMeasuredValue) + { + (static_cast(context))->OnSuccessResponse_7(maxMeasuredValue); + } static void OnFailureCallback_8(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_8(void * context, int16_t maxMeasuredValue) + static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } + + static void OnFailureCallback_9(void * context, EmberAfStatus status) { - (static_cast(context))->OnSuccessResponse_8(maxMeasuredValue); + (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); + } + + static void OnSuccessCallback_9(void * context, int16_t maxMeasuredValue) + { + (static_cast(context))->OnSuccessResponse_9(maxMeasuredValue); } // // Tests methods // - CHIP_ERROR TestReadTheMandatoryAttributeConstraintsMeasuredValue_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadTheMandatoryAttributeConstraintsMeasuredValue_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(int16_t measuredValue) + void OnSuccessResponse_1(int16_t measuredValue) { VerifyOrReturn(CheckConstraintType("measuredValue", "", "int16")); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeMeasuredValue_1() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeMeasuredValue_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; @@ -20305,56 +20689,56 @@ class Test_TC_PRS_2_1 : public TestCommand measuredValueArgument = 0; return cluster.WriteAttribute( - measuredValueArgument, this, OnSuccessCallback_1, OnFailureCallback_1); + measuredValueArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) + void OnFailureResponse_2(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_1() { ThrowSuccessResponse(); } + void OnSuccessResponse_2() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackMandatoryAttributeMeasuredValue_2() + CHIP_ERROR TestReadsBackMandatoryAttributeMeasuredValue_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(int16_t measuredValue) + void OnSuccessResponse_3(int16_t measuredValue) { VerifyOrReturn(CheckValue("measuredValue", measuredValue, 0)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeConstraintsMinMeasuredValue_3() + CHIP_ERROR TestReadTheMandatoryAttributeConstraintsMinMeasuredValue_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_3, OnFailureCallback_3); + this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(int16_t minMeasuredValue) + void OnSuccessResponse_4(int16_t minMeasuredValue) { VerifyOrReturn(CheckConstraintType("minMeasuredValue", "", "int16")); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeMinMeasuredValue_4() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeMinMeasuredValue_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; @@ -20364,56 +20748,56 @@ class Test_TC_PRS_2_1 : public TestCommand minMeasuredValueArgument = 0; return cluster.WriteAttribute( - minMeasuredValueArgument, this, OnSuccessCallback_4, OnFailureCallback_4); + minMeasuredValueArgument, this, OnSuccessCallback_5, OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) + void OnFailureResponse_5(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_4() { ThrowSuccessResponse(); } + void OnSuccessResponse_5() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackMandatoryAttributeMinMeasuredValue_5() + CHIP_ERROR TestReadsBackMandatoryAttributeMinMeasuredValue_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_5, OnFailureCallback_5); + this, OnSuccessCallback_6, OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(int16_t minMeasuredValue) + void OnSuccessResponse_6(int16_t minMeasuredValue) { VerifyOrReturn(CheckValue("minMeasuredValue", minMeasuredValue, 0)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeConstraintsMaxMeasuredValue_6() + CHIP_ERROR TestReadTheMandatoryAttributeConstraintsMaxMeasuredValue_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_6, OnFailureCallback_6); + this, OnSuccessCallback_7, OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(int16_t maxMeasuredValue) + void OnSuccessResponse_7(int16_t maxMeasuredValue) { VerifyOrReturn(CheckConstraintType("maxMeasuredValue", "", "int16")); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeMaxMeasuredValue_7() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryAttributeMaxMeasuredValue_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; @@ -20423,30 +20807,30 @@ class Test_TC_PRS_2_1 : public TestCommand maxMeasuredValueArgument = 0; return cluster.WriteAttribute( - maxMeasuredValueArgument, this, OnSuccessCallback_7, OnFailureCallback_7); + maxMeasuredValueArgument, this, OnSuccessCallback_8, OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) + void OnFailureResponse_8(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_7() { ThrowSuccessResponse(); } + void OnSuccessResponse_8() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackMandatoryAttributeMaxMeasuredValue_8() + CHIP_ERROR TestReadsBackMandatoryAttributeMaxMeasuredValue_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PressureMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_8, OnFailureCallback_8); + this, OnSuccessCallback_9, OnFailureCallback_9); } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8(int16_t maxMeasuredValue) + void OnSuccessResponse_9(int16_t maxMeasuredValue) { VerifyOrReturn(CheckValue("maxMeasuredValue", maxMeasuredValue, 0)); @@ -20485,9 +20869,13 @@ class Test_TC_PCC_1_1 : public TestCommand 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 0 : write the default values to mandatory global attribute: ClusterRevision\n"); - err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_0(); + " ***** Test Step 1 : write the default values to mandatory global attribute: ClusterRevision\n"); + err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1(); break; } @@ -20500,20 +20888,22 @@ class Test_TC_PCC_1_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 1; + const uint16_t mTestCount = 2; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } // // Tests methods // - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; @@ -20523,16 +20913,16 @@ class Test_TC_PCC_1_1 : public TestCommand clusterRevisionArgument = 3U; return cluster.WriteAttribute( - clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) + void OnFailureResponse_1(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_0() { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } }; class Test_TC_PCC_2_1 : public TestCommand @@ -20566,36 +20956,40 @@ class Test_TC_PCC_2_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : read the mandatory attribute: MaxPressure\n"); - err = TestReadTheMandatoryAttributeMaxPressure_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 : read the mandatory attribute: EffectiveOperationMode\n"); - err = TestReadTheMandatoryAttributeEffectiveOperationMode_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : read the mandatory attribute: MaxPressure\n"); + err = TestReadTheMandatoryAttributeMaxPressure_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : read the mandatory attribute: EffectiveControlMode\n"); - err = TestReadTheMandatoryAttributeEffectiveControlMode_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : read the mandatory attribute: EffectiveOperationMode\n"); + err = TestReadTheMandatoryAttributeEffectiveOperationMode_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : read the mandatory attribute: Capacity\n"); - err = TestReadTheMandatoryAttributeCapacity_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : read the mandatory attribute: EffectiveControlMode\n"); + err = TestReadTheMandatoryAttributeEffectiveControlMode_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : read the mandatory attribute: MaxPressure\n"); - err = TestReadTheMandatoryAttributeMaxPressure_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : read the mandatory attribute: Capacity\n"); + err = TestReadTheMandatoryAttributeCapacity_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : read the mandatory attribute: EffectiveOperationMode\n"); - err = TestReadTheMandatoryAttributeEffectiveOperationMode_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : read the mandatory attribute: MaxPressure\n"); + err = TestReadTheMandatoryAttributeMaxPressure_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : read the mandatory attribute: EffectiveControlMode\n"); - err = TestReadTheMandatoryAttributeEffectiveControlMode_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : read the mandatory attribute: EffectiveOperationMode\n"); + err = TestReadTheMandatoryAttributeEffectiveOperationMode_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : read the mandatory attribute: Capacity\n"); - err = TestReadTheMandatoryAttributeCapacity_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : read the mandatory attribute: EffectiveControlMode\n"); + err = TestReadTheMandatoryAttributeEffectiveControlMode_7(); + break; + case 8: + ChipLogProgress(chipTool, " ***** Test Step 8 : read the mandatory attribute: Capacity\n"); + err = TestReadTheMandatoryAttributeCapacity_8(); break; } @@ -20608,26 +21002,16 @@ class Test_TC_PCC_2_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 8; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context, int16_t maxPressure) - { - (static_cast(context))->OnSuccessResponse_0(maxPressure); - } + const uint16_t mTestCount = 9; static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint8_t effectiveOperationMode) + static void OnSuccessCallback_1(void * context, int16_t maxPressure) { - (static_cast(context))->OnSuccessResponse_1(effectiveOperationMode); + (static_cast(context))->OnSuccessResponse_1(maxPressure); } static void OnFailureCallback_2(void * context, EmberAfStatus status) @@ -20635,9 +21019,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint8_t effectiveControlMode) + static void OnSuccessCallback_2(void * context, uint8_t effectiveOperationMode) { - (static_cast(context))->OnSuccessResponse_2(effectiveControlMode); + (static_cast(context))->OnSuccessResponse_2(effectiveOperationMode); } static void OnFailureCallback_3(void * context, EmberAfStatus status) @@ -20645,9 +21029,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, int16_t capacity) + static void OnSuccessCallback_3(void * context, uint8_t effectiveControlMode) { - (static_cast(context))->OnSuccessResponse_3(capacity); + (static_cast(context))->OnSuccessResponse_3(effectiveControlMode); } static void OnFailureCallback_4(void * context, EmberAfStatus status) @@ -20655,9 +21039,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, int16_t maxPressure) + static void OnSuccessCallback_4(void * context, int16_t capacity) { - (static_cast(context))->OnSuccessResponse_4(maxPressure); + (static_cast(context))->OnSuccessResponse_4(capacity); } static void OnFailureCallback_5(void * context, EmberAfStatus status) @@ -20665,9 +21049,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, uint8_t effectiveOperationMode) + static void OnSuccessCallback_5(void * context, int16_t maxPressure) { - (static_cast(context))->OnSuccessResponse_5(effectiveOperationMode); + (static_cast(context))->OnSuccessResponse_5(maxPressure); } static void OnFailureCallback_6(void * context, EmberAfStatus status) @@ -20675,9 +21059,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, uint8_t effectiveControlMode) + static void OnSuccessCallback_6(void * context, uint8_t effectiveOperationMode) { - (static_cast(context))->OnSuccessResponse_6(effectiveControlMode); + (static_cast(context))->OnSuccessResponse_6(effectiveOperationMode); } static void OnFailureCallback_7(void * context, EmberAfStatus status) @@ -20685,35 +21069,47 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, int16_t capacity) + static void OnSuccessCallback_7(void * context, uint8_t effectiveControlMode) + { + (static_cast(context))->OnSuccessResponse_7(effectiveControlMode); + } + + static void OnFailureCallback_8(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); + } + + static void OnSuccessCallback_8(void * context, int16_t capacity) { - (static_cast(context))->OnSuccessResponse_7(capacity); + (static_cast(context))->OnSuccessResponse_8(capacity); } // // Tests methods // - CHIP_ERROR TestReadTheMandatoryAttributeMaxPressure_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadTheMandatoryAttributeMaxPressure_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(int16_t maxPressure) + void OnSuccessResponse_1(int16_t maxPressure) { VerifyOrReturn(CheckConstraintType("maxPressure", "", "int16")); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeEffectiveOperationMode_1() + CHIP_ERROR TestReadTheMandatoryAttributeEffectiveOperationMode_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; @@ -20721,76 +21117,76 @@ class Test_TC_PCC_2_1 : public TestCommand return cluster .ReadAttribute( - this, OnSuccessCallback_1, OnFailureCallback_1); + this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(uint8_t effectiveOperationMode) + void OnSuccessResponse_2(uint8_t effectiveOperationMode) { VerifyOrReturn(CheckConstraintType("effectiveOperationMode", "", "enum8")); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeEffectiveControlMode_2() + CHIP_ERROR TestReadTheMandatoryAttributeEffectiveControlMode_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint8_t effectiveControlMode) + void OnSuccessResponse_3(uint8_t effectiveControlMode) { VerifyOrReturn(CheckConstraintType("effectiveControlMode", "", "enum8")); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeCapacity_3() + CHIP_ERROR TestReadTheMandatoryAttributeCapacity_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_3, OnFailureCallback_3); + this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(int16_t capacity) + void OnSuccessResponse_4(int16_t capacity) { VerifyOrReturn(CheckConstraintType("capacity", "", "int16")); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeMaxPressure_4() + CHIP_ERROR TestReadTheMandatoryAttributeMaxPressure_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_4, OnFailureCallback_4); + this, OnSuccessCallback_5, OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(int16_t maxPressure) + void OnSuccessResponse_5(int16_t maxPressure) { VerifyOrReturn(CheckConstraintType("maxPressure", "", "int16")); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeEffectiveOperationMode_5() + CHIP_ERROR TestReadTheMandatoryAttributeEffectiveOperationMode_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; @@ -20798,50 +21194,50 @@ class Test_TC_PCC_2_1 : public TestCommand return cluster .ReadAttribute( - this, OnSuccessCallback_5, OnFailureCallback_5); + this, OnSuccessCallback_6, OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(uint8_t effectiveOperationMode) + void OnSuccessResponse_6(uint8_t effectiveOperationMode) { VerifyOrReturn(CheckConstraintType("effectiveOperationMode", "", "enum8")); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeEffectiveControlMode_6() + CHIP_ERROR TestReadTheMandatoryAttributeEffectiveControlMode_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_6, OnFailureCallback_6); + this, OnSuccessCallback_7, OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(uint8_t effectiveControlMode) + void OnSuccessResponse_7(uint8_t effectiveControlMode) { VerifyOrReturn(CheckConstraintType("effectiveControlMode", "", "enum8")); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeCapacity_7() + CHIP_ERROR TestReadTheMandatoryAttributeCapacity_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_7, OnFailureCallback_7); + this, OnSuccessCallback_8, OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(int16_t capacity) + void OnSuccessResponse_8(int16_t capacity) { VerifyOrReturn(CheckConstraintType("capacity", "", "int16")); @@ -20880,16 +21276,20 @@ class Test_TC_PCC_2_2 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Write 1 to the OperationMode attribute to DUT: OperationMode\n"); - err = TestWrite1ToTheOperationModeAttributeToDutOperationMode_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 : Write 2 to the OperationMode attribute to DUT: OperationMode\n"); - err = TestWrite2ToTheOperationModeAttributeToDutOperationMode_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Write 1 to the OperationMode attribute to DUT: OperationMode\n"); + err = TestWrite1ToTheOperationModeAttributeToDutOperationMode_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Write 3 to the OperationMode attribute to DUT: OperationMode\n"); - err = TestWrite3ToTheOperationModeAttributeToDutOperationMode_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Write 2 to the OperationMode attribute to DUT: OperationMode\n"); + err = TestWrite2ToTheOperationModeAttributeToDutOperationMode_2(); + break; + case 3: + ChipLogProgress(chipTool, " ***** Test Step 3 : Write 3 to the OperationMode attribute to DUT: OperationMode\n"); + err = TestWrite3ToTheOperationModeAttributeToDutOperationMode_3(); break; } @@ -20902,14 +21302,7 @@ class Test_TC_PCC_2_2 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 3; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } + const uint16_t mTestCount = 4; static void OnFailureCallback_1(void * context, EmberAfStatus status) { @@ -20925,11 +21318,20 @@ class Test_TC_PCC_2_2 : public TestCommand static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } + static void OnFailureCallback_3(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); + } + + static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } + // // Tests methods // - CHIP_ERROR TestWrite1ToTheOperationModeAttributeToDutOperationMode_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestWrite1ToTheOperationModeAttributeToDutOperationMode_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; @@ -20939,14 +21341,14 @@ class Test_TC_PCC_2_2 : public TestCommand operationModeArgument = static_cast(1); return cluster.WriteAttribute( - operationModeArgument, this, OnSuccessCallback_0, OnFailureCallback_0); + operationModeArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestWrite2ToTheOperationModeAttributeToDutOperationMode_1() + CHIP_ERROR TestWrite2ToTheOperationModeAttributeToDutOperationMode_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; @@ -20956,14 +21358,14 @@ class Test_TC_PCC_2_2 : public TestCommand operationModeArgument = static_cast(2); return cluster.WriteAttribute( - operationModeArgument, this, OnSuccessCallback_1, OnFailureCallback_1); + operationModeArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1() { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } - CHIP_ERROR TestWrite3ToTheOperationModeAttributeToDutOperationMode_2() + CHIP_ERROR TestWrite3ToTheOperationModeAttributeToDutOperationMode_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; @@ -20973,12 +21375,12 @@ class Test_TC_PCC_2_2 : public TestCommand operationModeArgument = static_cast(3); return cluster.WriteAttribute( - operationModeArgument, this, OnSuccessCallback_2, OnFailureCallback_2); + operationModeArgument, this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } }; class Test_TC_PCC_2_3 : public TestCommand @@ -21012,12 +21414,16 @@ class Test_TC_PCC_2_3 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Write 0 to the OperationMode attribute to DUT\n"); - err = TestWrite0ToTheOperationModeAttributeToDut_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 : Reads the attribute: EffectiveOperationMode\n"); - err = TestReadsTheAttributeEffectiveOperationMode_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Write 0 to the OperationMode attribute to DUT\n"); + err = TestWrite0ToTheOperationModeAttributeToDut_1(); + break; + case 2: + ChipLogProgress(chipTool, " ***** Test Step 2 : Reads the attribute: EffectiveOperationMode\n"); + err = TestReadsTheAttributeEffectiveOperationMode_2(); break; } @@ -21030,30 +21436,32 @@ class Test_TC_PCC_2_3 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 2; + const uint16_t mTestCount = 3; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint8_t effectiveOperationMode) + static void OnSuccessCallback_2(void * context, uint8_t effectiveOperationMode) { - (static_cast(context))->OnSuccessResponse_1(effectiveOperationMode); + (static_cast(context))->OnSuccessResponse_2(effectiveOperationMode); } // // Tests methods // - CHIP_ERROR TestWrite0ToTheOperationModeAttributeToDut_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestWrite0ToTheOperationModeAttributeToDut_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; @@ -21063,14 +21471,14 @@ class Test_TC_PCC_2_3 : public TestCommand operationModeArgument = static_cast(0); return cluster.WriteAttribute( - operationModeArgument, this, OnSuccessCallback_0, OnFailureCallback_0); + operationModeArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestReadsTheAttributeEffectiveOperationMode_1() + CHIP_ERROR TestReadsTheAttributeEffectiveOperationMode_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::PumpConfigurationAndControlClusterTest cluster; @@ -21078,12 +21486,12 @@ class Test_TC_PCC_2_3 : public TestCommand return cluster .ReadAttribute( - this, OnSuccessCallback_1, OnFailureCallback_1); + this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(uint8_t effectiveOperationMode) + void OnSuccessResponse_2(uint8_t effectiveOperationMode) { VerifyOrReturn(CheckValue("effectiveOperationMode", effectiveOperationMode, 0)); @@ -21122,9 +21530,13 @@ class Test_TC_RH_1_1 : public TestCommand 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 0 : write the default values to mandatory global attribute: ClusterRevision\n"); - err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_0(); + " ***** Test Step 1 : write the default values to mandatory global attribute: ClusterRevision\n"); + err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1(); break; } @@ -21137,20 +21549,22 @@ class Test_TC_RH_1_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 1; + const uint16_t mTestCount = 2; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } // // Tests methods // - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::RelativeHumidityMeasurementClusterTest cluster; @@ -21160,16 +21574,16 @@ class Test_TC_RH_1_1 : public TestCommand clusterRevisionArgument = 1U; return cluster.WriteAttribute( - clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) + void OnFailureResponse_1(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_0() { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } }; class Test_TC_RH_2_1 : public TestCommand @@ -21203,12 +21617,16 @@ class Test_TC_RH_2_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Reads constraints of attribute: MeasuredValue\n"); - err = TestReadsConstraintsOfAttributeMeasuredValue_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 : Reads constraints of attribute: MinMeasuredValue\n"); - err = TestReadsConstraintsOfAttributeMinMeasuredValue_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Reads constraints of attribute: MeasuredValue\n"); + err = TestReadsConstraintsOfAttributeMeasuredValue_1(); + break; + case 2: + ChipLogProgress(chipTool, " ***** Test Step 2 : Reads constraints of attribute: MinMeasuredValue\n"); + err = TestReadsConstraintsOfAttributeMinMeasuredValue_2(); break; } @@ -21221,64 +21639,66 @@ class Test_TC_RH_2_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 2; + const uint16_t mTestCount = 3; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t measuredValue) + static void OnSuccessCallback_1(void * context, uint16_t measuredValue) { - (static_cast(context))->OnSuccessResponse_0(measuredValue); + (static_cast(context))->OnSuccessResponse_1(measuredValue); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint16_t minMeasuredValue) + static void OnSuccessCallback_2(void * context, uint16_t minMeasuredValue) { - (static_cast(context))->OnSuccessResponse_1(minMeasuredValue); + (static_cast(context))->OnSuccessResponse_2(minMeasuredValue); } // // Tests methods // - CHIP_ERROR TestReadsConstraintsOfAttributeMeasuredValue_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadsConstraintsOfAttributeMeasuredValue_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::RelativeHumidityMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint16_t measuredValue) + void OnSuccessResponse_1(uint16_t measuredValue) { VerifyOrReturn(CheckConstraintType("measuredValue", "", "uint16")); NextTest(); } - CHIP_ERROR TestReadsConstraintsOfAttributeMinMeasuredValue_1() + CHIP_ERROR TestReadsConstraintsOfAttributeMinMeasuredValue_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::RelativeHumidityMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_1, OnFailureCallback_1); + this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(uint16_t minMeasuredValue) + void OnSuccessResponse_2(uint16_t minMeasuredValue) { VerifyOrReturn(CheckConstraintType("minMeasuredValue", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("minMeasuredValue", minMeasuredValue, 9999)); @@ -21318,12 +21738,16 @@ class Test_TC_RH_2_2 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Reads MeasuredValue attribute from DUT\n"); - err = TestReadsMeasuredValueAttributeFromDut_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 : Read the mandatory attribute: MeasuredValue\n"); - err = TestReadTheMandatoryAttributeMeasuredValue_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Reads MeasuredValue attribute from DUT\n"); + err = TestReadsMeasuredValueAttributeFromDut_1(); + break; + case 2: + ChipLogProgress(chipTool, " ***** Test Step 2 : Read the mandatory attribute: MeasuredValue\n"); + err = TestReadTheMandatoryAttributeMeasuredValue_2(); break; } @@ -21336,64 +21760,66 @@ class Test_TC_RH_2_2 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 2; + const uint16_t mTestCount = 3; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t measuredValue) + static void OnSuccessCallback_1(void * context, uint16_t measuredValue) { - (static_cast(context))->OnSuccessResponse_0(measuredValue); + (static_cast(context))->OnSuccessResponse_1(measuredValue); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint16_t measuredValue) + static void OnSuccessCallback_2(void * context, uint16_t measuredValue) { - (static_cast(context))->OnSuccessResponse_1(measuredValue); + (static_cast(context))->OnSuccessResponse_2(measuredValue); } // // Tests methods // - CHIP_ERROR TestReadsMeasuredValueAttributeFromDut_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadsMeasuredValueAttributeFromDut_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::RelativeHumidityMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint16_t measuredValue) + void OnSuccessResponse_1(uint16_t measuredValue) { VerifyOrReturn(CheckConstraintType("measuredValue", "", "uint16")); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_1() + CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::RelativeHumidityMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_1, OnFailureCallback_1); + this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(uint16_t measuredValue) + void OnSuccessResponse_2(uint16_t measuredValue) { VerifyOrReturn(CheckConstraintType("measuredValue", "", "uint16")); @@ -21432,17 +21858,21 @@ class Test_TC_TM_1_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : read the global attribute: ClusterRevision\n"); - err = TestReadTheGlobalAttributeClusterRevision_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 : write the default values to mandatory global attribute: ClusterRevision\n"); - err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : read the global attribute: ClusterRevision\n"); + err = TestReadTheGlobalAttributeClusterRevision_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : reads back global attribute: ClusterRevision\n"); - err = TestReadsBackGlobalAttributeClusterRevision_2(); + ChipLogProgress(chipTool, + " ***** Test Step 2 : write the default values to mandatory global attribute: ClusterRevision\n"); + err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2(); + break; + case 3: + ChipLogProgress(chipTool, " ***** Test Step 3 : reads back global attribute: ClusterRevision\n"); + err = TestReadsBackGlobalAttributeClusterRevision_3(); break; } @@ -21455,59 +21885,61 @@ class Test_TC_TM_1_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 3; + const uint16_t mTestCount = 4; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) + static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); + (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint16_t clusterRevision) + static void OnSuccessCallback_3(void * context, uint16_t clusterRevision) { - (static_cast(context))->OnSuccessResponse_2(clusterRevision); + (static_cast(context))->OnSuccessResponse_3(clusterRevision); } // // Tests methods // - CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TemperatureMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint16_t clusterRevision) + void OnSuccessResponse_1(uint16_t clusterRevision) { VerifyOrReturn(CheckValue("clusterRevision", clusterRevision, 3U)); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TemperatureMeasurementClusterTest cluster; @@ -21517,30 +21949,30 @@ class Test_TC_TM_1_1 : public TestCommand clusterRevisionArgument = 3U; return cluster.WriteAttribute( - clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); + clusterRevisionArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) + void OnFailureResponse_2(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_1() { ThrowSuccessResponse(); } + void OnSuccessResponse_2() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_2() + CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TemperatureMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint16_t clusterRevision) + void OnSuccessResponse_3(uint16_t clusterRevision) { VerifyOrReturn(CheckValue("clusterRevision", clusterRevision, 3U)); @@ -21579,8 +22011,12 @@ class Test_TC_TM_2_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : read the mandatory attribute: MeasuredValue\n"); - err = TestReadTheMandatoryAttributeMeasuredValue_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 : read the mandatory attribute: MeasuredValue\n"); + err = TestReadTheMandatoryAttributeMeasuredValue_1(); break; } @@ -21593,35 +22029,37 @@ class Test_TC_TM_2_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 1; + const uint16_t mTestCount = 2; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, int16_t measuredValue) + static void OnSuccessCallback_1(void * context, int16_t measuredValue) { - (static_cast(context))->OnSuccessResponse_0(measuredValue); + (static_cast(context))->OnSuccessResponse_1(measuredValue); } // // Tests methods // - CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TemperatureMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(int16_t measuredValue) + void OnSuccessResponse_1(int16_t measuredValue) { VerifyOrReturn(CheckConstraintType("measuredValue", "", "int16")); @@ -21660,12 +22098,16 @@ class Test_TC_TM_2_2 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Reads MeasuredValue attribute from DUT\n"); - err = TestReadsMeasuredValueAttributeFromDut_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 : Read the mandatory attribute: MeasuredValue\n"); - err = TestReadTheMandatoryAttributeMeasuredValue_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Reads MeasuredValue attribute from DUT\n"); + err = TestReadsMeasuredValueAttributeFromDut_1(); + break; + case 2: + ChipLogProgress(chipTool, " ***** Test Step 2 : Read the mandatory attribute: MeasuredValue\n"); + err = TestReadTheMandatoryAttributeMeasuredValue_2(); break; } @@ -21678,64 +22120,66 @@ class Test_TC_TM_2_2 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 2; + const uint16_t mTestCount = 3; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, int16_t measuredValue) + static void OnSuccessCallback_1(void * context, int16_t measuredValue) { - (static_cast(context))->OnSuccessResponse_0(measuredValue); + (static_cast(context))->OnSuccessResponse_1(measuredValue); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, int16_t measuredValue) + static void OnSuccessCallback_2(void * context, int16_t measuredValue) { - (static_cast(context))->OnSuccessResponse_1(measuredValue); + (static_cast(context))->OnSuccessResponse_2(measuredValue); } // // Tests methods // - CHIP_ERROR TestReadsMeasuredValueAttributeFromDut_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadsMeasuredValueAttributeFromDut_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TemperatureMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(int16_t measuredValue) + void OnSuccessResponse_1(int16_t measuredValue) { VerifyOrReturn(CheckConstraintType("measuredValue", "", "uint16")); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_1() + CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TemperatureMeasurementClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_1, OnFailureCallback_1); + this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(int16_t measuredValue) + void OnSuccessResponse_2(int16_t measuredValue) { VerifyOrReturn(CheckConstraintType("measuredValue", "", "uint16")); @@ -21774,9 +22218,13 @@ class Test_TC_TSTAT_1_1 : public TestCommand 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 0 : write the default values to mandatory global attribute: ClusterRevision\n"); - err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_0(); + " ***** Test Step 1 : write the default values to mandatory global attribute: ClusterRevision\n"); + err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1(); break; } @@ -21789,20 +22237,22 @@ class Test_TC_TSTAT_1_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 1; + const uint16_t mTestCount = 2; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } // // Tests methods // - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -21812,16 +22262,16 @@ class Test_TC_TSTAT_1_1 : public TestCommand clusterRevisionArgument = 5U; return cluster.WriteAttribute( - clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) + void OnFailureResponse_1(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_0() { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } }; class Test_TC_TSTAT_2_1 : public TestCommand @@ -21855,290 +22305,294 @@ class Test_TC_TSTAT_2_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, - " ***** Test Step 0 : Reads constraints of mandatory attributes from DUT: LocalTemperature\n"); - err = TestReadsConstraintsOfMandatoryAttributesFromDutLocalTemperature_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 : Reads mandatory attributes from DUT: AbsMinHeatSetpointLimit\n"); - err = TestReadsMandatoryAttributesFromDutAbsMinHeatSetpointLimit_1(); + ChipLogProgress(chipTool, + " ***** Test Step 1 : Reads constraints of mandatory attributes from DUT: LocalTemperature\n"); + err = TestReadsConstraintsOfMandatoryAttributesFromDutLocalTemperature_1(); break; case 2: - ChipLogProgress(chipTool, - " ***** Test Step 2 : Reads constraints of mandatory attributes from DUT: AbsMinHeatSetpointLimit\n"); - err = TestReadsConstraintsOfMandatoryAttributesFromDutAbsMinHeatSetpointLimit_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Reads mandatory attributes from DUT: AbsMinHeatSetpointLimit\n"); + err = TestReadsMandatoryAttributesFromDutAbsMinHeatSetpointLimit_2(); break; case 3: ChipLogProgress(chipTool, - " ***** Test Step 3 : Writes the respective default value to mandatory attributes to DUT: " - "AbsMinHeatSetpointLimit\n"); - err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutAbsMinHeatSetpointLimit_3(); + " ***** Test Step 3 : Reads constraints of mandatory attributes from DUT: AbsMinHeatSetpointLimit\n"); + err = TestReadsConstraintsOfMandatoryAttributesFromDutAbsMinHeatSetpointLimit_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Read back mandatory attributes from DUT: AbsMinHeatSetpointLimit\n"); - err = TestReadBackMandatoryAttributesFromDutAbsMinHeatSetpointLimit_4(); + ChipLogProgress(chipTool, + " ***** Test Step 4 : Writes the respective default value to mandatory attributes to DUT: " + "AbsMinHeatSetpointLimit\n"); + err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutAbsMinHeatSetpointLimit_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Reads mandatory attributes from DUT: AbsMaxHeatSetpointLimit\n"); - err = TestReadsMandatoryAttributesFromDutAbsMaxHeatSetpointLimit_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Read back mandatory attributes from DUT: AbsMinHeatSetpointLimit\n"); + err = TestReadBackMandatoryAttributesFromDutAbsMinHeatSetpointLimit_5(); break; case 6: - ChipLogProgress(chipTool, - " ***** Test Step 6 : Reads constraints of mandatory attributes from DUT: AbsMaxHeatSetpointLimit\n"); - err = TestReadsConstraintsOfMandatoryAttributesFromDutAbsMaxHeatSetpointLimit_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Reads mandatory attributes from DUT: AbsMaxHeatSetpointLimit\n"); + err = TestReadsMandatoryAttributesFromDutAbsMaxHeatSetpointLimit_6(); break; case 7: ChipLogProgress(chipTool, - " ***** Test Step 7 : Writes the respective default value to mandatory attributes to DUT: " - "AbsMaxHeatSetpointLimit\n"); - err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutAbsMaxHeatSetpointLimit_7(); + " ***** Test Step 7 : Reads constraints of mandatory attributes from DUT: AbsMaxHeatSetpointLimit\n"); + err = TestReadsConstraintsOfMandatoryAttributesFromDutAbsMaxHeatSetpointLimit_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Read back mandatory attributes from DUT: AbsMaxHeatSetpointLimit\n"); - err = TestReadBackMandatoryAttributesFromDutAbsMaxHeatSetpointLimit_8(); + ChipLogProgress(chipTool, + " ***** Test Step 8 : Writes the respective default value to mandatory attributes to DUT: " + "AbsMaxHeatSetpointLimit\n"); + err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutAbsMaxHeatSetpointLimit_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Reads mandatory attributes from DUT: AbsMinCoolSetpointLimit\n"); - err = TestReadsMandatoryAttributesFromDutAbsMinCoolSetpointLimit_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : Read back mandatory attributes from DUT: AbsMaxHeatSetpointLimit\n"); + err = TestReadBackMandatoryAttributesFromDutAbsMaxHeatSetpointLimit_9(); break; case 10: - ChipLogProgress(chipTool, - " ***** Test Step 10 : Reads constraints of mandatory attributes from DUT: AbsMinCoolSetpointLimit\n"); - err = TestReadsConstraintsOfMandatoryAttributesFromDutAbsMinCoolSetpointLimit_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : Reads mandatory attributes from DUT: AbsMinCoolSetpointLimit\n"); + err = TestReadsMandatoryAttributesFromDutAbsMinCoolSetpointLimit_10(); break; case 11: ChipLogProgress(chipTool, - " ***** Test Step 11 : Writes the respective default value to mandatory attributes to DUT: " - "AbsMinCoolSetpointLimit\n"); - err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutAbsMinCoolSetpointLimit_11(); + " ***** Test Step 11 : Reads constraints of mandatory attributes from DUT: AbsMinCoolSetpointLimit\n"); + err = TestReadsConstraintsOfMandatoryAttributesFromDutAbsMinCoolSetpointLimit_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : Read back mandatory attributes from DUT: AbsMinCoolSetpointLimit\n"); - err = TestReadBackMandatoryAttributesFromDutAbsMinCoolSetpointLimit_12(); + ChipLogProgress(chipTool, + " ***** Test Step 12 : Writes the respective default value to mandatory attributes to DUT: " + "AbsMinCoolSetpointLimit\n"); + err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutAbsMinCoolSetpointLimit_12(); break; case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : Reads mandatory attributes from DUT: AbsMaxCoolSetpointLimit\n"); - err = TestReadsMandatoryAttributesFromDutAbsMaxCoolSetpointLimit_13(); + ChipLogProgress(chipTool, " ***** Test Step 13 : Read back mandatory attributes from DUT: AbsMinCoolSetpointLimit\n"); + err = TestReadBackMandatoryAttributesFromDutAbsMinCoolSetpointLimit_13(); break; case 14: - ChipLogProgress(chipTool, - " ***** Test Step 14 : Reads constraints of mandatory attributes from DUT: AbsMaxCoolSetpointLimit\n"); - err = TestReadsConstraintsOfMandatoryAttributesFromDutAbsMaxCoolSetpointLimit_14(); + ChipLogProgress(chipTool, " ***** Test Step 14 : Reads mandatory attributes from DUT: AbsMaxCoolSetpointLimit\n"); + err = TestReadsMandatoryAttributesFromDutAbsMaxCoolSetpointLimit_14(); break; case 15: ChipLogProgress(chipTool, - " ***** Test Step 15 : Writes the respective default value to mandatory attributes to DUT: " - "AbsMaxCoolSetpointLimit\n"); - err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutAbsMaxCoolSetpointLimit_15(); + " ***** Test Step 15 : Reads constraints of mandatory attributes from DUT: AbsMaxCoolSetpointLimit\n"); + err = TestReadsConstraintsOfMandatoryAttributesFromDutAbsMaxCoolSetpointLimit_15(); break; case 16: - ChipLogProgress(chipTool, " ***** Test Step 16 : Read back mandatory attributes from DUT: AbsMaxCoolSetpointLimit\n"); - err = TestReadBackMandatoryAttributesFromDutAbsMaxCoolSetpointLimit_16(); + ChipLogProgress(chipTool, + " ***** Test Step 16 : Writes the respective default value to mandatory attributes to DUT: " + "AbsMaxCoolSetpointLimit\n"); + err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutAbsMaxCoolSetpointLimit_16(); break; case 17: - ChipLogProgress(chipTool, " ***** Test Step 17 : Reads mandatory attributes from DUT: OccupiedCoolingSetpoint\n"); - err = TestReadsMandatoryAttributesFromDutOccupiedCoolingSetpoint_17(); + ChipLogProgress(chipTool, " ***** Test Step 17 : Read back mandatory attributes from DUT: AbsMaxCoolSetpointLimit\n"); + err = TestReadBackMandatoryAttributesFromDutAbsMaxCoolSetpointLimit_17(); break; case 18: - ChipLogProgress(chipTool, - " ***** Test Step 18 : Reads constraints of mandatory attributes from DUT: OccupiedCoolingSetpoint\n"); - err = TestReadsConstraintsOfMandatoryAttributesFromDutOccupiedCoolingSetpoint_18(); + ChipLogProgress(chipTool, " ***** Test Step 18 : Reads mandatory attributes from DUT: OccupiedCoolingSetpoint\n"); + err = TestReadsMandatoryAttributesFromDutOccupiedCoolingSetpoint_18(); break; case 19: ChipLogProgress(chipTool, - " ***** Test Step 19 : Writes the respective default value to mandatory attributes to DUT: " - "OccupiedCoolingSetpoint\n"); - err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutOccupiedCoolingSetpoint_19(); + " ***** Test Step 19 : Reads constraints of mandatory attributes from DUT: OccupiedCoolingSetpoint\n"); + err = TestReadsConstraintsOfMandatoryAttributesFromDutOccupiedCoolingSetpoint_19(); break; case 20: - ChipLogProgress(chipTool, " ***** Test Step 20 : Read back mandatory attributes from DUT: OccupiedCoolingSetpoint\n"); - err = TestReadBackMandatoryAttributesFromDutOccupiedCoolingSetpoint_20(); + ChipLogProgress(chipTool, + " ***** Test Step 20 : Writes the respective default value to mandatory attributes to DUT: " + "OccupiedCoolingSetpoint\n"); + err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutOccupiedCoolingSetpoint_20(); break; case 21: - ChipLogProgress(chipTool, " ***** Test Step 21 : Reads mandatory attributes from DUT: OccupiedHeatingSetpoint\n"); - err = TestReadsMandatoryAttributesFromDutOccupiedHeatingSetpoint_21(); + ChipLogProgress(chipTool, " ***** Test Step 21 : Read back mandatory attributes from DUT: OccupiedCoolingSetpoint\n"); + err = TestReadBackMandatoryAttributesFromDutOccupiedCoolingSetpoint_21(); break; case 22: - ChipLogProgress(chipTool, - " ***** Test Step 22 : Reads constraints of mandatory attributes from DUT: OccupiedHeatingSetpoint\n"); - err = TestReadsConstraintsOfMandatoryAttributesFromDutOccupiedHeatingSetpoint_22(); + ChipLogProgress(chipTool, " ***** Test Step 22 : Reads mandatory attributes from DUT: OccupiedHeatingSetpoint\n"); + err = TestReadsMandatoryAttributesFromDutOccupiedHeatingSetpoint_22(); break; case 23: ChipLogProgress(chipTool, - " ***** Test Step 23 : Writes the respective default value to mandatory attributes to DUT: " - "OccupiedHeatingSetpoint\n"); - err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutOccupiedHeatingSetpoint_23(); + " ***** Test Step 23 : Reads constraints of mandatory attributes from DUT: OccupiedHeatingSetpoint\n"); + err = TestReadsConstraintsOfMandatoryAttributesFromDutOccupiedHeatingSetpoint_23(); break; case 24: - ChipLogProgress(chipTool, " ***** Test Step 24 : Read back mandatory attributes from DUT: OccupiedHeatingSetpoint\n"); - err = TestReadBackMandatoryAttributesFromDutOccupiedHeatingSetpoint_24(); + ChipLogProgress(chipTool, + " ***** Test Step 24 : Writes the respective default value to mandatory attributes to DUT: " + "OccupiedHeatingSetpoint\n"); + err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutOccupiedHeatingSetpoint_24(); break; case 25: - ChipLogProgress(chipTool, " ***** Test Step 25 : Reads mandatory attributes from DUT: MinHeatSetpointLimit\n"); - err = TestReadsMandatoryAttributesFromDutMinHeatSetpointLimit_25(); + ChipLogProgress(chipTool, " ***** Test Step 25 : Read back mandatory attributes from DUT: OccupiedHeatingSetpoint\n"); + err = TestReadBackMandatoryAttributesFromDutOccupiedHeatingSetpoint_25(); break; case 26: - ChipLogProgress(chipTool, - " ***** Test Step 26 : Reads constraints of mandatory attributes from DUT: MinHeatSetpointLimit\n"); - err = TestReadsConstraintsOfMandatoryAttributesFromDutMinHeatSetpointLimit_26(); + ChipLogProgress(chipTool, " ***** Test Step 26 : Reads mandatory attributes from DUT: MinHeatSetpointLimit\n"); + err = TestReadsMandatoryAttributesFromDutMinHeatSetpointLimit_26(); break; case 27: - ChipLogProgress( - chipTool, - " ***** Test Step 27 : Writes the respective default value to mandatory attributes to DUT: MinHeatSetpointLimit\n"); - err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutMinHeatSetpointLimit_27(); + ChipLogProgress(chipTool, + " ***** Test Step 27 : Reads constraints of mandatory attributes from DUT: MinHeatSetpointLimit\n"); + err = TestReadsConstraintsOfMandatoryAttributesFromDutMinHeatSetpointLimit_27(); break; case 28: - ChipLogProgress(chipTool, " ***** Test Step 28 : Read back mandatory attributes from DUT: MinHeatSetpointLimit\n"); - err = TestReadBackMandatoryAttributesFromDutMinHeatSetpointLimit_28(); + ChipLogProgress( + chipTool, + " ***** Test Step 28 : Writes the respective default value to mandatory attributes to DUT: MinHeatSetpointLimit\n"); + err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutMinHeatSetpointLimit_28(); break; case 29: - ChipLogProgress(chipTool, " ***** Test Step 29 : Reads mandatory attributes from DUT: MaxHeatSetpointLimit\n"); - err = TestReadsMandatoryAttributesFromDutMaxHeatSetpointLimit_29(); + ChipLogProgress(chipTool, " ***** Test Step 29 : Read back mandatory attributes from DUT: MinHeatSetpointLimit\n"); + err = TestReadBackMandatoryAttributesFromDutMinHeatSetpointLimit_29(); break; case 30: - ChipLogProgress(chipTool, - " ***** Test Step 30 : Reads constraints of mandatory attributes from DUT: MaxHeatSetpointLimit\n"); - err = TestReadsConstraintsOfMandatoryAttributesFromDutMaxHeatSetpointLimit_30(); + ChipLogProgress(chipTool, " ***** Test Step 30 : Reads mandatory attributes from DUT: MaxHeatSetpointLimit\n"); + err = TestReadsMandatoryAttributesFromDutMaxHeatSetpointLimit_30(); break; case 31: - ChipLogProgress( - chipTool, - " ***** Test Step 31 : Writes the respective default value to mandatory attributes to DUT: MaxHeatSetpointLimit\n"); - err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutMaxHeatSetpointLimit_31(); + ChipLogProgress(chipTool, + " ***** Test Step 31 : Reads constraints of mandatory attributes from DUT: MaxHeatSetpointLimit\n"); + err = TestReadsConstraintsOfMandatoryAttributesFromDutMaxHeatSetpointLimit_31(); break; case 32: - ChipLogProgress(chipTool, " ***** Test Step 32 : Read back mandatory attributes from DUT: MaxHeatSetpointLimit\n"); - err = TestReadBackMandatoryAttributesFromDutMaxHeatSetpointLimit_32(); + ChipLogProgress( + chipTool, + " ***** Test Step 32 : Writes the respective default value to mandatory attributes to DUT: MaxHeatSetpointLimit\n"); + err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutMaxHeatSetpointLimit_32(); break; case 33: - ChipLogProgress(chipTool, " ***** Test Step 33 : Reads mandatory attributes from DUT: MinCoolSetpointLimit\n"); - err = TestReadsMandatoryAttributesFromDutMinCoolSetpointLimit_33(); + ChipLogProgress(chipTool, " ***** Test Step 33 : Read back mandatory attributes from DUT: MaxHeatSetpointLimit\n"); + err = TestReadBackMandatoryAttributesFromDutMaxHeatSetpointLimit_33(); break; case 34: - ChipLogProgress(chipTool, - " ***** Test Step 34 : Reads constraints of mandatory attributes from DUT: MinCoolSetpointLimit\n"); - err = TestReadsConstraintsOfMandatoryAttributesFromDutMinCoolSetpointLimit_34(); + ChipLogProgress(chipTool, " ***** Test Step 34 : Reads mandatory attributes from DUT: MinCoolSetpointLimit\n"); + err = TestReadsMandatoryAttributesFromDutMinCoolSetpointLimit_34(); break; case 35: - ChipLogProgress( - chipTool, - " ***** Test Step 35 : Writes the respective default value to mandatory attributes to DUT: MinCoolSetpointLimit\n"); - err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutMinCoolSetpointLimit_35(); + ChipLogProgress(chipTool, + " ***** Test Step 35 : Reads constraints of mandatory attributes from DUT: MinCoolSetpointLimit\n"); + err = TestReadsConstraintsOfMandatoryAttributesFromDutMinCoolSetpointLimit_35(); break; case 36: - ChipLogProgress(chipTool, " ***** Test Step 36 : Read back mandatory attributes from DUT: MinCoolSetpointLimit\n"); - err = TestReadBackMandatoryAttributesFromDutMinCoolSetpointLimit_36(); + ChipLogProgress( + chipTool, + " ***** Test Step 36 : Writes the respective default value to mandatory attributes to DUT: MinCoolSetpointLimit\n"); + err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutMinCoolSetpointLimit_36(); break; case 37: - ChipLogProgress(chipTool, " ***** Test Step 37 : Reads mandatory attributes from DUT: MaxCoolSetpointLimit\n"); - err = TestReadsMandatoryAttributesFromDutMaxCoolSetpointLimit_37(); + ChipLogProgress(chipTool, " ***** Test Step 37 : Read back mandatory attributes from DUT: MinCoolSetpointLimit\n"); + err = TestReadBackMandatoryAttributesFromDutMinCoolSetpointLimit_37(); break; case 38: - ChipLogProgress(chipTool, - " ***** Test Step 38 : Reads constraints of mandatory attributes from DUT: MaxCoolSetpointLimit\n"); - err = TestReadsConstraintsOfMandatoryAttributesFromDutMaxCoolSetpointLimit_38(); + ChipLogProgress(chipTool, " ***** Test Step 38 : Reads mandatory attributes from DUT: MaxCoolSetpointLimit\n"); + err = TestReadsMandatoryAttributesFromDutMaxCoolSetpointLimit_38(); break; case 39: - ChipLogProgress( - chipTool, - " ***** Test Step 39 : Writes the respective default value to mandatory attributes to DUT: MaxCoolSetpointLimit\n"); - err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutMaxCoolSetpointLimit_39(); + ChipLogProgress(chipTool, + " ***** Test Step 39 : Reads constraints of mandatory attributes from DUT: MaxCoolSetpointLimit\n"); + err = TestReadsConstraintsOfMandatoryAttributesFromDutMaxCoolSetpointLimit_39(); break; case 40: - ChipLogProgress(chipTool, " ***** Test Step 40 : Read back mandatory attributes from DUT: MaxCoolSetpointLimit\n"); - err = TestReadBackMandatoryAttributesFromDutMaxCoolSetpointLimit_40(); + ChipLogProgress( + chipTool, + " ***** Test Step 40 : Writes the respective default value to mandatory attributes to DUT: MaxCoolSetpointLimit\n"); + err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutMaxCoolSetpointLimit_40(); break; case 41: - ChipLogProgress(chipTool, " ***** Test Step 41 : Reads mandatory attributes from DUT: ControlSequenceOfOperation\n"); - err = TestReadsMandatoryAttributesFromDutControlSequenceOfOperation_41(); + ChipLogProgress(chipTool, " ***** Test Step 41 : Read back mandatory attributes from DUT: MaxCoolSetpointLimit\n"); + err = TestReadBackMandatoryAttributesFromDutMaxCoolSetpointLimit_41(); break; case 42: - ChipLogProgress( - chipTool, " ***** Test Step 42 : Reads constraints of mandatory attributes from DUT: ControlSequenceOfOperation\n"); - err = TestReadsConstraintsOfMandatoryAttributesFromDutControlSequenceOfOperation_42(); + ChipLogProgress(chipTool, " ***** Test Step 42 : Reads mandatory attributes from DUT: ControlSequenceOfOperation\n"); + err = TestReadsMandatoryAttributesFromDutControlSequenceOfOperation_42(); break; case 43: - ChipLogProgress(chipTool, - " ***** Test Step 43 : Writes the respective default value to mandatory attributes to DUT: " - "ControlSequenceOfOperation\n"); - err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutControlSequenceOfOperation_43(); + ChipLogProgress( + chipTool, " ***** Test Step 43 : Reads constraints of mandatory attributes from DUT: ControlSequenceOfOperation\n"); + err = TestReadsConstraintsOfMandatoryAttributesFromDutControlSequenceOfOperation_43(); break; case 44: ChipLogProgress(chipTool, - " ***** Test Step 44 : Read back mandatory attributes from DUT: ControlSequenceOfOperation\n"); - err = TestReadBackMandatoryAttributesFromDutControlSequenceOfOperation_44(); + " ***** Test Step 44 : Writes the respective default value to mandatory attributes to DUT: " + "ControlSequenceOfOperation\n"); + err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutControlSequenceOfOperation_44(); break; case 45: - ChipLogProgress(chipTool, " ***** Test Step 45 : Reads mandatory attributes from DUT: SystemMode\n"); - err = TestReadsMandatoryAttributesFromDutSystemMode_45(); + ChipLogProgress(chipTool, + " ***** Test Step 45 : Read back mandatory attributes from DUT: ControlSequenceOfOperation\n"); + err = TestReadBackMandatoryAttributesFromDutControlSequenceOfOperation_45(); break; case 46: - ChipLogProgress(chipTool, " ***** Test Step 46 : Reads constraints of mandatory attributes from DUT: SystemMode\n"); - err = TestReadsConstraintsOfMandatoryAttributesFromDutSystemMode_46(); + ChipLogProgress(chipTool, " ***** Test Step 46 : Reads mandatory attributes from DUT: SystemMode\n"); + err = TestReadsMandatoryAttributesFromDutSystemMode_46(); break; case 47: - ChipLogProgress( - chipTool, " ***** Test Step 47 : Writes the respective default value to mandatory attributes to DUT: SystemMode\n"); - err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutSystemMode_47(); + ChipLogProgress(chipTool, " ***** Test Step 47 : Reads constraints of mandatory attributes from DUT: SystemMode\n"); + err = TestReadsConstraintsOfMandatoryAttributesFromDutSystemMode_47(); break; case 48: - ChipLogProgress(chipTool, " ***** Test Step 48 : Read back mandatory attributes from DUT: SystemMode\n"); - err = TestReadBackMandatoryAttributesFromDutSystemMode_48(); + ChipLogProgress( + chipTool, " ***** Test Step 48 : Writes the respective default value to mandatory attributes to DUT: SystemMode\n"); + err = TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutSystemMode_48(); break; case 49: - ChipLogProgress(chipTool, " ***** Test Step 49 : Reads optional attributes from DUT: MinSetpointDeadBand\n"); - err = TestReadsOptionalAttributesFromDutMinSetpointDeadBand_49(); + ChipLogProgress(chipTool, " ***** Test Step 49 : Read back mandatory attributes from DUT: SystemMode\n"); + err = TestReadBackMandatoryAttributesFromDutSystemMode_49(); break; case 50: - ChipLogProgress(chipTool, - " ***** Test Step 50 : Reads constraints of optional attributes from DUT: MinSetpointDeadBand\n"); - err = TestReadsConstraintsOfOptionalAttributesFromDutMinSetpointDeadBand_50(); + ChipLogProgress(chipTool, " ***** Test Step 50 : Reads optional attributes from DUT: MinSetpointDeadBand\n"); + err = TestReadsOptionalAttributesFromDutMinSetpointDeadBand_50(); break; case 51: - ChipLogProgress( - chipTool, - " ***** Test Step 51 : Writes the respective default value to optional attributes to DUT: MinSetpointDeadBand\n"); - err = TestWritesTheRespectiveDefaultValueToOptionalAttributesToDutMinSetpointDeadBand_51(); + ChipLogProgress(chipTool, + " ***** Test Step 51 : Reads constraints of optional attributes from DUT: MinSetpointDeadBand\n"); + err = TestReadsConstraintsOfOptionalAttributesFromDutMinSetpointDeadBand_51(); break; case 52: - ChipLogProgress(chipTool, " ***** Test Step 52 : Read back optional attributes from DUT: MinSetpointDeadBand\n"); - err = TestReadBackOptionalAttributesFromDutMinSetpointDeadBand_52(); + ChipLogProgress( + chipTool, + " ***** Test Step 52 : Writes the respective default value to optional attributes to DUT: MinSetpointDeadBand\n"); + err = TestWritesTheRespectiveDefaultValueToOptionalAttributesToDutMinSetpointDeadBand_52(); break; case 53: - ChipLogProgress(chipTool, " ***** Test Step 53 : Reads constraints of optional attributes from DUT: StartOfWeek\n"); - err = TestReadsConstraintsOfOptionalAttributesFromDutStartOfWeek_53(); + ChipLogProgress(chipTool, " ***** Test Step 53 : Read back optional attributes from DUT: MinSetpointDeadBand\n"); + err = TestReadBackOptionalAttributesFromDutMinSetpointDeadBand_53(); break; case 54: - ChipLogProgress( - chipTool, " ***** Test Step 54 : Writes the respective default value to optional attributes to DUT: StartOfWeek\n"); - err = TestWritesTheRespectiveDefaultValueToOptionalAttributesToDutStartOfWeek_54(); + ChipLogProgress(chipTool, " ***** Test Step 54 : Reads constraints of optional attributes from DUT: StartOfWeek\n"); + err = TestReadsConstraintsOfOptionalAttributesFromDutStartOfWeek_54(); break; case 55: - ChipLogProgress(chipTool, " ***** Test Step 55 : Read back optional attributes from DUT: StartOfWeek\n"); - err = TestReadBackOptionalAttributesFromDutStartOfWeek_55(); + ChipLogProgress( + chipTool, " ***** Test Step 55 : Writes the respective default value to optional attributes to DUT: StartOfWeek\n"); + err = TestWritesTheRespectiveDefaultValueToOptionalAttributesToDutStartOfWeek_55(); break; case 56: - ChipLogProgress(chipTool, - " ***** Test Step 56 : Reads constraints of optional attributes from DUT: NumberOfWeeklyTransitions\n"); - err = TestReadsConstraintsOfOptionalAttributesFromDutNumberOfWeeklyTransitions_56(); + ChipLogProgress(chipTool, " ***** Test Step 56 : Read back optional attributes from DUT: StartOfWeek\n"); + err = TestReadBackOptionalAttributesFromDutStartOfWeek_56(); break; case 57: ChipLogProgress(chipTool, - " ***** Test Step 57 : Writes the respective default value to optional attributes to DUT: " - "NumberOfWeeklyTransitions\n"); - err = TestWritesTheRespectiveDefaultValueToOptionalAttributesToDutNumberOfWeeklyTransitions_57(); + " ***** Test Step 57 : Reads constraints of optional attributes from DUT: NumberOfWeeklyTransitions\n"); + err = TestReadsConstraintsOfOptionalAttributesFromDutNumberOfWeeklyTransitions_57(); break; case 58: ChipLogProgress(chipTool, - " ***** Test Step 58 : Reads constraints of optional attributes from DUT: NumberOfDailyTransitions\n"); - err = TestReadsConstraintsOfOptionalAttributesFromDutNumberOfDailyTransitions_58(); + " ***** Test Step 58 : Writes the respective default value to optional attributes to DUT: " + "NumberOfWeeklyTransitions\n"); + err = TestWritesTheRespectiveDefaultValueToOptionalAttributesToDutNumberOfWeeklyTransitions_58(); break; case 59: ChipLogProgress(chipTool, - " ***** Test Step 59 : Writes the respective default value to optional attributes to DUT: " + " ***** Test Step 59 : Reads constraints of optional attributes from DUT: NumberOfDailyTransitions\n"); + err = TestReadsConstraintsOfOptionalAttributesFromDutNumberOfDailyTransitions_59(); + break; + case 60: + ChipLogProgress(chipTool, + " ***** Test Step 60 : Writes the respective default value to optional attributes to DUT: " "NumberOfDailyTransitions\n"); - err = TestWritesTheRespectiveDefaultValueToOptionalAttributesToDutNumberOfDailyTransitions_59(); + err = TestWritesTheRespectiveDefaultValueToOptionalAttributesToDutNumberOfDailyTransitions_60(); break; } @@ -22151,26 +22605,16 @@ class Test_TC_TSTAT_2_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 60; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context, int16_t localTemperature) - { - (static_cast(context))->OnSuccessResponse_0(localTemperature); - } + const uint16_t mTestCount = 61; static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, int16_t absMinHeatSetpointLimit) + static void OnSuccessCallback_1(void * context, int16_t localTemperature) { - (static_cast(context))->OnSuccessResponse_1(absMinHeatSetpointLimit); + (static_cast(context))->OnSuccessResponse_1(localTemperature); } static void OnFailureCallback_2(void * context, EmberAfStatus status) @@ -22188,26 +22632,26 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } + static void OnSuccessCallback_3(void * context, int16_t absMinHeatSetpointLimit) + { + (static_cast(context))->OnSuccessResponse_3(absMinHeatSetpointLimit); + } static void OnFailureCallback_4(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context, int16_t absMinHeatSetpointLimit) - { - (static_cast(context))->OnSuccessResponse_4(absMinHeatSetpointLimit); - } + static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } static void OnFailureCallback_5(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, int16_t absMaxHeatSetpointLimit) + static void OnSuccessCallback_5(void * context, int16_t absMinHeatSetpointLimit) { - (static_cast(context))->OnSuccessResponse_5(absMaxHeatSetpointLimit); + (static_cast(context))->OnSuccessResponse_5(absMinHeatSetpointLimit); } static void OnFailureCallback_6(void * context, EmberAfStatus status) @@ -22225,26 +22669,26 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } + static void OnSuccessCallback_7(void * context, int16_t absMaxHeatSetpointLimit) + { + (static_cast(context))->OnSuccessResponse_7(absMaxHeatSetpointLimit); + } static void OnFailureCallback_8(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_8(void * context, int16_t absMaxHeatSetpointLimit) - { - (static_cast(context))->OnSuccessResponse_8(absMaxHeatSetpointLimit); - } + static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } static void OnFailureCallback_9(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); } - static void OnSuccessCallback_9(void * context, int16_t absMinCoolSetpointLimit) + static void OnSuccessCallback_9(void * context, int16_t absMaxHeatSetpointLimit) { - (static_cast(context))->OnSuccessResponse_9(absMinCoolSetpointLimit); + (static_cast(context))->OnSuccessResponse_9(absMaxHeatSetpointLimit); } static void OnFailureCallback_10(void * context, EmberAfStatus status) @@ -22262,26 +22706,26 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_11(chip::to_underlying(status)); } - static void OnSuccessCallback_11(void * context) { (static_cast(context))->OnSuccessResponse_11(); } + static void OnSuccessCallback_11(void * context, int16_t absMinCoolSetpointLimit) + { + (static_cast(context))->OnSuccessResponse_11(absMinCoolSetpointLimit); + } static void OnFailureCallback_12(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_12(chip::to_underlying(status)); } - static void OnSuccessCallback_12(void * context, int16_t absMinCoolSetpointLimit) - { - (static_cast(context))->OnSuccessResponse_12(absMinCoolSetpointLimit); - } + static void OnSuccessCallback_12(void * context) { (static_cast(context))->OnSuccessResponse_12(); } static void OnFailureCallback_13(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_13(chip::to_underlying(status)); } - static void OnSuccessCallback_13(void * context, int16_t absMaxCoolSetpointLimit) + static void OnSuccessCallback_13(void * context, int16_t absMinCoolSetpointLimit) { - (static_cast(context))->OnSuccessResponse_13(absMaxCoolSetpointLimit); + (static_cast(context))->OnSuccessResponse_13(absMinCoolSetpointLimit); } static void OnFailureCallback_14(void * context, EmberAfStatus status) @@ -22299,26 +22743,26 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_15(chip::to_underlying(status)); } - static void OnSuccessCallback_15(void * context) { (static_cast(context))->OnSuccessResponse_15(); } + static void OnSuccessCallback_15(void * context, int16_t absMaxCoolSetpointLimit) + { + (static_cast(context))->OnSuccessResponse_15(absMaxCoolSetpointLimit); + } static void OnFailureCallback_16(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_16(chip::to_underlying(status)); } - static void OnSuccessCallback_16(void * context, int16_t absMaxCoolSetpointLimit) - { - (static_cast(context))->OnSuccessResponse_16(absMaxCoolSetpointLimit); - } + static void OnSuccessCallback_16(void * context) { (static_cast(context))->OnSuccessResponse_16(); } static void OnFailureCallback_17(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_17(chip::to_underlying(status)); } - static void OnSuccessCallback_17(void * context, int16_t occupiedCoolingSetpoint) + static void OnSuccessCallback_17(void * context, int16_t absMaxCoolSetpointLimit) { - (static_cast(context))->OnSuccessResponse_17(occupiedCoolingSetpoint); + (static_cast(context))->OnSuccessResponse_17(absMaxCoolSetpointLimit); } static void OnFailureCallback_18(void * context, EmberAfStatus status) @@ -22336,26 +22780,26 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_19(chip::to_underlying(status)); } - static void OnSuccessCallback_19(void * context) { (static_cast(context))->OnSuccessResponse_19(); } + static void OnSuccessCallback_19(void * context, int16_t occupiedCoolingSetpoint) + { + (static_cast(context))->OnSuccessResponse_19(occupiedCoolingSetpoint); + } static void OnFailureCallback_20(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_20(chip::to_underlying(status)); } - static void OnSuccessCallback_20(void * context, int16_t occupiedCoolingSetpoint) - { - (static_cast(context))->OnSuccessResponse_20(occupiedCoolingSetpoint); - } + static void OnSuccessCallback_20(void * context) { (static_cast(context))->OnSuccessResponse_20(); } static void OnFailureCallback_21(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_21(chip::to_underlying(status)); } - static void OnSuccessCallback_21(void * context, int16_t occupiedHeatingSetpoint) + static void OnSuccessCallback_21(void * context, int16_t occupiedCoolingSetpoint) { - (static_cast(context))->OnSuccessResponse_21(occupiedHeatingSetpoint); + (static_cast(context))->OnSuccessResponse_21(occupiedCoolingSetpoint); } static void OnFailureCallback_22(void * context, EmberAfStatus status) @@ -22373,26 +22817,26 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_23(chip::to_underlying(status)); } - static void OnSuccessCallback_23(void * context) { (static_cast(context))->OnSuccessResponse_23(); } + static void OnSuccessCallback_23(void * context, int16_t occupiedHeatingSetpoint) + { + (static_cast(context))->OnSuccessResponse_23(occupiedHeatingSetpoint); + } static void OnFailureCallback_24(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_24(chip::to_underlying(status)); } - static void OnSuccessCallback_24(void * context, int16_t occupiedHeatingSetpoint) - { - (static_cast(context))->OnSuccessResponse_24(occupiedHeatingSetpoint); - } + static void OnSuccessCallback_24(void * context) { (static_cast(context))->OnSuccessResponse_24(); } static void OnFailureCallback_25(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_25(chip::to_underlying(status)); } - static void OnSuccessCallback_25(void * context, int16_t minHeatSetpointLimit) + static void OnSuccessCallback_25(void * context, int16_t occupiedHeatingSetpoint) { - (static_cast(context))->OnSuccessResponse_25(minHeatSetpointLimit); + (static_cast(context))->OnSuccessResponse_25(occupiedHeatingSetpoint); } static void OnFailureCallback_26(void * context, EmberAfStatus status) @@ -22410,26 +22854,26 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_27(chip::to_underlying(status)); } - static void OnSuccessCallback_27(void * context) { (static_cast(context))->OnSuccessResponse_27(); } + static void OnSuccessCallback_27(void * context, int16_t minHeatSetpointLimit) + { + (static_cast(context))->OnSuccessResponse_27(minHeatSetpointLimit); + } static void OnFailureCallback_28(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_28(chip::to_underlying(status)); } - static void OnSuccessCallback_28(void * context, int16_t minHeatSetpointLimit) - { - (static_cast(context))->OnSuccessResponse_28(minHeatSetpointLimit); - } + static void OnSuccessCallback_28(void * context) { (static_cast(context))->OnSuccessResponse_28(); } static void OnFailureCallback_29(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_29(chip::to_underlying(status)); } - static void OnSuccessCallback_29(void * context, int16_t maxHeatSetpointLimit) + static void OnSuccessCallback_29(void * context, int16_t minHeatSetpointLimit) { - (static_cast(context))->OnSuccessResponse_29(maxHeatSetpointLimit); + (static_cast(context))->OnSuccessResponse_29(minHeatSetpointLimit); } static void OnFailureCallback_30(void * context, EmberAfStatus status) @@ -22447,26 +22891,26 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_31(chip::to_underlying(status)); } - static void OnSuccessCallback_31(void * context) { (static_cast(context))->OnSuccessResponse_31(); } + static void OnSuccessCallback_31(void * context, int16_t maxHeatSetpointLimit) + { + (static_cast(context))->OnSuccessResponse_31(maxHeatSetpointLimit); + } static void OnFailureCallback_32(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_32(chip::to_underlying(status)); } - static void OnSuccessCallback_32(void * context, int16_t maxHeatSetpointLimit) - { - (static_cast(context))->OnSuccessResponse_32(maxHeatSetpointLimit); - } + static void OnSuccessCallback_32(void * context) { (static_cast(context))->OnSuccessResponse_32(); } static void OnFailureCallback_33(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_33(chip::to_underlying(status)); } - static void OnSuccessCallback_33(void * context, int16_t minCoolSetpointLimit) + static void OnSuccessCallback_33(void * context, int16_t maxHeatSetpointLimit) { - (static_cast(context))->OnSuccessResponse_33(minCoolSetpointLimit); + (static_cast(context))->OnSuccessResponse_33(maxHeatSetpointLimit); } static void OnFailureCallback_34(void * context, EmberAfStatus status) @@ -22484,26 +22928,26 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_35(chip::to_underlying(status)); } - static void OnSuccessCallback_35(void * context) { (static_cast(context))->OnSuccessResponse_35(); } + static void OnSuccessCallback_35(void * context, int16_t minCoolSetpointLimit) + { + (static_cast(context))->OnSuccessResponse_35(minCoolSetpointLimit); + } static void OnFailureCallback_36(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_36(chip::to_underlying(status)); } - static void OnSuccessCallback_36(void * context, int16_t minCoolSetpointLimit) - { - (static_cast(context))->OnSuccessResponse_36(minCoolSetpointLimit); - } + static void OnSuccessCallback_36(void * context) { (static_cast(context))->OnSuccessResponse_36(); } static void OnFailureCallback_37(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_37(chip::to_underlying(status)); } - static void OnSuccessCallback_37(void * context, int16_t maxCoolSetpointLimit) + static void OnSuccessCallback_37(void * context, int16_t minCoolSetpointLimit) { - (static_cast(context))->OnSuccessResponse_37(maxCoolSetpointLimit); + (static_cast(context))->OnSuccessResponse_37(minCoolSetpointLimit); } static void OnFailureCallback_38(void * context, EmberAfStatus status) @@ -22521,26 +22965,26 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_39(chip::to_underlying(status)); } - static void OnSuccessCallback_39(void * context) { (static_cast(context))->OnSuccessResponse_39(); } + static void OnSuccessCallback_39(void * context, int16_t maxCoolSetpointLimit) + { + (static_cast(context))->OnSuccessResponse_39(maxCoolSetpointLimit); + } static void OnFailureCallback_40(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_40(chip::to_underlying(status)); } - static void OnSuccessCallback_40(void * context, int16_t maxCoolSetpointLimit) - { - (static_cast(context))->OnSuccessResponse_40(maxCoolSetpointLimit); - } + static void OnSuccessCallback_40(void * context) { (static_cast(context))->OnSuccessResponse_40(); } static void OnFailureCallback_41(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_41(chip::to_underlying(status)); } - static void OnSuccessCallback_41(void * context, uint8_t controlSequenceOfOperation) + static void OnSuccessCallback_41(void * context, int16_t maxCoolSetpointLimit) { - (static_cast(context))->OnSuccessResponse_41(controlSequenceOfOperation); + (static_cast(context))->OnSuccessResponse_41(maxCoolSetpointLimit); } static void OnFailureCallback_42(void * context, EmberAfStatus status) @@ -22558,26 +23002,26 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_43(chip::to_underlying(status)); } - static void OnSuccessCallback_43(void * context) { (static_cast(context))->OnSuccessResponse_43(); } + static void OnSuccessCallback_43(void * context, uint8_t controlSequenceOfOperation) + { + (static_cast(context))->OnSuccessResponse_43(controlSequenceOfOperation); + } static void OnFailureCallback_44(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_44(chip::to_underlying(status)); } - static void OnSuccessCallback_44(void * context, uint8_t controlSequenceOfOperation) - { - (static_cast(context))->OnSuccessResponse_44(controlSequenceOfOperation); - } + static void OnSuccessCallback_44(void * context) { (static_cast(context))->OnSuccessResponse_44(); } static void OnFailureCallback_45(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_45(chip::to_underlying(status)); } - static void OnSuccessCallback_45(void * context, uint8_t systemMode) + static void OnSuccessCallback_45(void * context, uint8_t controlSequenceOfOperation) { - (static_cast(context))->OnSuccessResponse_45(systemMode); + (static_cast(context))->OnSuccessResponse_45(controlSequenceOfOperation); } static void OnFailureCallback_46(void * context, EmberAfStatus status) @@ -22595,26 +23039,26 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_47(chip::to_underlying(status)); } - static void OnSuccessCallback_47(void * context) { (static_cast(context))->OnSuccessResponse_47(); } + static void OnSuccessCallback_47(void * context, uint8_t systemMode) + { + (static_cast(context))->OnSuccessResponse_47(systemMode); + } static void OnFailureCallback_48(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_48(chip::to_underlying(status)); } - static void OnSuccessCallback_48(void * context, uint8_t systemMode) - { - (static_cast(context))->OnSuccessResponse_48(systemMode); - } + static void OnSuccessCallback_48(void * context) { (static_cast(context))->OnSuccessResponse_48(); } static void OnFailureCallback_49(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_49(chip::to_underlying(status)); } - static void OnSuccessCallback_49(void * context, int8_t minSetpointDeadBand) + static void OnSuccessCallback_49(void * context, uint8_t systemMode) { - (static_cast(context))->OnSuccessResponse_49(minSetpointDeadBand); + (static_cast(context))->OnSuccessResponse_49(systemMode); } static void OnFailureCallback_50(void * context, EmberAfStatus status) @@ -22632,26 +23076,26 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_51(chip::to_underlying(status)); } - static void OnSuccessCallback_51(void * context) { (static_cast(context))->OnSuccessResponse_51(); } + static void OnSuccessCallback_51(void * context, int8_t minSetpointDeadBand) + { + (static_cast(context))->OnSuccessResponse_51(minSetpointDeadBand); + } static void OnFailureCallback_52(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_52(chip::to_underlying(status)); } - static void OnSuccessCallback_52(void * context, int8_t minSetpointDeadBand) - { - (static_cast(context))->OnSuccessResponse_52(minSetpointDeadBand); - } + static void OnSuccessCallback_52(void * context) { (static_cast(context))->OnSuccessResponse_52(); } static void OnFailureCallback_53(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_53(chip::to_underlying(status)); } - static void OnSuccessCallback_53(void * context, uint8_t startOfWeek) + static void OnSuccessCallback_53(void * context, int8_t minSetpointDeadBand) { - (static_cast(context))->OnSuccessResponse_53(startOfWeek); + (static_cast(context))->OnSuccessResponse_53(minSetpointDeadBand); } static void OnFailureCallback_54(void * context, EmberAfStatus status) @@ -22659,26 +23103,26 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_54(chip::to_underlying(status)); } - static void OnSuccessCallback_54(void * context) { (static_cast(context))->OnSuccessResponse_54(); } + static void OnSuccessCallback_54(void * context, uint8_t startOfWeek) + { + (static_cast(context))->OnSuccessResponse_54(startOfWeek); + } static void OnFailureCallback_55(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_55(chip::to_underlying(status)); } - static void OnSuccessCallback_55(void * context, uint8_t startOfWeek) - { - (static_cast(context))->OnSuccessResponse_55(startOfWeek); - } + static void OnSuccessCallback_55(void * context) { (static_cast(context))->OnSuccessResponse_55(); } static void OnFailureCallback_56(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_56(chip::to_underlying(status)); } - static void OnSuccessCallback_56(void * context, uint8_t numberOfWeeklyTransitions) + static void OnSuccessCallback_56(void * context, uint8_t startOfWeek) { - (static_cast(context))->OnSuccessResponse_56(numberOfWeeklyTransitions); + (static_cast(context))->OnSuccessResponse_56(startOfWeek); } static void OnFailureCallback_57(void * context, EmberAfStatus status) @@ -22686,80 +23130,92 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_57(chip::to_underlying(status)); } - static void OnSuccessCallback_57(void * context) { (static_cast(context))->OnSuccessResponse_57(); } + static void OnSuccessCallback_57(void * context, uint8_t numberOfWeeklyTransitions) + { + (static_cast(context))->OnSuccessResponse_57(numberOfWeeklyTransitions); + } static void OnFailureCallback_58(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_58(chip::to_underlying(status)); } - static void OnSuccessCallback_58(void * context, uint8_t numberOfDailyTransitions) - { - (static_cast(context))->OnSuccessResponse_58(numberOfDailyTransitions); - } + static void OnSuccessCallback_58(void * context) { (static_cast(context))->OnSuccessResponse_58(); } static void OnFailureCallback_59(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_59(chip::to_underlying(status)); } - static void OnSuccessCallback_59(void * context) { (static_cast(context))->OnSuccessResponse_59(); } + static void OnSuccessCallback_59(void * context, uint8_t numberOfDailyTransitions) + { + (static_cast(context))->OnSuccessResponse_59(numberOfDailyTransitions); + } + + static void OnFailureCallback_60(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_60(chip::to_underlying(status)); + } + + static void OnSuccessCallback_60(void * context) { (static_cast(context))->OnSuccessResponse_60(); } // // Tests methods // - CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutLocalTemperature_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutLocalTemperature_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(int16_t localTemperature) + void OnSuccessResponse_1(int16_t localTemperature) { VerifyOrReturn(CheckConstraintType("localTemperature", "", "int16")); NextTest(); } - CHIP_ERROR TestReadsMandatoryAttributesFromDutAbsMinHeatSetpointLimit_1() + CHIP_ERROR TestReadsMandatoryAttributesFromDutAbsMinHeatSetpointLimit_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_1, OnFailureCallback_1); + this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(int16_t absMinHeatSetpointLimit) + void OnSuccessResponse_2(int16_t absMinHeatSetpointLimit) { VerifyOrReturn(CheckValue("absMinHeatSetpointLimit", absMinHeatSetpointLimit, 700)); NextTest(); } - CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutAbsMinHeatSetpointLimit_2() + CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutAbsMinHeatSetpointLimit_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(int16_t absMinHeatSetpointLimit) + void OnSuccessResponse_3(int16_t absMinHeatSetpointLimit) { VerifyOrReturn(CheckConstraintType("absMinHeatSetpointLimit", "", "int16")); VerifyOrReturn(CheckConstraintMinValue("absMinHeatSetpointLimit", absMinHeatSetpointLimit, 700)); @@ -22768,7 +23224,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutAbsMinHeatSetpointLimit_3() + CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutAbsMinHeatSetpointLimit_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -22778,68 +23234,68 @@ class Test_TC_TSTAT_2_1 : public TestCommand absMinHeatSetpointLimitArgument = 700; return cluster.WriteAttribute( - absMinHeatSetpointLimitArgument, this, OnSuccessCallback_3, OnFailureCallback_3); + absMinHeatSetpointLimitArgument, this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) + void OnFailureResponse_4(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_3() { ThrowSuccessResponse(); } + void OnSuccessResponse_4() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadBackMandatoryAttributesFromDutAbsMinHeatSetpointLimit_4() + CHIP_ERROR TestReadBackMandatoryAttributesFromDutAbsMinHeatSetpointLimit_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_4, OnFailureCallback_4); + this, OnSuccessCallback_5, OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(int16_t absMinHeatSetpointLimit) + void OnSuccessResponse_5(int16_t absMinHeatSetpointLimit) { VerifyOrReturn(CheckValue("absMinHeatSetpointLimit", absMinHeatSetpointLimit, 700)); NextTest(); } - CHIP_ERROR TestReadsMandatoryAttributesFromDutAbsMaxHeatSetpointLimit_5() + CHIP_ERROR TestReadsMandatoryAttributesFromDutAbsMaxHeatSetpointLimit_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_5, OnFailureCallback_5); + this, OnSuccessCallback_6, OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(int16_t absMaxHeatSetpointLimit) + void OnSuccessResponse_6(int16_t absMaxHeatSetpointLimit) { VerifyOrReturn(CheckValue("absMaxHeatSetpointLimit", absMaxHeatSetpointLimit, 3000)); NextTest(); } - CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutAbsMaxHeatSetpointLimit_6() + CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutAbsMaxHeatSetpointLimit_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_6, OnFailureCallback_6); + this, OnSuccessCallback_7, OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(int16_t absMaxHeatSetpointLimit) + void OnSuccessResponse_7(int16_t absMaxHeatSetpointLimit) { VerifyOrReturn(CheckConstraintType("absMaxHeatSetpointLimit", "", "int16")); VerifyOrReturn(CheckConstraintMinValue("absMaxHeatSetpointLimit", absMaxHeatSetpointLimit, 700)); @@ -22848,7 +23304,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutAbsMaxHeatSetpointLimit_7() + CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutAbsMaxHeatSetpointLimit_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -22858,68 +23314,68 @@ class Test_TC_TSTAT_2_1 : public TestCommand absMaxHeatSetpointLimitArgument = 3000; return cluster.WriteAttribute( - absMaxHeatSetpointLimitArgument, this, OnSuccessCallback_7, OnFailureCallback_7); + absMaxHeatSetpointLimitArgument, this, OnSuccessCallback_8, OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) + void OnFailureResponse_8(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_7() { ThrowSuccessResponse(); } + void OnSuccessResponse_8() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadBackMandatoryAttributesFromDutAbsMaxHeatSetpointLimit_8() + CHIP_ERROR TestReadBackMandatoryAttributesFromDutAbsMaxHeatSetpointLimit_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_8, OnFailureCallback_8); + this, OnSuccessCallback_9, OnFailureCallback_9); } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8(int16_t absMaxHeatSetpointLimit) + void OnSuccessResponse_9(int16_t absMaxHeatSetpointLimit) { VerifyOrReturn(CheckValue("absMaxHeatSetpointLimit", absMaxHeatSetpointLimit, 3000)); NextTest(); } - CHIP_ERROR TestReadsMandatoryAttributesFromDutAbsMinCoolSetpointLimit_9() + CHIP_ERROR TestReadsMandatoryAttributesFromDutAbsMinCoolSetpointLimit_10() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_9, OnFailureCallback_9); + this, OnSuccessCallback_10, OnFailureCallback_10); } - void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9(int16_t absMinCoolSetpointLimit) + void OnSuccessResponse_10(int16_t absMinCoolSetpointLimit) { VerifyOrReturn(CheckValue("absMinCoolSetpointLimit", absMinCoolSetpointLimit, 1600)); NextTest(); } - CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutAbsMinCoolSetpointLimit_10() + CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutAbsMinCoolSetpointLimit_11() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_10, OnFailureCallback_10); + this, OnSuccessCallback_11, OnFailureCallback_11); } - void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_10(int16_t absMinCoolSetpointLimit) + void OnSuccessResponse_11(int16_t absMinCoolSetpointLimit) { VerifyOrReturn(CheckConstraintType("absMinCoolSetpointLimit", "", "int16")); VerifyOrReturn(CheckConstraintMinValue("absMinCoolSetpointLimit", absMinCoolSetpointLimit, 1600)); @@ -22928,7 +23384,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutAbsMinCoolSetpointLimit_11() + CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutAbsMinCoolSetpointLimit_12() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -22938,68 +23394,68 @@ class Test_TC_TSTAT_2_1 : public TestCommand absMinCoolSetpointLimitArgument = 1600; return cluster.WriteAttribute( - absMinCoolSetpointLimitArgument, this, OnSuccessCallback_11, OnFailureCallback_11); + absMinCoolSetpointLimitArgument, this, OnSuccessCallback_12, OnFailureCallback_12); } - void OnFailureResponse_11(uint8_t status) + void OnFailureResponse_12(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_11() { ThrowSuccessResponse(); } + void OnSuccessResponse_12() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadBackMandatoryAttributesFromDutAbsMinCoolSetpointLimit_12() + CHIP_ERROR TestReadBackMandatoryAttributesFromDutAbsMinCoolSetpointLimit_13() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_12, OnFailureCallback_12); + this, OnSuccessCallback_13, OnFailureCallback_13); } - void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_12(int16_t absMinCoolSetpointLimit) + void OnSuccessResponse_13(int16_t absMinCoolSetpointLimit) { VerifyOrReturn(CheckValue("absMinCoolSetpointLimit", absMinCoolSetpointLimit, 1600)); NextTest(); } - CHIP_ERROR TestReadsMandatoryAttributesFromDutAbsMaxCoolSetpointLimit_13() + CHIP_ERROR TestReadsMandatoryAttributesFromDutAbsMaxCoolSetpointLimit_14() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_13, OnFailureCallback_13); + this, OnSuccessCallback_14, OnFailureCallback_14); } - void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_13(int16_t absMaxCoolSetpointLimit) + void OnSuccessResponse_14(int16_t absMaxCoolSetpointLimit) { VerifyOrReturn(CheckValue("absMaxCoolSetpointLimit", absMaxCoolSetpointLimit, 3200)); NextTest(); } - CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutAbsMaxCoolSetpointLimit_14() + CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutAbsMaxCoolSetpointLimit_15() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_14, OnFailureCallback_14); + this, OnSuccessCallback_15, OnFailureCallback_15); } - void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_15(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_14(int16_t absMaxCoolSetpointLimit) + void OnSuccessResponse_15(int16_t absMaxCoolSetpointLimit) { VerifyOrReturn(CheckConstraintType("absMaxCoolSetpointLimit", "", "int16")); VerifyOrReturn(CheckConstraintMinValue("absMaxCoolSetpointLimit", absMaxCoolSetpointLimit, 1600)); @@ -23008,7 +23464,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutAbsMaxCoolSetpointLimit_15() + CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutAbsMaxCoolSetpointLimit_16() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -23018,68 +23474,68 @@ class Test_TC_TSTAT_2_1 : public TestCommand absMaxCoolSetpointLimitArgument = 3200; return cluster.WriteAttribute( - absMaxCoolSetpointLimitArgument, this, OnSuccessCallback_15, OnFailureCallback_15); + absMaxCoolSetpointLimitArgument, this, OnSuccessCallback_16, OnFailureCallback_16); } - void OnFailureResponse_15(uint8_t status) + void OnFailureResponse_16(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_15() { ThrowSuccessResponse(); } + void OnSuccessResponse_16() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadBackMandatoryAttributesFromDutAbsMaxCoolSetpointLimit_16() + CHIP_ERROR TestReadBackMandatoryAttributesFromDutAbsMaxCoolSetpointLimit_17() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_16, OnFailureCallback_16); + this, OnSuccessCallback_17, OnFailureCallback_17); } - void OnFailureResponse_16(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_17(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_16(int16_t absMaxCoolSetpointLimit) + void OnSuccessResponse_17(int16_t absMaxCoolSetpointLimit) { VerifyOrReturn(CheckValue("absMaxCoolSetpointLimit", absMaxCoolSetpointLimit, 3200)); NextTest(); } - CHIP_ERROR TestReadsMandatoryAttributesFromDutOccupiedCoolingSetpoint_17() + CHIP_ERROR TestReadsMandatoryAttributesFromDutOccupiedCoolingSetpoint_18() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_17, OnFailureCallback_17); + this, OnSuccessCallback_18, OnFailureCallback_18); } - void OnFailureResponse_17(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_18(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_17(int16_t occupiedCoolingSetpoint) + void OnSuccessResponse_18(int16_t occupiedCoolingSetpoint) { VerifyOrReturn(CheckValue("occupiedCoolingSetpoint", occupiedCoolingSetpoint, 2600)); NextTest(); } - CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutOccupiedCoolingSetpoint_18() + CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutOccupiedCoolingSetpoint_19() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_18, OnFailureCallback_18); + this, OnSuccessCallback_19, OnFailureCallback_19); } - void OnFailureResponse_18(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_19(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_18(int16_t occupiedCoolingSetpoint) + void OnSuccessResponse_19(int16_t occupiedCoolingSetpoint) { VerifyOrReturn(CheckConstraintType("occupiedCoolingSetpoint", "", "int16")); VerifyOrReturn(CheckConstraintMinValue("occupiedCoolingSetpoint", occupiedCoolingSetpoint, 1600)); @@ -23088,7 +23544,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutOccupiedCoolingSetpoint_19() + CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutOccupiedCoolingSetpoint_20() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -23098,64 +23554,64 @@ class Test_TC_TSTAT_2_1 : public TestCommand occupiedCoolingSetpointArgument = 2600; return cluster.WriteAttribute( - occupiedCoolingSetpointArgument, this, OnSuccessCallback_19, OnFailureCallback_19); + occupiedCoolingSetpointArgument, this, OnSuccessCallback_20, OnFailureCallback_20); } - void OnFailureResponse_19(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_20(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_19() { NextTest(); } + void OnSuccessResponse_20() { NextTest(); } - CHIP_ERROR TestReadBackMandatoryAttributesFromDutOccupiedCoolingSetpoint_20() + CHIP_ERROR TestReadBackMandatoryAttributesFromDutOccupiedCoolingSetpoint_21() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_20, OnFailureCallback_20); + this, OnSuccessCallback_21, OnFailureCallback_21); } - void OnFailureResponse_20(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_21(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_20(int16_t occupiedCoolingSetpoint) + void OnSuccessResponse_21(int16_t occupiedCoolingSetpoint) { VerifyOrReturn(CheckValue("occupiedCoolingSetpoint", occupiedCoolingSetpoint, 2600)); NextTest(); } - CHIP_ERROR TestReadsMandatoryAttributesFromDutOccupiedHeatingSetpoint_21() + CHIP_ERROR TestReadsMandatoryAttributesFromDutOccupiedHeatingSetpoint_22() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_21, OnFailureCallback_21); + this, OnSuccessCallback_22, OnFailureCallback_22); } - void OnFailureResponse_21(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_22(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_21(int16_t occupiedHeatingSetpoint) + void OnSuccessResponse_22(int16_t occupiedHeatingSetpoint) { VerifyOrReturn(CheckValue("occupiedHeatingSetpoint", occupiedHeatingSetpoint, 2000)); NextTest(); } - CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutOccupiedHeatingSetpoint_22() + CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutOccupiedHeatingSetpoint_23() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_22, OnFailureCallback_22); + this, OnSuccessCallback_23, OnFailureCallback_23); } - void OnFailureResponse_22(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_23(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_22(int16_t occupiedHeatingSetpoint) + void OnSuccessResponse_23(int16_t occupiedHeatingSetpoint) { VerifyOrReturn(CheckConstraintType("occupiedHeatingSetpoint", "", "int16")); VerifyOrReturn(CheckConstraintMinValue("occupiedHeatingSetpoint", occupiedHeatingSetpoint, 700)); @@ -23164,7 +23620,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutOccupiedHeatingSetpoint_23() + CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutOccupiedHeatingSetpoint_24() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -23174,64 +23630,64 @@ class Test_TC_TSTAT_2_1 : public TestCommand occupiedHeatingSetpointArgument = 2000; return cluster.WriteAttribute( - occupiedHeatingSetpointArgument, this, OnSuccessCallback_23, OnFailureCallback_23); + occupiedHeatingSetpointArgument, this, OnSuccessCallback_24, OnFailureCallback_24); } - void OnFailureResponse_23(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_24(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_23() { NextTest(); } + void OnSuccessResponse_24() { NextTest(); } - CHIP_ERROR TestReadBackMandatoryAttributesFromDutOccupiedHeatingSetpoint_24() + CHIP_ERROR TestReadBackMandatoryAttributesFromDutOccupiedHeatingSetpoint_25() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_24, OnFailureCallback_24); + this, OnSuccessCallback_25, OnFailureCallback_25); } - void OnFailureResponse_24(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_25(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_24(int16_t occupiedHeatingSetpoint) + void OnSuccessResponse_25(int16_t occupiedHeatingSetpoint) { VerifyOrReturn(CheckValue("occupiedHeatingSetpoint", occupiedHeatingSetpoint, 2000)); NextTest(); } - CHIP_ERROR TestReadsMandatoryAttributesFromDutMinHeatSetpointLimit_25() + CHIP_ERROR TestReadsMandatoryAttributesFromDutMinHeatSetpointLimit_26() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_25, OnFailureCallback_25); + this, OnSuccessCallback_26, OnFailureCallback_26); } - void OnFailureResponse_25(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_26(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_25(int16_t minHeatSetpointLimit) + void OnSuccessResponse_26(int16_t minHeatSetpointLimit) { VerifyOrReturn(CheckValue("minHeatSetpointLimit", minHeatSetpointLimit, 700)); NextTest(); } - CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutMinHeatSetpointLimit_26() + CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutMinHeatSetpointLimit_27() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_26, OnFailureCallback_26); + this, OnSuccessCallback_27, OnFailureCallback_27); } - void OnFailureResponse_26(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_27(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_26(int16_t minHeatSetpointLimit) + void OnSuccessResponse_27(int16_t minHeatSetpointLimit) { VerifyOrReturn(CheckConstraintType("minHeatSetpointLimit", "", "int16")); VerifyOrReturn(CheckConstraintMinValue("minHeatSetpointLimit", minHeatSetpointLimit, 700)); @@ -23240,7 +23696,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutMinHeatSetpointLimit_27() + CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutMinHeatSetpointLimit_28() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -23250,64 +23706,64 @@ class Test_TC_TSTAT_2_1 : public TestCommand minHeatSetpointLimitArgument = 700; return cluster.WriteAttribute( - minHeatSetpointLimitArgument, this, OnSuccessCallback_27, OnFailureCallback_27); + minHeatSetpointLimitArgument, this, OnSuccessCallback_28, OnFailureCallback_28); } - void OnFailureResponse_27(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_28(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_27() { NextTest(); } + void OnSuccessResponse_28() { NextTest(); } - CHIP_ERROR TestReadBackMandatoryAttributesFromDutMinHeatSetpointLimit_28() + CHIP_ERROR TestReadBackMandatoryAttributesFromDutMinHeatSetpointLimit_29() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_28, OnFailureCallback_28); + this, OnSuccessCallback_29, OnFailureCallback_29); } - void OnFailureResponse_28(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_29(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_28(int16_t minHeatSetpointLimit) + void OnSuccessResponse_29(int16_t minHeatSetpointLimit) { VerifyOrReturn(CheckValue("minHeatSetpointLimit", minHeatSetpointLimit, 700)); NextTest(); } - CHIP_ERROR TestReadsMandatoryAttributesFromDutMaxHeatSetpointLimit_29() + CHIP_ERROR TestReadsMandatoryAttributesFromDutMaxHeatSetpointLimit_30() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_29, OnFailureCallback_29); + this, OnSuccessCallback_30, OnFailureCallback_30); } - void OnFailureResponse_29(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_30(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_29(int16_t maxHeatSetpointLimit) + void OnSuccessResponse_30(int16_t maxHeatSetpointLimit) { VerifyOrReturn(CheckValue("maxHeatSetpointLimit", maxHeatSetpointLimit, 3000)); NextTest(); } - CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutMaxHeatSetpointLimit_30() + CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutMaxHeatSetpointLimit_31() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_30, OnFailureCallback_30); + this, OnSuccessCallback_31, OnFailureCallback_31); } - void OnFailureResponse_30(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_31(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_30(int16_t maxHeatSetpointLimit) + void OnSuccessResponse_31(int16_t maxHeatSetpointLimit) { VerifyOrReturn(CheckConstraintType("maxHeatSetpointLimit", "", "int16")); VerifyOrReturn(CheckConstraintMinValue("maxHeatSetpointLimit", maxHeatSetpointLimit, 700)); @@ -23316,7 +23772,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutMaxHeatSetpointLimit_31() + CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutMaxHeatSetpointLimit_32() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -23326,64 +23782,64 @@ class Test_TC_TSTAT_2_1 : public TestCommand maxHeatSetpointLimitArgument = 3000; return cluster.WriteAttribute( - maxHeatSetpointLimitArgument, this, OnSuccessCallback_31, OnFailureCallback_31); + maxHeatSetpointLimitArgument, this, OnSuccessCallback_32, OnFailureCallback_32); } - void OnFailureResponse_31(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_32(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_31() { NextTest(); } + void OnSuccessResponse_32() { NextTest(); } - CHIP_ERROR TestReadBackMandatoryAttributesFromDutMaxHeatSetpointLimit_32() + CHIP_ERROR TestReadBackMandatoryAttributesFromDutMaxHeatSetpointLimit_33() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_32, OnFailureCallback_32); + this, OnSuccessCallback_33, OnFailureCallback_33); } - void OnFailureResponse_32(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_33(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_32(int16_t maxHeatSetpointLimit) + void OnSuccessResponse_33(int16_t maxHeatSetpointLimit) { VerifyOrReturn(CheckValue("maxHeatSetpointLimit", maxHeatSetpointLimit, 3000)); NextTest(); } - CHIP_ERROR TestReadsMandatoryAttributesFromDutMinCoolSetpointLimit_33() + CHIP_ERROR TestReadsMandatoryAttributesFromDutMinCoolSetpointLimit_34() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_33, OnFailureCallback_33); + this, OnSuccessCallback_34, OnFailureCallback_34); } - void OnFailureResponse_33(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_34(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_33(int16_t minCoolSetpointLimit) + void OnSuccessResponse_34(int16_t minCoolSetpointLimit) { VerifyOrReturn(CheckValue("minCoolSetpointLimit", minCoolSetpointLimit, 1600)); NextTest(); } - CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutMinCoolSetpointLimit_34() + CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutMinCoolSetpointLimit_35() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_34, OnFailureCallback_34); + this, OnSuccessCallback_35, OnFailureCallback_35); } - void OnFailureResponse_34(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_35(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_34(int16_t minCoolSetpointLimit) + void OnSuccessResponse_35(int16_t minCoolSetpointLimit) { VerifyOrReturn(CheckConstraintType("minCoolSetpointLimit", "", "int16")); VerifyOrReturn(CheckConstraintMinValue("minCoolSetpointLimit", minCoolSetpointLimit, 1600)); @@ -23392,7 +23848,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutMinCoolSetpointLimit_35() + CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutMinCoolSetpointLimit_36() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -23402,64 +23858,64 @@ class Test_TC_TSTAT_2_1 : public TestCommand minCoolSetpointLimitArgument = 1600; return cluster.WriteAttribute( - minCoolSetpointLimitArgument, this, OnSuccessCallback_35, OnFailureCallback_35); + minCoolSetpointLimitArgument, this, OnSuccessCallback_36, OnFailureCallback_36); } - void OnFailureResponse_35(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_36(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_35() { NextTest(); } + void OnSuccessResponse_36() { NextTest(); } - CHIP_ERROR TestReadBackMandatoryAttributesFromDutMinCoolSetpointLimit_36() + CHIP_ERROR TestReadBackMandatoryAttributesFromDutMinCoolSetpointLimit_37() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_36, OnFailureCallback_36); + this, OnSuccessCallback_37, OnFailureCallback_37); } - void OnFailureResponse_36(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_37(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_36(int16_t minCoolSetpointLimit) + void OnSuccessResponse_37(int16_t minCoolSetpointLimit) { VerifyOrReturn(CheckValue("minCoolSetpointLimit", minCoolSetpointLimit, 1600)); NextTest(); } - CHIP_ERROR TestReadsMandatoryAttributesFromDutMaxCoolSetpointLimit_37() + CHIP_ERROR TestReadsMandatoryAttributesFromDutMaxCoolSetpointLimit_38() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_37, OnFailureCallback_37); + this, OnSuccessCallback_38, OnFailureCallback_38); } - void OnFailureResponse_37(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_38(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_37(int16_t maxCoolSetpointLimit) + void OnSuccessResponse_38(int16_t maxCoolSetpointLimit) { VerifyOrReturn(CheckValue("maxCoolSetpointLimit", maxCoolSetpointLimit, 3200)); NextTest(); } - CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutMaxCoolSetpointLimit_38() + CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutMaxCoolSetpointLimit_39() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_38, OnFailureCallback_38); + this, OnSuccessCallback_39, OnFailureCallback_39); } - void OnFailureResponse_38(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_39(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_38(int16_t maxCoolSetpointLimit) + void OnSuccessResponse_39(int16_t maxCoolSetpointLimit) { VerifyOrReturn(CheckConstraintType("maxCoolSetpointLimit", "", "int16")); VerifyOrReturn(CheckConstraintMinValue("maxCoolSetpointLimit", maxCoolSetpointLimit, 1600)); @@ -23468,7 +23924,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutMaxCoolSetpointLimit_39() + CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutMaxCoolSetpointLimit_40() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -23478,64 +23934,64 @@ class Test_TC_TSTAT_2_1 : public TestCommand maxCoolSetpointLimitArgument = 3200; return cluster.WriteAttribute( - maxCoolSetpointLimitArgument, this, OnSuccessCallback_39, OnFailureCallback_39); + maxCoolSetpointLimitArgument, this, OnSuccessCallback_40, OnFailureCallback_40); } - void OnFailureResponse_39(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_40(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_39() { NextTest(); } + void OnSuccessResponse_40() { NextTest(); } - CHIP_ERROR TestReadBackMandatoryAttributesFromDutMaxCoolSetpointLimit_40() + CHIP_ERROR TestReadBackMandatoryAttributesFromDutMaxCoolSetpointLimit_41() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_40, OnFailureCallback_40); + this, OnSuccessCallback_41, OnFailureCallback_41); } - void OnFailureResponse_40(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_41(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_40(int16_t maxCoolSetpointLimit) + void OnSuccessResponse_41(int16_t maxCoolSetpointLimit) { VerifyOrReturn(CheckValue("maxCoolSetpointLimit", maxCoolSetpointLimit, 3200)); NextTest(); } - CHIP_ERROR TestReadsMandatoryAttributesFromDutControlSequenceOfOperation_41() + CHIP_ERROR TestReadsMandatoryAttributesFromDutControlSequenceOfOperation_42() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_41, OnFailureCallback_41); + this, OnSuccessCallback_42, OnFailureCallback_42); } - void OnFailureResponse_41(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_42(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_41(uint8_t controlSequenceOfOperation) + void OnSuccessResponse_42(uint8_t controlSequenceOfOperation) { VerifyOrReturn(CheckValue("controlSequenceOfOperation", controlSequenceOfOperation, 4)); NextTest(); } - CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutControlSequenceOfOperation_42() + CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutControlSequenceOfOperation_43() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_42, OnFailureCallback_42); + this, OnSuccessCallback_43, OnFailureCallback_43); } - void OnFailureResponse_42(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_43(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_42(uint8_t controlSequenceOfOperation) + void OnSuccessResponse_43(uint8_t controlSequenceOfOperation) { VerifyOrReturn(CheckConstraintType("controlSequenceOfOperation", "", "enum8")); VerifyOrReturn(CheckConstraintMaxValue("controlSequenceOfOperation", controlSequenceOfOperation, 5)); @@ -23543,7 +23999,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutControlSequenceOfOperation_43() + CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutControlSequenceOfOperation_44() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -23553,64 +24009,64 @@ class Test_TC_TSTAT_2_1 : public TestCommand controlSequenceOfOperationArgument = static_cast(4); return cluster.WriteAttribute( - controlSequenceOfOperationArgument, this, OnSuccessCallback_43, OnFailureCallback_43); + controlSequenceOfOperationArgument, this, OnSuccessCallback_44, OnFailureCallback_44); } - void OnFailureResponse_43(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_44(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_43() { NextTest(); } + void OnSuccessResponse_44() { NextTest(); } - CHIP_ERROR TestReadBackMandatoryAttributesFromDutControlSequenceOfOperation_44() + CHIP_ERROR TestReadBackMandatoryAttributesFromDutControlSequenceOfOperation_45() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_44, OnFailureCallback_44); + this, OnSuccessCallback_45, OnFailureCallback_45); } - void OnFailureResponse_44(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_45(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_44(uint8_t controlSequenceOfOperation) + void OnSuccessResponse_45(uint8_t controlSequenceOfOperation) { VerifyOrReturn(CheckValue("controlSequenceOfOperation", controlSequenceOfOperation, 4)); NextTest(); } - CHIP_ERROR TestReadsMandatoryAttributesFromDutSystemMode_45() + CHIP_ERROR TestReadsMandatoryAttributesFromDutSystemMode_46() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_45, - OnFailureCallback_45); + return cluster.ReadAttribute(this, OnSuccessCallback_46, + OnFailureCallback_46); } - void OnFailureResponse_45(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_46(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_45(uint8_t systemMode) + void OnSuccessResponse_46(uint8_t systemMode) { VerifyOrReturn(CheckValue("systemMode", systemMode, 1)); NextTest(); } - CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutSystemMode_46() + CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutSystemMode_47() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_46, - OnFailureCallback_46); + return cluster.ReadAttribute(this, OnSuccessCallback_47, + OnFailureCallback_47); } - void OnFailureResponse_46(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_47(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_46(uint8_t systemMode) + void OnSuccessResponse_47(uint8_t systemMode) { VerifyOrReturn(CheckConstraintType("systemMode", "", "enum8")); VerifyOrReturn(CheckConstraintMaxValue("systemMode", systemMode, 9)); @@ -23618,7 +24074,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutSystemMode_47() + CHIP_ERROR TestWritesTheRespectiveDefaultValueToMandatoryAttributesToDutSystemMode_48() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -23628,64 +24084,64 @@ class Test_TC_TSTAT_2_1 : public TestCommand systemModeArgument = static_cast(1); return cluster.WriteAttribute( - systemModeArgument, this, OnSuccessCallback_47, OnFailureCallback_47); + systemModeArgument, this, OnSuccessCallback_48, OnFailureCallback_48); } - void OnFailureResponse_47(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_48(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_47() { NextTest(); } + void OnSuccessResponse_48() { NextTest(); } - CHIP_ERROR TestReadBackMandatoryAttributesFromDutSystemMode_48() + CHIP_ERROR TestReadBackMandatoryAttributesFromDutSystemMode_49() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_48, - OnFailureCallback_48); + return cluster.ReadAttribute(this, OnSuccessCallback_49, + OnFailureCallback_49); } - void OnFailureResponse_48(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_49(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_48(uint8_t systemMode) + void OnSuccessResponse_49(uint8_t systemMode) { VerifyOrReturn(CheckValue("systemMode", systemMode, 1)); NextTest(); } - CHIP_ERROR TestReadsOptionalAttributesFromDutMinSetpointDeadBand_49() + CHIP_ERROR TestReadsOptionalAttributesFromDutMinSetpointDeadBand_50() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_49, OnFailureCallback_49); + this, OnSuccessCallback_50, OnFailureCallback_50); } - void OnFailureResponse_49(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_50(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_49(int8_t minSetpointDeadBand) + void OnSuccessResponse_50(int8_t minSetpointDeadBand) { VerifyOrReturn(CheckValue("minSetpointDeadBand", minSetpointDeadBand, 25)); NextTest(); } - CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutMinSetpointDeadBand_50() + CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutMinSetpointDeadBand_51() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_50, OnFailureCallback_50); + this, OnSuccessCallback_51, OnFailureCallback_51); } - void OnFailureResponse_50(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_51(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_50(int8_t minSetpointDeadBand) + void OnSuccessResponse_51(int8_t minSetpointDeadBand) { VerifyOrReturn(CheckConstraintType("minSetpointDeadBand", "", "int8")); VerifyOrReturn(CheckConstraintMaxValue("minSetpointDeadBand", minSetpointDeadBand, 25)); @@ -23693,7 +24149,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWritesTheRespectiveDefaultValueToOptionalAttributesToDutMinSetpointDeadBand_51() + CHIP_ERROR TestWritesTheRespectiveDefaultValueToOptionalAttributesToDutMinSetpointDeadBand_52() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -23703,45 +24159,45 @@ class Test_TC_TSTAT_2_1 : public TestCommand minSetpointDeadBandArgument = 25; return cluster.WriteAttribute( - minSetpointDeadBandArgument, this, OnSuccessCallback_51, OnFailureCallback_51); + minSetpointDeadBandArgument, this, OnSuccessCallback_52, OnFailureCallback_52); } - void OnFailureResponse_51(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_52(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_51() { NextTest(); } + void OnSuccessResponse_52() { NextTest(); } - CHIP_ERROR TestReadBackOptionalAttributesFromDutMinSetpointDeadBand_52() + CHIP_ERROR TestReadBackOptionalAttributesFromDutMinSetpointDeadBand_53() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_52, OnFailureCallback_52); + this, OnSuccessCallback_53, OnFailureCallback_53); } - void OnFailureResponse_52(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_53(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_52(int8_t minSetpointDeadBand) + void OnSuccessResponse_53(int8_t minSetpointDeadBand) { VerifyOrReturn(CheckValue("minSetpointDeadBand", minSetpointDeadBand, 25)); NextTest(); } - CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutStartOfWeek_53() + CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutStartOfWeek_54() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_53, - OnFailureCallback_53); + return cluster.ReadAttribute(this, OnSuccessCallback_54, + OnFailureCallback_54); } - void OnFailureResponse_53(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_54(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_53(uint8_t startOfWeek) + void OnSuccessResponse_54(uint8_t startOfWeek) { VerifyOrReturn(CheckConstraintType("startOfWeek", "", "enum8")); VerifyOrReturn(CheckConstraintMaxValue("startOfWeek", startOfWeek, 6)); @@ -23749,7 +24205,7 @@ class Test_TC_TSTAT_2_1 : public TestCommand NextTest(); } - CHIP_ERROR TestWritesTheRespectiveDefaultValueToOptionalAttributesToDutStartOfWeek_54() + CHIP_ERROR TestWritesTheRespectiveDefaultValueToOptionalAttributesToDutStartOfWeek_55() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -23759,56 +24215,56 @@ class Test_TC_TSTAT_2_1 : public TestCommand startOfWeekArgument = static_cast(0); return cluster.WriteAttribute( - startOfWeekArgument, this, OnSuccessCallback_54, OnFailureCallback_54); + startOfWeekArgument, this, OnSuccessCallback_55, OnFailureCallback_55); } - void OnFailureResponse_54(uint8_t status) + void OnFailureResponse_55(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_54() { ThrowSuccessResponse(); } + void OnSuccessResponse_55() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadBackOptionalAttributesFromDutStartOfWeek_55() + CHIP_ERROR TestReadBackOptionalAttributesFromDutStartOfWeek_56() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_55, - OnFailureCallback_55); + return cluster.ReadAttribute(this, OnSuccessCallback_56, + OnFailureCallback_56); } - void OnFailureResponse_55(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_56(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_55(uint8_t startOfWeek) + void OnSuccessResponse_56(uint8_t startOfWeek) { VerifyOrReturn(CheckValue("startOfWeek", startOfWeek, 0)); NextTest(); } - CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutNumberOfWeeklyTransitions_56() + CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutNumberOfWeeklyTransitions_57() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_56, OnFailureCallback_56); + this, OnSuccessCallback_57, OnFailureCallback_57); } - void OnFailureResponse_56(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_57(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_56(uint8_t numberOfWeeklyTransitions) + void OnSuccessResponse_57(uint8_t numberOfWeeklyTransitions) { VerifyOrReturn(CheckConstraintType("numberOfWeeklyTransitions", "", "uint8")); NextTest(); } - CHIP_ERROR TestWritesTheRespectiveDefaultValueToOptionalAttributesToDutNumberOfWeeklyTransitions_57() + CHIP_ERROR TestWritesTheRespectiveDefaultValueToOptionalAttributesToDutNumberOfWeeklyTransitions_58() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -23818,37 +24274,37 @@ class Test_TC_TSTAT_2_1 : public TestCommand numberOfWeeklyTransitionsArgument = 0; return cluster.WriteAttribute( - numberOfWeeklyTransitionsArgument, this, OnSuccessCallback_57, OnFailureCallback_57); + numberOfWeeklyTransitionsArgument, this, OnSuccessCallback_58, OnFailureCallback_58); } - void OnFailureResponse_57(uint8_t status) + void OnFailureResponse_58(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_57() { ThrowSuccessResponse(); } + void OnSuccessResponse_58() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutNumberOfDailyTransitions_58() + CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutNumberOfDailyTransitions_59() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_58, OnFailureCallback_58); + this, OnSuccessCallback_59, OnFailureCallback_59); } - void OnFailureResponse_58(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_59(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_58(uint8_t numberOfDailyTransitions) + void OnSuccessResponse_59(uint8_t numberOfDailyTransitions) { VerifyOrReturn(CheckConstraintType("numberOfDailyTransitions", "", "uint8")); NextTest(); } - CHIP_ERROR TestWritesTheRespectiveDefaultValueToOptionalAttributesToDutNumberOfDailyTransitions_59() + CHIP_ERROR TestWritesTheRespectiveDefaultValueToOptionalAttributesToDutNumberOfDailyTransitions_60() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -23858,16 +24314,16 @@ class Test_TC_TSTAT_2_1 : public TestCommand numberOfDailyTransitionsArgument = 0; return cluster.WriteAttribute( - numberOfDailyTransitionsArgument, this, OnSuccessCallback_59, OnFailureCallback_59); + numberOfDailyTransitionsArgument, this, OnSuccessCallback_60, OnFailureCallback_60); } - void OnFailureResponse_59(uint8_t status) + void OnFailureResponse_60(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_59() { ThrowSuccessResponse(); } + void OnSuccessResponse_60() { ThrowSuccessResponse(); } }; class Test_TC_TSTAT_2_2 : public TestCommand @@ -23901,247 +24357,247 @@ class Test_TC_TSTAT_2_2 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, - " ***** Test Step 0 : Reads OccupiedCoolingSetpoint attribute from Server DUT and verifies that the " - "value is within range\n"); - err = TestReadsOccupiedCoolingSetpointAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_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 : Writes a value back that is different but valid for OccupiedCoolingSetpoint attribute\n"); - err = TestWritesAValueBackThatIsDifferentButValidForOccupiedCoolingSetpointAttribute_1(); + ChipLogProgress(chipTool, + " ***** Test Step 1 : Reads OccupiedCoolingSetpoint attribute from Server DUT and verifies that the " + "value is within range\n"); + err = TestReadsOccupiedCoolingSetpointAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_1(); break; case 2: ChipLogProgress( chipTool, - " ***** Test Step 2 : Reads it back again to confirm the successful write of OccupiedCoolingSetpoint attribute\n"); - err = TestReadsItBackAgainToConfirmTheSuccessfulWriteOfOccupiedCoolingSetpointAttribute_2(); + " ***** Test Step 2 : Writes a value back that is different but valid for OccupiedCoolingSetpoint attribute\n"); + err = TestWritesAValueBackThatIsDifferentButValidForOccupiedCoolingSetpointAttribute_2(); break; case 3: - ChipLogProgress(chipTool, - " ***** Test Step 3 : Writes the limit of MinCoolSetpointLimit to OccupiedCoolingSetpoint attribute\n"); - err = TestWritesTheLimitOfMinCoolSetpointLimitToOccupiedCoolingSetpointAttribute_3(); + ChipLogProgress( + chipTool, + " ***** Test Step 3 : Reads it back again to confirm the successful write of OccupiedCoolingSetpoint attribute\n"); + err = TestReadsItBackAgainToConfirmTheSuccessfulWriteOfOccupiedCoolingSetpointAttribute_3(); break; case 4: ChipLogProgress(chipTool, - " ***** Test Step 4 : Writes the limit of MaxCoolSetpointLimit to OccupiedCoolingSetpoint attribute\n"); - err = TestWritesTheLimitOfMaxCoolSetpointLimitToOccupiedCoolingSetpointAttribute_4(); + " ***** Test Step 4 : Writes the limit of MinCoolSetpointLimit to OccupiedCoolingSetpoint attribute\n"); + err = TestWritesTheLimitOfMinCoolSetpointLimitToOccupiedCoolingSetpointAttribute_4(); break; case 5: ChipLogProgress(chipTool, - " ***** Test Step 5 : Reads OccupiedHeatingSetpoint attribute from Server DUT and verifies that the " - "value is within range\n"); - err = TestReadsOccupiedHeatingSetpointAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_5(); + " ***** Test Step 5 : Writes the limit of MaxCoolSetpointLimit to OccupiedCoolingSetpoint attribute\n"); + err = TestWritesTheLimitOfMaxCoolSetpointLimitToOccupiedCoolingSetpointAttribute_5(); break; case 6: - ChipLogProgress( - chipTool, - " ***** Test Step 6 : Writes a value back that is different but valid for OccupiedHeatingSetpoint attribute\n"); - err = TestWritesAValueBackThatIsDifferentButValidForOccupiedHeatingSetpointAttribute_6(); + ChipLogProgress(chipTool, + " ***** Test Step 6 : Reads OccupiedHeatingSetpoint attribute from Server DUT and verifies that the " + "value is within range\n"); + err = TestReadsOccupiedHeatingSetpointAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_6(); break; case 7: ChipLogProgress( chipTool, - " ***** Test Step 7 : Reads it back again to confirm the successful write of OccupiedHeatingSetpoint attribute\n"); - err = TestReadsItBackAgainToConfirmTheSuccessfulWriteOfOccupiedHeatingSetpointAttribute_7(); + " ***** Test Step 7 : Writes a value back that is different but valid for OccupiedHeatingSetpoint attribute\n"); + err = TestWritesAValueBackThatIsDifferentButValidForOccupiedHeatingSetpointAttribute_7(); break; case 8: - ChipLogProgress(chipTool, - " ***** Test Step 8 : Writes the limit of MinHeatSetpointLimit to OccupiedHeatingSetpoint attribute\n"); - err = TestWritesTheLimitOfMinHeatSetpointLimitToOccupiedHeatingSetpointAttribute_8(); + ChipLogProgress( + chipTool, + " ***** Test Step 8 : Reads it back again to confirm the successful write of OccupiedHeatingSetpoint attribute\n"); + err = TestReadsItBackAgainToConfirmTheSuccessfulWriteOfOccupiedHeatingSetpointAttribute_8(); break; case 9: ChipLogProgress(chipTool, - " ***** Test Step 9 : Writes the limit of MaxHeatSetpointLimit to OccupiedHeatingSetpoint attribute\n"); - err = TestWritesTheLimitOfMaxHeatSetpointLimitToOccupiedHeatingSetpointAttribute_9(); + " ***** Test Step 9 : Writes the limit of MinHeatSetpointLimit to OccupiedHeatingSetpoint attribute\n"); + err = TestWritesTheLimitOfMinHeatSetpointLimitToOccupiedHeatingSetpointAttribute_9(); break; case 10: - ChipLogProgress(chipTool, - " ***** Test Step 10 : Reads MinHeatSetpointLimit attribute from Server DUT and verifies that the " - "value is within range\n"); - err = TestReadsMinHeatSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_10(); + ChipLogProgress( + chipTool, " ***** Test Step 10 : Writes the limit of MaxHeatSetpointLimit to OccupiedHeatingSetpoint attribute\n"); + err = TestWritesTheLimitOfMaxHeatSetpointLimitToOccupiedHeatingSetpointAttribute_10(); break; case 11: - ChipLogProgress( - chipTool, - " ***** Test Step 11 : Writes a value back that is different but valid for MinHeatSetpointLimit attribute\n"); - err = TestWritesAValueBackThatIsDifferentButValidForMinHeatSetpointLimitAttribute_11(); + ChipLogProgress(chipTool, + " ***** Test Step 11 : Reads MinHeatSetpointLimit attribute from Server DUT and verifies that the " + "value is within range\n"); + err = TestReadsMinHeatSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_11(); break; case 12: ChipLogProgress( chipTool, - " ***** Test Step 12 : Reads it back again to confirm the successful write of MinHeatSetpointLimit attribute\n"); - err = TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMinHeatSetpointLimitAttribute_12(); + " ***** Test Step 12 : Writes a value back that is different but valid for MinHeatSetpointLimit attribute\n"); + err = TestWritesAValueBackThatIsDifferentButValidForMinHeatSetpointLimitAttribute_12(); break; case 13: ChipLogProgress( - chipTool, " ***** Test Step 13 : Writes the limit of AbsMinHeatSetpointLimit to MinHeatSetpointLimit attribute\n"); - err = TestWritesTheLimitOfAbsMinHeatSetpointLimitToMinHeatSetpointLimitAttribute_13(); + chipTool, + " ***** Test Step 13 : Reads it back again to confirm the successful write of MinHeatSetpointLimit attribute\n"); + err = TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMinHeatSetpointLimitAttribute_13(); break; case 14: ChipLogProgress( - chipTool, " ***** Test Step 14 : Writes the limit of AbsMaxHeatSetpointLimit to MinHeatSetpointLimit attribute\n"); - err = TestWritesTheLimitOfAbsMaxHeatSetpointLimitToMinHeatSetpointLimitAttribute_14(); + chipTool, " ***** Test Step 14 : Writes the limit of AbsMinHeatSetpointLimit to MinHeatSetpointLimit attribute\n"); + err = TestWritesTheLimitOfAbsMinHeatSetpointLimitToMinHeatSetpointLimitAttribute_14(); break; case 15: - ChipLogProgress(chipTool, - " ***** Test Step 15 : Reads MaxHeatSetpointLimit attribute from Server DUT and verifies that the " - "value is within range\n"); - err = TestReadsMaxHeatSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_15(); + ChipLogProgress( + chipTool, " ***** Test Step 15 : Writes the limit of AbsMaxHeatSetpointLimit to MinHeatSetpointLimit attribute\n"); + err = TestWritesTheLimitOfAbsMaxHeatSetpointLimitToMinHeatSetpointLimitAttribute_15(); break; case 16: - ChipLogProgress( - chipTool, - " ***** Test Step 16 : Writes a value back that is different but valid for MaxHeatSetpointLimit attribute\n"); - err = TestWritesAValueBackThatIsDifferentButValidForMaxHeatSetpointLimitAttribute_16(); + ChipLogProgress(chipTool, + " ***** Test Step 16 : Reads MaxHeatSetpointLimit attribute from Server DUT and verifies that the " + "value is within range\n"); + err = TestReadsMaxHeatSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_16(); break; case 17: ChipLogProgress( chipTool, - " ***** Test Step 17 : Reads it back again to confirm the successful write of MaxHeatSetpointLimit attribute\n"); - err = TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMaxHeatSetpointLimitAttribute_17(); + " ***** Test Step 17 : Writes a value back that is different but valid for MaxHeatSetpointLimit attribute\n"); + err = TestWritesAValueBackThatIsDifferentButValidForMaxHeatSetpointLimitAttribute_17(); break; case 18: ChipLogProgress( - chipTool, " ***** Test Step 18 : Writes the limit of AbsMinHeatSetpointLimit to MaxHeatSetpointLimit attribute\n"); - err = TestWritesTheLimitOfAbsMinHeatSetpointLimitToMaxHeatSetpointLimitAttribute_18(); + chipTool, + " ***** Test Step 18 : Reads it back again to confirm the successful write of MaxHeatSetpointLimit attribute\n"); + err = TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMaxHeatSetpointLimitAttribute_18(); break; case 19: ChipLogProgress( - chipTool, " ***** Test Step 19 : Writes the limit of AbsMaxHeatSetpointLimit to MaxHeatSetpointLimit attribute\n"); - err = TestWritesTheLimitOfAbsMaxHeatSetpointLimitToMaxHeatSetpointLimitAttribute_19(); + chipTool, " ***** Test Step 19 : Writes the limit of AbsMinHeatSetpointLimit to MaxHeatSetpointLimit attribute\n"); + err = TestWritesTheLimitOfAbsMinHeatSetpointLimitToMaxHeatSetpointLimitAttribute_19(); break; case 20: - ChipLogProgress(chipTool, - " ***** Test Step 20 : Reads MinCoolSetpointLimit attribute from Server DUT and verifies that the " - "value is within range\n"); - err = TestReadsMinCoolSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_20(); + ChipLogProgress( + chipTool, " ***** Test Step 20 : Writes the limit of AbsMaxHeatSetpointLimit to MaxHeatSetpointLimit attribute\n"); + err = TestWritesTheLimitOfAbsMaxHeatSetpointLimitToMaxHeatSetpointLimitAttribute_20(); break; case 21: - ChipLogProgress( - chipTool, - " ***** Test Step 21 : Writes a value back that is different but valid for MinCoolSetpointLimit attribute\n"); - err = TestWritesAValueBackThatIsDifferentButValidForMinCoolSetpointLimitAttribute_21(); + ChipLogProgress(chipTool, + " ***** Test Step 21 : Reads MinCoolSetpointLimit attribute from Server DUT and verifies that the " + "value is within range\n"); + err = TestReadsMinCoolSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_21(); break; case 22: ChipLogProgress( chipTool, - " ***** Test Step 22 : Reads it back again to confirm the successful write of MinCoolSetpointLimit attribute\n"); - err = TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMinCoolSetpointLimitAttribute_22(); + " ***** Test Step 22 : Writes a value back that is different but valid for MinCoolSetpointLimit attribute\n"); + err = TestWritesAValueBackThatIsDifferentButValidForMinCoolSetpointLimitAttribute_22(); break; case 23: ChipLogProgress( - chipTool, " ***** Test Step 23 : Writes the limit of AbsMinCoolSetpointLimit to MinCoolSetpointLimit attribute\n"); - err = TestWritesTheLimitOfAbsMinCoolSetpointLimitToMinCoolSetpointLimitAttribute_23(); + chipTool, + " ***** Test Step 23 : Reads it back again to confirm the successful write of MinCoolSetpointLimit attribute\n"); + err = TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMinCoolSetpointLimitAttribute_23(); break; case 24: - ChipLogProgress(chipTool, - " ***** Test Step 24 : Writes the limit of MaxCoolSetpointLimit to MinCoolSetpointLimit attribute\n"); - err = TestWritesTheLimitOfMaxCoolSetpointLimitToMinCoolSetpointLimitAttribute_24(); + ChipLogProgress( + chipTool, " ***** Test Step 24 : Writes the limit of AbsMinCoolSetpointLimit to MinCoolSetpointLimit attribute\n"); + err = TestWritesTheLimitOfAbsMinCoolSetpointLimitToMinCoolSetpointLimitAttribute_24(); break; case 25: ChipLogProgress(chipTool, - " ***** Test Step 25 : Reads MaxCoolSetpointLimit attribute from Server DUT and verifies that the " - "value is within range\n"); - err = TestReadsMaxCoolSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_25(); + " ***** Test Step 25 : Writes the limit of MaxCoolSetpointLimit to MinCoolSetpointLimit attribute\n"); + err = TestWritesTheLimitOfMaxCoolSetpointLimitToMinCoolSetpointLimitAttribute_25(); break; case 26: - ChipLogProgress( - chipTool, - " ***** Test Step 26 : Writes a value back that is different but valid for MaxCoolSetpointLimit attribute\n"); - err = TestWritesAValueBackThatIsDifferentButValidForMaxCoolSetpointLimitAttribute_26(); + ChipLogProgress(chipTool, + " ***** Test Step 26 : Reads MaxCoolSetpointLimit attribute from Server DUT and verifies that the " + "value is within range\n"); + err = TestReadsMaxCoolSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_26(); break; case 27: ChipLogProgress( chipTool, - " ***** Test Step 27 : Reads it back again to confirm the successful write of MaxCoolSetpointLimit attribute\n"); - err = TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMaxCoolSetpointLimitAttribute_27(); + " ***** Test Step 27 : Writes a value back that is different but valid for MaxCoolSetpointLimit attribute\n"); + err = TestWritesAValueBackThatIsDifferentButValidForMaxCoolSetpointLimitAttribute_27(); break; case 28: ChipLogProgress( - chipTool, " ***** Test Step 28 : Writes the limit of AbsMinCoolSetpointLimit to MaxCoolSetpointLimit attribute\n"); - err = TestWritesTheLimitOfAbsMinCoolSetpointLimitToMaxCoolSetpointLimitAttribute_28(); + chipTool, + " ***** Test Step 28 : Reads it back again to confirm the successful write of MaxCoolSetpointLimit attribute\n"); + err = TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMaxCoolSetpointLimitAttribute_28(); break; case 29: - ChipLogProgress(chipTool, - " ***** Test Step 29 : Writes the limit of MaxCoolSetpointLimit to MaxCoolSetpointLimit attribute\n"); - err = TestWritesTheLimitOfMaxCoolSetpointLimitToMaxCoolSetpointLimitAttribute_29(); + ChipLogProgress( + chipTool, " ***** Test Step 29 : Writes the limit of AbsMinCoolSetpointLimit to MaxCoolSetpointLimit attribute\n"); + err = TestWritesTheLimitOfAbsMinCoolSetpointLimitToMaxCoolSetpointLimitAttribute_29(); break; case 30: - ChipLogProgress( - chipTool, - " ***** Test Step 30 : Writes (sets back) the limit of MinHeatSetpointLimit to MinHeatSetpointLimit attribute\n"); - err = TestWritesSetsBackTheLimitOfMinHeatSetpointLimitToMinHeatSetpointLimitAttribute_30(); + ChipLogProgress(chipTool, + " ***** Test Step 30 : Writes the limit of MaxCoolSetpointLimit to MaxCoolSetpointLimit attribute\n"); + err = TestWritesTheLimitOfMaxCoolSetpointLimitToMaxCoolSetpointLimitAttribute_30(); break; case 31: ChipLogProgress( chipTool, - " ***** Test Step 31 : Writes (sets back) the limit of MaxHeatSetpointLimit to MinHeatSetpointLimit attribute\n"); - err = TestWritesSetsBackTheLimitOfMaxHeatSetpointLimitToMinHeatSetpointLimitAttribute_31(); + " ***** Test Step 31 : Writes (sets back) the limit of MinHeatSetpointLimit to MinHeatSetpointLimit attribute\n"); + err = TestWritesSetsBackTheLimitOfMinHeatSetpointLimitToMinHeatSetpointLimitAttribute_31(); break; case 32: ChipLogProgress( chipTool, - " ***** Test Step 32 : Writes (sets back) the limit of MinHeatSetpointLimit to MaxHeatSetpointLimit attribute\n"); - err = TestWritesSetsBackTheLimitOfMinHeatSetpointLimitToMaxHeatSetpointLimitAttribute_32(); + " ***** Test Step 32 : Writes (sets back) the limit of MaxHeatSetpointLimit to MinHeatSetpointLimit attribute\n"); + err = TestWritesSetsBackTheLimitOfMaxHeatSetpointLimitToMinHeatSetpointLimitAttribute_32(); break; case 33: ChipLogProgress( chipTool, - " ***** Test Step 33 : Writes (sets back) the limit of MaxHeatSetpointLimit to MaxHeatSetpointLimit attribute\n"); - err = TestWritesSetsBackTheLimitOfMaxHeatSetpointLimitToMaxHeatSetpointLimitAttribute_33(); + " ***** Test Step 33 : Writes (sets back) the limit of MinHeatSetpointLimit to MaxHeatSetpointLimit attribute\n"); + err = TestWritesSetsBackTheLimitOfMinHeatSetpointLimitToMaxHeatSetpointLimitAttribute_33(); break; case 34: ChipLogProgress( chipTool, - " ***** Test Step 34 : Writes (sets back) the limit of MinCoolSetpointLimit to MinCoolSetpointLimit attribute\n"); - err = TestWritesSetsBackTheLimitOfMinCoolSetpointLimitToMinCoolSetpointLimitAttribute_34(); + " ***** Test Step 34 : Writes (sets back) the limit of MaxHeatSetpointLimit to MaxHeatSetpointLimit attribute\n"); + err = TestWritesSetsBackTheLimitOfMaxHeatSetpointLimitToMaxHeatSetpointLimitAttribute_34(); break; case 35: ChipLogProgress( chipTool, - " ***** Test Step 35 : Writes (sets back) the limit of MaxCoolSetpointLimit to MinCoolSetpointLimit attribute\n"); - err = TestWritesSetsBackTheLimitOfMaxCoolSetpointLimitToMinCoolSetpointLimitAttribute_35(); + " ***** Test Step 35 : Writes (sets back) the limit of MinCoolSetpointLimit to MinCoolSetpointLimit attribute\n"); + err = TestWritesSetsBackTheLimitOfMinCoolSetpointLimitToMinCoolSetpointLimitAttribute_35(); break; case 36: ChipLogProgress( chipTool, - " ***** Test Step 36 : Writes (sets back) the limit of MinCoolSetpointLimit to MaxCoolSetpointLimit attribute\n"); - err = TestWritesSetsBackTheLimitOfMinCoolSetpointLimitToMaxCoolSetpointLimitAttribute_36(); + " ***** Test Step 36 : Writes (sets back) the limit of MaxCoolSetpointLimit to MinCoolSetpointLimit attribute\n"); + err = TestWritesSetsBackTheLimitOfMaxCoolSetpointLimitToMinCoolSetpointLimitAttribute_36(); break; case 37: ChipLogProgress( chipTool, - " ***** Test Step 37 : Writes (sets back) the limit of MaxCoolSetpointLimit to MaxCoolSetpointLimit attribute\n"); - err = TestWritesSetsBackTheLimitOfMaxCoolSetpointLimitToMaxCoolSetpointLimitAttribute_37(); + " ***** Test Step 37 : Writes (sets back) the limit of MinCoolSetpointLimit to MaxCoolSetpointLimit attribute\n"); + err = TestWritesSetsBackTheLimitOfMinCoolSetpointLimitToMaxCoolSetpointLimitAttribute_37(); break; case 38: ChipLogProgress( chipTool, - " ***** Test Step 38 : Reads ControlSequenceOfOperation from Server DUT and verifies that the value is valid\n"); - err = TestReadsControlSequenceOfOperationFromServerDutAndVerifiesThatTheValueIsValid_38(); + " ***** Test Step 38 : Writes (sets back) the limit of MaxCoolSetpointLimit to MaxCoolSetpointLimit attribute\n"); + err = TestWritesSetsBackTheLimitOfMaxCoolSetpointLimitToMaxCoolSetpointLimitAttribute_38(); break; case 39: ChipLogProgress( - chipTool, " ***** Test Step 39 : Write Attribute command for ControlSequenceOfOperation with a new valid value\n"); - err = TestWriteAttributeCommandForControlSequenceOfOperationWithANewValidValue_39(); + chipTool, + " ***** Test Step 39 : Reads ControlSequenceOfOperation from Server DUT and verifies that the value is valid\n"); + err = TestReadsControlSequenceOfOperationFromServerDutAndVerifiesThatTheValueIsValid_39(); break; case 40: - ChipLogProgress(chipTool, " ***** Test Step 40 : Read it back again to confirm the successful write\n"); - err = TestReadItBackAgainToConfirmTheSuccessfulWrite_40(); + ChipLogProgress( + chipTool, " ***** Test Step 40 : Write Attribute command for ControlSequenceOfOperation with a new valid value\n"); + err = TestWriteAttributeCommandForControlSequenceOfOperationWithANewValidValue_40(); break; case 41: - ChipLogProgress(chipTool, " ***** Test Step 41 : Sets OccupiedHeatingSetpoint to default value\n"); - err = TestSetsOccupiedHeatingSetpointToDefaultValue_41(); + ChipLogProgress(chipTool, " ***** Test Step 41 : Read it back again to confirm the successful write\n"); + err = TestReadItBackAgainToConfirmTheSuccessfulWrite_41(); break; case 42: ChipLogProgress(chipTool, " ***** Test Step 42 : Sets OccupiedHeatingSetpoint to default value\n"); err = TestSetsOccupiedHeatingSetpointToDefaultValue_42(); break; case 43: - ChipLogProgress(chipTool, " ***** Test Step 43 : Sets OccupiedCoolingSetpoint to default value\n"); - err = TestSetsOccupiedCoolingSetpointToDefaultValue_43(); + ChipLogProgress(chipTool, " ***** Test Step 43 : Sets OccupiedHeatingSetpoint to default value\n"); + err = TestSetsOccupiedHeatingSetpointToDefaultValue_43(); break; case 44: ChipLogProgress(chipTool, " ***** Test Step 44 : Sets OccupiedCoolingSetpoint to default value\n"); @@ -24152,16 +24608,20 @@ class Test_TC_TSTAT_2_2 : public TestCommand err = TestSetsOccupiedCoolingSetpointToDefaultValue_45(); break; case 46: - ChipLogProgress(chipTool, " ***** Test Step 46 : Sets OccupiedHeatingSetpoint to default value\n"); - err = TestSetsOccupiedHeatingSetpointToDefaultValue_46(); + ChipLogProgress(chipTool, " ***** Test Step 46 : Sets OccupiedCoolingSetpoint to default value\n"); + err = TestSetsOccupiedCoolingSetpointToDefaultValue_46(); break; case 47: - ChipLogProgress(chipTool, " ***** Test Step 47 : Sets OccupiedCoolingSetpoint to default value\n"); - err = TestSetsOccupiedCoolingSetpointToDefaultValue_47(); + ChipLogProgress(chipTool, " ***** Test Step 47 : Sets OccupiedHeatingSetpoint to default value\n"); + err = TestSetsOccupiedHeatingSetpointToDefaultValue_47(); break; case 48: - ChipLogProgress(chipTool, " ***** Test Step 48 : Sets OccupiedHeatingSetpoint to default value\n"); - err = TestSetsOccupiedHeatingSetpointToDefaultValue_48(); + ChipLogProgress(chipTool, " ***** Test Step 48 : Sets OccupiedCoolingSetpoint to default value\n"); + err = TestSetsOccupiedCoolingSetpointToDefaultValue_48(); + break; + case 49: + ChipLogProgress(chipTool, " ***** Test Step 49 : Sets OccupiedHeatingSetpoint to default value\n"); + err = TestSetsOccupiedHeatingSetpointToDefaultValue_49(); break; } @@ -24174,41 +24634,34 @@ class Test_TC_TSTAT_2_2 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 49; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context, int16_t occupiedCoolingSetpoint) - { - (static_cast(context))->OnSuccessResponse_0(occupiedCoolingSetpoint); - } + const uint16_t mTestCount = 50; static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } + static void OnSuccessCallback_1(void * context, int16_t occupiedCoolingSetpoint) + { + (static_cast(context))->OnSuccessResponse_1(occupiedCoolingSetpoint); + } static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, int16_t occupiedCoolingSetpoint) - { - (static_cast(context))->OnSuccessResponse_2(occupiedCoolingSetpoint); - } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } static void OnFailureCallback_3(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } + static void OnSuccessCallback_3(void * context, int16_t occupiedCoolingSetpoint) + { + (static_cast(context))->OnSuccessResponse_3(occupiedCoolingSetpoint); + } static void OnFailureCallback_4(void * context, EmberAfStatus status) { @@ -24222,34 +24675,34 @@ class Test_TC_TSTAT_2_2 : public TestCommand (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, int16_t occupiedHeatingSetpoint) - { - (static_cast(context))->OnSuccessResponse_5(occupiedHeatingSetpoint); - } + static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } static void OnFailureCallback_6(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } + static void OnSuccessCallback_6(void * context, int16_t occupiedHeatingSetpoint) + { + (static_cast(context))->OnSuccessResponse_6(occupiedHeatingSetpoint); + } static void OnFailureCallback_7(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, int16_t occupiedHeatingSetpoint) - { - (static_cast(context))->OnSuccessResponse_7(occupiedHeatingSetpoint); - } + static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } static void OnFailureCallback_8(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } + static void OnSuccessCallback_8(void * context, int16_t occupiedHeatingSetpoint) + { + (static_cast(context))->OnSuccessResponse_8(occupiedHeatingSetpoint); + } static void OnFailureCallback_9(void * context, EmberAfStatus status) { @@ -24263,34 +24716,34 @@ class Test_TC_TSTAT_2_2 : public TestCommand (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); } - static void OnSuccessCallback_10(void * context, int16_t minHeatSetpointLimit) - { - (static_cast(context))->OnSuccessResponse_10(minHeatSetpointLimit); - } + static void OnSuccessCallback_10(void * context) { (static_cast(context))->OnSuccessResponse_10(); } static void OnFailureCallback_11(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_11(chip::to_underlying(status)); } - static void OnSuccessCallback_11(void * context) { (static_cast(context))->OnSuccessResponse_11(); } + static void OnSuccessCallback_11(void * context, int16_t minHeatSetpointLimit) + { + (static_cast(context))->OnSuccessResponse_11(minHeatSetpointLimit); + } static void OnFailureCallback_12(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_12(chip::to_underlying(status)); } - static void OnSuccessCallback_12(void * context, int16_t minHeatSetpointLimit) - { - (static_cast(context))->OnSuccessResponse_12(minHeatSetpointLimit); - } + static void OnSuccessCallback_12(void * context) { (static_cast(context))->OnSuccessResponse_12(); } static void OnFailureCallback_13(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_13(chip::to_underlying(status)); } - static void OnSuccessCallback_13(void * context) { (static_cast(context))->OnSuccessResponse_13(); } + static void OnSuccessCallback_13(void * context, int16_t minHeatSetpointLimit) + { + (static_cast(context))->OnSuccessResponse_13(minHeatSetpointLimit); + } static void OnFailureCallback_14(void * context, EmberAfStatus status) { @@ -24304,34 +24757,34 @@ class Test_TC_TSTAT_2_2 : public TestCommand (static_cast(context))->OnFailureResponse_15(chip::to_underlying(status)); } - static void OnSuccessCallback_15(void * context, int16_t maxHeatSetpointLimit) - { - (static_cast(context))->OnSuccessResponse_15(maxHeatSetpointLimit); - } + static void OnSuccessCallback_15(void * context) { (static_cast(context))->OnSuccessResponse_15(); } static void OnFailureCallback_16(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_16(chip::to_underlying(status)); } - static void OnSuccessCallback_16(void * context) { (static_cast(context))->OnSuccessResponse_16(); } + static void OnSuccessCallback_16(void * context, int16_t maxHeatSetpointLimit) + { + (static_cast(context))->OnSuccessResponse_16(maxHeatSetpointLimit); + } static void OnFailureCallback_17(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_17(chip::to_underlying(status)); } - static void OnSuccessCallback_17(void * context, int16_t maxHeatSetpointLimit) - { - (static_cast(context))->OnSuccessResponse_17(maxHeatSetpointLimit); - } + static void OnSuccessCallback_17(void * context) { (static_cast(context))->OnSuccessResponse_17(); } static void OnFailureCallback_18(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_18(chip::to_underlying(status)); } - static void OnSuccessCallback_18(void * context) { (static_cast(context))->OnSuccessResponse_18(); } + static void OnSuccessCallback_18(void * context, int16_t maxHeatSetpointLimit) + { + (static_cast(context))->OnSuccessResponse_18(maxHeatSetpointLimit); + } static void OnFailureCallback_19(void * context, EmberAfStatus status) { @@ -24345,34 +24798,34 @@ class Test_TC_TSTAT_2_2 : public TestCommand (static_cast(context))->OnFailureResponse_20(chip::to_underlying(status)); } - static void OnSuccessCallback_20(void * context, int16_t minCoolSetpointLimit) - { - (static_cast(context))->OnSuccessResponse_20(minCoolSetpointLimit); - } + static void OnSuccessCallback_20(void * context) { (static_cast(context))->OnSuccessResponse_20(); } static void OnFailureCallback_21(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_21(chip::to_underlying(status)); } - static void OnSuccessCallback_21(void * context) { (static_cast(context))->OnSuccessResponse_21(); } + static void OnSuccessCallback_21(void * context, int16_t minCoolSetpointLimit) + { + (static_cast(context))->OnSuccessResponse_21(minCoolSetpointLimit); + } static void OnFailureCallback_22(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_22(chip::to_underlying(status)); } - static void OnSuccessCallback_22(void * context, int16_t minCoolSetpointLimit) - { - (static_cast(context))->OnSuccessResponse_22(minCoolSetpointLimit); - } + static void OnSuccessCallback_22(void * context) { (static_cast(context))->OnSuccessResponse_22(); } static void OnFailureCallback_23(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_23(chip::to_underlying(status)); } - static void OnSuccessCallback_23(void * context) { (static_cast(context))->OnSuccessResponse_23(); } + static void OnSuccessCallback_23(void * context, int16_t minCoolSetpointLimit) + { + (static_cast(context))->OnSuccessResponse_23(minCoolSetpointLimit); + } static void OnFailureCallback_24(void * context, EmberAfStatus status) { @@ -24386,34 +24839,34 @@ class Test_TC_TSTAT_2_2 : public TestCommand (static_cast(context))->OnFailureResponse_25(chip::to_underlying(status)); } - static void OnSuccessCallback_25(void * context, int16_t maxCoolSetpointLimit) - { - (static_cast(context))->OnSuccessResponse_25(maxCoolSetpointLimit); - } + static void OnSuccessCallback_25(void * context) { (static_cast(context))->OnSuccessResponse_25(); } static void OnFailureCallback_26(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_26(chip::to_underlying(status)); } - static void OnSuccessCallback_26(void * context) { (static_cast(context))->OnSuccessResponse_26(); } + static void OnSuccessCallback_26(void * context, int16_t maxCoolSetpointLimit) + { + (static_cast(context))->OnSuccessResponse_26(maxCoolSetpointLimit); + } static void OnFailureCallback_27(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_27(chip::to_underlying(status)); } - static void OnSuccessCallback_27(void * context, int16_t maxCoolSetpointLimit) - { - (static_cast(context))->OnSuccessResponse_27(maxCoolSetpointLimit); - } + static void OnSuccessCallback_27(void * context) { (static_cast(context))->OnSuccessResponse_27(); } static void OnFailureCallback_28(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_28(chip::to_underlying(status)); } - static void OnSuccessCallback_28(void * context) { (static_cast(context))->OnSuccessResponse_28(); } + static void OnSuccessCallback_28(void * context, int16_t maxCoolSetpointLimit) + { + (static_cast(context))->OnSuccessResponse_28(maxCoolSetpointLimit); + } static void OnFailureCallback_29(void * context, EmberAfStatus status) { @@ -24483,34 +24936,34 @@ class Test_TC_TSTAT_2_2 : public TestCommand (static_cast(context))->OnFailureResponse_38(chip::to_underlying(status)); } - static void OnSuccessCallback_38(void * context, uint8_t controlSequenceOfOperation) - { - (static_cast(context))->OnSuccessResponse_38(controlSequenceOfOperation); - } + static void OnSuccessCallback_38(void * context) { (static_cast(context))->OnSuccessResponse_38(); } static void OnFailureCallback_39(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_39(chip::to_underlying(status)); } - static void OnSuccessCallback_39(void * context) { (static_cast(context))->OnSuccessResponse_39(); } + static void OnSuccessCallback_39(void * context, uint8_t controlSequenceOfOperation) + { + (static_cast(context))->OnSuccessResponse_39(controlSequenceOfOperation); + } static void OnFailureCallback_40(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_40(chip::to_underlying(status)); } - static void OnSuccessCallback_40(void * context, uint8_t controlSequenceOfOperation) - { - (static_cast(context))->OnSuccessResponse_40(controlSequenceOfOperation); - } + static void OnSuccessCallback_40(void * context) { (static_cast(context))->OnSuccessResponse_40(); } static void OnFailureCallback_41(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_41(chip::to_underlying(status)); } - static void OnSuccessCallback_41(void * context) { (static_cast(context))->OnSuccessResponse_41(); } + static void OnSuccessCallback_41(void * context, uint8_t controlSequenceOfOperation) + { + (static_cast(context))->OnSuccessResponse_41(controlSequenceOfOperation); + } static void OnFailureCallback_42(void * context, EmberAfStatus status) { @@ -24561,30 +25014,39 @@ class Test_TC_TSTAT_2_2 : public TestCommand static void OnSuccessCallback_48(void * context) { (static_cast(context))->OnSuccessResponse_48(); } + static void OnFailureCallback_49(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_49(chip::to_underlying(status)); + } + + static void OnSuccessCallback_49(void * context) { (static_cast(context))->OnSuccessResponse_49(); } + // // Tests methods // - CHIP_ERROR TestReadsOccupiedCoolingSetpointAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadsOccupiedCoolingSetpointAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(int16_t occupiedCoolingSetpoint) + void OnSuccessResponse_1(int16_t occupiedCoolingSetpoint) { VerifyOrReturn(CheckValue("occupiedCoolingSetpoint", occupiedCoolingSetpoint, 2600)); NextTest(); } - CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForOccupiedCoolingSetpointAttribute_1() + CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForOccupiedCoolingSetpointAttribute_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -24594,33 +25056,33 @@ class Test_TC_TSTAT_2_2 : public TestCommand occupiedCoolingSetpointArgument = 2000; return cluster.WriteAttribute( - occupiedCoolingSetpointArgument, this, OnSuccessCallback_1, OnFailureCallback_1); + occupiedCoolingSetpointArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1() { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } - CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfOccupiedCoolingSetpointAttribute_2() + CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfOccupiedCoolingSetpointAttribute_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(int16_t occupiedCoolingSetpoint) + void OnSuccessResponse_3(int16_t occupiedCoolingSetpoint) { VerifyOrReturn(CheckValue("occupiedCoolingSetpoint", occupiedCoolingSetpoint, 2000)); NextTest(); } - CHIP_ERROR TestWritesTheLimitOfMinCoolSetpointLimitToOccupiedCoolingSetpointAttribute_3() + CHIP_ERROR TestWritesTheLimitOfMinCoolSetpointLimitToOccupiedCoolingSetpointAttribute_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -24630,14 +25092,14 @@ class Test_TC_TSTAT_2_2 : public TestCommand occupiedCoolingSetpointArgument = 1600; return cluster.WriteAttribute( - occupiedCoolingSetpointArgument, this, OnSuccessCallback_3, OnFailureCallback_3); + occupiedCoolingSetpointArgument, this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3() { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } - CHIP_ERROR TestWritesTheLimitOfMaxCoolSetpointLimitToOccupiedCoolingSetpointAttribute_4() + CHIP_ERROR TestWritesTheLimitOfMaxCoolSetpointLimitToOccupiedCoolingSetpointAttribute_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -24647,33 +25109,33 @@ class Test_TC_TSTAT_2_2 : public TestCommand occupiedCoolingSetpointArgument = 2600; return cluster.WriteAttribute( - occupiedCoolingSetpointArgument, this, OnSuccessCallback_4, OnFailureCallback_4); + occupiedCoolingSetpointArgument, this, OnSuccessCallback_5, OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4() { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } - CHIP_ERROR TestReadsOccupiedHeatingSetpointAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_5() + CHIP_ERROR TestReadsOccupiedHeatingSetpointAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_5, OnFailureCallback_5); + this, OnSuccessCallback_6, OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(int16_t occupiedHeatingSetpoint) + void OnSuccessResponse_6(int16_t occupiedHeatingSetpoint) { VerifyOrReturn(CheckValue("occupiedHeatingSetpoint", occupiedHeatingSetpoint, 2000)); NextTest(); } - CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForOccupiedHeatingSetpointAttribute_6() + CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForOccupiedHeatingSetpointAttribute_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -24683,33 +25145,33 @@ class Test_TC_TSTAT_2_2 : public TestCommand occupiedHeatingSetpointArgument = 2100; return cluster.WriteAttribute( - occupiedHeatingSetpointArgument, this, OnSuccessCallback_6, OnFailureCallback_6); + occupiedHeatingSetpointArgument, this, OnSuccessCallback_7, OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6() { NextTest(); } + void OnSuccessResponse_7() { NextTest(); } - CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfOccupiedHeatingSetpointAttribute_7() + CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfOccupiedHeatingSetpointAttribute_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_7, OnFailureCallback_7); + this, OnSuccessCallback_8, OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(int16_t occupiedHeatingSetpoint) + void OnSuccessResponse_8(int16_t occupiedHeatingSetpoint) { VerifyOrReturn(CheckValue("occupiedHeatingSetpoint", occupiedHeatingSetpoint, 2100)); NextTest(); } - CHIP_ERROR TestWritesTheLimitOfMinHeatSetpointLimitToOccupiedHeatingSetpointAttribute_8() + CHIP_ERROR TestWritesTheLimitOfMinHeatSetpointLimitToOccupiedHeatingSetpointAttribute_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -24719,14 +25181,14 @@ class Test_TC_TSTAT_2_2 : public TestCommand occupiedHeatingSetpointArgument = 700; return cluster.WriteAttribute( - occupiedHeatingSetpointArgument, this, OnSuccessCallback_8, OnFailureCallback_8); + occupiedHeatingSetpointArgument, this, OnSuccessCallback_9, OnFailureCallback_9); } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8() { NextTest(); } + void OnSuccessResponse_9() { NextTest(); } - CHIP_ERROR TestWritesTheLimitOfMaxHeatSetpointLimitToOccupiedHeatingSetpointAttribute_9() + CHIP_ERROR TestWritesTheLimitOfMaxHeatSetpointLimitToOccupiedHeatingSetpointAttribute_10() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -24736,33 +25198,33 @@ class Test_TC_TSTAT_2_2 : public TestCommand occupiedHeatingSetpointArgument = 3000; return cluster.WriteAttribute( - occupiedHeatingSetpointArgument, this, OnSuccessCallback_9, OnFailureCallback_9); + occupiedHeatingSetpointArgument, this, OnSuccessCallback_10, OnFailureCallback_10); } - void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9() { NextTest(); } + void OnSuccessResponse_10() { NextTest(); } - CHIP_ERROR TestReadsMinHeatSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_10() + CHIP_ERROR TestReadsMinHeatSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_11() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_10, OnFailureCallback_10); + this, OnSuccessCallback_11, OnFailureCallback_11); } - void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_10(int16_t minHeatSetpointLimit) + void OnSuccessResponse_11(int16_t minHeatSetpointLimit) { VerifyOrReturn(CheckValue("minHeatSetpointLimit", minHeatSetpointLimit, 700)); NextTest(); } - CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForMinHeatSetpointLimitAttribute_11() + CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForMinHeatSetpointLimitAttribute_12() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -24772,33 +25234,33 @@ class Test_TC_TSTAT_2_2 : public TestCommand minHeatSetpointLimitArgument = 2000; return cluster.WriteAttribute( - minHeatSetpointLimitArgument, this, OnSuccessCallback_11, OnFailureCallback_11); + minHeatSetpointLimitArgument, this, OnSuccessCallback_12, OnFailureCallback_12); } - void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_11() { NextTest(); } + void OnSuccessResponse_12() { NextTest(); } - CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMinHeatSetpointLimitAttribute_12() + CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMinHeatSetpointLimitAttribute_13() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_12, OnFailureCallback_12); + this, OnSuccessCallback_13, OnFailureCallback_13); } - void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_12(int16_t minHeatSetpointLimit) + void OnSuccessResponse_13(int16_t minHeatSetpointLimit) { VerifyOrReturn(CheckValue("minHeatSetpointLimit", minHeatSetpointLimit, 2000)); NextTest(); } - CHIP_ERROR TestWritesTheLimitOfAbsMinHeatSetpointLimitToMinHeatSetpointLimitAttribute_13() + CHIP_ERROR TestWritesTheLimitOfAbsMinHeatSetpointLimitToMinHeatSetpointLimitAttribute_14() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -24808,14 +25270,14 @@ class Test_TC_TSTAT_2_2 : public TestCommand minHeatSetpointLimitArgument = 700; return cluster.WriteAttribute( - minHeatSetpointLimitArgument, this, OnSuccessCallback_13, OnFailureCallback_13); + minHeatSetpointLimitArgument, this, OnSuccessCallback_14, OnFailureCallback_14); } - void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_13() { NextTest(); } + void OnSuccessResponse_14() { NextTest(); } - CHIP_ERROR TestWritesTheLimitOfAbsMaxHeatSetpointLimitToMinHeatSetpointLimitAttribute_14() + CHIP_ERROR TestWritesTheLimitOfAbsMaxHeatSetpointLimitToMinHeatSetpointLimitAttribute_15() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -24825,33 +25287,33 @@ class Test_TC_TSTAT_2_2 : public TestCommand minHeatSetpointLimitArgument = 3000; return cluster.WriteAttribute( - minHeatSetpointLimitArgument, this, OnSuccessCallback_14, OnFailureCallback_14); + minHeatSetpointLimitArgument, this, OnSuccessCallback_15, OnFailureCallback_15); } - void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_15(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_14() { NextTest(); } + void OnSuccessResponse_15() { NextTest(); } - CHIP_ERROR TestReadsMaxHeatSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_15() + CHIP_ERROR TestReadsMaxHeatSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_16() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_15, OnFailureCallback_15); + this, OnSuccessCallback_16, OnFailureCallback_16); } - void OnFailureResponse_15(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_16(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_15(int16_t maxHeatSetpointLimit) + void OnSuccessResponse_16(int16_t maxHeatSetpointLimit) { VerifyOrReturn(CheckValue("maxHeatSetpointLimit", maxHeatSetpointLimit, 3000)); NextTest(); } - CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForMaxHeatSetpointLimitAttribute_16() + CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForMaxHeatSetpointLimitAttribute_17() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -24861,33 +25323,33 @@ class Test_TC_TSTAT_2_2 : public TestCommand maxHeatSetpointLimitArgument = 2000; return cluster.WriteAttribute( - maxHeatSetpointLimitArgument, this, OnSuccessCallback_16, OnFailureCallback_16); + maxHeatSetpointLimitArgument, this, OnSuccessCallback_17, OnFailureCallback_17); } - void OnFailureResponse_16(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_17(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_16() { NextTest(); } + void OnSuccessResponse_17() { NextTest(); } - CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMaxHeatSetpointLimitAttribute_17() + CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMaxHeatSetpointLimitAttribute_18() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_17, OnFailureCallback_17); + this, OnSuccessCallback_18, OnFailureCallback_18); } - void OnFailureResponse_17(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_18(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_17(int16_t maxHeatSetpointLimit) + void OnSuccessResponse_18(int16_t maxHeatSetpointLimit) { VerifyOrReturn(CheckValue("maxHeatSetpointLimit", maxHeatSetpointLimit, 2000)); NextTest(); } - CHIP_ERROR TestWritesTheLimitOfAbsMinHeatSetpointLimitToMaxHeatSetpointLimitAttribute_18() + CHIP_ERROR TestWritesTheLimitOfAbsMinHeatSetpointLimitToMaxHeatSetpointLimitAttribute_19() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -24897,14 +25359,14 @@ class Test_TC_TSTAT_2_2 : public TestCommand maxHeatSetpointLimitArgument = 700; return cluster.WriteAttribute( - maxHeatSetpointLimitArgument, this, OnSuccessCallback_18, OnFailureCallback_18); + maxHeatSetpointLimitArgument, this, OnSuccessCallback_19, OnFailureCallback_19); } - void OnFailureResponse_18(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_19(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_18() { NextTest(); } + void OnSuccessResponse_19() { NextTest(); } - CHIP_ERROR TestWritesTheLimitOfAbsMaxHeatSetpointLimitToMaxHeatSetpointLimitAttribute_19() + CHIP_ERROR TestWritesTheLimitOfAbsMaxHeatSetpointLimitToMaxHeatSetpointLimitAttribute_20() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -24914,33 +25376,33 @@ class Test_TC_TSTAT_2_2 : public TestCommand maxHeatSetpointLimitArgument = 3000; return cluster.WriteAttribute( - maxHeatSetpointLimitArgument, this, OnSuccessCallback_19, OnFailureCallback_19); + maxHeatSetpointLimitArgument, this, OnSuccessCallback_20, OnFailureCallback_20); } - void OnFailureResponse_19(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_20(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_19() { NextTest(); } + void OnSuccessResponse_20() { NextTest(); } - CHIP_ERROR TestReadsMinCoolSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_20() + CHIP_ERROR TestReadsMinCoolSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_21() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_20, OnFailureCallback_20); + this, OnSuccessCallback_21, OnFailureCallback_21); } - void OnFailureResponse_20(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_21(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_20(int16_t minCoolSetpointLimit) + void OnSuccessResponse_21(int16_t minCoolSetpointLimit) { VerifyOrReturn(CheckValue("minCoolSetpointLimit", minCoolSetpointLimit, 1600)); NextTest(); } - CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForMinCoolSetpointLimitAttribute_21() + CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForMinCoolSetpointLimitAttribute_22() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -24950,33 +25412,33 @@ class Test_TC_TSTAT_2_2 : public TestCommand minCoolSetpointLimitArgument = 2000; return cluster.WriteAttribute( - minCoolSetpointLimitArgument, this, OnSuccessCallback_21, OnFailureCallback_21); + minCoolSetpointLimitArgument, this, OnSuccessCallback_22, OnFailureCallback_22); } - void OnFailureResponse_21(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_22(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_21() { NextTest(); } + void OnSuccessResponse_22() { NextTest(); } - CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMinCoolSetpointLimitAttribute_22() + CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMinCoolSetpointLimitAttribute_23() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_22, OnFailureCallback_22); + this, OnSuccessCallback_23, OnFailureCallback_23); } - void OnFailureResponse_22(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_23(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_22(int16_t minCoolSetpointLimit) + void OnSuccessResponse_23(int16_t minCoolSetpointLimit) { VerifyOrReturn(CheckValue("minCoolSetpointLimit", minCoolSetpointLimit, 2000)); NextTest(); } - CHIP_ERROR TestWritesTheLimitOfAbsMinCoolSetpointLimitToMinCoolSetpointLimitAttribute_23() + CHIP_ERROR TestWritesTheLimitOfAbsMinCoolSetpointLimitToMinCoolSetpointLimitAttribute_24() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -24986,14 +25448,14 @@ class Test_TC_TSTAT_2_2 : public TestCommand minCoolSetpointLimitArgument = 1600; return cluster.WriteAttribute( - minCoolSetpointLimitArgument, this, OnSuccessCallback_23, OnFailureCallback_23); + minCoolSetpointLimitArgument, this, OnSuccessCallback_24, OnFailureCallback_24); } - void OnFailureResponse_23(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_24(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_23() { NextTest(); } + void OnSuccessResponse_24() { NextTest(); } - CHIP_ERROR TestWritesTheLimitOfMaxCoolSetpointLimitToMinCoolSetpointLimitAttribute_24() + CHIP_ERROR TestWritesTheLimitOfMaxCoolSetpointLimitToMinCoolSetpointLimitAttribute_25() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -25003,33 +25465,33 @@ class Test_TC_TSTAT_2_2 : public TestCommand minCoolSetpointLimitArgument = 3200; return cluster.WriteAttribute( - minCoolSetpointLimitArgument, this, OnSuccessCallback_24, OnFailureCallback_24); + minCoolSetpointLimitArgument, this, OnSuccessCallback_25, OnFailureCallback_25); } - void OnFailureResponse_24(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_25(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_24() { NextTest(); } + void OnSuccessResponse_25() { NextTest(); } - CHIP_ERROR TestReadsMaxCoolSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_25() + CHIP_ERROR TestReadsMaxCoolSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_26() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_25, OnFailureCallback_25); + this, OnSuccessCallback_26, OnFailureCallback_26); } - void OnFailureResponse_25(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_26(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_25(int16_t maxCoolSetpointLimit) + void OnSuccessResponse_26(int16_t maxCoolSetpointLimit) { VerifyOrReturn(CheckValue("maxCoolSetpointLimit", maxCoolSetpointLimit, 3200)); NextTest(); } - CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForMaxCoolSetpointLimitAttribute_26() + CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForMaxCoolSetpointLimitAttribute_27() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -25039,33 +25501,33 @@ class Test_TC_TSTAT_2_2 : public TestCommand maxCoolSetpointLimitArgument = 2000; return cluster.WriteAttribute( - maxCoolSetpointLimitArgument, this, OnSuccessCallback_26, OnFailureCallback_26); + maxCoolSetpointLimitArgument, this, OnSuccessCallback_27, OnFailureCallback_27); } - void OnFailureResponse_26(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_27(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_26() { NextTest(); } + void OnSuccessResponse_27() { NextTest(); } - CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMaxCoolSetpointLimitAttribute_27() + CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMaxCoolSetpointLimitAttribute_28() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_27, OnFailureCallback_27); + this, OnSuccessCallback_28, OnFailureCallback_28); } - void OnFailureResponse_27(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_28(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_27(int16_t maxCoolSetpointLimit) + void OnSuccessResponse_28(int16_t maxCoolSetpointLimit) { VerifyOrReturn(CheckValue("maxCoolSetpointLimit", maxCoolSetpointLimit, 2000)); NextTest(); } - CHIP_ERROR TestWritesTheLimitOfAbsMinCoolSetpointLimitToMaxCoolSetpointLimitAttribute_28() + CHIP_ERROR TestWritesTheLimitOfAbsMinCoolSetpointLimitToMaxCoolSetpointLimitAttribute_29() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -25075,14 +25537,14 @@ class Test_TC_TSTAT_2_2 : public TestCommand maxCoolSetpointLimitArgument = 1600; return cluster.WriteAttribute( - maxCoolSetpointLimitArgument, this, OnSuccessCallback_28, OnFailureCallback_28); + maxCoolSetpointLimitArgument, this, OnSuccessCallback_29, OnFailureCallback_29); } - void OnFailureResponse_28(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_29(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_28() { NextTest(); } + void OnSuccessResponse_29() { NextTest(); } - CHIP_ERROR TestWritesTheLimitOfMaxCoolSetpointLimitToMaxCoolSetpointLimitAttribute_29() + CHIP_ERROR TestWritesTheLimitOfMaxCoolSetpointLimitToMaxCoolSetpointLimitAttribute_30() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -25092,14 +25554,14 @@ class Test_TC_TSTAT_2_2 : public TestCommand maxCoolSetpointLimitArgument = 3200; return cluster.WriteAttribute( - maxCoolSetpointLimitArgument, this, OnSuccessCallback_29, OnFailureCallback_29); + maxCoolSetpointLimitArgument, this, OnSuccessCallback_30, OnFailureCallback_30); } - void OnFailureResponse_29(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_30(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_29() { NextTest(); } + void OnSuccessResponse_30() { NextTest(); } - CHIP_ERROR TestWritesSetsBackTheLimitOfMinHeatSetpointLimitToMinHeatSetpointLimitAttribute_30() + CHIP_ERROR TestWritesSetsBackTheLimitOfMinHeatSetpointLimitToMinHeatSetpointLimitAttribute_31() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -25109,14 +25571,14 @@ class Test_TC_TSTAT_2_2 : public TestCommand minHeatSetpointLimitArgument = 700; return cluster.WriteAttribute( - minHeatSetpointLimitArgument, this, OnSuccessCallback_30, OnFailureCallback_30); + minHeatSetpointLimitArgument, this, OnSuccessCallback_31, OnFailureCallback_31); } - void OnFailureResponse_30(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_31(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_30() { NextTest(); } + void OnSuccessResponse_31() { NextTest(); } - CHIP_ERROR TestWritesSetsBackTheLimitOfMaxHeatSetpointLimitToMinHeatSetpointLimitAttribute_31() + CHIP_ERROR TestWritesSetsBackTheLimitOfMaxHeatSetpointLimitToMinHeatSetpointLimitAttribute_32() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -25126,14 +25588,14 @@ class Test_TC_TSTAT_2_2 : public TestCommand minHeatSetpointLimitArgument = 3000; return cluster.WriteAttribute( - minHeatSetpointLimitArgument, this, OnSuccessCallback_31, OnFailureCallback_31); + minHeatSetpointLimitArgument, this, OnSuccessCallback_32, OnFailureCallback_32); } - void OnFailureResponse_31(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_32(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_31() { NextTest(); } + void OnSuccessResponse_32() { NextTest(); } - CHIP_ERROR TestWritesSetsBackTheLimitOfMinHeatSetpointLimitToMaxHeatSetpointLimitAttribute_32() + CHIP_ERROR TestWritesSetsBackTheLimitOfMinHeatSetpointLimitToMaxHeatSetpointLimitAttribute_33() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -25143,14 +25605,14 @@ class Test_TC_TSTAT_2_2 : public TestCommand maxHeatSetpointLimitArgument = 700; return cluster.WriteAttribute( - maxHeatSetpointLimitArgument, this, OnSuccessCallback_32, OnFailureCallback_32); + maxHeatSetpointLimitArgument, this, OnSuccessCallback_33, OnFailureCallback_33); } - void OnFailureResponse_32(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_33(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_32() { NextTest(); } + void OnSuccessResponse_33() { NextTest(); } - CHIP_ERROR TestWritesSetsBackTheLimitOfMaxHeatSetpointLimitToMaxHeatSetpointLimitAttribute_33() + CHIP_ERROR TestWritesSetsBackTheLimitOfMaxHeatSetpointLimitToMaxHeatSetpointLimitAttribute_34() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -25160,14 +25622,14 @@ class Test_TC_TSTAT_2_2 : public TestCommand maxHeatSetpointLimitArgument = 3000; return cluster.WriteAttribute( - maxHeatSetpointLimitArgument, this, OnSuccessCallback_33, OnFailureCallback_33); + maxHeatSetpointLimitArgument, this, OnSuccessCallback_34, OnFailureCallback_34); } - void OnFailureResponse_33(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_34(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_33() { NextTest(); } + void OnSuccessResponse_34() { NextTest(); } - CHIP_ERROR TestWritesSetsBackTheLimitOfMinCoolSetpointLimitToMinCoolSetpointLimitAttribute_34() + CHIP_ERROR TestWritesSetsBackTheLimitOfMinCoolSetpointLimitToMinCoolSetpointLimitAttribute_35() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -25177,14 +25639,14 @@ class Test_TC_TSTAT_2_2 : public TestCommand minCoolSetpointLimitArgument = 1600; return cluster.WriteAttribute( - minCoolSetpointLimitArgument, this, OnSuccessCallback_34, OnFailureCallback_34); + minCoolSetpointLimitArgument, this, OnSuccessCallback_35, OnFailureCallback_35); } - void OnFailureResponse_34(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_35(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_34() { NextTest(); } + void OnSuccessResponse_35() { NextTest(); } - CHIP_ERROR TestWritesSetsBackTheLimitOfMaxCoolSetpointLimitToMinCoolSetpointLimitAttribute_35() + CHIP_ERROR TestWritesSetsBackTheLimitOfMaxCoolSetpointLimitToMinCoolSetpointLimitAttribute_36() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -25194,14 +25656,14 @@ class Test_TC_TSTAT_2_2 : public TestCommand minCoolSetpointLimitArgument = 3200; return cluster.WriteAttribute( - minCoolSetpointLimitArgument, this, OnSuccessCallback_35, OnFailureCallback_35); + minCoolSetpointLimitArgument, this, OnSuccessCallback_36, OnFailureCallback_36); } - void OnFailureResponse_35(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_36(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_35() { NextTest(); } + void OnSuccessResponse_36() { NextTest(); } - CHIP_ERROR TestWritesSetsBackTheLimitOfMinCoolSetpointLimitToMaxCoolSetpointLimitAttribute_36() + CHIP_ERROR TestWritesSetsBackTheLimitOfMinCoolSetpointLimitToMaxCoolSetpointLimitAttribute_37() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -25211,14 +25673,14 @@ class Test_TC_TSTAT_2_2 : public TestCommand maxCoolSetpointLimitArgument = 1600; return cluster.WriteAttribute( - maxCoolSetpointLimitArgument, this, OnSuccessCallback_36, OnFailureCallback_36); + maxCoolSetpointLimitArgument, this, OnSuccessCallback_37, OnFailureCallback_37); } - void OnFailureResponse_36(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_37(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_36() { NextTest(); } + void OnSuccessResponse_37() { NextTest(); } - CHIP_ERROR TestWritesSetsBackTheLimitOfMaxCoolSetpointLimitToMaxCoolSetpointLimitAttribute_37() + CHIP_ERROR TestWritesSetsBackTheLimitOfMaxCoolSetpointLimitToMaxCoolSetpointLimitAttribute_38() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -25228,33 +25690,33 @@ class Test_TC_TSTAT_2_2 : public TestCommand maxCoolSetpointLimitArgument = 3200; return cluster.WriteAttribute( - maxCoolSetpointLimitArgument, this, OnSuccessCallback_37, OnFailureCallback_37); + maxCoolSetpointLimitArgument, this, OnSuccessCallback_38, OnFailureCallback_38); } - void OnFailureResponse_37(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_38(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_37() { NextTest(); } + void OnSuccessResponse_38() { NextTest(); } - CHIP_ERROR TestReadsControlSequenceOfOperationFromServerDutAndVerifiesThatTheValueIsValid_38() + CHIP_ERROR TestReadsControlSequenceOfOperationFromServerDutAndVerifiesThatTheValueIsValid_39() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_38, OnFailureCallback_38); + this, OnSuccessCallback_39, OnFailureCallback_39); } - void OnFailureResponse_38(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_39(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_38(uint8_t controlSequenceOfOperation) + void OnSuccessResponse_39(uint8_t controlSequenceOfOperation) { VerifyOrReturn(CheckValue("controlSequenceOfOperation", controlSequenceOfOperation, 4)); NextTest(); } - CHIP_ERROR TestWriteAttributeCommandForControlSequenceOfOperationWithANewValidValue_39() + CHIP_ERROR TestWriteAttributeCommandForControlSequenceOfOperationWithANewValidValue_40() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -25264,49 +25726,32 @@ class Test_TC_TSTAT_2_2 : public TestCommand controlSequenceOfOperationArgument = static_cast(2); return cluster.WriteAttribute( - controlSequenceOfOperationArgument, this, OnSuccessCallback_39, OnFailureCallback_39); + controlSequenceOfOperationArgument, this, OnSuccessCallback_40, OnFailureCallback_40); } - void OnFailureResponse_39(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_40(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_39() { NextTest(); } + void OnSuccessResponse_40() { NextTest(); } - CHIP_ERROR TestReadItBackAgainToConfirmTheSuccessfulWrite_40() + CHIP_ERROR TestReadItBackAgainToConfirmTheSuccessfulWrite_41() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_40, OnFailureCallback_40); + this, OnSuccessCallback_41, OnFailureCallback_41); } - void OnFailureResponse_40(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_41(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_40(uint8_t controlSequenceOfOperation) + void OnSuccessResponse_41(uint8_t controlSequenceOfOperation) { VerifyOrReturn(CheckValue("controlSequenceOfOperation", controlSequenceOfOperation, 2)); NextTest(); } - CHIP_ERROR TestSetsOccupiedHeatingSetpointToDefaultValue_41() - { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; - chip::Controller::ThermostatClusterTest cluster; - cluster.Associate(mDevice, endpoint); - - int16_t occupiedHeatingSetpointArgument; - occupiedHeatingSetpointArgument = 2000; - - return cluster.WriteAttribute( - occupiedHeatingSetpointArgument, this, OnSuccessCallback_41, OnFailureCallback_41); - } - - void OnFailureResponse_41(uint8_t status) { ThrowFailureResponse(); } - - void OnSuccessResponse_41() { NextTest(); } - CHIP_ERROR TestSetsOccupiedHeatingSetpointToDefaultValue_42() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; @@ -25324,17 +25769,17 @@ class Test_TC_TSTAT_2_2 : public TestCommand void OnSuccessResponse_42() { NextTest(); } - CHIP_ERROR TestSetsOccupiedCoolingSetpointToDefaultValue_43() + CHIP_ERROR TestSetsOccupiedHeatingSetpointToDefaultValue_43() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; cluster.Associate(mDevice, endpoint); - int16_t occupiedCoolingSetpointArgument; - occupiedCoolingSetpointArgument = 2600; + int16_t occupiedHeatingSetpointArgument; + occupiedHeatingSetpointArgument = 2000; - return cluster.WriteAttribute( - occupiedCoolingSetpointArgument, this, OnSuccessCallback_43, OnFailureCallback_43); + return cluster.WriteAttribute( + occupiedHeatingSetpointArgument, this, OnSuccessCallback_43, OnFailureCallback_43); } void OnFailureResponse_43(uint8_t status) { ThrowFailureResponse(); } @@ -25375,7 +25820,24 @@ class Test_TC_TSTAT_2_2 : public TestCommand void OnSuccessResponse_45() { NextTest(); } - CHIP_ERROR TestSetsOccupiedHeatingSetpointToDefaultValue_46() + CHIP_ERROR TestSetsOccupiedCoolingSetpointToDefaultValue_46() + { + const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + chip::Controller::ThermostatClusterTest cluster; + cluster.Associate(mDevice, endpoint); + + int16_t occupiedCoolingSetpointArgument; + occupiedCoolingSetpointArgument = 2600; + + return cluster.WriteAttribute( + occupiedCoolingSetpointArgument, this, OnSuccessCallback_46, OnFailureCallback_46); + } + + void OnFailureResponse_46(uint8_t status) { ThrowFailureResponse(); } + + void OnSuccessResponse_46() { NextTest(); } + + CHIP_ERROR TestSetsOccupiedHeatingSetpointToDefaultValue_47() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -25385,14 +25847,14 @@ class Test_TC_TSTAT_2_2 : public TestCommand occupiedHeatingSetpointArgument = 2000; return cluster.WriteAttribute( - occupiedHeatingSetpointArgument, this, OnSuccessCallback_46, OnFailureCallback_46); + occupiedHeatingSetpointArgument, this, OnSuccessCallback_47, OnFailureCallback_47); } - void OnFailureResponse_46(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_47(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_46() { NextTest(); } + void OnSuccessResponse_47() { NextTest(); } - CHIP_ERROR TestSetsOccupiedCoolingSetpointToDefaultValue_47() + CHIP_ERROR TestSetsOccupiedCoolingSetpointToDefaultValue_48() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -25402,14 +25864,14 @@ class Test_TC_TSTAT_2_2 : public TestCommand occupiedCoolingSetpointArgument = 2600; return cluster.WriteAttribute( - occupiedCoolingSetpointArgument, this, OnSuccessCallback_47, OnFailureCallback_47); + occupiedCoolingSetpointArgument, this, OnSuccessCallback_48, OnFailureCallback_48); } - void OnFailureResponse_47(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_48(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_47() { NextTest(); } + void OnSuccessResponse_48() { NextTest(); } - CHIP_ERROR TestSetsOccupiedHeatingSetpointToDefaultValue_48() + CHIP_ERROR TestSetsOccupiedHeatingSetpointToDefaultValue_49() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatClusterTest cluster; @@ -25419,12 +25881,12 @@ class Test_TC_TSTAT_2_2 : public TestCommand occupiedHeatingSetpointArgument = 2000; return cluster.WriteAttribute( - occupiedHeatingSetpointArgument, this, OnSuccessCallback_48, OnFailureCallback_48); + occupiedHeatingSetpointArgument, this, OnSuccessCallback_49, OnFailureCallback_49); } - void OnFailureResponse_48(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_49(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_48() { NextTest(); } + void OnSuccessResponse_49() { NextTest(); } }; class Test_TC_TSUIC_1_1 : public TestCommand @@ -25458,9 +25920,13 @@ class Test_TC_TSUIC_1_1 : public TestCommand 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 0 : write the default values to mandatory global attribute: ClusterRevision\n"); - err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_0(); + " ***** Test Step 1 : write the default values to mandatory global attribute: ClusterRevision\n"); + err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1(); break; } @@ -25473,20 +25939,22 @@ class Test_TC_TSUIC_1_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 1; + const uint16_t mTestCount = 2; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } // // Tests methods // - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -25497,16 +25965,16 @@ class Test_TC_TSUIC_1_1 : public TestCommand return cluster .WriteAttribute( - clusterRevisionArgument, this, OnSuccessCallback_0, OnFailureCallback_0); + clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) + void OnFailureResponse_1(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_0() { ThrowSuccessResponse(); } + void OnSuccessResponse_1() { ThrowSuccessResponse(); } }; class Test_TC_TSUIC_2_1 : public TestCommand @@ -25540,65 +26008,69 @@ class Test_TC_TSUIC_2_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : read the mandatory attribute: TemperatureDisplayMode\n"); - err = TestReadTheMandatoryAttributeTemperatureDisplayMode_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 : read the mandatory attribute: TemperatureDisplayMode\n"); err = TestReadTheMandatoryAttributeTemperatureDisplayMode_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : write to the mandatory attribute: TemperatureDisplayMode\n"); - err = TestWriteToTheMandatoryAttributeTemperatureDisplayMode_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : read the mandatory attribute: TemperatureDisplayMode\n"); + err = TestReadTheMandatoryAttributeTemperatureDisplayMode_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : read the mandatory attribute: TemperatureDisplayMode\n"); - err = TestReadTheMandatoryAttributeTemperatureDisplayMode_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : write to the mandatory attribute: TemperatureDisplayMode\n"); + err = TestWriteToTheMandatoryAttributeTemperatureDisplayMode_3(); break; case 4: ChipLogProgress(chipTool, " ***** Test Step 4 : read the mandatory attribute: TemperatureDisplayMode\n"); err = TestReadTheMandatoryAttributeTemperatureDisplayMode_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : read the mandatory attribute: KeypadLockout\n"); - err = TestReadTheMandatoryAttributeKeypadLockout_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : read the mandatory attribute: TemperatureDisplayMode\n"); + err = TestReadTheMandatoryAttributeTemperatureDisplayMode_5(); break; case 6: ChipLogProgress(chipTool, " ***** Test Step 6 : read the mandatory attribute: KeypadLockout\n"); err = TestReadTheMandatoryAttributeKeypadLockout_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : write to the mandatory attribute: KeypadLockout\n"); - err = TestWriteToTheMandatoryAttributeKeypadLockout_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : read the mandatory attribute: KeypadLockout\n"); + err = TestReadTheMandatoryAttributeKeypadLockout_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : read the mandatory attribute: KeypadLockout\n"); - err = TestReadTheMandatoryAttributeKeypadLockout_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : write to the mandatory attribute: KeypadLockout\n"); + err = TestWriteToTheMandatoryAttributeKeypadLockout_8(); break; case 9: ChipLogProgress(chipTool, " ***** Test Step 9 : read the mandatory attribute: KeypadLockout\n"); err = TestReadTheMandatoryAttributeKeypadLockout_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : read the optional attribute: ScheduleProgrammingVisibility\n"); - err = TestReadTheOptionalAttributeScheduleProgrammingVisibility_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : read the mandatory attribute: KeypadLockout\n"); + err = TestReadTheMandatoryAttributeKeypadLockout_10(); break; case 11: ChipLogProgress(chipTool, " ***** Test Step 11 : read the optional attribute: ScheduleProgrammingVisibility\n"); err = TestReadTheOptionalAttributeScheduleProgrammingVisibility_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : write to the mandatory attribute: ScheduleProgrammingVisibility\n"); - err = TestWriteToTheMandatoryAttributeScheduleProgrammingVisibility_12(); + ChipLogProgress(chipTool, " ***** Test Step 12 : read the optional attribute: ScheduleProgrammingVisibility\n"); + err = TestReadTheOptionalAttributeScheduleProgrammingVisibility_12(); break; case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : read the optional attribute: ScheduleProgrammingVisibility\n"); - err = TestReadTheOptionalAttributeScheduleProgrammingVisibility_13(); + ChipLogProgress(chipTool, " ***** Test Step 13 : write to the mandatory attribute: ScheduleProgrammingVisibility\n"); + err = TestWriteToTheMandatoryAttributeScheduleProgrammingVisibility_13(); break; case 14: ChipLogProgress(chipTool, " ***** Test Step 14 : read the optional attribute: ScheduleProgrammingVisibility\n"); err = TestReadTheOptionalAttributeScheduleProgrammingVisibility_14(); break; + case 15: + ChipLogProgress(chipTool, " ***** Test Step 15 : read the optional attribute: ScheduleProgrammingVisibility\n"); + err = TestReadTheOptionalAttributeScheduleProgrammingVisibility_15(); + break; } if (CHIP_NO_ERROR != err) @@ -25610,17 +26082,7 @@ class Test_TC_TSUIC_2_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 15; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context, uint8_t temperatureDisplayMode) - { - (static_cast(context))->OnSuccessResponse_0(temperatureDisplayMode); - } + const uint16_t mTestCount = 16; static void OnFailureCallback_1(void * context, EmberAfStatus status) { @@ -25637,17 +26099,17 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } + static void OnSuccessCallback_2(void * context, uint8_t temperatureDisplayMode) + { + (static_cast(context))->OnSuccessResponse_2(temperatureDisplayMode); + } static void OnFailureCallback_3(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, uint8_t temperatureDisplayMode) - { - (static_cast(context))->OnSuccessResponse_3(temperatureDisplayMode); - } + static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } static void OnFailureCallback_4(void * context, EmberAfStatus status) { @@ -25664,9 +26126,9 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, uint8_t keypadLockout) + static void OnSuccessCallback_5(void * context, uint8_t temperatureDisplayMode) { - (static_cast(context))->OnSuccessResponse_5(keypadLockout); + (static_cast(context))->OnSuccessResponse_5(temperatureDisplayMode); } static void OnFailureCallback_6(void * context, EmberAfStatus status) @@ -25684,17 +26146,17 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } + static void OnSuccessCallback_7(void * context, uint8_t keypadLockout) + { + (static_cast(context))->OnSuccessResponse_7(keypadLockout); + } static void OnFailureCallback_8(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_8(void * context, uint8_t keypadLockout) - { - (static_cast(context))->OnSuccessResponse_8(keypadLockout); - } + static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } static void OnFailureCallback_9(void * context, EmberAfStatus status) { @@ -25711,9 +26173,9 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); } - static void OnSuccessCallback_10(void * context, uint8_t scheduleProgrammingVisibility) + static void OnSuccessCallback_10(void * context, uint8_t keypadLockout) { - (static_cast(context))->OnSuccessResponse_10(scheduleProgrammingVisibility); + (static_cast(context))->OnSuccessResponse_10(keypadLockout); } static void OnFailureCallback_11(void * context, EmberAfStatus status) @@ -25731,17 +26193,17 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_12(chip::to_underlying(status)); } - static void OnSuccessCallback_12(void * context) { (static_cast(context))->OnSuccessResponse_12(); } + static void OnSuccessCallback_12(void * context, uint8_t scheduleProgrammingVisibility) + { + (static_cast(context))->OnSuccessResponse_12(scheduleProgrammingVisibility); + } static void OnFailureCallback_13(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_13(chip::to_underlying(status)); } - static void OnSuccessCallback_13(void * context, uint8_t scheduleProgrammingVisibility) - { - (static_cast(context))->OnSuccessResponse_13(scheduleProgrammingVisibility); - } + static void OnSuccessCallback_13(void * context) { (static_cast(context))->OnSuccessResponse_13(); } static void OnFailureCallback_14(void * context, EmberAfStatus status) { @@ -25753,11 +26215,23 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_14(scheduleProgrammingVisibility); } + static void OnFailureCallback_15(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_15(chip::to_underlying(status)); + } + + static void OnSuccessCallback_15(void * context, uint8_t scheduleProgrammingVisibility) + { + (static_cast(context))->OnSuccessResponse_15(scheduleProgrammingVisibility); + } + // // Tests methods // - CHIP_ERROR TestReadTheMandatoryAttributeTemperatureDisplayMode_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadTheMandatoryAttributeTemperatureDisplayMode_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -25765,19 +26239,19 @@ class Test_TC_TSUIC_2_1 : public TestCommand return cluster .ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint8_t temperatureDisplayMode) + void OnSuccessResponse_1(uint8_t temperatureDisplayMode) { VerifyOrReturn(CheckValue("temperatureDisplayMode", temperatureDisplayMode, 0)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeTemperatureDisplayMode_1() + CHIP_ERROR TestReadTheMandatoryAttributeTemperatureDisplayMode_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -25785,19 +26259,19 @@ class Test_TC_TSUIC_2_1 : public TestCommand return cluster .ReadAttribute( - this, OnSuccessCallback_1, OnFailureCallback_1); + this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(uint8_t temperatureDisplayMode) + void OnSuccessResponse_2(uint8_t temperatureDisplayMode) { VerifyOrReturn(CheckConstraintType("temperatureDisplayMode", "", "enum8")); NextTest(); } - CHIP_ERROR TestWriteToTheMandatoryAttributeTemperatureDisplayMode_2() + CHIP_ERROR TestWriteToTheMandatoryAttributeTemperatureDisplayMode_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -25808,14 +26282,14 @@ class Test_TC_TSUIC_2_1 : public TestCommand return cluster.WriteAttribute< chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::TypeInfo>( - temperatureDisplayModeArgument, this, OnSuccessCallback_2, OnFailureCallback_2); + temperatureDisplayModeArgument, this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeTemperatureDisplayMode_3() + CHIP_ERROR TestReadTheMandatoryAttributeTemperatureDisplayMode_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -25823,19 +26297,19 @@ class Test_TC_TSUIC_2_1 : public TestCommand return cluster .ReadAttribute( - this, OnSuccessCallback_3, OnFailureCallback_3); + this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint8_t temperatureDisplayMode) + void OnSuccessResponse_4(uint8_t temperatureDisplayMode) { VerifyOrReturn(CheckValue("temperatureDisplayMode", temperatureDisplayMode, 0)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeTemperatureDisplayMode_4() + CHIP_ERROR TestReadTheMandatoryAttributeTemperatureDisplayMode_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -25843,19 +26317,19 @@ class Test_TC_TSUIC_2_1 : public TestCommand return cluster .ReadAttribute( - this, OnSuccessCallback_4, OnFailureCallback_4); + this, OnSuccessCallback_5, OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(uint8_t temperatureDisplayMode) + void OnSuccessResponse_5(uint8_t temperatureDisplayMode) { VerifyOrReturn(CheckConstraintType("temperatureDisplayMode", "", "enum8")); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeKeypadLockout_5() + CHIP_ERROR TestReadTheMandatoryAttributeKeypadLockout_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -25863,19 +26337,19 @@ class Test_TC_TSUIC_2_1 : public TestCommand return cluster .ReadAttribute( - this, OnSuccessCallback_5, OnFailureCallback_5); + this, OnSuccessCallback_6, OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(uint8_t keypadLockout) + void OnSuccessResponse_6(uint8_t keypadLockout) { VerifyOrReturn(CheckValue("keypadLockout", keypadLockout, 0)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeKeypadLockout_6() + CHIP_ERROR TestReadTheMandatoryAttributeKeypadLockout_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -25883,19 +26357,19 @@ class Test_TC_TSUIC_2_1 : public TestCommand return cluster .ReadAttribute( - this, OnSuccessCallback_6, OnFailureCallback_6); + this, OnSuccessCallback_7, OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(uint8_t keypadLockout) + void OnSuccessResponse_7(uint8_t keypadLockout) { VerifyOrReturn(CheckConstraintType("keypadLockout", "", "enum8")); NextTest(); } - CHIP_ERROR TestWriteToTheMandatoryAttributeKeypadLockout_7() + CHIP_ERROR TestWriteToTheMandatoryAttributeKeypadLockout_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -25906,14 +26380,14 @@ class Test_TC_TSUIC_2_1 : public TestCommand return cluster .WriteAttribute( - keypadLockoutArgument, this, OnSuccessCallback_7, OnFailureCallback_7); + keypadLockoutArgument, this, OnSuccessCallback_8, OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7() { NextTest(); } + void OnSuccessResponse_8() { NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeKeypadLockout_8() + CHIP_ERROR TestReadTheMandatoryAttributeKeypadLockout_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -25921,19 +26395,19 @@ class Test_TC_TSUIC_2_1 : public TestCommand return cluster .ReadAttribute( - this, OnSuccessCallback_8, OnFailureCallback_8); + this, OnSuccessCallback_9, OnFailureCallback_9); } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8(uint8_t keypadLockout) + void OnSuccessResponse_9(uint8_t keypadLockout) { VerifyOrReturn(CheckValue("keypadLockout", keypadLockout, 0)); NextTest(); } - CHIP_ERROR TestReadTheMandatoryAttributeKeypadLockout_9() + CHIP_ERROR TestReadTheMandatoryAttributeKeypadLockout_10() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -25941,19 +26415,19 @@ class Test_TC_TSUIC_2_1 : public TestCommand return cluster .ReadAttribute( - this, OnSuccessCallback_9, OnFailureCallback_9); + this, OnSuccessCallback_10, OnFailureCallback_10); } - void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9(uint8_t keypadLockout) + void OnSuccessResponse_10(uint8_t keypadLockout) { VerifyOrReturn(CheckConstraintType("keypadLockout", "", "enum8")); NextTest(); } - CHIP_ERROR TestReadTheOptionalAttributeScheduleProgrammingVisibility_10() + CHIP_ERROR TestReadTheOptionalAttributeScheduleProgrammingVisibility_11() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -25961,19 +26435,19 @@ class Test_TC_TSUIC_2_1 : public TestCommand return cluster.ReadAttribute< chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo>( - this, OnSuccessCallback_10, OnFailureCallback_10); + this, OnSuccessCallback_11, OnFailureCallback_11); } - void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_10(uint8_t scheduleProgrammingVisibility) + void OnSuccessResponse_11(uint8_t scheduleProgrammingVisibility) { VerifyOrReturn(CheckValue("scheduleProgrammingVisibility", scheduleProgrammingVisibility, 0)); NextTest(); } - CHIP_ERROR TestReadTheOptionalAttributeScheduleProgrammingVisibility_11() + CHIP_ERROR TestReadTheOptionalAttributeScheduleProgrammingVisibility_12() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -25981,19 +26455,19 @@ class Test_TC_TSUIC_2_1 : public TestCommand return cluster.ReadAttribute< chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo>( - this, OnSuccessCallback_11, OnFailureCallback_11); + this, OnSuccessCallback_12, OnFailureCallback_12); } - void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_11(uint8_t scheduleProgrammingVisibility) + void OnSuccessResponse_12(uint8_t scheduleProgrammingVisibility) { VerifyOrReturn(CheckConstraintType("scheduleProgrammingVisibility", "", "enum8")); NextTest(); } - CHIP_ERROR TestWriteToTheMandatoryAttributeScheduleProgrammingVisibility_12() + CHIP_ERROR TestWriteToTheMandatoryAttributeScheduleProgrammingVisibility_13() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -26004,14 +26478,14 @@ class Test_TC_TSUIC_2_1 : public TestCommand return cluster.WriteAttribute< chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo>( - scheduleProgrammingVisibilityArgument, this, OnSuccessCallback_12, OnFailureCallback_12); + scheduleProgrammingVisibilityArgument, this, OnSuccessCallback_13, OnFailureCallback_13); } - void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_12() { NextTest(); } + void OnSuccessResponse_13() { NextTest(); } - CHIP_ERROR TestReadTheOptionalAttributeScheduleProgrammingVisibility_13() + CHIP_ERROR TestReadTheOptionalAttributeScheduleProgrammingVisibility_14() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -26019,19 +26493,19 @@ class Test_TC_TSUIC_2_1 : public TestCommand return cluster.ReadAttribute< chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo>( - this, OnSuccessCallback_13, OnFailureCallback_13); + this, OnSuccessCallback_14, OnFailureCallback_14); } - void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_13(uint8_t scheduleProgrammingVisibility) + void OnSuccessResponse_14(uint8_t scheduleProgrammingVisibility) { VerifyOrReturn(CheckValue("scheduleProgrammingVisibility", scheduleProgrammingVisibility, 0)); NextTest(); } - CHIP_ERROR TestReadTheOptionalAttributeScheduleProgrammingVisibility_14() + CHIP_ERROR TestReadTheOptionalAttributeScheduleProgrammingVisibility_15() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -26039,12 +26513,12 @@ class Test_TC_TSUIC_2_1 : public TestCommand return cluster.ReadAttribute< chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo>( - this, OnSuccessCallback_14, OnFailureCallback_14); + this, OnSuccessCallback_15, OnFailureCallback_15); } - void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_15(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_14(uint8_t scheduleProgrammingVisibility) + void OnSuccessResponse_15(uint8_t scheduleProgrammingVisibility) { VerifyOrReturn(CheckConstraintType("scheduleProgrammingVisibility", "", "enum8")); @@ -26083,46 +26557,50 @@ class Test_TC_TSUIC_2_2 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Writes a value of 0 to TemperatureDisplayMode attribute of DUT\n"); - err = TestWritesAValueOf0ToTemperatureDisplayModeAttributeOfDut_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 : Writes a value of 1 to TemperatureDisplayMode attribute of DUT\n"); - err = TestWritesAValueOf1ToTemperatureDisplayModeAttributeOfDut_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Writes a value of 0 to TemperatureDisplayMode attribute of DUT\n"); + err = TestWritesAValueOf0ToTemperatureDisplayModeAttributeOfDut_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Writes a value of 0 to KeypadLockout attribute of DUT\n"); - err = TestWritesAValueOf0ToKeypadLockoutAttributeOfDut_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Writes a value of 1 to TemperatureDisplayMode attribute of DUT\n"); + err = TestWritesAValueOf1ToTemperatureDisplayModeAttributeOfDut_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Writes a value of 1 to KeypadLockout attribute of DUT\n"); - err = TestWritesAValueOf1ToKeypadLockoutAttributeOfDut_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Writes a value of 0 to KeypadLockout attribute of DUT\n"); + err = TestWritesAValueOf0ToKeypadLockoutAttributeOfDut_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Writes a value of 2 to KeypadLockout attribute of DUT\n"); - err = TestWritesAValueOf2ToKeypadLockoutAttributeOfDut_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Writes a value of 1 to KeypadLockout attribute of DUT\n"); + err = TestWritesAValueOf1ToKeypadLockoutAttributeOfDut_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Writes a value of 3 to KeypadLockout attribute of DUT\n"); - err = TestWritesAValueOf3ToKeypadLockoutAttributeOfDut_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Writes a value of 2 to KeypadLockout attribute of DUT\n"); + err = TestWritesAValueOf2ToKeypadLockoutAttributeOfDut_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Writes a value of 4 to KeypadLockout attribute of DUT\n"); - err = TestWritesAValueOf4ToKeypadLockoutAttributeOfDut_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Writes a value of 3 to KeypadLockout attribute of DUT\n"); + err = TestWritesAValueOf3ToKeypadLockoutAttributeOfDut_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Writes a value of 5 to KeypadLockout attribute of DUT\n"); - err = TestWritesAValueOf5ToKeypadLockoutAttributeOfDut_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Writes a value of 4 to KeypadLockout attribute of DUT\n"); + err = TestWritesAValueOf4ToKeypadLockoutAttributeOfDut_7(); break; case 8: - ChipLogProgress(chipTool, - " ***** Test Step 8 : Writes a value of 0 to ScheduleProgrammingVisibility attribute of DUT\n"); - err = TestWritesAValueOf0ToScheduleProgrammingVisibilityAttributeOfDut_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : Writes a value of 5 to KeypadLockout attribute of DUT\n"); + err = TestWritesAValueOf5ToKeypadLockoutAttributeOfDut_8(); break; case 9: ChipLogProgress(chipTool, - " ***** Test Step 9 : Writes a value of 1 to ScheduleProgrammingVisibility attribute of DUT\n"); - err = TestWritesAValueOf1ToScheduleProgrammingVisibilityAttributeOfDut_9(); + " ***** Test Step 9 : Writes a value of 0 to ScheduleProgrammingVisibility attribute of DUT\n"); + err = TestWritesAValueOf0ToScheduleProgrammingVisibilityAttributeOfDut_9(); + break; + case 10: + ChipLogProgress(chipTool, + " ***** Test Step 10 : Writes a value of 1 to ScheduleProgrammingVisibility attribute of DUT\n"); + err = TestWritesAValueOf1ToScheduleProgrammingVisibilityAttributeOfDut_10(); break; } @@ -26135,14 +26613,7 @@ class Test_TC_TSUIC_2_2 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 10; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } + const uint16_t mTestCount = 11; static void OnFailureCallback_1(void * context, EmberAfStatus status) { @@ -26207,11 +26678,20 @@ class Test_TC_TSUIC_2_2 : public TestCommand static void OnSuccessCallback_9(void * context) { (static_cast(context))->OnSuccessResponse_9(); } + static void OnFailureCallback_10(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); + } + + static void OnSuccessCallback_10(void * context) { (static_cast(context))->OnSuccessResponse_10(); } + // // Tests methods // - CHIP_ERROR TestWritesAValueOf0ToTemperatureDisplayModeAttributeOfDut_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestWritesAValueOf0ToTemperatureDisplayModeAttributeOfDut_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -26222,14 +26702,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand return cluster.WriteAttribute< chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::TypeInfo>( - temperatureDisplayModeArgument, this, OnSuccessCallback_0, OnFailureCallback_0); + temperatureDisplayModeArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestWritesAValueOf1ToTemperatureDisplayModeAttributeOfDut_1() + CHIP_ERROR TestWritesAValueOf1ToTemperatureDisplayModeAttributeOfDut_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -26240,14 +26720,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand return cluster.WriteAttribute< chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::TemperatureDisplayMode::TypeInfo>( - temperatureDisplayModeArgument, this, OnSuccessCallback_1, OnFailureCallback_1); + temperatureDisplayModeArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1() { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } - CHIP_ERROR TestWritesAValueOf0ToKeypadLockoutAttributeOfDut_2() + CHIP_ERROR TestWritesAValueOf0ToKeypadLockoutAttributeOfDut_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -26258,14 +26738,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand return cluster .WriteAttribute( - keypadLockoutArgument, this, OnSuccessCallback_2, OnFailureCallback_2); + keypadLockoutArgument, this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - CHIP_ERROR TestWritesAValueOf1ToKeypadLockoutAttributeOfDut_3() + CHIP_ERROR TestWritesAValueOf1ToKeypadLockoutAttributeOfDut_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -26276,14 +26756,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand return cluster .WriteAttribute( - keypadLockoutArgument, this, OnSuccessCallback_3, OnFailureCallback_3); + keypadLockoutArgument, this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3() { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } - CHIP_ERROR TestWritesAValueOf2ToKeypadLockoutAttributeOfDut_4() + CHIP_ERROR TestWritesAValueOf2ToKeypadLockoutAttributeOfDut_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -26294,14 +26774,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand return cluster .WriteAttribute( - keypadLockoutArgument, this, OnSuccessCallback_4, OnFailureCallback_4); + keypadLockoutArgument, this, OnSuccessCallback_5, OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4() { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } - CHIP_ERROR TestWritesAValueOf3ToKeypadLockoutAttributeOfDut_5() + CHIP_ERROR TestWritesAValueOf3ToKeypadLockoutAttributeOfDut_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -26312,14 +26792,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand return cluster .WriteAttribute( - keypadLockoutArgument, this, OnSuccessCallback_5, OnFailureCallback_5); + keypadLockoutArgument, this, OnSuccessCallback_6, OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5() { NextTest(); } + void OnSuccessResponse_6() { NextTest(); } - CHIP_ERROR TestWritesAValueOf4ToKeypadLockoutAttributeOfDut_6() + CHIP_ERROR TestWritesAValueOf4ToKeypadLockoutAttributeOfDut_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -26330,14 +26810,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand return cluster .WriteAttribute( - keypadLockoutArgument, this, OnSuccessCallback_6, OnFailureCallback_6); + keypadLockoutArgument, this, OnSuccessCallback_7, OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6() { NextTest(); } + void OnSuccessResponse_7() { NextTest(); } - CHIP_ERROR TestWritesAValueOf5ToKeypadLockoutAttributeOfDut_7() + CHIP_ERROR TestWritesAValueOf5ToKeypadLockoutAttributeOfDut_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -26348,14 +26828,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand return cluster .WriteAttribute( - keypadLockoutArgument, this, OnSuccessCallback_7, OnFailureCallback_7); + keypadLockoutArgument, this, OnSuccessCallback_8, OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7() { NextTest(); } + void OnSuccessResponse_8() { NextTest(); } - CHIP_ERROR TestWritesAValueOf0ToScheduleProgrammingVisibilityAttributeOfDut_8() + CHIP_ERROR TestWritesAValueOf0ToScheduleProgrammingVisibilityAttributeOfDut_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -26366,14 +26846,14 @@ class Test_TC_TSUIC_2_2 : public TestCommand return cluster.WriteAttribute< chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo>( - scheduleProgrammingVisibilityArgument, this, OnSuccessCallback_8, OnFailureCallback_8); + scheduleProgrammingVisibilityArgument, this, OnSuccessCallback_9, OnFailureCallback_9); } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8() { NextTest(); } + void OnSuccessResponse_9() { NextTest(); } - CHIP_ERROR TestWritesAValueOf1ToScheduleProgrammingVisibilityAttributeOfDut_9() + CHIP_ERROR TestWritesAValueOf1ToScheduleProgrammingVisibilityAttributeOfDut_10() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ThermostatUserInterfaceConfigurationClusterTest cluster; @@ -26384,12 +26864,12 @@ class Test_TC_TSUIC_2_2 : public TestCommand return cluster.WriteAttribute< chip::app::Clusters::ThermostatUserInterfaceConfiguration::Attributes::ScheduleProgrammingVisibility::TypeInfo>( - scheduleProgrammingVisibilityArgument, this, OnSuccessCallback_9, OnFailureCallback_9); + scheduleProgrammingVisibilityArgument, this, OnSuccessCallback_10, OnFailureCallback_10); } - void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9() { NextTest(); } + void OnSuccessResponse_10() { NextTest(); } }; class Test_TC_DIAGTH_1_1 : public TestCommand @@ -26423,17 +26903,21 @@ class Test_TC_DIAGTH_1_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : read the global attribute: ClusterRevision\n"); - err = TestReadTheGlobalAttributeClusterRevision_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 : write the default values to mandatory global attribute: ClusterRevision\n"); - err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : read the global attribute: ClusterRevision\n"); + err = TestReadTheGlobalAttributeClusterRevision_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : reads back global attribute: ClusterRevision\n"); - err = TestReadsBackGlobalAttributeClusterRevision_2(); + ChipLogProgress(chipTool, + " ***** Test Step 2 : write the default values to mandatory global attribute: ClusterRevision\n"); + err = TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2(); + break; + case 3: + ChipLogProgress(chipTool, " ***** Test Step 3 : reads back global attribute: ClusterRevision\n"); + err = TestReadsBackGlobalAttributeClusterRevision_3(); break; } @@ -26446,59 +26930,61 @@ class Test_TC_DIAGTH_1_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 3; + const uint16_t mTestCount = 4; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) + static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); + (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint16_t clusterRevision) + static void OnSuccessCallback_3(void * context, uint16_t clusterRevision) { - (static_cast(context))->OnSuccessResponse_2(clusterRevision); + (static_cast(context))->OnSuccessResponse_3(clusterRevision); } // // Tests methods // - CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::ThreadNetworkDiagnosticsClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint16_t clusterRevision) + void OnSuccessResponse_1(uint16_t clusterRevision) { VerifyOrReturn(CheckValue("clusterRevision", clusterRevision, 1U)); NextTest(); } - CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_1() + CHIP_ERROR TestWriteTheDefaultValuesToMandatoryGlobalAttributeClusterRevision_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::ThreadNetworkDiagnosticsClusterTest cluster; @@ -26508,30 +26994,30 @@ class Test_TC_DIAGTH_1_1 : public TestCommand clusterRevisionArgument = 1U; return cluster.WriteAttribute( - clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); + clusterRevisionArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) + void OnFailureResponse_2(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_1() { ThrowSuccessResponse(); } + void OnSuccessResponse_2() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_2() + CHIP_ERROR TestReadsBackGlobalAttributeClusterRevision_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::ThreadNetworkDiagnosticsClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint16_t clusterRevision) + void OnSuccessResponse_3(uint16_t clusterRevision) { VerifyOrReturn(CheckValue("clusterRevision", clusterRevision, 1U)); @@ -26570,30 +27056,34 @@ class Test_TC_WNCV_1_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : 2: read the global attribute: ClusterRevision\n"); - err = Test2ReadTheGlobalAttributeClusterRevision_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 : 3a: write a value into the RO mandatory global attribute: ClusterRevision\n"); - err = Test3aWriteAValueIntoTheRoMandatoryGlobalAttributeClusterRevision_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : 2: read the global attribute: ClusterRevision\n"); + err = Test2ReadTheGlobalAttributeClusterRevision_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : 3b: reads back global attribute: ClusterRevision\n"); - err = Test3bReadsBackGlobalAttributeClusterRevision_2(); + ChipLogProgress(chipTool, + " ***** Test Step 2 : 3a: write a value into the RO mandatory global attribute: ClusterRevision\n"); + err = Test3aWriteAValueIntoTheRoMandatoryGlobalAttributeClusterRevision_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : 2: read the global attribute: FeatureMap\n"); - err = Test2ReadTheGlobalAttributeFeatureMap_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : 3b: reads back global attribute: ClusterRevision\n"); + err = Test3bReadsBackGlobalAttributeClusterRevision_3(); break; case 4: - ChipLogProgress(chipTool, - " ***** Test Step 4 : 3a: write the default value to optional global attribute: FeatureMap\n"); - err = Test3aWriteTheDefaultValueToOptionalGlobalAttributeFeatureMap_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : 2: read the global attribute: FeatureMap\n"); + err = Test2ReadTheGlobalAttributeFeatureMap_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : 3b: reads back global attribute: FeatureMap\n"); - err = Test3bReadsBackGlobalAttributeFeatureMap_5(); + ChipLogProgress(chipTool, + " ***** Test Step 5 : 3a: write the default value to optional global attribute: FeatureMap\n"); + err = Test3aWriteTheDefaultValueToOptionalGlobalAttributeFeatureMap_5(); + break; + case 6: + ChipLogProgress(chipTool, " ***** Test Step 6 : 3b: reads back global attribute: FeatureMap\n"); + err = Test3bReadsBackGlobalAttributeFeatureMap_6(); break; } @@ -26606,43 +27096,33 @@ class Test_TC_WNCV_1_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 6; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_0(clusterRevision); - } + const uint16_t mTestCount = 7; static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } + static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) + { + (static_cast(context))->OnSuccessResponse_1(clusterRevision); + } static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint16_t clusterRevision) - { - (static_cast(context))->OnSuccessResponse_2(clusterRevision); - } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } static void OnFailureCallback_3(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, uint32_t featureMap) + static void OnSuccessCallback_3(void * context, uint16_t clusterRevision) { - (static_cast(context))->OnSuccessResponse_3(featureMap); + (static_cast(context))->OnSuccessResponse_3(clusterRevision); } static void OnFailureCallback_4(void * context, EmberAfStatus status) @@ -26650,35 +27130,47 @@ class Test_TC_WNCV_1_1 : public TestCommand (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } + static void OnSuccessCallback_4(void * context, uint32_t featureMap) + { + (static_cast(context))->OnSuccessResponse_4(featureMap); + } static void OnFailureCallback_5(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, uint32_t featureMap) + static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } + + static void OnFailureCallback_6(void * context, EmberAfStatus status) { - (static_cast(context))->OnSuccessResponse_5(featureMap); + (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); + } + + static void OnSuccessCallback_6(void * context, uint32_t featureMap) + { + (static_cast(context))->OnSuccessResponse_6(featureMap); } // // Tests methods // - CHIP_ERROR Test2ReadTheGlobalAttributeClusterRevision_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR Test2ReadTheGlobalAttributeClusterRevision_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint16_t clusterRevision) + void OnSuccessResponse_1(uint16_t clusterRevision) { VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); VerifyOrReturn(CheckConstraintMinValue("clusterRevision", clusterRevision, 5)); @@ -26687,7 +27179,7 @@ class Test_TC_WNCV_1_1 : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryGlobalAttributeClusterRevision_1() + CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryGlobalAttributeClusterRevision_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -26697,30 +27189,30 @@ class Test_TC_WNCV_1_1 : public TestCommand clusterRevisionArgument = 201U; return cluster.WriteAttribute( - clusterRevisionArgument, this, OnSuccessCallback_1, OnFailureCallback_1); + clusterRevisionArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) + void OnFailureResponse_2(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_1() { ThrowSuccessResponse(); } + void OnSuccessResponse_2() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackGlobalAttributeClusterRevision_2() + CHIP_ERROR Test3bReadsBackGlobalAttributeClusterRevision_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint16_t clusterRevision) + void OnSuccessResponse_3(uint16_t clusterRevision) { VerifyOrReturn(CheckConstraintType("clusterRevision", "", "uint16")); VerifyOrReturn(CheckConstraintNotValue("clusterRevision", clusterRevision, 201U)); @@ -26728,19 +27220,19 @@ class Test_TC_WNCV_1_1 : public TestCommand NextTest(); } - CHIP_ERROR Test2ReadTheGlobalAttributeFeatureMap_3() + CHIP_ERROR Test2ReadTheGlobalAttributeFeatureMap_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_3, OnFailureCallback_3); + this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint32_t featureMap) + void OnSuccessResponse_4(uint32_t featureMap) { VerifyOrReturn(CheckConstraintType("featureMap", "", "uint32")); VerifyOrReturn(CheckConstraintMaxValue("featureMap", featureMap, 32768)); @@ -26748,7 +27240,7 @@ class Test_TC_WNCV_1_1 : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteTheDefaultValueToOptionalGlobalAttributeFeatureMap_4() + CHIP_ERROR Test3aWriteTheDefaultValueToOptionalGlobalAttributeFeatureMap_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -26758,30 +27250,30 @@ class Test_TC_WNCV_1_1 : public TestCommand featureMapArgument = 32769UL; return cluster.WriteAttribute( - featureMapArgument, this, OnSuccessCallback_4, OnFailureCallback_4); + featureMapArgument, this, OnSuccessCallback_5, OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) + void OnFailureResponse_5(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_4() { ThrowSuccessResponse(); } + void OnSuccessResponse_5() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackGlobalAttributeFeatureMap_5() + CHIP_ERROR Test3bReadsBackGlobalAttributeFeatureMap_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_5, OnFailureCallback_5); + this, OnSuccessCallback_6, OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(uint32_t featureMap) + void OnSuccessResponse_6(uint32_t featureMap) { VerifyOrReturn(CheckConstraintType("featureMap", "", "uint32")); VerifyOrReturn(CheckConstraintNotValue("featureMap", featureMap, 32769UL)); @@ -26821,253 +27313,257 @@ class Test_TC_WNCV_2_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : 2: read the RO mandatory attribute default: Type\n"); - err = Test2ReadTheRoMandatoryAttributeDefaultType_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 : 3a: write a value into the RO mandatory attribute: Type\n"); - err = Test3aWriteAValueIntoTheRoMandatoryAttributeType_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : 2: read the RO mandatory attribute default: Type\n"); + err = Test2ReadTheRoMandatoryAttributeDefaultType_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : 3b: reads back the RO mandatory attribute: Type\n"); - err = Test3bReadsBackTheRoMandatoryAttributeType_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : 3a: write a value into the RO mandatory attribute: Type\n"); + err = Test3aWriteAValueIntoTheRoMandatoryAttributeType_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : 2: read the RO mandatory attribute default: ConfigStatus\n"); - err = Test2ReadTheRoMandatoryAttributeDefaultConfigStatus_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : 3b: reads back the RO mandatory attribute: Type\n"); + err = Test3bReadsBackTheRoMandatoryAttributeType_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : 3a: write a value into the RO mandatory attribute: ConfigStatus\n"); - err = Test3aWriteAValueIntoTheRoMandatoryAttributeConfigStatus_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : 2: read the RO mandatory attribute default: ConfigStatus\n"); + err = Test2ReadTheRoMandatoryAttributeDefaultConfigStatus_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : 3b: reads back the RO mandatory attribute: ConfigStatus\n"); - err = Test3bReadsBackTheRoMandatoryAttributeConfigStatus_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : 3a: write a value into the RO mandatory attribute: ConfigStatus\n"); + err = Test3aWriteAValueIntoTheRoMandatoryAttributeConfigStatus_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : 2: read the RO mandatory attribute default: OperationalStatus\n"); - err = Test2ReadTheRoMandatoryAttributeDefaultOperationalStatus_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : 3b: reads back the RO mandatory attribute: ConfigStatus\n"); + err = Test3bReadsBackTheRoMandatoryAttributeConfigStatus_6(); break; case 7: - ChipLogProgress(chipTool, - " ***** Test Step 7 : 3a: write a value into the RO mandatory attribute: OperationalStatus\n"); - err = Test3aWriteAValueIntoTheRoMandatoryAttributeOperationalStatus_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : 2: read the RO mandatory attribute default: OperationalStatus\n"); + err = Test2ReadTheRoMandatoryAttributeDefaultOperationalStatus_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : 3b: reads back the RO mandatory attribute: OperationalStatus\n"); - err = Test3bReadsBackTheRoMandatoryAttributeOperationalStatus_8(); + ChipLogProgress(chipTool, + " ***** Test Step 8 : 3a: write a value into the RO mandatory attribute: OperationalStatus\n"); + err = Test3aWriteAValueIntoTheRoMandatoryAttributeOperationalStatus_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : 2: read the RO mandatory attribute default: EndProductType\n"); - err = Test2ReadTheRoMandatoryAttributeDefaultEndProductType_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : 3b: reads back the RO mandatory attribute: OperationalStatus\n"); + err = Test3bReadsBackTheRoMandatoryAttributeOperationalStatus_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : 3a: write a value into the RO mandatory attribute: EndProductType\n"); - err = Test3aWriteAValueIntoTheRoMandatoryAttributeEndProductType_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : 2: read the RO mandatory attribute default: EndProductType\n"); + err = Test2ReadTheRoMandatoryAttributeDefaultEndProductType_10(); break; case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : 3b: reads back the RO mandatory attribute: EndProductType\n"); - err = Test3bReadsBackTheRoMandatoryAttributeEndProductType_11(); + ChipLogProgress(chipTool, " ***** Test Step 11 : 3a: write a value into the RO mandatory attribute: EndProductType\n"); + err = Test3aWriteAValueIntoTheRoMandatoryAttributeEndProductType_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : 2: read the RW mandatory attribute default: Mode\n"); - err = Test2ReadTheRwMandatoryAttributeDefaultMode_12(); + ChipLogProgress(chipTool, " ***** Test Step 12 : 3b: reads back the RO mandatory attribute: EndProductType\n"); + err = Test3bReadsBackTheRoMandatoryAttributeEndProductType_12(); break; case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : 3a: write a value into the RW mandatory attribute:: Mode\n"); - err = Test3aWriteAValueIntoTheRwMandatoryAttributeMode_13(); + ChipLogProgress(chipTool, " ***** Test Step 13 : 2: read the RW mandatory attribute default: Mode\n"); + err = Test2ReadTheRwMandatoryAttributeDefaultMode_13(); break; case 14: - ChipLogProgress(chipTool, " ***** Test Step 14 : 3b: reads back the RW mandatory attribute: Mode\n"); - err = Test3bReadsBackTheRwMandatoryAttributeMode_14(); + ChipLogProgress(chipTool, " ***** Test Step 14 : 3a: write a value into the RW mandatory attribute:: Mode\n"); + err = Test3aWriteAValueIntoTheRwMandatoryAttributeMode_14(); break; case 15: - ChipLogProgress(chipTool, - " ***** Test Step 15 : 2: read the RO optional attribute default: TargetPositionLiftPercent100ths\n"); - err = Test2ReadTheRoOptionalAttributeDefaultTargetPositionLiftPercent100ths_15(); + ChipLogProgress(chipTool, " ***** Test Step 15 : 3b: reads back the RW mandatory attribute: Mode\n"); + err = Test3bReadsBackTheRwMandatoryAttributeMode_15(); break; case 16: - ChipLogProgress( - chipTool, - " ***** Test Step 16 : 3a: write a value into the RO optional attribute: TargetPositionLiftPercent100ths\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionLiftPercent100ths_16(); + ChipLogProgress(chipTool, + " ***** Test Step 16 : 2: read the RO optional attribute default: TargetPositionLiftPercent100ths\n"); + err = Test2ReadTheRoOptionalAttributeDefaultTargetPositionLiftPercent100ths_16(); break; case 17: - ChipLogProgress(chipTool, - " ***** Test Step 17 : 3b: reads back the RO optional attribute: TargetPositionLiftPercent100ths\n"); - err = Test3bReadsBackTheRoOptionalAttributeTargetPositionLiftPercent100ths_17(); + ChipLogProgress( + chipTool, + " ***** Test Step 17 : 3a: write a value into the RO optional attribute: TargetPositionLiftPercent100ths\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionLiftPercent100ths_17(); break; case 18: ChipLogProgress(chipTool, - " ***** Test Step 18 : 2: read the RO optional attribute default: TargetPositionTiltPercent100ths\n"); - err = Test2ReadTheRoOptionalAttributeDefaultTargetPositionTiltPercent100ths_18(); + " ***** Test Step 18 : 3b: reads back the RO optional attribute: TargetPositionLiftPercent100ths\n"); + err = Test3bReadsBackTheRoOptionalAttributeTargetPositionLiftPercent100ths_18(); break; case 19: - ChipLogProgress( - chipTool, - " ***** Test Step 19 : 3a: write a value into the RO optional attribute: TargetPositionTiltPercent100ths\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionTiltPercent100ths_19(); + ChipLogProgress(chipTool, + " ***** Test Step 19 : 2: read the RO optional attribute default: TargetPositionTiltPercent100ths\n"); + err = Test2ReadTheRoOptionalAttributeDefaultTargetPositionTiltPercent100ths_19(); break; case 20: - ChipLogProgress(chipTool, - " ***** Test Step 20 : 3b: reads back the RO optional attribute: TargetPositionTiltPercent100ths\n"); - err = Test3bReadsBackTheRoOptionalAttributeTargetPositionTiltPercent100ths_20(); + ChipLogProgress( + chipTool, + " ***** Test Step 20 : 3a: write a value into the RO optional attribute: TargetPositionTiltPercent100ths\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionTiltPercent100ths_20(); break; case 21: ChipLogProgress(chipTool, - " ***** Test Step 21 : 2: read the RO optional attribute default: CurrentPositionLiftPercent100ths\n"); - err = Test2ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercent100ths_21(); + " ***** Test Step 21 : 3b: reads back the RO optional attribute: TargetPositionTiltPercent100ths\n"); + err = Test3bReadsBackTheRoOptionalAttributeTargetPositionTiltPercent100ths_21(); break; case 22: - ChipLogProgress( - chipTool, - " ***** Test Step 22 : 3a: write a value into the RO optional attribute: CurrentPositionLiftPercent100ths\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercent100ths_22(); + ChipLogProgress(chipTool, + " ***** Test Step 22 : 2: read the RO optional attribute default: CurrentPositionLiftPercent100ths\n"); + err = Test2ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercent100ths_22(); break; case 23: - ChipLogProgress(chipTool, - " ***** Test Step 23 : 3b: reads back the RO optional attribute: CurrentPositionLiftPercent100ths\n"); - err = Test3bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercent100ths_23(); + ChipLogProgress( + chipTool, + " ***** Test Step 23 : 3a: write a value into the RO optional attribute: CurrentPositionLiftPercent100ths\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercent100ths_23(); break; case 24: ChipLogProgress(chipTool, - " ***** Test Step 24 : 2: read the RO optional attribute default: CurrentPositionTiltPercent100ths\n"); - err = Test2ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercent100ths_24(); + " ***** Test Step 24 : 3b: reads back the RO optional attribute: CurrentPositionLiftPercent100ths\n"); + err = Test3bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercent100ths_24(); break; case 25: - ChipLogProgress( - chipTool, - " ***** Test Step 25 : 3a: write a value into the RO optional attribute: CurrentPositionTiltPercent100ths\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercent100ths_25(); + ChipLogProgress(chipTool, + " ***** Test Step 25 : 2: read the RO optional attribute default: CurrentPositionTiltPercent100ths\n"); + err = Test2ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercent100ths_25(); break; case 26: - ChipLogProgress(chipTool, - " ***** Test Step 26 : 3b: reads back the RO optional attribute: CurrentPositionTiltPercent100ths\n"); - err = Test3bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercent100ths_26(); + ChipLogProgress( + chipTool, + " ***** Test Step 26 : 3a: write a value into the RO optional attribute: CurrentPositionTiltPercent100ths\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercent100ths_26(); break; case 27: - ChipLogProgress(chipTool, " ***** Test Step 27 : 2: read the RO optional attribute default: InstalledOpenLimitLift\n"); - err = Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitLift_27(); + ChipLogProgress(chipTool, + " ***** Test Step 27 : 3b: reads back the RO optional attribute: CurrentPositionTiltPercent100ths\n"); + err = Test3bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercent100ths_27(); break; case 28: - ChipLogProgress(chipTool, - " ***** Test Step 28 : 3a: write a value into the RO optional attribute: InstalledOpenLimitLift\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitLift_28(); + ChipLogProgress(chipTool, " ***** Test Step 28 : 2: read the RO optional attribute default: InstalledOpenLimitLift\n"); + err = Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitLift_28(); break; case 29: - ChipLogProgress(chipTool, " ***** Test Step 29 : 3b: reads back the RO optional attribute: InstalledOpenLimitLift\n"); - err = Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitLift_29(); + ChipLogProgress(chipTool, + " ***** Test Step 29 : 3a: write a value into the RO optional attribute: InstalledOpenLimitLift\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitLift_29(); break; case 30: - ChipLogProgress(chipTool, - " ***** Test Step 30 : 2: read the RO optional attribute default: InstalledClosedLimitLift\n"); - err = Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitLift_30(); + ChipLogProgress(chipTool, " ***** Test Step 30 : 3b: reads back the RO optional attribute: InstalledOpenLimitLift\n"); + err = Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitLift_30(); break; case 31: ChipLogProgress(chipTool, - " ***** Test Step 31 : 3a: write a value into the RO optional attribute: InstalledClosedLimitLift\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitLift_31(); + " ***** Test Step 31 : 2: read the RO optional attribute default: InstalledClosedLimitLift\n"); + err = Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitLift_31(); break; case 32: - ChipLogProgress(chipTool, " ***** Test Step 32 : 3b: reads back the RO optional attribute: InstalledClosedLimitLift\n"); - err = Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitLift_32(); + ChipLogProgress(chipTool, + " ***** Test Step 32 : 3a: write a value into the RO optional attribute: InstalledClosedLimitLift\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitLift_32(); break; case 33: - ChipLogProgress(chipTool, " ***** Test Step 33 : 2: read the RO optional attribute default: InstalledOpenLimitTilt\n"); - err = Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitTilt_33(); + ChipLogProgress(chipTool, " ***** Test Step 33 : 3b: reads back the RO optional attribute: InstalledClosedLimitLift\n"); + err = Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitLift_33(); break; case 34: - ChipLogProgress(chipTool, - " ***** Test Step 34 : 3a: write a value into the RO optional attribute: InstalledOpenLimitTilt\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitTilt_34(); + ChipLogProgress(chipTool, " ***** Test Step 34 : 2: read the RO optional attribute default: InstalledOpenLimitTilt\n"); + err = Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitTilt_34(); break; case 35: - ChipLogProgress(chipTool, " ***** Test Step 35 : 3b: reads back the RO optional attribute: InstalledOpenLimitTilt\n"); - err = Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitTilt_35(); + ChipLogProgress(chipTool, + " ***** Test Step 35 : 3a: write a value into the RO optional attribute: InstalledOpenLimitTilt\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitTilt_35(); break; case 36: - ChipLogProgress(chipTool, - " ***** Test Step 36 : 2: read the RO optional attribute default: InstalledClosedLimitTilt\n"); - err = Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitTilt_36(); + ChipLogProgress(chipTool, " ***** Test Step 36 : 3b: reads back the RO optional attribute: InstalledOpenLimitTilt\n"); + err = Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitTilt_36(); break; case 37: ChipLogProgress(chipTool, - " ***** Test Step 37 : 3a: write a value into the RO optional attribute: InstalledClosedLimitTilt\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitTilt_37(); + " ***** Test Step 37 : 2: read the RO optional attribute default: InstalledClosedLimitTilt\n"); + err = Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitTilt_37(); break; case 38: - ChipLogProgress(chipTool, " ***** Test Step 38 : 3b: reads back the RO optional attribute: InstalledClosedLimitTilt\n"); - err = Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitTilt_38(); + ChipLogProgress(chipTool, + " ***** Test Step 38 : 3a: write a value into the RO optional attribute: InstalledClosedLimitTilt\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitTilt_38(); break; case 39: - ChipLogProgress(chipTool, " ***** Test Step 39 : 4: read the RO mandatory attribute default: SafetyStatus\n"); - err = Test4ReadTheRoMandatoryAttributeDefaultSafetyStatus_39(); + ChipLogProgress(chipTool, " ***** Test Step 39 : 3b: reads back the RO optional attribute: InstalledClosedLimitTilt\n"); + err = Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitTilt_39(); break; case 40: - ChipLogProgress(chipTool, " ***** Test Step 40 : 5a: write a value into the RO mandatory attribute: SafetyStatus\n"); - err = Test5aWriteAValueIntoTheRoMandatoryAttributeSafetyStatus_40(); + ChipLogProgress(chipTool, " ***** Test Step 40 : 4: read the RO mandatory attribute default: SafetyStatus\n"); + err = Test4ReadTheRoMandatoryAttributeDefaultSafetyStatus_40(); break; case 41: - ChipLogProgress(chipTool, " ***** Test Step 41 : 5b: reads back the RO mandatory attribute: SafetyStatus\n"); - err = Test5bReadsBackTheRoMandatoryAttributeSafetyStatus_41(); + ChipLogProgress(chipTool, " ***** Test Step 41 : 5a: write a value into the RO mandatory attribute: SafetyStatus\n"); + err = Test5aWriteAValueIntoTheRoMandatoryAttributeSafetyStatus_41(); break; case 42: - ChipLogProgress(chipTool, " ***** Test Step 42 : 4: read the RO optional attribute default: CurrentPositionLift\n"); - err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLift_42(); + ChipLogProgress(chipTool, " ***** Test Step 42 : 5b: reads back the RO mandatory attribute: SafetyStatus\n"); + err = Test5bReadsBackTheRoMandatoryAttributeSafetyStatus_42(); break; case 43: - ChipLogProgress(chipTool, - " ***** Test Step 43 : 5a: write a value into the RO optional attribute: CurrentPositionLift\n"); - err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLift_43(); + ChipLogProgress(chipTool, " ***** Test Step 43 : 4: read the RO optional attribute default: CurrentPositionLift\n"); + err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLift_43(); break; case 44: - ChipLogProgress(chipTool, " ***** Test Step 44 : 5b: reads back the RO optional attribute: CurrentPositionLift\n"); - err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionLift_44(); + ChipLogProgress(chipTool, + " ***** Test Step 44 : 5a: write a value into the RO optional attribute: CurrentPositionLift\n"); + err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLift_44(); break; case 45: - ChipLogProgress(chipTool, " ***** Test Step 45 : 4: read the RO optional attribute default: CurrentPositionTilt\n"); - err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTilt_45(); + ChipLogProgress(chipTool, " ***** Test Step 45 : 5b: reads back the RO optional attribute: CurrentPositionLift\n"); + err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionLift_45(); break; case 46: - ChipLogProgress(chipTool, - " ***** Test Step 46 : 5a: write a value into the RO optional attribute: CurrentPositionTilt\n"); - err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTilt_46(); + ChipLogProgress(chipTool, " ***** Test Step 46 : 4: read the RO optional attribute default: CurrentPositionTilt\n"); + err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTilt_46(); break; case 47: - ChipLogProgress(chipTool, " ***** Test Step 47 : 5b: reads back the RO optional attribute: CurrentPositionTilt\n"); - err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionTilt_47(); + ChipLogProgress(chipTool, + " ***** Test Step 47 : 5a: write a value into the RO optional attribute: CurrentPositionTilt\n"); + err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTilt_47(); break; case 48: - ChipLogProgress(chipTool, - " ***** Test Step 48 : 4: read the RO optional attribute default: CurrentPositionLiftPercentage\n"); - err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercentage_48(); + ChipLogProgress(chipTool, " ***** Test Step 48 : 5b: reads back the RO optional attribute: CurrentPositionTilt\n"); + err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionTilt_48(); break; case 49: - ChipLogProgress( - chipTool, - " ***** Test Step 49 : 5a: write a value into the RO optional attribute: CurrentPositionLiftPercentage\n"); - err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercentage_49(); + ChipLogProgress(chipTool, + " ***** Test Step 49 : 4: read the RO optional attribute default: CurrentPositionLiftPercentage\n"); + err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercentage_49(); break; case 50: - ChipLogProgress(chipTool, - " ***** Test Step 50 : 5b: reads back the RO optional attribute: CurrentPositionLiftPercentage\n"); - err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercentage_50(); + ChipLogProgress( + chipTool, + " ***** Test Step 50 : 5a: write a value into the RO optional attribute: CurrentPositionLiftPercentage\n"); + err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercentage_50(); break; case 51: ChipLogProgress(chipTool, - " ***** Test Step 51 : 4: read the RO optional attribute default: CurrentPositionTiltPercentage\n"); - err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercentage_51(); + " ***** Test Step 51 : 5b: reads back the RO optional attribute: CurrentPositionLiftPercentage\n"); + err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercentage_51(); break; case 52: + ChipLogProgress(chipTool, + " ***** Test Step 52 : 4: read the RO optional attribute default: CurrentPositionTiltPercentage\n"); + err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercentage_52(); + break; + case 53: ChipLogProgress( chipTool, - " ***** Test Step 52 : 5a: write a value into the RO optional attribute: CurrentPositionTiltPercentage\n"); - err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercentage_52(); + " ***** Test Step 53 : 5a: write a value into the RO optional attribute: CurrentPositionTiltPercentage\n"); + err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercentage_53(); break; - case 53: + case 54: ChipLogProgress(chipTool, - " ***** Test Step 53 : 5b: reads back the RO optional attribute: CurrentPositionTiltPercentage\n"); - err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercentage_53(); + " ***** Test Step 54 : 5b: reads back the RO optional attribute: CurrentPositionTiltPercentage\n"); + err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercentage_54(); break; } @@ -27080,43 +27576,33 @@ class Test_TC_WNCV_2_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 54; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context, uint8_t type) - { - (static_cast(context))->OnSuccessResponse_0(type); - } + const uint16_t mTestCount = 55; static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } + static void OnSuccessCallback_1(void * context, uint8_t type) + { + (static_cast(context))->OnSuccessResponse_1(type); + } static void OnFailureCallback_2(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint8_t type) - { - (static_cast(context))->OnSuccessResponse_2(type); - } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } static void OnFailureCallback_3(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, uint8_t configStatus) + static void OnSuccessCallback_3(void * context, uint8_t type) { - (static_cast(context))->OnSuccessResponse_3(configStatus); + (static_cast(context))->OnSuccessResponse_3(type); } static void OnFailureCallback_4(void * context, EmberAfStatus status) @@ -27124,26 +27610,26 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } + static void OnSuccessCallback_4(void * context, uint8_t configStatus) + { + (static_cast(context))->OnSuccessResponse_4(configStatus); + } static void OnFailureCallback_5(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, uint8_t configStatus) - { - (static_cast(context))->OnSuccessResponse_5(configStatus); - } + static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } static void OnFailureCallback_6(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, uint8_t operationalStatus) + static void OnSuccessCallback_6(void * context, uint8_t configStatus) { - (static_cast(context))->OnSuccessResponse_6(operationalStatus); + (static_cast(context))->OnSuccessResponse_6(configStatus); } static void OnFailureCallback_7(void * context, EmberAfStatus status) @@ -27151,26 +27637,26 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } + static void OnSuccessCallback_7(void * context, uint8_t operationalStatus) + { + (static_cast(context))->OnSuccessResponse_7(operationalStatus); + } static void OnFailureCallback_8(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_8(void * context, uint8_t operationalStatus) - { - (static_cast(context))->OnSuccessResponse_8(operationalStatus); - } + static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } static void OnFailureCallback_9(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); } - static void OnSuccessCallback_9(void * context, uint8_t endProductType) + static void OnSuccessCallback_9(void * context, uint8_t operationalStatus) { - (static_cast(context))->OnSuccessResponse_9(endProductType); + (static_cast(context))->OnSuccessResponse_9(operationalStatus); } static void OnFailureCallback_10(void * context, EmberAfStatus status) @@ -27178,26 +27664,26 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); } - static void OnSuccessCallback_10(void * context) { (static_cast(context))->OnSuccessResponse_10(); } + static void OnSuccessCallback_10(void * context, uint8_t endProductType) + { + (static_cast(context))->OnSuccessResponse_10(endProductType); + } static void OnFailureCallback_11(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_11(chip::to_underlying(status)); } - static void OnSuccessCallback_11(void * context, uint8_t endProductType) - { - (static_cast(context))->OnSuccessResponse_11(endProductType); - } + static void OnSuccessCallback_11(void * context) { (static_cast(context))->OnSuccessResponse_11(); } static void OnFailureCallback_12(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_12(chip::to_underlying(status)); } - static void OnSuccessCallback_12(void * context, uint8_t mode) + static void OnSuccessCallback_12(void * context, uint8_t endProductType) { - (static_cast(context))->OnSuccessResponse_12(mode); + (static_cast(context))->OnSuccessResponse_12(endProductType); } static void OnFailureCallback_13(void * context, EmberAfStatus status) @@ -27205,26 +27691,26 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_13(chip::to_underlying(status)); } - static void OnSuccessCallback_13(void * context) { (static_cast(context))->OnSuccessResponse_13(); } + static void OnSuccessCallback_13(void * context, uint8_t mode) + { + (static_cast(context))->OnSuccessResponse_13(mode); + } static void OnFailureCallback_14(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_14(chip::to_underlying(status)); } - static void OnSuccessCallback_14(void * context, uint8_t mode) - { - (static_cast(context))->OnSuccessResponse_14(mode); - } + static void OnSuccessCallback_14(void * context) { (static_cast(context))->OnSuccessResponse_14(); } static void OnFailureCallback_15(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_15(chip::to_underlying(status)); } - static void OnSuccessCallback_15(void * context, uint16_t targetPositionLiftPercent100ths) + static void OnSuccessCallback_15(void * context, uint8_t mode) { - (static_cast(context))->OnSuccessResponse_15(targetPositionLiftPercent100ths); + (static_cast(context))->OnSuccessResponse_15(mode); } static void OnFailureCallback_16(void * context, EmberAfStatus status) @@ -27232,26 +27718,26 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_16(chip::to_underlying(status)); } - static void OnSuccessCallback_16(void * context) { (static_cast(context))->OnSuccessResponse_16(); } + static void OnSuccessCallback_16(void * context, uint16_t targetPositionLiftPercent100ths) + { + (static_cast(context))->OnSuccessResponse_16(targetPositionLiftPercent100ths); + } static void OnFailureCallback_17(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_17(chip::to_underlying(status)); } - static void OnSuccessCallback_17(void * context, uint16_t targetPositionLiftPercent100ths) - { - (static_cast(context))->OnSuccessResponse_17(targetPositionLiftPercent100ths); - } + static void OnSuccessCallback_17(void * context) { (static_cast(context))->OnSuccessResponse_17(); } static void OnFailureCallback_18(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_18(chip::to_underlying(status)); } - static void OnSuccessCallback_18(void * context, uint16_t targetPositionTiltPercent100ths) + static void OnSuccessCallback_18(void * context, uint16_t targetPositionLiftPercent100ths) { - (static_cast(context))->OnSuccessResponse_18(targetPositionTiltPercent100ths); + (static_cast(context))->OnSuccessResponse_18(targetPositionLiftPercent100ths); } static void OnFailureCallback_19(void * context, EmberAfStatus status) @@ -27259,26 +27745,26 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_19(chip::to_underlying(status)); } - static void OnSuccessCallback_19(void * context) { (static_cast(context))->OnSuccessResponse_19(); } + static void OnSuccessCallback_19(void * context, uint16_t targetPositionTiltPercent100ths) + { + (static_cast(context))->OnSuccessResponse_19(targetPositionTiltPercent100ths); + } static void OnFailureCallback_20(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_20(chip::to_underlying(status)); } - static void OnSuccessCallback_20(void * context, uint16_t targetPositionTiltPercent100ths) - { - (static_cast(context))->OnSuccessResponse_20(targetPositionTiltPercent100ths); - } + static void OnSuccessCallback_20(void * context) { (static_cast(context))->OnSuccessResponse_20(); } static void OnFailureCallback_21(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_21(chip::to_underlying(status)); } - static void OnSuccessCallback_21(void * context, uint16_t currentPositionLiftPercent100ths) + static void OnSuccessCallback_21(void * context, uint16_t targetPositionTiltPercent100ths) { - (static_cast(context))->OnSuccessResponse_21(currentPositionLiftPercent100ths); + (static_cast(context))->OnSuccessResponse_21(targetPositionTiltPercent100ths); } static void OnFailureCallback_22(void * context, EmberAfStatus status) @@ -27286,26 +27772,26 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_22(chip::to_underlying(status)); } - static void OnSuccessCallback_22(void * context) { (static_cast(context))->OnSuccessResponse_22(); } + static void OnSuccessCallback_22(void * context, uint16_t currentPositionLiftPercent100ths) + { + (static_cast(context))->OnSuccessResponse_22(currentPositionLiftPercent100ths); + } static void OnFailureCallback_23(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_23(chip::to_underlying(status)); } - static void OnSuccessCallback_23(void * context, uint16_t currentPositionLiftPercent100ths) - { - (static_cast(context))->OnSuccessResponse_23(currentPositionLiftPercent100ths); - } + static void OnSuccessCallback_23(void * context) { (static_cast(context))->OnSuccessResponse_23(); } static void OnFailureCallback_24(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_24(chip::to_underlying(status)); } - static void OnSuccessCallback_24(void * context, uint16_t currentPositionTiltPercent100ths) + static void OnSuccessCallback_24(void * context, uint16_t currentPositionLiftPercent100ths) { - (static_cast(context))->OnSuccessResponse_24(currentPositionTiltPercent100ths); + (static_cast(context))->OnSuccessResponse_24(currentPositionLiftPercent100ths); } static void OnFailureCallback_25(void * context, EmberAfStatus status) @@ -27313,26 +27799,26 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_25(chip::to_underlying(status)); } - static void OnSuccessCallback_25(void * context) { (static_cast(context))->OnSuccessResponse_25(); } + static void OnSuccessCallback_25(void * context, uint16_t currentPositionTiltPercent100ths) + { + (static_cast(context))->OnSuccessResponse_25(currentPositionTiltPercent100ths); + } static void OnFailureCallback_26(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_26(chip::to_underlying(status)); } - static void OnSuccessCallback_26(void * context, uint16_t currentPositionTiltPercent100ths) - { - (static_cast(context))->OnSuccessResponse_26(currentPositionTiltPercent100ths); - } + static void OnSuccessCallback_26(void * context) { (static_cast(context))->OnSuccessResponse_26(); } static void OnFailureCallback_27(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_27(chip::to_underlying(status)); } - static void OnSuccessCallback_27(void * context, uint16_t installedOpenLimitLift) + static void OnSuccessCallback_27(void * context, uint16_t currentPositionTiltPercent100ths) { - (static_cast(context))->OnSuccessResponse_27(installedOpenLimitLift); + (static_cast(context))->OnSuccessResponse_27(currentPositionTiltPercent100ths); } static void OnFailureCallback_28(void * context, EmberAfStatus status) @@ -27340,26 +27826,26 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_28(chip::to_underlying(status)); } - static void OnSuccessCallback_28(void * context) { (static_cast(context))->OnSuccessResponse_28(); } + static void OnSuccessCallback_28(void * context, uint16_t installedOpenLimitLift) + { + (static_cast(context))->OnSuccessResponse_28(installedOpenLimitLift); + } static void OnFailureCallback_29(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_29(chip::to_underlying(status)); } - static void OnSuccessCallback_29(void * context, uint16_t installedOpenLimitLift) - { - (static_cast(context))->OnSuccessResponse_29(installedOpenLimitLift); - } + static void OnSuccessCallback_29(void * context) { (static_cast(context))->OnSuccessResponse_29(); } static void OnFailureCallback_30(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_30(chip::to_underlying(status)); } - static void OnSuccessCallback_30(void * context, uint16_t installedClosedLimitLift) + static void OnSuccessCallback_30(void * context, uint16_t installedOpenLimitLift) { - (static_cast(context))->OnSuccessResponse_30(installedClosedLimitLift); + (static_cast(context))->OnSuccessResponse_30(installedOpenLimitLift); } static void OnFailureCallback_31(void * context, EmberAfStatus status) @@ -27367,26 +27853,26 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_31(chip::to_underlying(status)); } - static void OnSuccessCallback_31(void * context) { (static_cast(context))->OnSuccessResponse_31(); } + static void OnSuccessCallback_31(void * context, uint16_t installedClosedLimitLift) + { + (static_cast(context))->OnSuccessResponse_31(installedClosedLimitLift); + } static void OnFailureCallback_32(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_32(chip::to_underlying(status)); } - static void OnSuccessCallback_32(void * context, uint16_t installedClosedLimitLift) - { - (static_cast(context))->OnSuccessResponse_32(installedClosedLimitLift); - } + static void OnSuccessCallback_32(void * context) { (static_cast(context))->OnSuccessResponse_32(); } static void OnFailureCallback_33(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_33(chip::to_underlying(status)); } - static void OnSuccessCallback_33(void * context, uint16_t installedOpenLimitTilt) + static void OnSuccessCallback_33(void * context, uint16_t installedClosedLimitLift) { - (static_cast(context))->OnSuccessResponse_33(installedOpenLimitTilt); + (static_cast(context))->OnSuccessResponse_33(installedClosedLimitLift); } static void OnFailureCallback_34(void * context, EmberAfStatus status) @@ -27394,26 +27880,26 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_34(chip::to_underlying(status)); } - static void OnSuccessCallback_34(void * context) { (static_cast(context))->OnSuccessResponse_34(); } + static void OnSuccessCallback_34(void * context, uint16_t installedOpenLimitTilt) + { + (static_cast(context))->OnSuccessResponse_34(installedOpenLimitTilt); + } static void OnFailureCallback_35(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_35(chip::to_underlying(status)); } - static void OnSuccessCallback_35(void * context, uint16_t installedOpenLimitTilt) - { - (static_cast(context))->OnSuccessResponse_35(installedOpenLimitTilt); - } + static void OnSuccessCallback_35(void * context) { (static_cast(context))->OnSuccessResponse_35(); } static void OnFailureCallback_36(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_36(chip::to_underlying(status)); } - static void OnSuccessCallback_36(void * context, uint16_t installedClosedLimitTilt) + static void OnSuccessCallback_36(void * context, uint16_t installedOpenLimitTilt) { - (static_cast(context))->OnSuccessResponse_36(installedClosedLimitTilt); + (static_cast(context))->OnSuccessResponse_36(installedOpenLimitTilt); } static void OnFailureCallback_37(void * context, EmberAfStatus status) @@ -27421,26 +27907,26 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_37(chip::to_underlying(status)); } - static void OnSuccessCallback_37(void * context) { (static_cast(context))->OnSuccessResponse_37(); } + static void OnSuccessCallback_37(void * context, uint16_t installedClosedLimitTilt) + { + (static_cast(context))->OnSuccessResponse_37(installedClosedLimitTilt); + } static void OnFailureCallback_38(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_38(chip::to_underlying(status)); } - static void OnSuccessCallback_38(void * context, uint16_t installedClosedLimitTilt) - { - (static_cast(context))->OnSuccessResponse_38(installedClosedLimitTilt); - } + static void OnSuccessCallback_38(void * context) { (static_cast(context))->OnSuccessResponse_38(); } static void OnFailureCallback_39(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_39(chip::to_underlying(status)); } - static void OnSuccessCallback_39(void * context, uint16_t safetyStatus) + static void OnSuccessCallback_39(void * context, uint16_t installedClosedLimitTilt) { - (static_cast(context))->OnSuccessResponse_39(safetyStatus); + (static_cast(context))->OnSuccessResponse_39(installedClosedLimitTilt); } static void OnFailureCallback_40(void * context, EmberAfStatus status) @@ -27448,26 +27934,26 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_40(chip::to_underlying(status)); } - static void OnSuccessCallback_40(void * context) { (static_cast(context))->OnSuccessResponse_40(); } + static void OnSuccessCallback_40(void * context, uint16_t safetyStatus) + { + (static_cast(context))->OnSuccessResponse_40(safetyStatus); + } static void OnFailureCallback_41(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_41(chip::to_underlying(status)); } - static void OnSuccessCallback_41(void * context, uint16_t safetyStatus) - { - (static_cast(context))->OnSuccessResponse_41(safetyStatus); - } + static void OnSuccessCallback_41(void * context) { (static_cast(context))->OnSuccessResponse_41(); } static void OnFailureCallback_42(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_42(chip::to_underlying(status)); } - static void OnSuccessCallback_42(void * context, uint16_t currentPositionLift) + static void OnSuccessCallback_42(void * context, uint16_t safetyStatus) { - (static_cast(context))->OnSuccessResponse_42(currentPositionLift); + (static_cast(context))->OnSuccessResponse_42(safetyStatus); } static void OnFailureCallback_43(void * context, EmberAfStatus status) @@ -27475,26 +27961,26 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_43(chip::to_underlying(status)); } - static void OnSuccessCallback_43(void * context) { (static_cast(context))->OnSuccessResponse_43(); } + static void OnSuccessCallback_43(void * context, uint16_t currentPositionLift) + { + (static_cast(context))->OnSuccessResponse_43(currentPositionLift); + } static void OnFailureCallback_44(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_44(chip::to_underlying(status)); } - static void OnSuccessCallback_44(void * context, uint16_t currentPositionLift) - { - (static_cast(context))->OnSuccessResponse_44(currentPositionLift); - } + static void OnSuccessCallback_44(void * context) { (static_cast(context))->OnSuccessResponse_44(); } static void OnFailureCallback_45(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_45(chip::to_underlying(status)); } - static void OnSuccessCallback_45(void * context, uint16_t currentPositionTilt) + static void OnSuccessCallback_45(void * context, uint16_t currentPositionLift) { - (static_cast(context))->OnSuccessResponse_45(currentPositionTilt); + (static_cast(context))->OnSuccessResponse_45(currentPositionLift); } static void OnFailureCallback_46(void * context, EmberAfStatus status) @@ -27502,26 +27988,26 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_46(chip::to_underlying(status)); } - static void OnSuccessCallback_46(void * context) { (static_cast(context))->OnSuccessResponse_46(); } + static void OnSuccessCallback_46(void * context, uint16_t currentPositionTilt) + { + (static_cast(context))->OnSuccessResponse_46(currentPositionTilt); + } static void OnFailureCallback_47(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_47(chip::to_underlying(status)); } - static void OnSuccessCallback_47(void * context, uint16_t currentPositionTilt) - { - (static_cast(context))->OnSuccessResponse_47(currentPositionTilt); - } + static void OnSuccessCallback_47(void * context) { (static_cast(context))->OnSuccessResponse_47(); } static void OnFailureCallback_48(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_48(chip::to_underlying(status)); } - static void OnSuccessCallback_48(void * context, uint8_t currentPositionLiftPercentage) + static void OnSuccessCallback_48(void * context, uint16_t currentPositionTilt) { - (static_cast(context))->OnSuccessResponse_48(currentPositionLiftPercentage); + (static_cast(context))->OnSuccessResponse_48(currentPositionTilt); } static void OnFailureCallback_49(void * context, EmberAfStatus status) @@ -27529,26 +28015,26 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_49(chip::to_underlying(status)); } - static void OnSuccessCallback_49(void * context) { (static_cast(context))->OnSuccessResponse_49(); } + static void OnSuccessCallback_49(void * context, uint8_t currentPositionLiftPercentage) + { + (static_cast(context))->OnSuccessResponse_49(currentPositionLiftPercentage); + } static void OnFailureCallback_50(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_50(chip::to_underlying(status)); } - static void OnSuccessCallback_50(void * context, uint8_t currentPositionLiftPercentage) - { - (static_cast(context))->OnSuccessResponse_50(currentPositionLiftPercentage); - } + static void OnSuccessCallback_50(void * context) { (static_cast(context))->OnSuccessResponse_50(); } static void OnFailureCallback_51(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_51(chip::to_underlying(status)); } - static void OnSuccessCallback_51(void * context, uint8_t currentPositionTiltPercentage) + static void OnSuccessCallback_51(void * context, uint8_t currentPositionLiftPercentage) { - (static_cast(context))->OnSuccessResponse_51(currentPositionTiltPercentage); + (static_cast(context))->OnSuccessResponse_51(currentPositionLiftPercentage); } static void OnFailureCallback_52(void * context, EmberAfStatus status) @@ -27556,35 +28042,47 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnFailureResponse_52(chip::to_underlying(status)); } - static void OnSuccessCallback_52(void * context) { (static_cast(context))->OnSuccessResponse_52(); } + static void OnSuccessCallback_52(void * context, uint8_t currentPositionTiltPercentage) + { + (static_cast(context))->OnSuccessResponse_52(currentPositionTiltPercentage); + } static void OnFailureCallback_53(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_53(chip::to_underlying(status)); } - static void OnSuccessCallback_53(void * context, uint8_t currentPositionTiltPercentage) + static void OnSuccessCallback_53(void * context) { (static_cast(context))->OnSuccessResponse_53(); } + + static void OnFailureCallback_54(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_54(chip::to_underlying(status)); + } + + static void OnSuccessCallback_54(void * context, uint8_t currentPositionTiltPercentage) { - (static_cast(context))->OnSuccessResponse_53(currentPositionTiltPercentage); + (static_cast(context))->OnSuccessResponse_54(currentPositionTiltPercentage); } // // Tests methods // - CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultType_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultType_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_0, - OnFailureCallback_0); + return cluster.ReadAttribute(this, OnSuccessCallback_1, + OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint8_t type) + void OnSuccessResponse_1(uint8_t type) { VerifyOrReturn(CheckConstraintType("type", "", "enum8")); VerifyOrReturn(CheckConstraintMaxValue("type", type, 9)); @@ -27592,7 +28090,7 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeType_1() + CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeType_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -27602,30 +28100,30 @@ class Test_TC_WNCV_2_1 : public TestCommand typeArgument = static_cast(250); return cluster.WriteAttribute( - typeArgument, this, OnSuccessCallback_1, OnFailureCallback_1); + typeArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) + void OnFailureResponse_2(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_1() { ThrowSuccessResponse(); } + void OnSuccessResponse_2() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeType_2() + CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeType_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_2, - OnFailureCallback_2); + return cluster.ReadAttribute(this, OnSuccessCallback_3, + OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint8_t type) + void OnSuccessResponse_3(uint8_t type) { VerifyOrReturn(CheckConstraintType("type", "", "enum8")); VerifyOrReturn(CheckConstraintNotValue("type", type, 250)); @@ -27633,19 +28131,19 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultConfigStatus_3() + CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultConfigStatus_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_3, OnFailureCallback_3); + this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint8_t configStatus) + void OnSuccessResponse_4(uint8_t configStatus) { VerifyOrReturn(CheckConstraintType("configStatus", "", "map8")); VerifyOrReturn(CheckConstraintMaxValue("configStatus", configStatus, 63)); @@ -27653,7 +28151,7 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeConfigStatus_4() + CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeConfigStatus_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -27663,30 +28161,30 @@ class Test_TC_WNCV_2_1 : public TestCommand configStatusArgument = 128; return cluster.WriteAttribute( - configStatusArgument, this, OnSuccessCallback_4, OnFailureCallback_4); + configStatusArgument, this, OnSuccessCallback_5, OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) + void OnFailureResponse_5(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_4() { ThrowSuccessResponse(); } + void OnSuccessResponse_5() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeConfigStatus_5() + CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeConfigStatus_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_5, OnFailureCallback_5); + this, OnSuccessCallback_6, OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(uint8_t configStatus) + void OnSuccessResponse_6(uint8_t configStatus) { VerifyOrReturn(CheckConstraintType("configStatus", "", "map8")); VerifyOrReturn(CheckConstraintNotValue("configStatus", configStatus, 128)); @@ -27694,19 +28192,19 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultOperationalStatus_6() + CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultOperationalStatus_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_6, OnFailureCallback_6); + this, OnSuccessCallback_7, OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(uint8_t operationalStatus) + void OnSuccessResponse_7(uint8_t operationalStatus) { VerifyOrReturn(CheckConstraintType("operationalStatus", "", "map8")); VerifyOrReturn(CheckConstraintMaxValue("operationalStatus", operationalStatus, 63)); @@ -27714,7 +28212,7 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeOperationalStatus_7() + CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeOperationalStatus_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -27724,30 +28222,30 @@ class Test_TC_WNCV_2_1 : public TestCommand operationalStatusArgument = 128; return cluster.WriteAttribute( - operationalStatusArgument, this, OnSuccessCallback_7, OnFailureCallback_7); + operationalStatusArgument, this, OnSuccessCallback_8, OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) + void OnFailureResponse_8(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_7() { ThrowSuccessResponse(); } + void OnSuccessResponse_8() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeOperationalStatus_8() + CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeOperationalStatus_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_8, OnFailureCallback_8); + this, OnSuccessCallback_9, OnFailureCallback_9); } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8(uint8_t operationalStatus) + void OnSuccessResponse_9(uint8_t operationalStatus) { VerifyOrReturn(CheckConstraintType("operationalStatus", "", "map8")); VerifyOrReturn(CheckConstraintNotValue("operationalStatus", operationalStatus, 128)); @@ -27755,19 +28253,19 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultEndProductType_9() + CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultEndProductType_10() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_9, OnFailureCallback_9); + this, OnSuccessCallback_10, OnFailureCallback_10); } - void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9(uint8_t endProductType) + void OnSuccessResponse_10(uint8_t endProductType) { VerifyOrReturn(CheckConstraintType("endProductType", "", "enum8")); VerifyOrReturn(CheckConstraintMaxValue("endProductType", endProductType, 23)); @@ -27775,7 +28273,7 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeEndProductType_10() + CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeEndProductType_11() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -27785,30 +28283,30 @@ class Test_TC_WNCV_2_1 : public TestCommand endProductTypeArgument = static_cast(250); return cluster.WriteAttribute( - endProductTypeArgument, this, OnSuccessCallback_10, OnFailureCallback_10); + endProductTypeArgument, this, OnSuccessCallback_11, OnFailureCallback_11); } - void OnFailureResponse_10(uint8_t status) + void OnFailureResponse_11(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_10() { ThrowSuccessResponse(); } + void OnSuccessResponse_11() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeEndProductType_11() + CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeEndProductType_12() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_11, OnFailureCallback_11); + this, OnSuccessCallback_12, OnFailureCallback_12); } - void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_11(uint8_t endProductType) + void OnSuccessResponse_12(uint8_t endProductType) { VerifyOrReturn(CheckConstraintType("endProductType", "", "enum8")); VerifyOrReturn(CheckConstraintNotValue("endProductType", endProductType, 250)); @@ -27816,19 +28314,19 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test2ReadTheRwMandatoryAttributeDefaultMode_12() + CHIP_ERROR Test2ReadTheRwMandatoryAttributeDefaultMode_13() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_12, - OnFailureCallback_12); + return cluster.ReadAttribute(this, OnSuccessCallback_13, + OnFailureCallback_13); } - void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_12(uint8_t mode) + void OnSuccessResponse_13(uint8_t mode) { VerifyOrReturn(CheckConstraintType("mode", "", "map8")); VerifyOrReturn(CheckConstraintMaxValue("mode", mode, 15)); @@ -27836,7 +28334,7 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRwMandatoryAttributeMode_13() + CHIP_ERROR Test3aWriteAValueIntoTheRwMandatoryAttributeMode_14() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -27846,45 +28344,45 @@ class Test_TC_WNCV_2_1 : public TestCommand modeArgument = 8; return cluster.WriteAttribute( - modeArgument, this, OnSuccessCallback_13, OnFailureCallback_13); + modeArgument, this, OnSuccessCallback_14, OnFailureCallback_14); } - void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_13() { NextTest(); } + void OnSuccessResponse_14() { NextTest(); } - CHIP_ERROR Test3bReadsBackTheRwMandatoryAttributeMode_14() + CHIP_ERROR Test3bReadsBackTheRwMandatoryAttributeMode_15() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_14, - OnFailureCallback_14); + return cluster.ReadAttribute(this, OnSuccessCallback_15, + OnFailureCallback_15); } - void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_15(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_14(uint8_t mode) + void OnSuccessResponse_15(uint8_t mode) { VerifyOrReturn(CheckValue("mode", mode, 8)); NextTest(); } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultTargetPositionLiftPercent100ths_15() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultTargetPositionLiftPercent100ths_16() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_15, OnFailureCallback_15); + this, OnSuccessCallback_16, OnFailureCallback_16); } - void OnFailureResponse_15(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_16(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_15(uint16_t targetPositionLiftPercent100ths) + void OnSuccessResponse_16(uint16_t targetPositionLiftPercent100ths) { VerifyOrReturn(CheckConstraintType("targetPositionLiftPercent100ths", "", "uint16")); VerifyOrReturn( @@ -27893,7 +28391,7 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionLiftPercent100ths_16() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionLiftPercent100ths_17() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -27903,30 +28401,30 @@ class Test_TC_WNCV_2_1 : public TestCommand targetPositionLiftPercent100thsArgument = 20000U; return cluster.WriteAttribute( - targetPositionLiftPercent100thsArgument, this, OnSuccessCallback_16, OnFailureCallback_16); + targetPositionLiftPercent100thsArgument, this, OnSuccessCallback_17, OnFailureCallback_17); } - void OnFailureResponse_16(uint8_t status) + void OnFailureResponse_17(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_16() { ThrowSuccessResponse(); } + void OnSuccessResponse_17() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeTargetPositionLiftPercent100ths_17() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeTargetPositionLiftPercent100ths_18() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_17, OnFailureCallback_17); + this, OnSuccessCallback_18, OnFailureCallback_18); } - void OnFailureResponse_17(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_18(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_17(uint16_t targetPositionLiftPercent100ths) + void OnSuccessResponse_18(uint16_t targetPositionLiftPercent100ths) { VerifyOrReturn(CheckConstraintType("targetPositionLiftPercent100ths", "", "uint16")); VerifyOrReturn(CheckConstraintNotValue("targetPositionLiftPercent100ths", targetPositionLiftPercent100ths, 20000U)); @@ -27934,19 +28432,19 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultTargetPositionTiltPercent100ths_18() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultTargetPositionTiltPercent100ths_19() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_18, OnFailureCallback_18); + this, OnSuccessCallback_19, OnFailureCallback_19); } - void OnFailureResponse_18(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_19(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_18(uint16_t targetPositionTiltPercent100ths) + void OnSuccessResponse_19(uint16_t targetPositionTiltPercent100ths) { VerifyOrReturn(CheckConstraintType("targetPositionTiltPercent100ths", "", "uint16")); VerifyOrReturn( @@ -27955,7 +28453,7 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionTiltPercent100ths_19() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionTiltPercent100ths_20() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -27965,30 +28463,30 @@ class Test_TC_WNCV_2_1 : public TestCommand targetPositionTiltPercent100thsArgument = 20000U; return cluster.WriteAttribute( - targetPositionTiltPercent100thsArgument, this, OnSuccessCallback_19, OnFailureCallback_19); + targetPositionTiltPercent100thsArgument, this, OnSuccessCallback_20, OnFailureCallback_20); } - void OnFailureResponse_19(uint8_t status) + void OnFailureResponse_20(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_19() { ThrowSuccessResponse(); } + void OnSuccessResponse_20() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeTargetPositionTiltPercent100ths_20() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeTargetPositionTiltPercent100ths_21() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_20, OnFailureCallback_20); + this, OnSuccessCallback_21, OnFailureCallback_21); } - void OnFailureResponse_20(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_21(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_20(uint16_t targetPositionTiltPercent100ths) + void OnSuccessResponse_21(uint16_t targetPositionTiltPercent100ths) { VerifyOrReturn(CheckConstraintType("targetPositionTiltPercent100ths", "", "uint16")); VerifyOrReturn(CheckConstraintNotValue("targetPositionTiltPercent100ths", targetPositionTiltPercent100ths, 20000U)); @@ -27996,19 +28494,19 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercent100ths_21() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercent100ths_22() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_21, OnFailureCallback_21); + this, OnSuccessCallback_22, OnFailureCallback_22); } - void OnFailureResponse_21(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_22(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_21(uint16_t currentPositionLiftPercent100ths) + void OnSuccessResponse_22(uint16_t currentPositionLiftPercent100ths) { VerifyOrReturn(CheckConstraintType("currentPositionLiftPercent100ths", "", "uint16")); VerifyOrReturn( @@ -28017,7 +28515,7 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercent100ths_22() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercent100ths_23() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -28027,30 +28525,30 @@ class Test_TC_WNCV_2_1 : public TestCommand currentPositionLiftPercent100thsArgument = 20000U; return cluster.WriteAttribute( - currentPositionLiftPercent100thsArgument, this, OnSuccessCallback_22, OnFailureCallback_22); + currentPositionLiftPercent100thsArgument, this, OnSuccessCallback_23, OnFailureCallback_23); } - void OnFailureResponse_22(uint8_t status) + void OnFailureResponse_23(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_22() { ThrowSuccessResponse(); } + void OnSuccessResponse_23() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercent100ths_23() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercent100ths_24() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_23, OnFailureCallback_23); + this, OnSuccessCallback_24, OnFailureCallback_24); } - void OnFailureResponse_23(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_24(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_23(uint16_t currentPositionLiftPercent100ths) + void OnSuccessResponse_24(uint16_t currentPositionLiftPercent100ths) { VerifyOrReturn(CheckConstraintType("currentPositionLiftPercent100ths", "", "uint16")); VerifyOrReturn(CheckConstraintNotValue("currentPositionLiftPercent100ths", currentPositionLiftPercent100ths, 20000U)); @@ -28058,19 +28556,19 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercent100ths_24() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercent100ths_25() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_24, OnFailureCallback_24); + this, OnSuccessCallback_25, OnFailureCallback_25); } - void OnFailureResponse_24(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_25(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_24(uint16_t currentPositionTiltPercent100ths) + void OnSuccessResponse_25(uint16_t currentPositionTiltPercent100ths) { VerifyOrReturn(CheckConstraintType("currentPositionTiltPercent100ths", "", "uint16")); VerifyOrReturn( @@ -28079,7 +28577,7 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercent100ths_25() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercent100ths_26() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -28089,30 +28587,30 @@ class Test_TC_WNCV_2_1 : public TestCommand currentPositionTiltPercent100thsArgument = 20000U; return cluster.WriteAttribute( - currentPositionTiltPercent100thsArgument, this, OnSuccessCallback_25, OnFailureCallback_25); + currentPositionTiltPercent100thsArgument, this, OnSuccessCallback_26, OnFailureCallback_26); } - void OnFailureResponse_25(uint8_t status) + void OnFailureResponse_26(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_25() { ThrowSuccessResponse(); } + void OnSuccessResponse_26() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercent100ths_26() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercent100ths_27() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_26, OnFailureCallback_26); + this, OnSuccessCallback_27, OnFailureCallback_27); } - void OnFailureResponse_26(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_27(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_26(uint16_t currentPositionTiltPercent100ths) + void OnSuccessResponse_27(uint16_t currentPositionTiltPercent100ths) { VerifyOrReturn(CheckConstraintType("currentPositionTiltPercent100ths", "", "uint16")); VerifyOrReturn(CheckConstraintNotValue("currentPositionTiltPercent100ths", currentPositionTiltPercent100ths, 20000U)); @@ -28120,19 +28618,19 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitLift_27() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitLift_28() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_27, OnFailureCallback_27); + this, OnSuccessCallback_28, OnFailureCallback_28); } - void OnFailureResponse_27(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_28(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_27(uint16_t installedOpenLimitLift) + void OnSuccessResponse_28(uint16_t installedOpenLimitLift) { VerifyOrReturn(CheckConstraintType("installedOpenLimitLift", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("installedOpenLimitLift", installedOpenLimitLift, 65535)); @@ -28140,7 +28638,7 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitLift_28() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitLift_29() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -28150,30 +28648,30 @@ class Test_TC_WNCV_2_1 : public TestCommand installedOpenLimitLiftArgument = 255U; return cluster.WriteAttribute( - installedOpenLimitLiftArgument, this, OnSuccessCallback_28, OnFailureCallback_28); + installedOpenLimitLiftArgument, this, OnSuccessCallback_29, OnFailureCallback_29); } - void OnFailureResponse_28(uint8_t status) + void OnFailureResponse_29(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_28() { ThrowSuccessResponse(); } + void OnSuccessResponse_29() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitLift_29() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitLift_30() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_29, OnFailureCallback_29); + this, OnSuccessCallback_30, OnFailureCallback_30); } - void OnFailureResponse_29(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_30(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_29(uint16_t installedOpenLimitLift) + void OnSuccessResponse_30(uint16_t installedOpenLimitLift) { VerifyOrReturn(CheckConstraintType("installedOpenLimitLift", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("installedOpenLimitLift", installedOpenLimitLift, 65535)); @@ -28181,19 +28679,19 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitLift_30() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitLift_31() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_30, OnFailureCallback_30); + this, OnSuccessCallback_31, OnFailureCallback_31); } - void OnFailureResponse_30(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_31(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_30(uint16_t installedClosedLimitLift) + void OnSuccessResponse_31(uint16_t installedClosedLimitLift) { VerifyOrReturn(CheckConstraintType("installedClosedLimitLift", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("installedClosedLimitLift", installedClosedLimitLift, 65535)); @@ -28201,7 +28699,7 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitLift_31() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitLift_32() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -28211,30 +28709,30 @@ class Test_TC_WNCV_2_1 : public TestCommand installedClosedLimitLiftArgument = 255U; return cluster.WriteAttribute( - installedClosedLimitLiftArgument, this, OnSuccessCallback_31, OnFailureCallback_31); + installedClosedLimitLiftArgument, this, OnSuccessCallback_32, OnFailureCallback_32); } - void OnFailureResponse_31(uint8_t status) + void OnFailureResponse_32(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_31() { ThrowSuccessResponse(); } + void OnSuccessResponse_32() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitLift_32() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitLift_33() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_32, OnFailureCallback_32); + this, OnSuccessCallback_33, OnFailureCallback_33); } - void OnFailureResponse_32(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_33(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_32(uint16_t installedClosedLimitLift) + void OnSuccessResponse_33(uint16_t installedClosedLimitLift) { VerifyOrReturn(CheckConstraintType("installedClosedLimitLift", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("installedClosedLimitLift", installedClosedLimitLift, 65535)); @@ -28242,19 +28740,19 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitTilt_33() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitTilt_34() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_33, OnFailureCallback_33); + this, OnSuccessCallback_34, OnFailureCallback_34); } - void OnFailureResponse_33(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_34(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_33(uint16_t installedOpenLimitTilt) + void OnSuccessResponse_34(uint16_t installedOpenLimitTilt) { VerifyOrReturn(CheckConstraintType("installedOpenLimitTilt", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("installedOpenLimitTilt", installedOpenLimitTilt, 65535)); @@ -28262,7 +28760,7 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitTilt_34() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitTilt_35() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -28272,30 +28770,30 @@ class Test_TC_WNCV_2_1 : public TestCommand installedOpenLimitTiltArgument = 255U; return cluster.WriteAttribute( - installedOpenLimitTiltArgument, this, OnSuccessCallback_34, OnFailureCallback_34); + installedOpenLimitTiltArgument, this, OnSuccessCallback_35, OnFailureCallback_35); } - void OnFailureResponse_34(uint8_t status) + void OnFailureResponse_35(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_34() { ThrowSuccessResponse(); } + void OnSuccessResponse_35() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitTilt_35() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitTilt_36() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_35, OnFailureCallback_35); + this, OnSuccessCallback_36, OnFailureCallback_36); } - void OnFailureResponse_35(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_36(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_35(uint16_t installedOpenLimitTilt) + void OnSuccessResponse_36(uint16_t installedOpenLimitTilt) { VerifyOrReturn(CheckConstraintType("installedOpenLimitTilt", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("installedOpenLimitTilt", installedOpenLimitTilt, 65535)); @@ -28303,19 +28801,19 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitTilt_36() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitTilt_37() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_36, OnFailureCallback_36); + this, OnSuccessCallback_37, OnFailureCallback_37); } - void OnFailureResponse_36(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_37(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_36(uint16_t installedClosedLimitTilt) + void OnSuccessResponse_37(uint16_t installedClosedLimitTilt) { VerifyOrReturn(CheckConstraintType("installedClosedLimitTilt", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("installedClosedLimitTilt", installedClosedLimitTilt, 65535)); @@ -28323,7 +28821,7 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitTilt_37() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitTilt_38() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -28333,30 +28831,30 @@ class Test_TC_WNCV_2_1 : public TestCommand installedClosedLimitTiltArgument = 255U; return cluster.WriteAttribute( - installedClosedLimitTiltArgument, this, OnSuccessCallback_37, OnFailureCallback_37); + installedClosedLimitTiltArgument, this, OnSuccessCallback_38, OnFailureCallback_38); } - void OnFailureResponse_37(uint8_t status) + void OnFailureResponse_38(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_37() { ThrowSuccessResponse(); } + void OnSuccessResponse_38() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitTilt_38() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitTilt_39() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_38, OnFailureCallback_38); + this, OnSuccessCallback_39, OnFailureCallback_39); } - void OnFailureResponse_38(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_39(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_38(uint16_t installedClosedLimitTilt) + void OnSuccessResponse_39(uint16_t installedClosedLimitTilt) { VerifyOrReturn(CheckConstraintType("installedClosedLimitTilt", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("installedClosedLimitTilt", installedClosedLimitTilt, 65535)); @@ -28364,19 +28862,19 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test4ReadTheRoMandatoryAttributeDefaultSafetyStatus_39() + CHIP_ERROR Test4ReadTheRoMandatoryAttributeDefaultSafetyStatus_40() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_39, OnFailureCallback_39); + this, OnSuccessCallback_40, OnFailureCallback_40); } - void OnFailureResponse_39(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_40(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_39(uint16_t safetyStatus) + void OnSuccessResponse_40(uint16_t safetyStatus) { VerifyOrReturn(CheckConstraintType("safetyStatus", "", "map16")); VerifyOrReturn(CheckConstraintMaxValue("safetyStatus", safetyStatus, 2047)); @@ -28384,7 +28882,7 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test5aWriteAValueIntoTheRoMandatoryAttributeSafetyStatus_40() + CHIP_ERROR Test5aWriteAValueIntoTheRoMandatoryAttributeSafetyStatus_41() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -28394,30 +28892,30 @@ class Test_TC_WNCV_2_1 : public TestCommand safetyStatusArgument = 4096U; return cluster.WriteAttribute( - safetyStatusArgument, this, OnSuccessCallback_40, OnFailureCallback_40); + safetyStatusArgument, this, OnSuccessCallback_41, OnFailureCallback_41); } - void OnFailureResponse_40(uint8_t status) + void OnFailureResponse_41(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_40() { ThrowSuccessResponse(); } + void OnSuccessResponse_41() { ThrowSuccessResponse(); } - CHIP_ERROR Test5bReadsBackTheRoMandatoryAttributeSafetyStatus_41() + CHIP_ERROR Test5bReadsBackTheRoMandatoryAttributeSafetyStatus_42() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_41, OnFailureCallback_41); + this, OnSuccessCallback_42, OnFailureCallback_42); } - void OnFailureResponse_41(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_42(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_41(uint16_t safetyStatus) + void OnSuccessResponse_42(uint16_t safetyStatus) { VerifyOrReturn(CheckConstraintType("safetyStatus", "", "map16")); VerifyOrReturn(CheckConstraintNotValue("safetyStatus", safetyStatus, 4096U)); @@ -28425,19 +28923,19 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLift_42() + CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLift_43() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_42, OnFailureCallback_42); + this, OnSuccessCallback_43, OnFailureCallback_43); } - void OnFailureResponse_42(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_43(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_42(uint16_t currentPositionLift) + void OnSuccessResponse_43(uint16_t currentPositionLift) { VerifyOrReturn(CheckConstraintType("currentPositionLift", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("currentPositionLift", currentPositionLift, 65535)); @@ -28445,7 +28943,7 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLift_43() + CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLift_44() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -28455,30 +28953,30 @@ class Test_TC_WNCV_2_1 : public TestCommand currentPositionLiftArgument = 255U; return cluster.WriteAttribute( - currentPositionLiftArgument, this, OnSuccessCallback_43, OnFailureCallback_43); + currentPositionLiftArgument, this, OnSuccessCallback_44, OnFailureCallback_44); } - void OnFailureResponse_43(uint8_t status) + void OnFailureResponse_44(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_43() { ThrowSuccessResponse(); } + void OnSuccessResponse_44() { ThrowSuccessResponse(); } - CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionLift_44() + CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionLift_45() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_44, OnFailureCallback_44); + this, OnSuccessCallback_45, OnFailureCallback_45); } - void OnFailureResponse_44(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_45(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_44(uint16_t currentPositionLift) + void OnSuccessResponse_45(uint16_t currentPositionLift) { VerifyOrReturn(CheckConstraintType("currentPositionLift", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("currentPositionLift", currentPositionLift, 65535)); @@ -28486,19 +28984,19 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTilt_45() + CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTilt_46() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_45, OnFailureCallback_45); + this, OnSuccessCallback_46, OnFailureCallback_46); } - void OnFailureResponse_45(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_46(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_45(uint16_t currentPositionTilt) + void OnSuccessResponse_46(uint16_t currentPositionTilt) { VerifyOrReturn(CheckConstraintType("currentPositionTilt", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("currentPositionTilt", currentPositionTilt, 65535)); @@ -28506,7 +29004,7 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTilt_46() + CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTilt_47() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -28516,30 +29014,30 @@ class Test_TC_WNCV_2_1 : public TestCommand currentPositionTiltArgument = 255U; return cluster.WriteAttribute( - currentPositionTiltArgument, this, OnSuccessCallback_46, OnFailureCallback_46); + currentPositionTiltArgument, this, OnSuccessCallback_47, OnFailureCallback_47); } - void OnFailureResponse_46(uint8_t status) + void OnFailureResponse_47(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_46() { ThrowSuccessResponse(); } + void OnSuccessResponse_47() { ThrowSuccessResponse(); } - CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionTilt_47() + CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionTilt_48() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_47, OnFailureCallback_47); + this, OnSuccessCallback_48, OnFailureCallback_48); } - void OnFailureResponse_47(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_48(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_47(uint16_t currentPositionTilt) + void OnSuccessResponse_48(uint16_t currentPositionTilt) { VerifyOrReturn(CheckConstraintType("currentPositionTilt", "", "uint16")); VerifyOrReturn(CheckConstraintMaxValue("currentPositionTilt", currentPositionTilt, 65535)); @@ -28547,19 +29045,19 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercentage_48() + CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercentage_49() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_48, OnFailureCallback_48); + this, OnSuccessCallback_49, OnFailureCallback_49); } - void OnFailureResponse_48(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_49(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_48(uint8_t currentPositionLiftPercentage) + void OnSuccessResponse_49(uint8_t currentPositionLiftPercentage) { VerifyOrReturn(CheckConstraintType("currentPositionLiftPercentage", "", "uint8")); VerifyOrReturn(CheckConstraintMaxValue("currentPositionLiftPercentage", currentPositionLiftPercentage, 100)); @@ -28567,7 +29065,7 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercentage_49() + CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercentage_50() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -28577,30 +29075,30 @@ class Test_TC_WNCV_2_1 : public TestCommand currentPositionLiftPercentageArgument = 200; return cluster.WriteAttribute( - currentPositionLiftPercentageArgument, this, OnSuccessCallback_49, OnFailureCallback_49); + currentPositionLiftPercentageArgument, this, OnSuccessCallback_50, OnFailureCallback_50); } - void OnFailureResponse_49(uint8_t status) + void OnFailureResponse_50(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_49() { ThrowSuccessResponse(); } + void OnSuccessResponse_50() { ThrowSuccessResponse(); } - CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercentage_50() + CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercentage_51() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_50, OnFailureCallback_50); + this, OnSuccessCallback_51, OnFailureCallback_51); } - void OnFailureResponse_50(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_51(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_50(uint8_t currentPositionLiftPercentage) + void OnSuccessResponse_51(uint8_t currentPositionLiftPercentage) { VerifyOrReturn(CheckConstraintType("currentPositionLiftPercentage", "", "uint8")); VerifyOrReturn(CheckConstraintNotValue("currentPositionLiftPercentage", currentPositionLiftPercentage, 200)); @@ -28608,19 +29106,19 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercentage_51() + CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercentage_52() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_51, OnFailureCallback_51); + this, OnSuccessCallback_52, OnFailureCallback_52); } - void OnFailureResponse_51(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_52(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_51(uint8_t currentPositionTiltPercentage) + void OnSuccessResponse_52(uint8_t currentPositionTiltPercentage) { VerifyOrReturn(CheckConstraintType("currentPositionTiltPercentage", "", "uint8")); VerifyOrReturn(CheckConstraintMaxValue("currentPositionTiltPercentage", currentPositionTiltPercentage, 100)); @@ -28628,7 +29126,7 @@ class Test_TC_WNCV_2_1 : public TestCommand NextTest(); } - CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercentage_52() + CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercentage_53() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -28638,30 +29136,30 @@ class Test_TC_WNCV_2_1 : public TestCommand currentPositionTiltPercentageArgument = 200; return cluster.WriteAttribute( - currentPositionTiltPercentageArgument, this, OnSuccessCallback_52, OnFailureCallback_52); + currentPositionTiltPercentageArgument, this, OnSuccessCallback_53, OnFailureCallback_53); } - void OnFailureResponse_52(uint8_t status) + void OnFailureResponse_53(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_52() { ThrowSuccessResponse(); } + void OnSuccessResponse_53() { ThrowSuccessResponse(); } - CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercentage_53() + CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercentage_54() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_53, OnFailureCallback_53); + this, OnSuccessCallback_54, OnFailureCallback_54); } - void OnFailureResponse_53(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_54(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_53(uint8_t currentPositionTiltPercentage) + void OnSuccessResponse_54(uint8_t currentPositionTiltPercentage) { VerifyOrReturn(CheckConstraintType("currentPositionTiltPercentage", "", "uint8")); VerifyOrReturn(CheckConstraintNotValue("currentPositionTiltPercentage", currentPositionTiltPercentage, 200)); @@ -28700,6 +29198,10 @@ class Test_TC_WNCV_2_2 : public TestCommand // 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; } if (CHIP_NO_ERROR != err) @@ -28711,11 +29213,13 @@ class Test_TC_WNCV_2_2 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 0; + const uint16_t mTestCount = 1; // // Tests methods // + + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } }; class Test_TC_WNCV_2_4 : public TestCommand @@ -28749,12 +29253,16 @@ class Test_TC_WNCV_2_4 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Reads Type attribute from DUT\n"); - err = TestReadsTypeAttributeFromDut_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 : Reads Type attribute constraints\n"); - err = TestReadsTypeAttributeConstraints_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Reads Type attribute from DUT\n"); + err = TestReadsTypeAttributeFromDut_1(); + break; + case 2: + ChipLogProgress(chipTool, " ***** Test Step 2 : Reads Type attribute constraints\n"); + err = TestReadsTypeAttributeConstraints_2(); break; } @@ -28767,64 +29275,66 @@ class Test_TC_WNCV_2_4 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 2; + const uint16_t mTestCount = 3; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint8_t type) + static void OnSuccessCallback_1(void * context, uint8_t type) { - (static_cast(context))->OnSuccessResponse_0(type); + (static_cast(context))->OnSuccessResponse_1(type); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint8_t type) + static void OnSuccessCallback_2(void * context, uint8_t type) { - (static_cast(context))->OnSuccessResponse_1(type); + (static_cast(context))->OnSuccessResponse_2(type); } // // Tests methods // - CHIP_ERROR TestReadsTypeAttributeFromDut_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadsTypeAttributeFromDut_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_0, - OnFailureCallback_0); + return cluster.ReadAttribute(this, OnSuccessCallback_1, + OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint8_t type) + void OnSuccessResponse_1(uint8_t type) { VerifyOrReturn(CheckValue("type", type, 0)); NextTest(); } - CHIP_ERROR TestReadsTypeAttributeConstraints_1() + CHIP_ERROR TestReadsTypeAttributeConstraints_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(uint8_t type) + void OnSuccessResponse_2(uint8_t type) { VerifyOrReturn(CheckConstraintType("type", "", "enum8")); VerifyOrReturn(CheckConstraintMaxValue("type", type, 9)); @@ -28864,12 +29374,16 @@ class Test_TC_WNCV_2_5 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Reads EndProductType attribute from DUT\n"); - err = TestReadsEndProductTypeAttributeFromDut_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 : Reads EndProductType attribute constraints from DUT\n"); - err = TestReadsEndProductTypeAttributeConstraintsFromDut_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Reads EndProductType attribute from DUT\n"); + err = TestReadsEndProductTypeAttributeFromDut_1(); + break; + case 2: + ChipLogProgress(chipTool, " ***** Test Step 2 : Reads EndProductType attribute constraints from DUT\n"); + err = TestReadsEndProductTypeAttributeConstraintsFromDut_2(); break; } @@ -28882,64 +29396,66 @@ class Test_TC_WNCV_2_5 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 2; + const uint16_t mTestCount = 3; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint8_t endProductType) + static void OnSuccessCallback_1(void * context, uint8_t endProductType) { - (static_cast(context))->OnSuccessResponse_0(endProductType); + (static_cast(context))->OnSuccessResponse_1(endProductType); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint8_t endProductType) + static void OnSuccessCallback_2(void * context, uint8_t endProductType) { - (static_cast(context))->OnSuccessResponse_1(endProductType); + (static_cast(context))->OnSuccessResponse_2(endProductType); } // // Tests methods // - CHIP_ERROR TestReadsEndProductTypeAttributeFromDut_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadsEndProductTypeAttributeFromDut_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint8_t endProductType) + void OnSuccessResponse_1(uint8_t endProductType) { VerifyOrReturn(CheckValue("endProductType", endProductType, 0)); NextTest(); } - CHIP_ERROR TestReadsEndProductTypeAttributeConstraintsFromDut_1() + CHIP_ERROR TestReadsEndProductTypeAttributeConstraintsFromDut_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_1, OnFailureCallback_1); + this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(uint8_t endProductType) + void OnSuccessResponse_2(uint8_t endProductType) { VerifyOrReturn(CheckConstraintType("endProductType", "", "enum8")); VerifyOrReturn(CheckConstraintMaxValue("endProductType", endProductType, 23)); @@ -28979,16 +29495,20 @@ class Test_TC_WNCV_3_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : 1a: TH adjusts the the DUT to a non-open position\n"); - err = Test1aThAdjustsTheTheDutToANonOpenPosition_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 : 2a: TH sends UpOrOpen command to DUT\n"); - err = Test2aThSendsUpOrOpenCommandToDut_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : 1a: TH adjusts the the DUT to a non-open position\n"); + err = Test1aThAdjustsTheTheDutToANonOpenPosition_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : 3a: TH reads OperationalStatus attribute from DUT\n"); - err = Test3aThReadsOperationalStatusAttributeFromDut_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : 2a: TH sends UpOrOpen command to DUT\n"); + err = Test2aThSendsUpOrOpenCommandToDut_2(); + break; + case 3: + ChipLogProgress(chipTool, " ***** Test Step 3 : 3a: TH reads OperationalStatus attribute from DUT\n"); + err = Test3aThReadsOperationalStatusAttributeFromDut_3(); break; } @@ -29001,23 +29521,25 @@ class Test_TC_WNCV_3_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 3; + const uint16_t mTestCount = 4; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint8_t operationalStatus) + static void OnSuccessCallback_3(void * context, uint8_t operationalStatus) { - (static_cast(context))->OnSuccessResponse_2(operationalStatus); + (static_cast(context))->OnSuccessResponse_3(operationalStatus); } // // Tests methods // - CHIP_ERROR Test1aThAdjustsTheTheDutToANonOpenPosition_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR Test1aThAdjustsTheTheDutToANonOpenPosition_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::WindowCovering::Commands::DownOrClose::Type; @@ -29025,22 +29547,22 @@ class Test_TC_WNCV_3_1 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR Test2aThSendsUpOrOpenCommandToDut_1() + CHIP_ERROR Test2aThSendsUpOrOpenCommandToDut_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Type; @@ -29048,34 +29570,34 @@ class Test_TC_WNCV_3_1 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_1(); + (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_2(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1() { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } - CHIP_ERROR Test3aThReadsOperationalStatusAttributeFromDut_2() + CHIP_ERROR Test3aThReadsOperationalStatusAttributeFromDut_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint8_t operationalStatus) + void OnSuccessResponse_3(uint8_t operationalStatus) { VerifyOrReturn(CheckValue("operationalStatus", operationalStatus, 0)); @@ -29114,16 +29636,20 @@ class Test_TC_WNCV_3_2 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : 1a: TH adjusts the the DUT to a non-closed position\n"); - err = Test1aThAdjustsTheTheDutToANonClosedPosition_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 : 2a: TH sends DownOrClose command to DUT\n"); - err = Test2aThSendsDownOrCloseCommandToDut_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : 1a: TH adjusts the the DUT to a non-closed position\n"); + err = Test1aThAdjustsTheTheDutToANonClosedPosition_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : 3a: TH reads OperationalStatus attribute from DUT\n"); - err = Test3aThReadsOperationalStatusAttributeFromDut_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : 2a: TH sends DownOrClose command to DUT\n"); + err = Test2aThSendsDownOrCloseCommandToDut_2(); + break; + case 3: + ChipLogProgress(chipTool, " ***** Test Step 3 : 3a: TH reads OperationalStatus attribute from DUT\n"); + err = Test3aThReadsOperationalStatusAttributeFromDut_3(); break; } @@ -29136,23 +29662,25 @@ class Test_TC_WNCV_3_2 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 3; + const uint16_t mTestCount = 4; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint8_t operationalStatus) + static void OnSuccessCallback_3(void * context, uint8_t operationalStatus) { - (static_cast(context))->OnSuccessResponse_2(operationalStatus); + (static_cast(context))->OnSuccessResponse_3(operationalStatus); } // // Tests methods // - CHIP_ERROR Test1aThAdjustsTheTheDutToANonClosedPosition_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR Test1aThAdjustsTheTheDutToANonClosedPosition_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Type; @@ -29160,22 +29688,22 @@ class Test_TC_WNCV_3_2 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR Test2aThSendsDownOrCloseCommandToDut_1() + CHIP_ERROR Test2aThSendsDownOrCloseCommandToDut_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::WindowCovering::Commands::DownOrClose::Type; @@ -29183,34 +29711,34 @@ class Test_TC_WNCV_3_2 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_1(); + (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_2(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1() { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } - CHIP_ERROR Test3aThReadsOperationalStatusAttributeFromDut_2() + CHIP_ERROR Test3aThReadsOperationalStatusAttributeFromDut_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint8_t operationalStatus) + void OnSuccessResponse_3(uint8_t operationalStatus) { VerifyOrReturn(CheckValue("operationalStatus", operationalStatus, 0)); @@ -29249,16 +29777,20 @@ class Test_TC_WNCV_3_3 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : 1a: TH adjusts the the DUT to a non-open position\n"); - err = Test1aThAdjustsTheTheDutToANonOpenPosition_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 : 2a: TH sends StopMotion command to DUT\n"); - err = Test2aThSendsStopMotionCommandToDut_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : 1a: TH adjusts the the DUT to a non-open position\n"); + err = Test1aThAdjustsTheTheDutToANonOpenPosition_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : 2b: TH reads OperationalStatus attribute from DUT\n"); - err = Test2bThReadsOperationalStatusAttributeFromDut_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : 2a: TH sends StopMotion command to DUT\n"); + err = Test2aThSendsStopMotionCommandToDut_2(); + break; + case 3: + ChipLogProgress(chipTool, " ***** Test Step 3 : 2b: TH reads OperationalStatus attribute from DUT\n"); + err = Test2bThReadsOperationalStatusAttributeFromDut_3(); break; } @@ -29271,23 +29803,25 @@ class Test_TC_WNCV_3_3 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 3; + const uint16_t mTestCount = 4; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint8_t operationalStatus) + static void OnSuccessCallback_3(void * context, uint8_t operationalStatus) { - (static_cast(context))->OnSuccessResponse_2(operationalStatus); + (static_cast(context))->OnSuccessResponse_3(operationalStatus); } // // Tests methods // - CHIP_ERROR Test1aThAdjustsTheTheDutToANonOpenPosition_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR Test1aThAdjustsTheTheDutToANonOpenPosition_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Type; @@ -29295,22 +29829,22 @@ class Test_TC_WNCV_3_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR Test2aThSendsStopMotionCommandToDut_1() + CHIP_ERROR Test2aThSendsStopMotionCommandToDut_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::WindowCovering::Commands::StopMotion::Type; @@ -29318,34 +29852,34 @@ class Test_TC_WNCV_3_3 : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_1(); + (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_2(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1() { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } - CHIP_ERROR Test2bThReadsOperationalStatusAttributeFromDut_2() + CHIP_ERROR Test2bThReadsOperationalStatusAttributeFromDut_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint8_t operationalStatus) + void OnSuccessResponse_3(uint8_t operationalStatus) { VerifyOrReturn(CheckValue("operationalStatus", operationalStatus, 0)); @@ -29384,12 +29918,16 @@ class TV_TargetNavigatorCluster : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Read attribute Target Navigator list\n"); - err = TestReadAttributeTargetNavigatorList_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 : Navigate Target Command\n"); - err = TestNavigateTargetCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Read attribute Target Navigator list\n"); + err = TestReadAttributeTargetNavigatorList_1(); + break; + case 2: + ChipLogProgress(chipTool, " ***** Test Step 2 : Navigate Target Command\n"); + err = TestNavigateTargetCommand_2(); break; } @@ -29402,38 +29940,40 @@ class TV_TargetNavigatorCluster : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 2; + const uint16_t mTestCount = 3; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0( + static void OnSuccessCallback_1( void * context, const chip::app::DataModel::DecodableList< chip::app::Clusters::TargetNavigator::Structs::NavigateTargetTargetInfo::DecodableType> & targetNavigatorList) { - (static_cast(context))->OnSuccessResponse_0(targetNavigatorList); + (static_cast(context))->OnSuccessResponse_1(targetNavigatorList); } // // Tests methods // - CHIP_ERROR TestReadAttributeTargetNavigatorList_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadAttributeTargetNavigatorList_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TargetNavigatorClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0( + void OnSuccessResponse_1( const chip::app::DataModel::DecodableList< chip::app::Clusters::TargetNavigator::Structs::NavigateTargetTargetInfo::DecodableType> & targetNavigatorList) { @@ -29449,7 +29989,7 @@ class TV_TargetNavigatorCluster : public TestCommand NextTest(); } - CHIP_ERROR TestNavigateTargetCommand_1() + CHIP_ERROR TestNavigateTargetCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TargetNavigator::Commands::NavigateTarget::Type; @@ -29459,20 +29999,20 @@ class TV_TargetNavigatorCluster : public TestCommand request.data = chip::Span("1garbage: not in length on purpose", 1); auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_1(data.status, data.data); + (static_cast(context))->OnSuccessResponse_2(data.status, data.data); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_2(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(chip::app::Clusters::TargetNavigator::NavigateTargetStatus status, chip::CharSpan data) { NextTest(); } + void OnSuccessResponse_2(chip::app::Clusters::TargetNavigator::NavigateTargetStatus status, chip::CharSpan data) { NextTest(); } }; class TV_AudioOutputCluster : public TestCommand @@ -29506,16 +30046,20 @@ class TV_AudioOutputCluster : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Read attribute Audio Output list\n"); - err = TestReadAttributeAudioOutputList_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 : Select Output Command\n"); - err = TestSelectOutputCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Read attribute Audio Output list\n"); + err = TestReadAttributeAudioOutputList_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Rename Output Command\n"); - err = TestRenameOutputCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Select Output Command\n"); + err = TestSelectOutputCommand_2(); + break; + case 3: + ChipLogProgress(chipTool, " ***** Test Step 3 : Rename Output Command\n"); + err = TestRenameOutputCommand_3(); break; } @@ -29528,38 +30072,40 @@ class TV_AudioOutputCluster : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 3; + const uint16_t mTestCount = 4; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0( + static void OnSuccessCallback_1( void * context, const chip::app::DataModel::DecodableList & audioOutputList) { - (static_cast(context))->OnSuccessResponse_0(audioOutputList); + (static_cast(context))->OnSuccessResponse_1(audioOutputList); } // // Tests methods // - CHIP_ERROR TestReadAttributeAudioOutputList_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadAttributeAudioOutputList_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 2; chip::Controller::AudioOutputClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0( + void OnSuccessResponse_1( const chip::app::DataModel::DecodableList & audioOutputList) { @@ -29581,7 +30127,7 @@ class TV_AudioOutputCluster : public TestCommand NextTest(); } - CHIP_ERROR TestSelectOutputCommand_1() + CHIP_ERROR TestSelectOutputCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 2; using RequestType = chip::app::Clusters::AudioOutput::Commands::SelectOutput::Type; @@ -29590,22 +30136,22 @@ class TV_AudioOutputCluster : public TestCommand request.index = 1; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_1(); + (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_2(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1() { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } - CHIP_ERROR TestRenameOutputCommand_2() + CHIP_ERROR TestRenameOutputCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 2; using RequestType = chip::app::Clusters::AudioOutput::Commands::RenameOutput::Type; @@ -29615,20 +30161,20 @@ class TV_AudioOutputCluster : public TestCommand request.name = chip::Span("exampleNamegarbage: not in length on purpose", 11); auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } }; class TV_ApplicationLauncherCluster : public TestCommand @@ -29662,20 +30208,24 @@ class TV_ApplicationLauncherCluster : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Read attribute Application Launcher list\n"); - err = TestReadAttributeApplicationLauncherList_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 : Launch App Command\n"); - err = TestLaunchAppCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Read attribute Application Launcher list\n"); + err = TestReadAttributeApplicationLauncherList_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Read attribute catalog vendor id\n"); - err = TestReadAttributeCatalogVendorId_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Launch App Command\n"); + err = TestLaunchAppCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Read attribute application id\n"); - err = TestReadAttributeApplicationId_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Read attribute catalog vendor id\n"); + err = TestReadAttributeCatalogVendorId_3(); + break; + case 4: + ChipLogProgress(chipTool, " ***** Test Step 4 : Read attribute application id\n"); + err = TestReadAttributeApplicationId_4(); break; } @@ -29688,55 +30238,57 @@ class TV_ApplicationLauncherCluster : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 4; + const uint16_t mTestCount = 5; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, const chip::app::DataModel::DecodableList & applicationLauncherList) + static void OnSuccessCallback_1(void * context, const chip::app::DataModel::DecodableList & applicationLauncherList) { - (static_cast(context))->OnSuccessResponse_0(applicationLauncherList); + (static_cast(context))->OnSuccessResponse_1(applicationLauncherList); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint8_t catalogVendorId) + static void OnSuccessCallback_3(void * context, uint8_t catalogVendorId) { - (static_cast(context))->OnSuccessResponse_2(catalogVendorId); + (static_cast(context))->OnSuccessResponse_3(catalogVendorId); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, uint8_t applicationId) + static void OnSuccessCallback_4(void * context, uint8_t applicationId) { - (static_cast(context))->OnSuccessResponse_3(applicationId); + (static_cast(context))->OnSuccessResponse_4(applicationId); } // // Tests methods // - CHIP_ERROR TestReadAttributeApplicationLauncherList_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadAttributeApplicationLauncherList_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ApplicationLauncherClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(const chip::app::DataModel::DecodableList & applicationLauncherList) + void OnSuccessResponse_1(const chip::app::DataModel::DecodableList & applicationLauncherList) { auto iter = applicationLauncherList.begin(); VerifyOrReturn(CheckNextListItemDecodes("applicationLauncherList", iter, 0)); @@ -29748,7 +30300,7 @@ class TV_ApplicationLauncherCluster : public TestCommand NextTest(); } - CHIP_ERROR TestLaunchAppCommand_1() + CHIP_ERROR TestLaunchAppCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ApplicationLauncher::Commands::LaunchApp::Type; @@ -29759,57 +30311,57 @@ class TV_ApplicationLauncherCluster : public TestCommand request.applicationId = chip::Span("appIdgarbage: not in length on purpose", 5); auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_1(data.status, data.data); + (static_cast(context))->OnSuccessResponse_2(data.status, data.data); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_2(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(chip::app::Clusters::ApplicationLauncher::ApplicationLauncherStatus status, chip::CharSpan data) + void OnSuccessResponse_2(chip::app::Clusters::ApplicationLauncher::ApplicationLauncherStatus status, chip::CharSpan data) { NextTest(); } - CHIP_ERROR TestReadAttributeCatalogVendorId_2() + CHIP_ERROR TestReadAttributeCatalogVendorId_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ApplicationLauncherClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint8_t catalogVendorId) + void OnSuccessResponse_3(uint8_t catalogVendorId) { VerifyOrReturn(CheckValue("catalogVendorId", catalogVendorId, 0)); NextTest(); } - CHIP_ERROR TestReadAttributeApplicationId_3() + CHIP_ERROR TestReadAttributeApplicationId_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ApplicationLauncherClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_3, OnFailureCallback_3); + this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint8_t applicationId) + void OnSuccessResponse_4(uint8_t applicationId) { VerifyOrReturn(CheckValue("applicationId", applicationId, 0)); @@ -29848,8 +30400,12 @@ class TV_KeypadInputCluster : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Send Key Command\n"); - err = TestSendKeyCommand_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 Key Command\n"); + err = TestSendKeyCommand_1(); break; } @@ -29862,13 +30418,15 @@ class TV_KeypadInputCluster : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 1; + const uint16_t mTestCount = 2; // // Tests methods // - CHIP_ERROR TestSendKeyCommand_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestSendKeyCommand_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::KeypadInput::Commands::SendKey::Type; @@ -29877,20 +30435,20 @@ class TV_KeypadInputCluster : public TestCommand request.keyCode = static_cast(3); auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(data.status); + (static_cast(context))->OnSuccessResponse_1(data.status); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(chip::app::Clusters::KeypadInput::KeypadInputStatus status) { NextTest(); } + void OnSuccessResponse_1(chip::app::Clusters::KeypadInput::KeypadInputStatus status) { NextTest(); } }; class TV_AccountLoginCluster : public TestCommand @@ -29924,12 +30482,16 @@ class TV_AccountLoginCluster : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Get Setup PIN Command\n"); - err = TestGetSetupPinCommand_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 : Login Command\n"); - err = TestLoginCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Get Setup PIN Command\n"); + err = TestGetSetupPinCommand_1(); + break; + case 2: + ChipLogProgress(chipTool, " ***** Test Step 2 : Login Command\n"); + err = TestLoginCommand_2(); break; } @@ -29942,13 +30504,15 @@ class TV_AccountLoginCluster : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 2; + const uint16_t mTestCount = 3; // // Tests methods // - CHIP_ERROR TestGetSetupPinCommand_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestGetSetupPinCommand_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; using RequestType = chip::app::Clusters::AccountLogin::Commands::GetSetupPIN::Type; @@ -29957,22 +30521,22 @@ class TV_AccountLoginCluster : public TestCommand request.tempAccountIdentifier = chip::Span("asdfgarbage: not in length on purpose", 4); auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(data.setupPIN); + (static_cast(context))->OnSuccessResponse_1(data.setupPIN); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(chip::CharSpan setupPIN) { NextTest(); } + void OnSuccessResponse_1(chip::CharSpan setupPIN) { NextTest(); } - CHIP_ERROR TestLoginCommand_1() + CHIP_ERROR TestLoginCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; using RequestType = chip::app::Clusters::AccountLogin::Commands::Login::Type; @@ -29982,20 +30546,20 @@ class TV_AccountLoginCluster : public TestCommand request.setupPIN = chip::Span("tempPin123garbage: not in length on purpose", 10); auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_1(); + (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_2(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1() { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } }; class TV_WakeOnLanCluster : public TestCommand @@ -30029,8 +30593,12 @@ class TV_WakeOnLanCluster : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Read mac address\n"); - err = TestReadMacAddress_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 : Read mac address\n"); + err = TestReadMacAddress_1(); break; } @@ -30043,35 +30611,37 @@ class TV_WakeOnLanCluster : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 1; + const uint16_t mTestCount = 2; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, chip::CharSpan wakeOnLanMacAddress) + static void OnSuccessCallback_1(void * context, chip::CharSpan wakeOnLanMacAddress) { - (static_cast(context))->OnSuccessResponse_0(wakeOnLanMacAddress); + (static_cast(context))->OnSuccessResponse_1(wakeOnLanMacAddress); } // // Tests methods // - CHIP_ERROR TestReadMacAddress_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadMacAddress_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::WakeOnLanClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(chip::CharSpan wakeOnLanMacAddress) + void OnSuccessResponse_1(chip::CharSpan wakeOnLanMacAddress) { VerifyOrReturn(CheckValueAsString("wakeOnLanMacAddress", wakeOnLanMacAddress, chip::CharSpan("00:00:00:00:00", 14))); @@ -30110,20 +30680,24 @@ class TV_ApplicationBasicCluster : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Change Status Command\n"); - err = TestChangeStatusCommand_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 : Read attribute vendor id\n"); - err = TestReadAttributeVendorId_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Change Status Command\n"); + err = TestChangeStatusCommand_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Read attribute product id\n"); - err = TestReadAttributeProductId_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Read attribute vendor id\n"); + err = TestReadAttributeVendorId_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Read attribute catalog vendor id\n"); - err = TestReadAttributeCatalogVendorId_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Read attribute product id\n"); + err = TestReadAttributeProductId_3(); + break; + case 4: + ChipLogProgress(chipTool, " ***** Test Step 4 : Read attribute catalog vendor id\n"); + err = TestReadAttributeCatalogVendorId_4(); break; } @@ -30136,43 +30710,45 @@ class TV_ApplicationBasicCluster : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 4; + const uint16_t mTestCount = 5; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint16_t vendorId) + static void OnSuccessCallback_2(void * context, uint16_t vendorId) { - (static_cast(context))->OnSuccessResponse_1(vendorId); + (static_cast(context))->OnSuccessResponse_2(vendorId); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint16_t productId) + static void OnSuccessCallback_3(void * context, uint16_t productId) { - (static_cast(context))->OnSuccessResponse_2(productId); + (static_cast(context))->OnSuccessResponse_3(productId); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, uint16_t catalogVendorId) + static void OnSuccessCallback_4(void * context, uint16_t catalogVendorId) { - (static_cast(context))->OnSuccessResponse_3(catalogVendorId); + (static_cast(context))->OnSuccessResponse_4(catalogVendorId); } // // Tests methods // - CHIP_ERROR TestChangeStatusCommand_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestChangeStatusCommand_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; using RequestType = chip::app::Clusters::ApplicationBasic::Commands::ChangeStatus::Type; @@ -30181,72 +30757,72 @@ class TV_ApplicationBasicCluster : public TestCommand request.status = static_cast(1); auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestReadAttributeVendorId_1() + CHIP_ERROR TestReadAttributeVendorId_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; chip::Controller::ApplicationBasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_1, OnFailureCallback_1); + this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(uint16_t vendorId) + void OnSuccessResponse_2(uint16_t vendorId) { VerifyOrReturn(CheckValue("vendorId", vendorId, 1U)); NextTest(); } - CHIP_ERROR TestReadAttributeProductId_2() + CHIP_ERROR TestReadAttributeProductId_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; chip::Controller::ApplicationBasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint16_t productId) + void OnSuccessResponse_3(uint16_t productId) { VerifyOrReturn(CheckValue("productId", productId, 1U)); NextTest(); } - CHIP_ERROR TestReadAttributeCatalogVendorId_3() + CHIP_ERROR TestReadAttributeCatalogVendorId_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; chip::Controller::ApplicationBasicClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_3, OnFailureCallback_3); + this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint16_t catalogVendorId) + void OnSuccessResponse_4(uint16_t catalogVendorId) { VerifyOrReturn(CheckValue("catalogVendorId", catalogVendorId, 1U)); @@ -30285,48 +30861,52 @@ class TV_MediaPlaybackCluster : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Media Playback Play Command\n"); - err = TestMediaPlaybackPlayCommand_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 : Media Playback Pause Command\n"); - err = TestMediaPlaybackPauseCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Media Playback Play Command\n"); + err = TestMediaPlaybackPlayCommand_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Media Playback Stop Command\n"); - err = TestMediaPlaybackStopCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Media Playback Pause Command\n"); + err = TestMediaPlaybackPauseCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Media Playback Start Over Command\n"); - err = TestMediaPlaybackStartOverCommand_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Media Playback Stop Command\n"); + err = TestMediaPlaybackStopCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Media Playback Previous Command\n"); - err = TestMediaPlaybackPreviousCommand_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Media Playback Start Over Command\n"); + err = TestMediaPlaybackStartOverCommand_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Media Playback Next Command\n"); - err = TestMediaPlaybackNextCommand_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Media Playback Previous Command\n"); + err = TestMediaPlaybackPreviousCommand_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Media Playback Rewind Command\n"); - err = TestMediaPlaybackRewindCommand_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Media Playback Next Command\n"); + err = TestMediaPlaybackNextCommand_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Media Playback Fast Forward Command\n"); - err = TestMediaPlaybackFastForwardCommand_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Media Playback Rewind Command\n"); + err = TestMediaPlaybackRewindCommand_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Media Playback Skip Forward Command\n"); - err = TestMediaPlaybackSkipForwardCommand_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : Media Playback Fast Forward Command\n"); + err = TestMediaPlaybackFastForwardCommand_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Media Playback Skip Backward Command\n"); - err = TestMediaPlaybackSkipBackwardCommand_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : Media Playback Skip Forward Command\n"); + err = TestMediaPlaybackSkipForwardCommand_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Media Playback Seek Command\n"); - err = TestMediaPlaybackSeekCommand_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : Media Playback Skip Backward Command\n"); + err = TestMediaPlaybackSkipBackwardCommand_10(); + break; + case 11: + ChipLogProgress(chipTool, " ***** Test Step 11 : Media Playback Seek Command\n"); + err = TestMediaPlaybackSeekCommand_11(); break; } @@ -30339,44 +30919,18 @@ class TV_MediaPlaybackCluster : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 11; + const uint16_t mTestCount = 12; // // Tests methods // - CHIP_ERROR TestMediaPlaybackPlayCommand_0() - { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; - using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaPlay::Type; - - RequestType request; - - auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(data.mediaPlaybackStatus); - }; - - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); - }; - - ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); - return CHIP_NO_ERROR; - } - - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } - - void OnSuccessResponse_0(chip::app::Clusters::MediaPlayback::MediaPlaybackStatus mediaPlaybackStatus) - { - VerifyOrReturn(CheckValue("mediaPlaybackStatus", mediaPlaybackStatus, 0)); - - NextTest(); - } + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } - CHIP_ERROR TestMediaPlaybackPauseCommand_1() + CHIP_ERROR TestMediaPlaybackPlayCommand_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; - using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaPause::Type; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaPlay::Type; RequestType request; @@ -30401,10 +30955,10 @@ class TV_MediaPlaybackCluster : public TestCommand NextTest(); } - CHIP_ERROR TestMediaPlaybackStopCommand_2() + CHIP_ERROR TestMediaPlaybackPauseCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; - using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaStop::Type; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaPause::Type; RequestType request; @@ -30429,10 +30983,10 @@ class TV_MediaPlaybackCluster : public TestCommand NextTest(); } - CHIP_ERROR TestMediaPlaybackStartOverCommand_3() + CHIP_ERROR TestMediaPlaybackStopCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; - using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaStartOver::Type; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaStop::Type; RequestType request; @@ -30457,10 +31011,10 @@ class TV_MediaPlaybackCluster : public TestCommand NextTest(); } - CHIP_ERROR TestMediaPlaybackPreviousCommand_4() + CHIP_ERROR TestMediaPlaybackStartOverCommand_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; - using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaPrevious::Type; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaStartOver::Type; RequestType request; @@ -30485,10 +31039,10 @@ class TV_MediaPlaybackCluster : public TestCommand NextTest(); } - CHIP_ERROR TestMediaPlaybackNextCommand_5() + CHIP_ERROR TestMediaPlaybackPreviousCommand_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; - using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaNext::Type; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaPrevious::Type; RequestType request; @@ -30513,10 +31067,10 @@ class TV_MediaPlaybackCluster : public TestCommand NextTest(); } - CHIP_ERROR TestMediaPlaybackRewindCommand_6() + CHIP_ERROR TestMediaPlaybackNextCommand_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; - using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaRewind::Type; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaNext::Type; RequestType request; @@ -30541,10 +31095,10 @@ class TV_MediaPlaybackCluster : public TestCommand NextTest(); } - CHIP_ERROR TestMediaPlaybackFastForwardCommand_7() + CHIP_ERROR TestMediaPlaybackRewindCommand_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; - using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaFastForward::Type; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaRewind::Type; RequestType request; @@ -30569,13 +31123,12 @@ class TV_MediaPlaybackCluster : public TestCommand NextTest(); } - CHIP_ERROR TestMediaPlaybackSkipForwardCommand_8() + CHIP_ERROR TestMediaPlaybackFastForwardCommand_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; - using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaSkipForward::Type; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaFastForward::Type; RequestType request; - request.deltaPositionMilliseconds = 100ULL; auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_8(data.mediaPlaybackStatus); @@ -30598,10 +31151,10 @@ class TV_MediaPlaybackCluster : public TestCommand NextTest(); } - CHIP_ERROR TestMediaPlaybackSkipBackwardCommand_9() + CHIP_ERROR TestMediaPlaybackSkipForwardCommand_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; - using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaSkipBackward::Type; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaSkipForward::Type; RequestType request; request.deltaPositionMilliseconds = 100ULL; @@ -30627,13 +31180,13 @@ class TV_MediaPlaybackCluster : public TestCommand NextTest(); } - CHIP_ERROR TestMediaPlaybackSeekCommand_10() + CHIP_ERROR TestMediaPlaybackSkipBackwardCommand_10() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; - using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaSeek::Type; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaSkipBackward::Type; RequestType request; - request.position = 100ULL; + request.deltaPositionMilliseconds = 100ULL; auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_10(data.mediaPlaybackStatus); @@ -30655,6 +31208,35 @@ class TV_MediaPlaybackCluster : public TestCommand NextTest(); } + + CHIP_ERROR TestMediaPlaybackSeekCommand_11() + { + const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 3; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaSeek::Type; + + RequestType request; + request.position = 100ULL; + + auto success = [](void * context, const typename RequestType::ResponseType & data) { + (static_cast(context))->OnSuccessResponse_11(data.mediaPlaybackStatus); + }; + + auto failure = [](void * context, EmberAfStatus status) { + (static_cast(context))->OnFailureResponse_11(status); + }; + + ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } + + void OnSuccessResponse_11(chip::app::Clusters::MediaPlayback::MediaPlaybackStatus mediaPlaybackStatus) + { + VerifyOrReturn(CheckValue("mediaPlaybackStatus", mediaPlaybackStatus, 0)); + + NextTest(); + } }; class TV_TvChannelCluster : public TestCommand @@ -30688,16 +31270,20 @@ class TV_TvChannelCluster : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Read attribute TV Channel list\n"); - err = TestReadAttributeTvChannelList_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 : Change Channel By Number Command\n"); - err = TestChangeChannelByNumberCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Read attribute TV Channel list\n"); + err = TestReadAttributeTvChannelList_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Skip Channel Command\n"); - err = TestSkipChannelCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Change Channel By Number Command\n"); + err = TestChangeChannelByNumberCommand_2(); + break; + case 3: + ChipLogProgress(chipTool, " ***** Test Step 3 : Skip Channel Command\n"); + err = TestSkipChannelCommand_3(); break; } @@ -30710,38 +31296,40 @@ class TV_TvChannelCluster : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 3; + const uint16_t mTestCount = 4; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0( + static void OnSuccessCallback_1( void * context, const chip::app::DataModel::DecodableList & tvChannelList) { - (static_cast(context))->OnSuccessResponse_0(tvChannelList); + (static_cast(context))->OnSuccessResponse_1(tvChannelList); } // // Tests methods // - CHIP_ERROR TestReadAttributeTvChannelList_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadAttributeTvChannelList_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TvChannelClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_0, - OnFailureCallback_0); + return cluster.ReadAttribute(this, OnSuccessCallback_1, + OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0( + void OnSuccessResponse_1( const chip::app::DataModel::DecodableList & tvChannelList) { @@ -30767,7 +31355,7 @@ class TV_TvChannelCluster : public TestCommand NextTest(); } - CHIP_ERROR TestChangeChannelByNumberCommand_1() + CHIP_ERROR TestChangeChannelByNumberCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TvChannel::Commands::ChangeChannelByNumber::Type; @@ -30777,22 +31365,22 @@ class TV_TvChannelCluster : public TestCommand request.minorNumber = 2U; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_1(); + (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_2(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1() { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } - CHIP_ERROR TestSkipChannelCommand_2() + CHIP_ERROR TestSkipChannelCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TvChannel::Commands::SkipChannel::Type; @@ -30801,20 +31389,20 @@ class TV_TvChannelCluster : public TestCommand request.count = 1U; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(); + (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } }; class TV_LowPowerCluster : public TestCommand @@ -30848,8 +31436,12 @@ class TV_LowPowerCluster : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Sleep Input Status Command\n"); - err = TestSleepInputStatusCommand_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 : Sleep Input Status Command\n"); + err = TestSleepInputStatusCommand_1(); break; } @@ -30862,13 +31454,15 @@ class TV_LowPowerCluster : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 1; + const uint16_t mTestCount = 2; // // Tests methods // - CHIP_ERROR TestSleepInputStatusCommand_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestSleepInputStatusCommand_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::LowPower::Commands::Sleep::Type; @@ -30876,20 +31470,20 @@ class TV_LowPowerCluster : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } }; class TV_MediaInputCluster : public TestCommand @@ -30923,28 +31517,32 @@ class TV_MediaInputCluster : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Read attribute media input list\n"); - err = TestReadAttributeMediaInputList_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 : Select Input Command\n"); - err = TestSelectInputCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Read attribute media input list\n"); + err = TestReadAttributeMediaInputList_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Read current input list\n"); - err = TestReadCurrentInputList_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Select Input Command\n"); + err = TestSelectInputCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Hide Input Status Command\n"); - err = TestHideInputStatusCommand_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Read current input list\n"); + err = TestReadCurrentInputList_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Show Input Status Command\n"); - err = TestShowInputStatusCommand_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Hide Input Status Command\n"); + err = TestHideInputStatusCommand_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Rename Input Command\n"); - err = TestRenameInputCommand_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Show Input Status Command\n"); + err = TestShowInputStatusCommand_5(); + break; + case 6: + ChipLogProgress(chipTool, " ***** Test Step 6 : Rename Input Command\n"); + err = TestRenameInputCommand_6(); break; } @@ -30957,48 +31555,50 @@ class TV_MediaInputCluster : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 6; + const uint16_t mTestCount = 7; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0( + static void OnSuccessCallback_1( void * context, const chip::app::DataModel::DecodableList & mediaInputList) { - (static_cast(context))->OnSuccessResponse_0(mediaInputList); + (static_cast(context))->OnSuccessResponse_1(mediaInputList); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint8_t currentMediaInput) + static void OnSuccessCallback_3(void * context, uint8_t currentMediaInput) { - (static_cast(context))->OnSuccessResponse_2(currentMediaInput); + (static_cast(context))->OnSuccessResponse_3(currentMediaInput); } // // Tests methods // - CHIP_ERROR TestReadAttributeMediaInputList_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadAttributeMediaInputList_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::MediaInputClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0( + void OnSuccessResponse_1( const chip::app::DataModel::DecodableList & mediaInputList) { @@ -31020,7 +31620,7 @@ class TV_MediaInputCluster : public TestCommand NextTest(); } - CHIP_ERROR TestSelectInputCommand_1() + CHIP_ERROR TestSelectInputCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::MediaInput::Commands::SelectInput::Type; @@ -31029,41 +31629,41 @@ class TV_MediaInputCluster : public TestCommand request.index = 1; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_1(); + (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_2(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1() { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } - CHIP_ERROR TestReadCurrentInputList_2() + CHIP_ERROR TestReadCurrentInputList_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::MediaInputClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint8_t currentMediaInput) + void OnSuccessResponse_3(uint8_t currentMediaInput) { VerifyOrReturn(CheckValue("currentMediaInput", currentMediaInput, 1)); NextTest(); } - CHIP_ERROR TestHideInputStatusCommand_3() + CHIP_ERROR TestHideInputStatusCommand_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::MediaInput::Commands::HideInputStatus::Type; @@ -31071,22 +31671,22 @@ class TV_MediaInputCluster : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_3(); + (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_4(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3() { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } - CHIP_ERROR TestShowInputStatusCommand_4() + CHIP_ERROR TestShowInputStatusCommand_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::MediaInput::Commands::ShowInputStatus::Type; @@ -31094,22 +31694,22 @@ class TV_MediaInputCluster : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_4(); + (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_5(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4() { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } - CHIP_ERROR TestRenameInputCommand_5() + CHIP_ERROR TestRenameInputCommand_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::MediaInput::Commands::RenameInput::Type; @@ -31119,20 +31719,20 @@ class TV_MediaInputCluster : public TestCommand request.name = chip::Span("newNamegarbage: not in length on purpose", 7); auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_5(); + (static_cast(context))->OnSuccessResponse_6(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_6(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5() { NextTest(); } + void OnSuccessResponse_6() { NextTest(); } }; class TestCluster : public TestCommand @@ -31166,1043 +31766,1047 @@ class TestCluster : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Send Test Command\n"); - err = TestSendTestCommand_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 Not Handled Command\n"); - err = TestSendTestNotHandledCommand_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Send Test Command\n"); + err = TestSendTestCommand_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Send Test Specific Command\n"); - err = TestSendTestSpecificCommand_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Send Test Not Handled Command\n"); + err = TestSendTestNotHandledCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Send Test Add Arguments Command\n"); - err = TestSendTestAddArgumentsCommand_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Send Test Specific Command\n"); + err = TestSendTestSpecificCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Send failing Test Add Arguments Command\n"); - err = TestSendFailingTestAddArgumentsCommand_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Send Test Add Arguments Command\n"); + err = TestSendTestAddArgumentsCommand_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Read attribute BOOLEAN Default Value\n"); - err = TestReadAttributeBooleanDefaultValue_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Send failing Test Add Arguments Command\n"); + err = TestSendFailingTestAddArgumentsCommand_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Write attribute BOOLEAN True\n"); - err = TestWriteAttributeBooleanTrue_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Read attribute BOOLEAN Default Value\n"); + err = TestReadAttributeBooleanDefaultValue_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Read attribute BOOLEAN True\n"); - err = TestReadAttributeBooleanTrue_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Write attribute BOOLEAN True\n"); + err = TestWriteAttributeBooleanTrue_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Write attribute BOOLEAN False\n"); - err = TestWriteAttributeBooleanFalse_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : Read attribute BOOLEAN True\n"); + err = TestReadAttributeBooleanTrue_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Read attribute BOOLEAN False\n"); - err = TestReadAttributeBooleanFalse_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : Write attribute BOOLEAN False\n"); + err = TestWriteAttributeBooleanFalse_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Read attribute BITMAP8 Default Value\n"); - err = TestReadAttributeBitmap8DefaultValue_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : Read attribute BOOLEAN False\n"); + err = TestReadAttributeBooleanFalse_10(); break; case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : Write attribute BITMAP8 Max Value\n"); - err = TestWriteAttributeBitmap8MaxValue_11(); + ChipLogProgress(chipTool, " ***** Test Step 11 : Read attribute BITMAP8 Default Value\n"); + err = TestReadAttributeBitmap8DefaultValue_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : Read attribute BITMAP8 Max Value\n"); - err = TestReadAttributeBitmap8MaxValue_12(); + ChipLogProgress(chipTool, " ***** Test Step 12 : Write attribute BITMAP8 Max Value\n"); + err = TestWriteAttributeBitmap8MaxValue_12(); break; case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : Write attribute BITMAP8 Min Value\n"); - err = TestWriteAttributeBitmap8MinValue_13(); + ChipLogProgress(chipTool, " ***** Test Step 13 : Read attribute BITMAP8 Max Value\n"); + err = TestReadAttributeBitmap8MaxValue_13(); break; case 14: - ChipLogProgress(chipTool, " ***** Test Step 14 : Read attribute BITMAP8 Min Value\n"); - err = TestReadAttributeBitmap8MinValue_14(); + ChipLogProgress(chipTool, " ***** Test Step 14 : Write attribute BITMAP8 Min Value\n"); + err = TestWriteAttributeBitmap8MinValue_14(); break; case 15: - ChipLogProgress(chipTool, " ***** Test Step 15 : Read attribute BITMAP16 Default Value\n"); - err = TestReadAttributeBitmap16DefaultValue_15(); + ChipLogProgress(chipTool, " ***** Test Step 15 : Read attribute BITMAP8 Min Value\n"); + err = TestReadAttributeBitmap8MinValue_15(); break; case 16: - ChipLogProgress(chipTool, " ***** Test Step 16 : Write attribute BITMAP16 Max Value\n"); - err = TestWriteAttributeBitmap16MaxValue_16(); + ChipLogProgress(chipTool, " ***** Test Step 16 : Read attribute BITMAP16 Default Value\n"); + err = TestReadAttributeBitmap16DefaultValue_16(); break; case 17: - ChipLogProgress(chipTool, " ***** Test Step 17 : Read attribute BITMAP16 Max Value\n"); - err = TestReadAttributeBitmap16MaxValue_17(); + ChipLogProgress(chipTool, " ***** Test Step 17 : Write attribute BITMAP16 Max Value\n"); + err = TestWriteAttributeBitmap16MaxValue_17(); break; case 18: - ChipLogProgress(chipTool, " ***** Test Step 18 : Write attribute BITMAP16 Min Value\n"); - err = TestWriteAttributeBitmap16MinValue_18(); + ChipLogProgress(chipTool, " ***** Test Step 18 : Read attribute BITMAP16 Max Value\n"); + err = TestReadAttributeBitmap16MaxValue_18(); break; case 19: - ChipLogProgress(chipTool, " ***** Test Step 19 : Read attribute BITMAP16 Min Value\n"); - err = TestReadAttributeBitmap16MinValue_19(); + ChipLogProgress(chipTool, " ***** Test Step 19 : Write attribute BITMAP16 Min Value\n"); + err = TestWriteAttributeBitmap16MinValue_19(); break; case 20: - ChipLogProgress(chipTool, " ***** Test Step 20 : Read attribute BITMAP32 Default Value\n"); - err = TestReadAttributeBitmap32DefaultValue_20(); + ChipLogProgress(chipTool, " ***** Test Step 20 : Read attribute BITMAP16 Min Value\n"); + err = TestReadAttributeBitmap16MinValue_20(); break; case 21: - ChipLogProgress(chipTool, " ***** Test Step 21 : Write attribute BITMAP32 Max Value\n"); - err = TestWriteAttributeBitmap32MaxValue_21(); + ChipLogProgress(chipTool, " ***** Test Step 21 : Read attribute BITMAP32 Default Value\n"); + err = TestReadAttributeBitmap32DefaultValue_21(); break; case 22: - ChipLogProgress(chipTool, " ***** Test Step 22 : Read attribute BITMAP32 Max Value\n"); - err = TestReadAttributeBitmap32MaxValue_22(); + ChipLogProgress(chipTool, " ***** Test Step 22 : Write attribute BITMAP32 Max Value\n"); + err = TestWriteAttributeBitmap32MaxValue_22(); break; case 23: - ChipLogProgress(chipTool, " ***** Test Step 23 : Write attribute BITMAP32 Min Value\n"); - err = TestWriteAttributeBitmap32MinValue_23(); + ChipLogProgress(chipTool, " ***** Test Step 23 : Read attribute BITMAP32 Max Value\n"); + err = TestReadAttributeBitmap32MaxValue_23(); break; case 24: - ChipLogProgress(chipTool, " ***** Test Step 24 : Read attribute BITMAP32 Min Value\n"); - err = TestReadAttributeBitmap32MinValue_24(); + ChipLogProgress(chipTool, " ***** Test Step 24 : Write attribute BITMAP32 Min Value\n"); + err = TestWriteAttributeBitmap32MinValue_24(); break; case 25: - ChipLogProgress(chipTool, " ***** Test Step 25 : Read attribute BITMAP64 Default Value\n"); - err = TestReadAttributeBitmap64DefaultValue_25(); + ChipLogProgress(chipTool, " ***** Test Step 25 : Read attribute BITMAP32 Min Value\n"); + err = TestReadAttributeBitmap32MinValue_25(); break; case 26: - ChipLogProgress(chipTool, " ***** Test Step 26 : Write attribute BITMAP64 Max Value\n"); - err = TestWriteAttributeBitmap64MaxValue_26(); + ChipLogProgress(chipTool, " ***** Test Step 26 : Read attribute BITMAP64 Default Value\n"); + err = TestReadAttributeBitmap64DefaultValue_26(); break; case 27: - ChipLogProgress(chipTool, " ***** Test Step 27 : Read attribute BITMAP64 Max Value\n"); - err = TestReadAttributeBitmap64MaxValue_27(); + ChipLogProgress(chipTool, " ***** Test Step 27 : Write attribute BITMAP64 Max Value\n"); + err = TestWriteAttributeBitmap64MaxValue_27(); break; case 28: - ChipLogProgress(chipTool, " ***** Test Step 28 : Write attribute BITMAP64 Min Value\n"); - err = TestWriteAttributeBitmap64MinValue_28(); + ChipLogProgress(chipTool, " ***** Test Step 28 : Read attribute BITMAP64 Max Value\n"); + err = TestReadAttributeBitmap64MaxValue_28(); break; case 29: - ChipLogProgress(chipTool, " ***** Test Step 29 : Read attribute BITMAP64 Min Value\n"); - err = TestReadAttributeBitmap64MinValue_29(); + ChipLogProgress(chipTool, " ***** Test Step 29 : Write attribute BITMAP64 Min Value\n"); + err = TestWriteAttributeBitmap64MinValue_29(); break; case 30: - ChipLogProgress(chipTool, " ***** Test Step 30 : Read attribute INT8U Default Value\n"); - err = TestReadAttributeInt8uDefaultValue_30(); + ChipLogProgress(chipTool, " ***** Test Step 30 : Read attribute BITMAP64 Min Value\n"); + err = TestReadAttributeBitmap64MinValue_30(); break; case 31: - ChipLogProgress(chipTool, " ***** Test Step 31 : Write attribute INT8U Max Value\n"); - err = TestWriteAttributeInt8uMaxValue_31(); + ChipLogProgress(chipTool, " ***** Test Step 31 : Read attribute INT8U Default Value\n"); + err = TestReadAttributeInt8uDefaultValue_31(); break; case 32: - ChipLogProgress(chipTool, " ***** Test Step 32 : Read attribute INT8U Max Value\n"); - err = TestReadAttributeInt8uMaxValue_32(); + ChipLogProgress(chipTool, " ***** Test Step 32 : Write attribute INT8U Max Value\n"); + err = TestWriteAttributeInt8uMaxValue_32(); break; case 33: - ChipLogProgress(chipTool, " ***** Test Step 33 : Write attribute INT8U Min Value\n"); - err = TestWriteAttributeInt8uMinValue_33(); + ChipLogProgress(chipTool, " ***** Test Step 33 : Read attribute INT8U Max Value\n"); + err = TestReadAttributeInt8uMaxValue_33(); break; case 34: - ChipLogProgress(chipTool, " ***** Test Step 34 : Read attribute INT8U Min Value\n"); - err = TestReadAttributeInt8uMinValue_34(); + ChipLogProgress(chipTool, " ***** Test Step 34 : Write attribute INT8U Min Value\n"); + err = TestWriteAttributeInt8uMinValue_34(); break; case 35: - ChipLogProgress(chipTool, " ***** Test Step 35 : Read attribute INT16U Default Value\n"); - err = TestReadAttributeInt16uDefaultValue_35(); + ChipLogProgress(chipTool, " ***** Test Step 35 : Read attribute INT8U Min Value\n"); + err = TestReadAttributeInt8uMinValue_35(); break; case 36: - ChipLogProgress(chipTool, " ***** Test Step 36 : Write attribute INT16U Max Value\n"); - err = TestWriteAttributeInt16uMaxValue_36(); + ChipLogProgress(chipTool, " ***** Test Step 36 : Read attribute INT16U Default Value\n"); + err = TestReadAttributeInt16uDefaultValue_36(); break; case 37: - ChipLogProgress(chipTool, " ***** Test Step 37 : Read attribute INT16U Max Value\n"); - err = TestReadAttributeInt16uMaxValue_37(); + ChipLogProgress(chipTool, " ***** Test Step 37 : Write attribute INT16U Max Value\n"); + err = TestWriteAttributeInt16uMaxValue_37(); break; case 38: - ChipLogProgress(chipTool, " ***** Test Step 38 : Write attribute INT16U Min Value\n"); - err = TestWriteAttributeInt16uMinValue_38(); + ChipLogProgress(chipTool, " ***** Test Step 38 : Read attribute INT16U Max Value\n"); + err = TestReadAttributeInt16uMaxValue_38(); break; case 39: - ChipLogProgress(chipTool, " ***** Test Step 39 : Read attribute INT16U Min Value\n"); - err = TestReadAttributeInt16uMinValue_39(); + ChipLogProgress(chipTool, " ***** Test Step 39 : Write attribute INT16U Min Value\n"); + err = TestWriteAttributeInt16uMinValue_39(); break; case 40: - ChipLogProgress(chipTool, " ***** Test Step 40 : Read attribute INT32U Default Value\n"); - err = TestReadAttributeInt32uDefaultValue_40(); + ChipLogProgress(chipTool, " ***** Test Step 40 : Read attribute INT16U Min Value\n"); + err = TestReadAttributeInt16uMinValue_40(); break; case 41: - ChipLogProgress(chipTool, " ***** Test Step 41 : Write attribute INT32U Max Value\n"); - err = TestWriteAttributeInt32uMaxValue_41(); + ChipLogProgress(chipTool, " ***** Test Step 41 : Read attribute INT32U Default Value\n"); + err = TestReadAttributeInt32uDefaultValue_41(); break; case 42: - ChipLogProgress(chipTool, " ***** Test Step 42 : Read attribute INT32U Max Value\n"); - err = TestReadAttributeInt32uMaxValue_42(); + ChipLogProgress(chipTool, " ***** Test Step 42 : Write attribute INT32U Max Value\n"); + err = TestWriteAttributeInt32uMaxValue_42(); break; case 43: - ChipLogProgress(chipTool, " ***** Test Step 43 : Write attribute INT32U Min Value\n"); - err = TestWriteAttributeInt32uMinValue_43(); + ChipLogProgress(chipTool, " ***** Test Step 43 : Read attribute INT32U Max Value\n"); + err = TestReadAttributeInt32uMaxValue_43(); break; case 44: - ChipLogProgress(chipTool, " ***** Test Step 44 : Read attribute INT32U Min Value\n"); - err = TestReadAttributeInt32uMinValue_44(); + ChipLogProgress(chipTool, " ***** Test Step 44 : Write attribute INT32U Min Value\n"); + err = TestWriteAttributeInt32uMinValue_44(); break; case 45: - ChipLogProgress(chipTool, " ***** Test Step 45 : Read attribute INT64U Default Value\n"); - err = TestReadAttributeInt64uDefaultValue_45(); + ChipLogProgress(chipTool, " ***** Test Step 45 : Read attribute INT32U Min Value\n"); + err = TestReadAttributeInt32uMinValue_45(); break; case 46: - ChipLogProgress(chipTool, " ***** Test Step 46 : Write attribute INT64U Max Value\n"); - err = TestWriteAttributeInt64uMaxValue_46(); + ChipLogProgress(chipTool, " ***** Test Step 46 : Read attribute INT64U Default Value\n"); + err = TestReadAttributeInt64uDefaultValue_46(); break; case 47: - ChipLogProgress(chipTool, " ***** Test Step 47 : Read attribute INT64U Max Value\n"); - err = TestReadAttributeInt64uMaxValue_47(); + ChipLogProgress(chipTool, " ***** Test Step 47 : Write attribute INT64U Max Value\n"); + err = TestWriteAttributeInt64uMaxValue_47(); break; case 48: - ChipLogProgress(chipTool, " ***** Test Step 48 : Write attribute INT64U Min Value\n"); - err = TestWriteAttributeInt64uMinValue_48(); + ChipLogProgress(chipTool, " ***** Test Step 48 : Read attribute INT64U Max Value\n"); + err = TestReadAttributeInt64uMaxValue_48(); break; case 49: - ChipLogProgress(chipTool, " ***** Test Step 49 : Read attribute INT64U Min Value\n"); - err = TestReadAttributeInt64uMinValue_49(); + ChipLogProgress(chipTool, " ***** Test Step 49 : Write attribute INT64U Min Value\n"); + err = TestWriteAttributeInt64uMinValue_49(); break; case 50: - ChipLogProgress(chipTool, " ***** Test Step 50 : Read attribute INT8S Default Value\n"); - err = TestReadAttributeInt8sDefaultValue_50(); + ChipLogProgress(chipTool, " ***** Test Step 50 : Read attribute INT64U Min Value\n"); + err = TestReadAttributeInt64uMinValue_50(); break; case 51: - ChipLogProgress(chipTool, " ***** Test Step 51 : Write attribute INT8S Max Value\n"); - err = TestWriteAttributeInt8sMaxValue_51(); + ChipLogProgress(chipTool, " ***** Test Step 51 : Read attribute INT8S Default Value\n"); + err = TestReadAttributeInt8sDefaultValue_51(); break; case 52: - ChipLogProgress(chipTool, " ***** Test Step 52 : Read attribute INT8S Max Value\n"); - err = TestReadAttributeInt8sMaxValue_52(); + ChipLogProgress(chipTool, " ***** Test Step 52 : Write attribute INT8S Max Value\n"); + err = TestWriteAttributeInt8sMaxValue_52(); break; case 53: - ChipLogProgress(chipTool, " ***** Test Step 53 : Write attribute INT8S Min Value\n"); - err = TestWriteAttributeInt8sMinValue_53(); + ChipLogProgress(chipTool, " ***** Test Step 53 : Read attribute INT8S Max Value\n"); + err = TestReadAttributeInt8sMaxValue_53(); break; case 54: - ChipLogProgress(chipTool, " ***** Test Step 54 : Read attribute INT8S Min Value\n"); - err = TestReadAttributeInt8sMinValue_54(); + ChipLogProgress(chipTool, " ***** Test Step 54 : Write attribute INT8S Min Value\n"); + err = TestWriteAttributeInt8sMinValue_54(); break; case 55: - ChipLogProgress(chipTool, " ***** Test Step 55 : Write attribute INT8S Default Value\n"); - err = TestWriteAttributeInt8sDefaultValue_55(); + ChipLogProgress(chipTool, " ***** Test Step 55 : Read attribute INT8S Min Value\n"); + err = TestReadAttributeInt8sMinValue_55(); break; case 56: - ChipLogProgress(chipTool, " ***** Test Step 56 : Read attribute INT8S Default Value\n"); - err = TestReadAttributeInt8sDefaultValue_56(); + ChipLogProgress(chipTool, " ***** Test Step 56 : Write attribute INT8S Default Value\n"); + err = TestWriteAttributeInt8sDefaultValue_56(); break; case 57: - ChipLogProgress(chipTool, " ***** Test Step 57 : Read attribute INT16S Default Value\n"); - err = TestReadAttributeInt16sDefaultValue_57(); + ChipLogProgress(chipTool, " ***** Test Step 57 : Read attribute INT8S Default Value\n"); + err = TestReadAttributeInt8sDefaultValue_57(); break; case 58: - ChipLogProgress(chipTool, " ***** Test Step 58 : Write attribute INT16S Max Value\n"); - err = TestWriteAttributeInt16sMaxValue_58(); + ChipLogProgress(chipTool, " ***** Test Step 58 : Read attribute INT16S Default Value\n"); + err = TestReadAttributeInt16sDefaultValue_58(); break; case 59: - ChipLogProgress(chipTool, " ***** Test Step 59 : Read attribute INT16S Max Value\n"); - err = TestReadAttributeInt16sMaxValue_59(); + ChipLogProgress(chipTool, " ***** Test Step 59 : Write attribute INT16S Max Value\n"); + err = TestWriteAttributeInt16sMaxValue_59(); break; case 60: - ChipLogProgress(chipTool, " ***** Test Step 60 : Write attribute INT16S Min Value\n"); - err = TestWriteAttributeInt16sMinValue_60(); + ChipLogProgress(chipTool, " ***** Test Step 60 : Read attribute INT16S Max Value\n"); + err = TestReadAttributeInt16sMaxValue_60(); break; case 61: - ChipLogProgress(chipTool, " ***** Test Step 61 : Read attribute INT16S Min Value\n"); - err = TestReadAttributeInt16sMinValue_61(); + ChipLogProgress(chipTool, " ***** Test Step 61 : Write attribute INT16S Min Value\n"); + err = TestWriteAttributeInt16sMinValue_61(); break; case 62: - ChipLogProgress(chipTool, " ***** Test Step 62 : Write attribute INT16S Default Value\n"); - err = TestWriteAttributeInt16sDefaultValue_62(); + ChipLogProgress(chipTool, " ***** Test Step 62 : Read attribute INT16S Min Value\n"); + err = TestReadAttributeInt16sMinValue_62(); break; case 63: - ChipLogProgress(chipTool, " ***** Test Step 63 : Read attribute INT16S Default Value\n"); - err = TestReadAttributeInt16sDefaultValue_63(); + ChipLogProgress(chipTool, " ***** Test Step 63 : Write attribute INT16S Default Value\n"); + err = TestWriteAttributeInt16sDefaultValue_63(); break; case 64: - ChipLogProgress(chipTool, " ***** Test Step 64 : Read attribute INT32S Default Value\n"); - err = TestReadAttributeInt32sDefaultValue_64(); + ChipLogProgress(chipTool, " ***** Test Step 64 : Read attribute INT16S Default Value\n"); + err = TestReadAttributeInt16sDefaultValue_64(); break; case 65: - ChipLogProgress(chipTool, " ***** Test Step 65 : Write attribute INT32S Max Value\n"); - err = TestWriteAttributeInt32sMaxValue_65(); + ChipLogProgress(chipTool, " ***** Test Step 65 : Read attribute INT32S Default Value\n"); + err = TestReadAttributeInt32sDefaultValue_65(); break; case 66: - ChipLogProgress(chipTool, " ***** Test Step 66 : Read attribute INT32S Max Value\n"); - err = TestReadAttributeInt32sMaxValue_66(); + ChipLogProgress(chipTool, " ***** Test Step 66 : Write attribute INT32S Max Value\n"); + err = TestWriteAttributeInt32sMaxValue_66(); break; case 67: - ChipLogProgress(chipTool, " ***** Test Step 67 : Write attribute INT32S Min Value\n"); - err = TestWriteAttributeInt32sMinValue_67(); + ChipLogProgress(chipTool, " ***** Test Step 67 : Read attribute INT32S Max Value\n"); + err = TestReadAttributeInt32sMaxValue_67(); break; case 68: - ChipLogProgress(chipTool, " ***** Test Step 68 : Read attribute INT32S Min Value\n"); - err = TestReadAttributeInt32sMinValue_68(); + ChipLogProgress(chipTool, " ***** Test Step 68 : Write attribute INT32S Min Value\n"); + err = TestWriteAttributeInt32sMinValue_68(); break; case 69: - ChipLogProgress(chipTool, " ***** Test Step 69 : Write attribute INT32S Default Value\n"); - err = TestWriteAttributeInt32sDefaultValue_69(); + ChipLogProgress(chipTool, " ***** Test Step 69 : Read attribute INT32S Min Value\n"); + err = TestReadAttributeInt32sMinValue_69(); break; case 70: - ChipLogProgress(chipTool, " ***** Test Step 70 : Read attribute INT32S Default Value\n"); - err = TestReadAttributeInt32sDefaultValue_70(); + ChipLogProgress(chipTool, " ***** Test Step 70 : Write attribute INT32S Default Value\n"); + err = TestWriteAttributeInt32sDefaultValue_70(); break; case 71: - ChipLogProgress(chipTool, " ***** Test Step 71 : Read attribute INT64S Default Value\n"); - err = TestReadAttributeInt64sDefaultValue_71(); + ChipLogProgress(chipTool, " ***** Test Step 71 : Read attribute INT32S Default Value\n"); + err = TestReadAttributeInt32sDefaultValue_71(); break; case 72: - ChipLogProgress(chipTool, " ***** Test Step 72 : Write attribute INT64S Max Value\n"); - err = TestWriteAttributeInt64sMaxValue_72(); + ChipLogProgress(chipTool, " ***** Test Step 72 : Read attribute INT64S Default Value\n"); + err = TestReadAttributeInt64sDefaultValue_72(); break; case 73: - ChipLogProgress(chipTool, " ***** Test Step 73 : Read attribute INT64S Max Value\n"); - err = TestReadAttributeInt64sMaxValue_73(); + ChipLogProgress(chipTool, " ***** Test Step 73 : Write attribute INT64S Max Value\n"); + err = TestWriteAttributeInt64sMaxValue_73(); break; case 74: - ChipLogProgress(chipTool, " ***** Test Step 74 : Write attribute INT64S Min Value\n"); - err = TestWriteAttributeInt64sMinValue_74(); + ChipLogProgress(chipTool, " ***** Test Step 74 : Read attribute INT64S Max Value\n"); + err = TestReadAttributeInt64sMaxValue_74(); break; case 75: - ChipLogProgress(chipTool, " ***** Test Step 75 : Read attribute INT64S Min Value\n"); - err = TestReadAttributeInt64sMinValue_75(); + ChipLogProgress(chipTool, " ***** Test Step 75 : Write attribute INT64S Min Value\n"); + err = TestWriteAttributeInt64sMinValue_75(); break; case 76: - ChipLogProgress(chipTool, " ***** Test Step 76 : Write attribute INT64S Default Value\n"); - err = TestWriteAttributeInt64sDefaultValue_76(); + ChipLogProgress(chipTool, " ***** Test Step 76 : Read attribute INT64S Min Value\n"); + err = TestReadAttributeInt64sMinValue_76(); break; case 77: - ChipLogProgress(chipTool, " ***** Test Step 77 : Read attribute INT64S Default Value\n"); - err = TestReadAttributeInt64sDefaultValue_77(); + ChipLogProgress(chipTool, " ***** Test Step 77 : Write attribute INT64S Default Value\n"); + err = TestWriteAttributeInt64sDefaultValue_77(); break; case 78: - ChipLogProgress(chipTool, " ***** Test Step 78 : Read attribute ENUM8 Default Value\n"); - err = TestReadAttributeEnum8DefaultValue_78(); + ChipLogProgress(chipTool, " ***** Test Step 78 : Read attribute INT64S Default Value\n"); + err = TestReadAttributeInt64sDefaultValue_78(); break; case 79: - ChipLogProgress(chipTool, " ***** Test Step 79 : Write attribute ENUM8 Max Value\n"); - err = TestWriteAttributeEnum8MaxValue_79(); + ChipLogProgress(chipTool, " ***** Test Step 79 : Read attribute ENUM8 Default Value\n"); + err = TestReadAttributeEnum8DefaultValue_79(); break; case 80: - ChipLogProgress(chipTool, " ***** Test Step 80 : Read attribute ENUM8 Max Value\n"); - err = TestReadAttributeEnum8MaxValue_80(); + ChipLogProgress(chipTool, " ***** Test Step 80 : Write attribute ENUM8 Max Value\n"); + err = TestWriteAttributeEnum8MaxValue_80(); break; case 81: - ChipLogProgress(chipTool, " ***** Test Step 81 : Write attribute ENUM8 Min Value\n"); - err = TestWriteAttributeEnum8MinValue_81(); + ChipLogProgress(chipTool, " ***** Test Step 81 : Read attribute ENUM8 Max Value\n"); + err = TestReadAttributeEnum8MaxValue_81(); break; case 82: - ChipLogProgress(chipTool, " ***** Test Step 82 : Read attribute ENUM8 Min Value\n"); - err = TestReadAttributeEnum8MinValue_82(); + ChipLogProgress(chipTool, " ***** Test Step 82 : Write attribute ENUM8 Min Value\n"); + err = TestWriteAttributeEnum8MinValue_82(); break; case 83: - ChipLogProgress(chipTool, " ***** Test Step 83 : Read attribute ENUM16 Default Value\n"); - err = TestReadAttributeEnum16DefaultValue_83(); + ChipLogProgress(chipTool, " ***** Test Step 83 : Read attribute ENUM8 Min Value\n"); + err = TestReadAttributeEnum8MinValue_83(); break; case 84: - ChipLogProgress(chipTool, " ***** Test Step 84 : Write attribute ENUM16 Max Value\n"); - err = TestWriteAttributeEnum16MaxValue_84(); + ChipLogProgress(chipTool, " ***** Test Step 84 : Read attribute ENUM16 Default Value\n"); + err = TestReadAttributeEnum16DefaultValue_84(); break; case 85: - ChipLogProgress(chipTool, " ***** Test Step 85 : Read attribute ENUM16 Max Value\n"); - err = TestReadAttributeEnum16MaxValue_85(); + ChipLogProgress(chipTool, " ***** Test Step 85 : Write attribute ENUM16 Max Value\n"); + err = TestWriteAttributeEnum16MaxValue_85(); break; case 86: - ChipLogProgress(chipTool, " ***** Test Step 86 : Write attribute ENUM16 Min Value\n"); - err = TestWriteAttributeEnum16MinValue_86(); + ChipLogProgress(chipTool, " ***** Test Step 86 : Read attribute ENUM16 Max Value\n"); + err = TestReadAttributeEnum16MaxValue_86(); break; case 87: - ChipLogProgress(chipTool, " ***** Test Step 87 : Read attribute ENUM16 Min Value\n"); - err = TestReadAttributeEnum16MinValue_87(); + ChipLogProgress(chipTool, " ***** Test Step 87 : Write attribute ENUM16 Min Value\n"); + err = TestWriteAttributeEnum16MinValue_87(); break; case 88: - ChipLogProgress(chipTool, " ***** Test Step 88 : Read attribute OCTET_STRING Default Value\n"); - err = TestReadAttributeOctetStringDefaultValue_88(); + ChipLogProgress(chipTool, " ***** Test Step 88 : Read attribute ENUM16 Min Value\n"); + err = TestReadAttributeEnum16MinValue_88(); break; case 89: - ChipLogProgress(chipTool, " ***** Test Step 89 : Write attribute OCTET_STRING with embedded null\n"); - err = TestWriteAttributeOctetStringWithEmbeddedNull_89(); + ChipLogProgress(chipTool, " ***** Test Step 89 : Read attribute OCTET_STRING Default Value\n"); + err = TestReadAttributeOctetStringDefaultValue_89(); break; case 90: - ChipLogProgress(chipTool, " ***** Test Step 90 : Read attribute OCTET_STRING with embedded null\n"); - err = TestReadAttributeOctetStringWithEmbeddedNull_90(); + ChipLogProgress(chipTool, " ***** Test Step 90 : Write attribute OCTET_STRING with embedded null\n"); + err = TestWriteAttributeOctetStringWithEmbeddedNull_90(); break; case 91: - ChipLogProgress(chipTool, " ***** Test Step 91 : Write attribute OCTET_STRING\n"); - err = TestWriteAttributeOctetString_91(); + ChipLogProgress(chipTool, " ***** Test Step 91 : Read attribute OCTET_STRING with embedded null\n"); + err = TestReadAttributeOctetStringWithEmbeddedNull_91(); break; case 92: - ChipLogProgress(chipTool, " ***** Test Step 92 : Read attribute OCTET_STRING\n"); - err = TestReadAttributeOctetString_92(); + ChipLogProgress(chipTool, " ***** Test Step 92 : Write attribute OCTET_STRING\n"); + err = TestWriteAttributeOctetString_92(); break; case 93: - ChipLogProgress(chipTool, " ***** Test Step 93 : Write attribute OCTET_STRING\n"); - err = TestWriteAttributeOctetString_93(); + ChipLogProgress(chipTool, " ***** Test Step 93 : Read attribute OCTET_STRING\n"); + err = TestReadAttributeOctetString_93(); break; case 94: - ChipLogProgress(chipTool, " ***** Test Step 94 : Read attribute OCTET_STRING\n"); - err = TestReadAttributeOctetString_94(); + ChipLogProgress(chipTool, " ***** Test Step 94 : Write attribute OCTET_STRING\n"); + err = TestWriteAttributeOctetString_94(); break; case 95: - ChipLogProgress(chipTool, " ***** Test Step 95 : Write attribute OCTET_STRING\n"); - err = TestWriteAttributeOctetString_95(); + ChipLogProgress(chipTool, " ***** Test Step 95 : Read attribute OCTET_STRING\n"); + err = TestReadAttributeOctetString_95(); break; case 96: - ChipLogProgress(chipTool, " ***** Test Step 96 : Read attribute LONG_OCTET_STRING Default Value\n"); - err = TestReadAttributeLongOctetStringDefaultValue_96(); + ChipLogProgress(chipTool, " ***** Test Step 96 : Write attribute OCTET_STRING\n"); + err = TestWriteAttributeOctetString_96(); break; case 97: - ChipLogProgress(chipTool, " ***** Test Step 97 : Write attribute LONG_OCTET_STRING\n"); - err = TestWriteAttributeLongOctetString_97(); + ChipLogProgress(chipTool, " ***** Test Step 97 : Read attribute LONG_OCTET_STRING Default Value\n"); + err = TestReadAttributeLongOctetStringDefaultValue_97(); break; case 98: - ChipLogProgress(chipTool, " ***** Test Step 98 : Read attribute LONG_OCTET_STRING\n"); - err = TestReadAttributeLongOctetString_98(); + ChipLogProgress(chipTool, " ***** Test Step 98 : Write attribute LONG_OCTET_STRING\n"); + err = TestWriteAttributeLongOctetString_98(); break; case 99: - ChipLogProgress(chipTool, " ***** Test Step 99 : Write attribute LONG_OCTET_STRING\n"); - err = TestWriteAttributeLongOctetString_99(); + ChipLogProgress(chipTool, " ***** Test Step 99 : Read attribute LONG_OCTET_STRING\n"); + err = TestReadAttributeLongOctetString_99(); break; case 100: - ChipLogProgress(chipTool, " ***** Test Step 100 : Read attribute CHAR_STRING Default Value\n"); - err = TestReadAttributeCharStringDefaultValue_100(); + ChipLogProgress(chipTool, " ***** Test Step 100 : Write attribute LONG_OCTET_STRING\n"); + err = TestWriteAttributeLongOctetString_100(); break; case 101: - ChipLogProgress(chipTool, " ***** Test Step 101 : Write attribute CHAR_STRING\n"); - err = TestWriteAttributeCharString_101(); + ChipLogProgress(chipTool, " ***** Test Step 101 : Read attribute CHAR_STRING Default Value\n"); + err = TestReadAttributeCharStringDefaultValue_101(); break; case 102: - ChipLogProgress(chipTool, " ***** Test Step 102 : Read attribute CHAR_STRING\n"); - err = TestReadAttributeCharString_102(); + ChipLogProgress(chipTool, " ***** Test Step 102 : Write attribute CHAR_STRING\n"); + err = TestWriteAttributeCharString_102(); break; case 103: - ChipLogProgress(chipTool, " ***** Test Step 103 : Write attribute CHAR_STRING - Value too long\n"); - err = TestWriteAttributeCharStringValueTooLong_103(); + ChipLogProgress(chipTool, " ***** Test Step 103 : Read attribute CHAR_STRING\n"); + err = TestReadAttributeCharString_103(); break; case 104: - ChipLogProgress(chipTool, " ***** Test Step 104 : Read attribute CHAR_STRING\n"); - err = TestReadAttributeCharString_104(); + ChipLogProgress(chipTool, " ***** Test Step 104 : Write attribute CHAR_STRING - Value too long\n"); + err = TestWriteAttributeCharStringValueTooLong_104(); break; case 105: - ChipLogProgress(chipTool, " ***** Test Step 105 : Write attribute CHAR_STRING - Empty\n"); - err = TestWriteAttributeCharStringEmpty_105(); + ChipLogProgress(chipTool, " ***** Test Step 105 : Read attribute CHAR_STRING\n"); + err = TestReadAttributeCharString_105(); break; case 106: - ChipLogProgress(chipTool, " ***** Test Step 106 : Read attribute LONG_CHAR_STRING Default Value\n"); - err = TestReadAttributeLongCharStringDefaultValue_106(); + ChipLogProgress(chipTool, " ***** Test Step 106 : Write attribute CHAR_STRING - Empty\n"); + err = TestWriteAttributeCharStringEmpty_106(); break; case 107: - ChipLogProgress(chipTool, " ***** Test Step 107 : Write attribute LONG_CHAR_STRING\n"); - err = TestWriteAttributeLongCharString_107(); + ChipLogProgress(chipTool, " ***** Test Step 107 : Read attribute LONG_CHAR_STRING Default Value\n"); + err = TestReadAttributeLongCharStringDefaultValue_107(); break; case 108: - ChipLogProgress(chipTool, " ***** Test Step 108 : Read attribute LONG_CHAR_STRING\n"); - err = TestReadAttributeLongCharString_108(); + ChipLogProgress(chipTool, " ***** Test Step 108 : Write attribute LONG_CHAR_STRING\n"); + err = TestWriteAttributeLongCharString_108(); break; case 109: - ChipLogProgress(chipTool, " ***** Test Step 109 : Write attribute LONG_CHAR_STRING\n"); - err = TestWriteAttributeLongCharString_109(); + ChipLogProgress(chipTool, " ***** Test Step 109 : Read attribute LONG_CHAR_STRING\n"); + err = TestReadAttributeLongCharString_109(); break; case 110: - ChipLogProgress(chipTool, " ***** Test Step 110 : Read attribute EPOCH_US Default Value\n"); - err = TestReadAttributeEpochUsDefaultValue_110(); + ChipLogProgress(chipTool, " ***** Test Step 110 : Write attribute LONG_CHAR_STRING\n"); + err = TestWriteAttributeLongCharString_110(); break; case 111: - ChipLogProgress(chipTool, " ***** Test Step 111 : Write attribute EPOCH_US Max Value\n"); - err = TestWriteAttributeEpochUsMaxValue_111(); + ChipLogProgress(chipTool, " ***** Test Step 111 : Read attribute EPOCH_US Default Value\n"); + err = TestReadAttributeEpochUsDefaultValue_111(); break; case 112: - ChipLogProgress(chipTool, " ***** Test Step 112 : Read attribute EPOCH_US Max Value\n"); - err = TestReadAttributeEpochUsMaxValue_112(); + ChipLogProgress(chipTool, " ***** Test Step 112 : Write attribute EPOCH_US Max Value\n"); + err = TestWriteAttributeEpochUsMaxValue_112(); break; case 113: - ChipLogProgress(chipTool, " ***** Test Step 113 : Write attribute EPOCH_US Min Value\n"); - err = TestWriteAttributeEpochUsMinValue_113(); + ChipLogProgress(chipTool, " ***** Test Step 113 : Read attribute EPOCH_US Max Value\n"); + err = TestReadAttributeEpochUsMaxValue_113(); break; case 114: - ChipLogProgress(chipTool, " ***** Test Step 114 : Read attribute EPOCH_US Min Value\n"); - err = TestReadAttributeEpochUsMinValue_114(); + ChipLogProgress(chipTool, " ***** Test Step 114 : Write attribute EPOCH_US Min Value\n"); + err = TestWriteAttributeEpochUsMinValue_114(); break; case 115: - ChipLogProgress(chipTool, " ***** Test Step 115 : Read attribute EPOCH_S Default Value\n"); - err = TestReadAttributeEpochSDefaultValue_115(); + ChipLogProgress(chipTool, " ***** Test Step 115 : Read attribute EPOCH_US Min Value\n"); + err = TestReadAttributeEpochUsMinValue_115(); break; case 116: - ChipLogProgress(chipTool, " ***** Test Step 116 : Write attribute EPOCH_S Max Value\n"); - err = TestWriteAttributeEpochSMaxValue_116(); + ChipLogProgress(chipTool, " ***** Test Step 116 : Read attribute EPOCH_S Default Value\n"); + err = TestReadAttributeEpochSDefaultValue_116(); break; case 117: - ChipLogProgress(chipTool, " ***** Test Step 117 : Read attribute EPOCH_S Max Value\n"); - err = TestReadAttributeEpochSMaxValue_117(); + ChipLogProgress(chipTool, " ***** Test Step 117 : Write attribute EPOCH_S Max Value\n"); + err = TestWriteAttributeEpochSMaxValue_117(); break; case 118: - ChipLogProgress(chipTool, " ***** Test Step 118 : Write attribute EPOCH_S Min Value\n"); - err = TestWriteAttributeEpochSMinValue_118(); + ChipLogProgress(chipTool, " ***** Test Step 118 : Read attribute EPOCH_S Max Value\n"); + err = TestReadAttributeEpochSMaxValue_118(); break; case 119: - ChipLogProgress(chipTool, " ***** Test Step 119 : Read attribute EPOCH_S Min Value\n"); - err = TestReadAttributeEpochSMinValue_119(); + ChipLogProgress(chipTool, " ***** Test Step 119 : Write attribute EPOCH_S Min Value\n"); + err = TestWriteAttributeEpochSMinValue_119(); break; case 120: - ChipLogProgress(chipTool, " ***** Test Step 120 : Read attribute UNSUPPORTED\n"); - err = TestReadAttributeUnsupported_120(); + ChipLogProgress(chipTool, " ***** Test Step 120 : Read attribute EPOCH_S Min Value\n"); + err = TestReadAttributeEpochSMinValue_120(); break; case 121: - ChipLogProgress(chipTool, " ***** Test Step 121 : Writeattribute UNSUPPORTED\n"); - err = TestWriteattributeUnsupported_121(); + ChipLogProgress(chipTool, " ***** Test Step 121 : Read attribute UNSUPPORTED\n"); + err = TestReadAttributeUnsupported_121(); break; case 122: - ChipLogProgress(chipTool, " ***** Test Step 122 : Send Test Command to unsupported endpoint\n"); - err = TestSendTestCommandToUnsupportedEndpoint_122(); + ChipLogProgress(chipTool, " ***** Test Step 122 : Writeattribute UNSUPPORTED\n"); + err = TestWriteattributeUnsupported_122(); break; case 123: - ChipLogProgress(chipTool, " ***** Test Step 123 : Send Test Command to unsupported cluster\n"); - err = TestSendTestCommandToUnsupportedCluster_123(); + ChipLogProgress(chipTool, " ***** Test Step 123 : Send Test Command to unsupported endpoint\n"); + err = TestSendTestCommandToUnsupportedEndpoint_123(); break; case 124: - ChipLogProgress(chipTool, " ***** Test Step 124 : Read attribute vendor_id Default Value\n"); - err = TestReadAttributeVendorIdDefaultValue_124(); + ChipLogProgress(chipTool, " ***** Test Step 124 : Send Test Command to unsupported cluster\n"); + err = TestSendTestCommandToUnsupportedCluster_124(); break; case 125: - ChipLogProgress(chipTool, " ***** Test Step 125 : Write attribute vendor_id\n"); - err = TestWriteAttributeVendorId_125(); + ChipLogProgress(chipTool, " ***** Test Step 125 : Read attribute vendor_id Default Value\n"); + err = TestReadAttributeVendorIdDefaultValue_125(); break; case 126: - ChipLogProgress(chipTool, " ***** Test Step 126 : Read attribute vendor_id\n"); - err = TestReadAttributeVendorId_126(); + ChipLogProgress(chipTool, " ***** Test Step 126 : Write attribute vendor_id\n"); + err = TestWriteAttributeVendorId_126(); break; case 127: - ChipLogProgress(chipTool, " ***** Test Step 127 : Restore attribute vendor_id\n"); - err = TestRestoreAttributeVendorId_127(); + ChipLogProgress(chipTool, " ***** Test Step 127 : Read attribute vendor_id\n"); + err = TestReadAttributeVendorId_127(); break; case 128: - ChipLogProgress(chipTool, " ***** Test Step 128 : Send a command with a vendor_id and enum\n"); - err = TestSendACommandWithAVendorIdAndEnum_128(); + ChipLogProgress(chipTool, " ***** Test Step 128 : Restore attribute vendor_id\n"); + err = TestRestoreAttributeVendorId_128(); break; case 129: - ChipLogProgress(chipTool, " ***** Test Step 129 : Send Test Command With Struct Argument and arg1.b is true\n"); - err = TestSendTestCommandWithStructArgumentAndArg1bIsTrue_129(); + ChipLogProgress(chipTool, " ***** Test Step 129 : Send a command with a vendor_id and enum\n"); + err = TestSendACommandWithAVendorIdAndEnum_129(); break; case 130: - ChipLogProgress(chipTool, " ***** Test Step 130 : Send Test Command With Struct Argument and arg1.b is false\n"); - err = TestSendTestCommandWithStructArgumentAndArg1bIsFalse_130(); + ChipLogProgress(chipTool, " ***** Test Step 130 : Send Test Command With Struct Argument and arg1.b is true\n"); + err = TestSendTestCommandWithStructArgumentAndArg1bIsTrue_130(); break; case 131: - ChipLogProgress(chipTool, - " ***** Test Step 131 : Send Test Command With Nested Struct Argument and arg1.c.b is true\n"); - err = TestSendTestCommandWithNestedStructArgumentAndArg1cbIsTrue_131(); + ChipLogProgress(chipTool, " ***** Test Step 131 : Send Test Command With Struct Argument and arg1.b is false\n"); + err = TestSendTestCommandWithStructArgumentAndArg1bIsFalse_131(); break; case 132: - ChipLogProgress(chipTool, " ***** Test Step 132 : Send Test Command With Nested Struct Argument arg1.c.b is false\n"); - err = TestSendTestCommandWithNestedStructArgumentArg1cbIsFalse_132(); + ChipLogProgress(chipTool, + " ***** Test Step 132 : Send Test Command With Nested Struct Argument and arg1.c.b is true\n"); + err = TestSendTestCommandWithNestedStructArgumentAndArg1cbIsTrue_132(); break; case 133: + ChipLogProgress(chipTool, " ***** Test Step 133 : Send Test Command With Nested Struct Argument arg1.c.b is false\n"); + err = TestSendTestCommandWithNestedStructArgumentArg1cbIsFalse_133(); + break; + case 134: ChipLogProgress( chipTool, - " ***** Test Step 133 : Send Test Command With Nested Struct List Argument and all fields b of arg1.d are true\n"); - err = TestSendTestCommandWithNestedStructListArgumentAndAllFieldsBOfArg1dAreTrue_133(); + " ***** Test Step 134 : Send Test Command With Nested Struct List Argument and all fields b of arg1.d are true\n"); + err = TestSendTestCommandWithNestedStructListArgumentAndAllFieldsBOfArg1dAreTrue_134(); break; - case 134: + case 135: ChipLogProgress(chipTool, - " ***** Test Step 134 : Send Test Command With Nested Struct List Argument and some fields b of arg1.d " + " ***** Test Step 135 : Send Test Command With Nested Struct List Argument and some fields b of arg1.d " "are false\n"); - err = TestSendTestCommandWithNestedStructListArgumentAndSomeFieldsBOfArg1dAreFalse_134(); - break; - case 135: - ChipLogProgress(chipTool, " ***** Test Step 135 : Send Test Command With Struct Argument and see what we get back\n"); - err = TestSendTestCommandWithStructArgumentAndSeeWhatWeGetBack_135(); + err = TestSendTestCommandWithNestedStructListArgumentAndSomeFieldsBOfArg1dAreFalse_135(); break; case 136: - ChipLogProgress(chipTool, " ***** Test Step 136 : Send Test Command With List of INT8U and none of them is set to 0\n"); - err = TestSendTestCommandWithListOfInt8uAndNoneOfThemIsSetTo0_136(); + ChipLogProgress(chipTool, " ***** Test Step 136 : Send Test Command With Struct Argument and see what we get back\n"); + err = TestSendTestCommandWithStructArgumentAndSeeWhatWeGetBack_136(); break; case 137: - ChipLogProgress(chipTool, " ***** Test Step 137 : Send Test Command With List of INT8U and one of them is set to 0\n"); - err = TestSendTestCommandWithListOfInt8uAndOneOfThemIsSetTo0_137(); + ChipLogProgress(chipTool, " ***** Test Step 137 : Send Test Command With List of INT8U and none of them is set to 0\n"); + err = TestSendTestCommandWithListOfInt8uAndNoneOfThemIsSetTo0_137(); break; case 138: - ChipLogProgress(chipTool, " ***** Test Step 138 : Send Test Command With List of INT8U and get it reversed\n"); - err = TestSendTestCommandWithListOfInt8uAndGetItReversed_138(); + ChipLogProgress(chipTool, " ***** Test Step 138 : Send Test Command With List of INT8U and one of them is set to 0\n"); + err = TestSendTestCommandWithListOfInt8uAndOneOfThemIsSetTo0_138(); break; case 139: - ChipLogProgress(chipTool, - " ***** Test Step 139 : Send Test Command With empty List of INT8U and get an empty list back\n"); - err = TestSendTestCommandWithEmptyListOfInt8uAndGetAnEmptyListBack_139(); + ChipLogProgress(chipTool, " ***** Test Step 139 : Send Test Command With List of INT8U and get it reversed\n"); + err = TestSendTestCommandWithListOfInt8uAndGetItReversed_139(); break; case 140: - ChipLogProgress( - chipTool, - " ***** Test Step 140 : Send Test Command With List of Struct Argument and arg1.b of first item is true\n"); - err = TestSendTestCommandWithListOfStructArgumentAndArg1bOfFirstItemIsTrue_140(); + ChipLogProgress(chipTool, + " ***** Test Step 140 : Send Test Command With empty List of INT8U and get an empty list back\n"); + err = TestSendTestCommandWithEmptyListOfInt8uAndGetAnEmptyListBack_140(); break; case 141: ChipLogProgress( chipTool, - " ***** Test Step 141 : Send Test Command With List of Struct Argument and arg1.b of first item is false\n"); - err = TestSendTestCommandWithListOfStructArgumentAndArg1bOfFirstItemIsFalse_141(); + " ***** Test Step 141 : Send Test Command With List of Struct Argument and arg1.b of first item is true\n"); + err = TestSendTestCommandWithListOfStructArgumentAndArg1bOfFirstItemIsTrue_141(); break; case 142: - ChipLogProgress(chipTool, - " ***** Test Step 142 : Send Test Command With List of Nested Struct List Argument and all fields b of " - "elements of arg1.d are true\n"); - err = TestSendTestCommandWithListOfNestedStructListArgumentAndAllFieldsBOfElementsOfArg1dAreTrue_142(); + ChipLogProgress( + chipTool, + " ***** Test Step 142 : Send Test Command With List of Struct Argument and arg1.b of first item is false\n"); + err = TestSendTestCommandWithListOfStructArgumentAndArg1bOfFirstItemIsFalse_142(); break; case 143: ChipLogProgress(chipTool, - " ***** Test Step 143 : Send Test Command With Nested Struct List Argument and some fields b of " - "elements of arg1.d are false\n"); - err = TestSendTestCommandWithNestedStructListArgumentAndSomeFieldsBOfElementsOfArg1dAreFalse_143(); + " ***** Test Step 143 : Send Test Command With List of Nested Struct List Argument and all fields b of " + "elements of arg1.d are true\n"); + err = TestSendTestCommandWithListOfNestedStructListArgumentAndAllFieldsBOfElementsOfArg1dAreTrue_143(); break; case 144: ChipLogProgress(chipTool, - " ***** Test Step 144 : Write attribute LIST With List of INT8U and none of them is set to 0\n"); - err = TestWriteAttributeListWithListOfInt8uAndNoneOfThemIsSetTo0_144(); + " ***** Test Step 144 : Send Test Command With Nested Struct List Argument and some fields b of " + "elements of arg1.d are false\n"); + err = TestSendTestCommandWithNestedStructListArgumentAndSomeFieldsBOfElementsOfArg1dAreFalse_144(); break; case 145: - ChipLogProgress(chipTool, " ***** Test Step 145 : Read attribute LIST With List of INT8U\n"); - err = TestReadAttributeListWithListOfInt8u_145(); + ChipLogProgress(chipTool, + " ***** Test Step 145 : Write attribute LIST With List of INT8U and none of them is set to 0\n"); + err = TestWriteAttributeListWithListOfInt8uAndNoneOfThemIsSetTo0_145(); break; case 146: - ChipLogProgress(chipTool, " ***** Test Step 146 : Write attribute LIST With List of OCTET_STRING\n"); - err = TestWriteAttributeListWithListOfOctetString_146(); + ChipLogProgress(chipTool, " ***** Test Step 146 : Read attribute LIST With List of INT8U\n"); + err = TestReadAttributeListWithListOfInt8u_146(); break; case 147: - ChipLogProgress(chipTool, " ***** Test Step 147 : Read attribute LIST With List of OCTET_STRING\n"); - err = TestReadAttributeListWithListOfOctetString_147(); + ChipLogProgress(chipTool, " ***** Test Step 147 : Write attribute LIST With List of OCTET_STRING\n"); + err = TestWriteAttributeListWithListOfOctetString_147(); break; case 148: - ChipLogProgress(chipTool, " ***** Test Step 148 : Write attribute LIST With List of LIST_STRUCT_OCTET_STRING\n"); - err = TestWriteAttributeListWithListOfListStructOctetString_148(); + ChipLogProgress(chipTool, " ***** Test Step 148 : Read attribute LIST With List of OCTET_STRING\n"); + err = TestReadAttributeListWithListOfOctetString_148(); break; case 149: - ChipLogProgress(chipTool, " ***** Test Step 149 : Read attribute LIST With List of LIST_STRUCT_OCTET_STRING\n"); - err = TestReadAttributeListWithListOfListStructOctetString_149(); + ChipLogProgress(chipTool, " ***** Test Step 149 : Write attribute LIST With List of LIST_STRUCT_OCTET_STRING\n"); + err = TestWriteAttributeListWithListOfListStructOctetString_149(); break; case 150: - ChipLogProgress(chipTool, " ***** Test Step 150 : Send Test Command with optional arg set.\n"); - err = TestSendTestCommandWithOptionalArgSet_150(); + ChipLogProgress(chipTool, " ***** Test Step 150 : Read attribute LIST With List of LIST_STRUCT_OCTET_STRING\n"); + err = TestReadAttributeListWithListOfListStructOctetString_150(); break; case 151: - ChipLogProgress(chipTool, " ***** Test Step 151 : Send Test Command without its optional arg.\n"); - err = TestSendTestCommandWithoutItsOptionalArg_151(); + ChipLogProgress(chipTool, " ***** Test Step 151 : Send Test Command with optional arg set.\n"); + err = TestSendTestCommandWithOptionalArgSet_151(); break; case 152: - ChipLogProgress(chipTool, " ***** Test Step 152 : Write attribute NULLABLE_BOOLEAN null\n"); - err = TestWriteAttributeNullableBooleanNull_152(); + ChipLogProgress(chipTool, " ***** Test Step 152 : Send Test Command without its optional arg.\n"); + err = TestSendTestCommandWithoutItsOptionalArg_152(); break; case 153: - ChipLogProgress(chipTool, " ***** Test Step 153 : Read attribute NULLABLE_BOOLEAN null\n"); - err = TestReadAttributeNullableBooleanNull_153(); + ChipLogProgress(chipTool, " ***** Test Step 153 : Write attribute NULLABLE_BOOLEAN null\n"); + err = TestWriteAttributeNullableBooleanNull_153(); break; case 154: - ChipLogProgress(chipTool, " ***** Test Step 154 : Write attribute NULLABLE_BOOLEAN True\n"); - err = TestWriteAttributeNullableBooleanTrue_154(); + ChipLogProgress(chipTool, " ***** Test Step 154 : Read attribute NULLABLE_BOOLEAN null\n"); + err = TestReadAttributeNullableBooleanNull_154(); break; case 155: - ChipLogProgress(chipTool, " ***** Test Step 155 : Read attribute NULLABLE_BOOLEAN True\n"); - err = TestReadAttributeNullableBooleanTrue_155(); + ChipLogProgress(chipTool, " ***** Test Step 155 : Write attribute NULLABLE_BOOLEAN True\n"); + err = TestWriteAttributeNullableBooleanTrue_155(); break; case 156: - ChipLogProgress(chipTool, " ***** Test Step 156 : Write attribute NULLABLE_BITMAP8 Max Value\n"); - err = TestWriteAttributeNullableBitmap8MaxValue_156(); + ChipLogProgress(chipTool, " ***** Test Step 156 : Read attribute NULLABLE_BOOLEAN True\n"); + err = TestReadAttributeNullableBooleanTrue_156(); break; case 157: - ChipLogProgress(chipTool, " ***** Test Step 157 : Read attribute NULLABLE_BITMAP8 Max Value\n"); - err = TestReadAttributeNullableBitmap8MaxValue_157(); + ChipLogProgress(chipTool, " ***** Test Step 157 : Write attribute NULLABLE_BITMAP8 Max Value\n"); + err = TestWriteAttributeNullableBitmap8MaxValue_157(); break; case 158: - ChipLogProgress(chipTool, " ***** Test Step 158 : Write attribute NULLABLE_BITMAP8 Invalid Value\n"); - err = TestWriteAttributeNullableBitmap8InvalidValue_158(); + ChipLogProgress(chipTool, " ***** Test Step 158 : Read attribute NULLABLE_BITMAP8 Max Value\n"); + err = TestReadAttributeNullableBitmap8MaxValue_158(); break; case 159: - ChipLogProgress(chipTool, " ***** Test Step 159 : Read attribute NULLABLE_BITMAP8 unchanged Value\n"); - err = TestReadAttributeNullableBitmap8UnchangedValue_159(); + ChipLogProgress(chipTool, " ***** Test Step 159 : Write attribute NULLABLE_BITMAP8 Invalid Value\n"); + err = TestWriteAttributeNullableBitmap8InvalidValue_159(); break; case 160: - ChipLogProgress(chipTool, " ***** Test Step 160 : Write attribute NULLABLE_BITMAP8 null Value\n"); - err = TestWriteAttributeNullableBitmap8NullValue_160(); + ChipLogProgress(chipTool, " ***** Test Step 160 : Read attribute NULLABLE_BITMAP8 unchanged Value\n"); + err = TestReadAttributeNullableBitmap8UnchangedValue_160(); break; case 161: - ChipLogProgress(chipTool, " ***** Test Step 161 : Read attribute NULLABLE_BITMAP8 null Value\n"); - err = TestReadAttributeNullableBitmap8NullValue_161(); + ChipLogProgress(chipTool, " ***** Test Step 161 : Write attribute NULLABLE_BITMAP8 null Value\n"); + err = TestWriteAttributeNullableBitmap8NullValue_161(); break; case 162: - ChipLogProgress(chipTool, " ***** Test Step 162 : Write attribute NULLABLE_BITMAP16 Max Value\n"); - err = TestWriteAttributeNullableBitmap16MaxValue_162(); + ChipLogProgress(chipTool, " ***** Test Step 162 : Read attribute NULLABLE_BITMAP8 null Value\n"); + err = TestReadAttributeNullableBitmap8NullValue_162(); break; case 163: - ChipLogProgress(chipTool, " ***** Test Step 163 : Read attribute NULLABLE_BITMAP16 Max Value\n"); - err = TestReadAttributeNullableBitmap16MaxValue_163(); + ChipLogProgress(chipTool, " ***** Test Step 163 : Write attribute NULLABLE_BITMAP16 Max Value\n"); + err = TestWriteAttributeNullableBitmap16MaxValue_163(); break; case 164: - ChipLogProgress(chipTool, " ***** Test Step 164 : Write attribute NULLABLE_BITMAP16 Invalid Value\n"); - err = TestWriteAttributeNullableBitmap16InvalidValue_164(); + ChipLogProgress(chipTool, " ***** Test Step 164 : Read attribute NULLABLE_BITMAP16 Max Value\n"); + err = TestReadAttributeNullableBitmap16MaxValue_164(); break; case 165: - ChipLogProgress(chipTool, " ***** Test Step 165 : Read attribute NULLABLE_BITMAP16 unchanged Value\n"); - err = TestReadAttributeNullableBitmap16UnchangedValue_165(); + ChipLogProgress(chipTool, " ***** Test Step 165 : Write attribute NULLABLE_BITMAP16 Invalid Value\n"); + err = TestWriteAttributeNullableBitmap16InvalidValue_165(); break; case 166: - ChipLogProgress(chipTool, " ***** Test Step 166 : Write attribute NULLABLE_BITMAP16 null Value\n"); - err = TestWriteAttributeNullableBitmap16NullValue_166(); + ChipLogProgress(chipTool, " ***** Test Step 166 : Read attribute NULLABLE_BITMAP16 unchanged Value\n"); + err = TestReadAttributeNullableBitmap16UnchangedValue_166(); break; case 167: - ChipLogProgress(chipTool, " ***** Test Step 167 : Read attribute NULLABLE_BITMAP16 null Value\n"); - err = TestReadAttributeNullableBitmap16NullValue_167(); + ChipLogProgress(chipTool, " ***** Test Step 167 : Write attribute NULLABLE_BITMAP16 null Value\n"); + err = TestWriteAttributeNullableBitmap16NullValue_167(); break; case 168: - ChipLogProgress(chipTool, " ***** Test Step 168 : Write attribute NULLABLE_BITMAP32 Max Value\n"); - err = TestWriteAttributeNullableBitmap32MaxValue_168(); + ChipLogProgress(chipTool, " ***** Test Step 168 : Read attribute NULLABLE_BITMAP16 null Value\n"); + err = TestReadAttributeNullableBitmap16NullValue_168(); break; case 169: - ChipLogProgress(chipTool, " ***** Test Step 169 : Read attribute NULLABLE_BITMAP32 Max Value\n"); - err = TestReadAttributeNullableBitmap32MaxValue_169(); + ChipLogProgress(chipTool, " ***** Test Step 169 : Write attribute NULLABLE_BITMAP32 Max Value\n"); + err = TestWriteAttributeNullableBitmap32MaxValue_169(); break; case 170: - ChipLogProgress(chipTool, " ***** Test Step 170 : Write attribute NULLABLE_BITMAP32 Invalid Value\n"); - err = TestWriteAttributeNullableBitmap32InvalidValue_170(); + ChipLogProgress(chipTool, " ***** Test Step 170 : Read attribute NULLABLE_BITMAP32 Max Value\n"); + err = TestReadAttributeNullableBitmap32MaxValue_170(); break; case 171: - ChipLogProgress(chipTool, " ***** Test Step 171 : Read attribute NULLABLE_BITMAP32 unchanged Value\n"); - err = TestReadAttributeNullableBitmap32UnchangedValue_171(); + ChipLogProgress(chipTool, " ***** Test Step 171 : Write attribute NULLABLE_BITMAP32 Invalid Value\n"); + err = TestWriteAttributeNullableBitmap32InvalidValue_171(); break; case 172: - ChipLogProgress(chipTool, " ***** Test Step 172 : Write attribute NULLABLE_BITMAP32 null Value\n"); - err = TestWriteAttributeNullableBitmap32NullValue_172(); + ChipLogProgress(chipTool, " ***** Test Step 172 : Read attribute NULLABLE_BITMAP32 unchanged Value\n"); + err = TestReadAttributeNullableBitmap32UnchangedValue_172(); break; case 173: - ChipLogProgress(chipTool, " ***** Test Step 173 : Read attribute NULLABLE_BITMAP32 null Value\n"); - err = TestReadAttributeNullableBitmap32NullValue_173(); + ChipLogProgress(chipTool, " ***** Test Step 173 : Write attribute NULLABLE_BITMAP32 null Value\n"); + err = TestWriteAttributeNullableBitmap32NullValue_173(); break; case 174: - ChipLogProgress(chipTool, " ***** Test Step 174 : Write attribute NULLABLE_BITMAP64 Max Value\n"); - err = TestWriteAttributeNullableBitmap64MaxValue_174(); + ChipLogProgress(chipTool, " ***** Test Step 174 : Read attribute NULLABLE_BITMAP32 null Value\n"); + err = TestReadAttributeNullableBitmap32NullValue_174(); break; case 175: - ChipLogProgress(chipTool, " ***** Test Step 175 : Read attribute NULLABLE_BITMAP64 Max Value\n"); - err = TestReadAttributeNullableBitmap64MaxValue_175(); + ChipLogProgress(chipTool, " ***** Test Step 175 : Write attribute NULLABLE_BITMAP64 Max Value\n"); + err = TestWriteAttributeNullableBitmap64MaxValue_175(); break; case 176: - ChipLogProgress(chipTool, " ***** Test Step 176 : Write attribute NULLABLE_BITMAP64 Invalid Value\n"); - err = TestWriteAttributeNullableBitmap64InvalidValue_176(); + ChipLogProgress(chipTool, " ***** Test Step 176 : Read attribute NULLABLE_BITMAP64 Max Value\n"); + err = TestReadAttributeNullableBitmap64MaxValue_176(); break; case 177: - ChipLogProgress(chipTool, " ***** Test Step 177 : Read attribute NULLABLE_BITMAP64 unchanged Value\n"); - err = TestReadAttributeNullableBitmap64UnchangedValue_177(); + ChipLogProgress(chipTool, " ***** Test Step 177 : Write attribute NULLABLE_BITMAP64 Invalid Value\n"); + err = TestWriteAttributeNullableBitmap64InvalidValue_177(); break; case 178: - ChipLogProgress(chipTool, " ***** Test Step 178 : Write attribute NULLABLE_BITMAP64 null Value\n"); - err = TestWriteAttributeNullableBitmap64NullValue_178(); + ChipLogProgress(chipTool, " ***** Test Step 178 : Read attribute NULLABLE_BITMAP64 unchanged Value\n"); + err = TestReadAttributeNullableBitmap64UnchangedValue_178(); break; case 179: - ChipLogProgress(chipTool, " ***** Test Step 179 : Read attribute NULLABLE_BITMAP64 null Value\n"); - err = TestReadAttributeNullableBitmap64NullValue_179(); + ChipLogProgress(chipTool, " ***** Test Step 179 : Write attribute NULLABLE_BITMAP64 null Value\n"); + err = TestWriteAttributeNullableBitmap64NullValue_179(); break; case 180: - ChipLogProgress(chipTool, " ***** Test Step 180 : Write attribute NULLABLE_INT8U Max Value\n"); - err = TestWriteAttributeNullableInt8uMaxValue_180(); + ChipLogProgress(chipTool, " ***** Test Step 180 : Read attribute NULLABLE_BITMAP64 null Value\n"); + err = TestReadAttributeNullableBitmap64NullValue_180(); break; case 181: - ChipLogProgress(chipTool, " ***** Test Step 181 : Read attribute NULLABLE_INT8U Max Value\n"); - err = TestReadAttributeNullableInt8uMaxValue_181(); + ChipLogProgress(chipTool, " ***** Test Step 181 : Write attribute NULLABLE_INT8U Max Value\n"); + err = TestWriteAttributeNullableInt8uMaxValue_181(); break; case 182: - ChipLogProgress(chipTool, " ***** Test Step 182 : Write attribute NULLABLE_INT8U Invalid Value\n"); - err = TestWriteAttributeNullableInt8uInvalidValue_182(); + ChipLogProgress(chipTool, " ***** Test Step 182 : Read attribute NULLABLE_INT8U Max Value\n"); + err = TestReadAttributeNullableInt8uMaxValue_182(); break; case 183: - ChipLogProgress(chipTool, " ***** Test Step 183 : Read attribute NULLABLE_INT8U unchanged Value\n"); - err = TestReadAttributeNullableInt8uUnchangedValue_183(); + ChipLogProgress(chipTool, " ***** Test Step 183 : Write attribute NULLABLE_INT8U Invalid Value\n"); + err = TestWriteAttributeNullableInt8uInvalidValue_183(); break; case 184: - ChipLogProgress(chipTool, " ***** Test Step 184 : Write attribute NULLABLE_INT8U null Value\n"); - err = TestWriteAttributeNullableInt8uNullValue_184(); + ChipLogProgress(chipTool, " ***** Test Step 184 : Read attribute NULLABLE_INT8U unchanged Value\n"); + err = TestReadAttributeNullableInt8uUnchangedValue_184(); break; case 185: - ChipLogProgress(chipTool, " ***** Test Step 185 : Read attribute NULLABLE_INT8U null Value\n"); - err = TestReadAttributeNullableInt8uNullValue_185(); + ChipLogProgress(chipTool, " ***** Test Step 185 : Write attribute NULLABLE_INT8U null Value\n"); + err = TestWriteAttributeNullableInt8uNullValue_185(); break; case 186: - ChipLogProgress(chipTool, " ***** Test Step 186 : Write attribute NULLABLE_INT16U Max Value\n"); - err = TestWriteAttributeNullableInt16uMaxValue_186(); + ChipLogProgress(chipTool, " ***** Test Step 186 : Read attribute NULLABLE_INT8U null Value\n"); + err = TestReadAttributeNullableInt8uNullValue_186(); break; case 187: - ChipLogProgress(chipTool, " ***** Test Step 187 : Read attribute NULLABLE_INT16U Max Value\n"); - err = TestReadAttributeNullableInt16uMaxValue_187(); + ChipLogProgress(chipTool, " ***** Test Step 187 : Write attribute NULLABLE_INT16U Max Value\n"); + err = TestWriteAttributeNullableInt16uMaxValue_187(); break; case 188: - ChipLogProgress(chipTool, " ***** Test Step 188 : Write attribute NULLABLE_INT16U Invalid Value\n"); - err = TestWriteAttributeNullableInt16uInvalidValue_188(); + ChipLogProgress(chipTool, " ***** Test Step 188 : Read attribute NULLABLE_INT16U Max Value\n"); + err = TestReadAttributeNullableInt16uMaxValue_188(); break; case 189: - ChipLogProgress(chipTool, " ***** Test Step 189 : Read attribute NULLABLE_INT16U unchanged Value\n"); - err = TestReadAttributeNullableInt16uUnchangedValue_189(); + ChipLogProgress(chipTool, " ***** Test Step 189 : Write attribute NULLABLE_INT16U Invalid Value\n"); + err = TestWriteAttributeNullableInt16uInvalidValue_189(); break; case 190: - ChipLogProgress(chipTool, " ***** Test Step 190 : Write attribute NULLABLE_INT16U null Value\n"); - err = TestWriteAttributeNullableInt16uNullValue_190(); + ChipLogProgress(chipTool, " ***** Test Step 190 : Read attribute NULLABLE_INT16U unchanged Value\n"); + err = TestReadAttributeNullableInt16uUnchangedValue_190(); break; case 191: - ChipLogProgress(chipTool, " ***** Test Step 191 : Read attribute NULLABLE_INT16U null Value\n"); - err = TestReadAttributeNullableInt16uNullValue_191(); + ChipLogProgress(chipTool, " ***** Test Step 191 : Write attribute NULLABLE_INT16U null Value\n"); + err = TestWriteAttributeNullableInt16uNullValue_191(); break; case 192: - ChipLogProgress(chipTool, " ***** Test Step 192 : Write attribute NULLABLE_INT32U Max Value\n"); - err = TestWriteAttributeNullableInt32uMaxValue_192(); + ChipLogProgress(chipTool, " ***** Test Step 192 : Read attribute NULLABLE_INT16U null Value\n"); + err = TestReadAttributeNullableInt16uNullValue_192(); break; case 193: - ChipLogProgress(chipTool, " ***** Test Step 193 : Read attribute NULLABLE_INT32U Max Value\n"); - err = TestReadAttributeNullableInt32uMaxValue_193(); + ChipLogProgress(chipTool, " ***** Test Step 193 : Write attribute NULLABLE_INT32U Max Value\n"); + err = TestWriteAttributeNullableInt32uMaxValue_193(); break; case 194: - ChipLogProgress(chipTool, " ***** Test Step 194 : Write attribute NULLABLE_INT32U Invalid Value\n"); - err = TestWriteAttributeNullableInt32uInvalidValue_194(); + ChipLogProgress(chipTool, " ***** Test Step 194 : Read attribute NULLABLE_INT32U Max Value\n"); + err = TestReadAttributeNullableInt32uMaxValue_194(); break; case 195: - ChipLogProgress(chipTool, " ***** Test Step 195 : Read attribute NULLABLE_INT32U unchanged Value\n"); - err = TestReadAttributeNullableInt32uUnchangedValue_195(); + ChipLogProgress(chipTool, " ***** Test Step 195 : Write attribute NULLABLE_INT32U Invalid Value\n"); + err = TestWriteAttributeNullableInt32uInvalidValue_195(); break; case 196: - ChipLogProgress(chipTool, " ***** Test Step 196 : Write attribute NULLABLE_INT32U null Value\n"); - err = TestWriteAttributeNullableInt32uNullValue_196(); + ChipLogProgress(chipTool, " ***** Test Step 196 : Read attribute NULLABLE_INT32U unchanged Value\n"); + err = TestReadAttributeNullableInt32uUnchangedValue_196(); break; case 197: - ChipLogProgress(chipTool, " ***** Test Step 197 : Read attribute NULLABLE_INT32U null Value\n"); - err = TestReadAttributeNullableInt32uNullValue_197(); + ChipLogProgress(chipTool, " ***** Test Step 197 : Write attribute NULLABLE_INT32U null Value\n"); + err = TestWriteAttributeNullableInt32uNullValue_197(); break; case 198: - ChipLogProgress(chipTool, " ***** Test Step 198 : Write attribute NULLABLE_INT64U Max Value\n"); - err = TestWriteAttributeNullableInt64uMaxValue_198(); + ChipLogProgress(chipTool, " ***** Test Step 198 : Read attribute NULLABLE_INT32U null Value\n"); + err = TestReadAttributeNullableInt32uNullValue_198(); break; case 199: - ChipLogProgress(chipTool, " ***** Test Step 199 : Read attribute NULLABLE_INT64U Max Value\n"); - err = TestReadAttributeNullableInt64uMaxValue_199(); + ChipLogProgress(chipTool, " ***** Test Step 199 : Write attribute NULLABLE_INT64U Max Value\n"); + err = TestWriteAttributeNullableInt64uMaxValue_199(); break; case 200: - ChipLogProgress(chipTool, " ***** Test Step 200 : Write attribute NULLABLE_INT64U Invalid Value\n"); - err = TestWriteAttributeNullableInt64uInvalidValue_200(); + ChipLogProgress(chipTool, " ***** Test Step 200 : Read attribute NULLABLE_INT64U Max Value\n"); + err = TestReadAttributeNullableInt64uMaxValue_200(); break; case 201: - ChipLogProgress(chipTool, " ***** Test Step 201 : Read attribute NULLABLE_INT64U unchanged Value\n"); - err = TestReadAttributeNullableInt64uUnchangedValue_201(); + ChipLogProgress(chipTool, " ***** Test Step 201 : Write attribute NULLABLE_INT64U Invalid Value\n"); + err = TestWriteAttributeNullableInt64uInvalidValue_201(); break; case 202: - ChipLogProgress(chipTool, " ***** Test Step 202 : Write attribute NULLABLE_INT64U null Value\n"); - err = TestWriteAttributeNullableInt64uNullValue_202(); + ChipLogProgress(chipTool, " ***** Test Step 202 : Read attribute NULLABLE_INT64U unchanged Value\n"); + err = TestReadAttributeNullableInt64uUnchangedValue_202(); break; case 203: - ChipLogProgress(chipTool, " ***** Test Step 203 : Read attribute NULLABLE_INT64U null Value\n"); - err = TestReadAttributeNullableInt64uNullValue_203(); + ChipLogProgress(chipTool, " ***** Test Step 203 : Write attribute NULLABLE_INT64U null Value\n"); + err = TestWriteAttributeNullableInt64uNullValue_203(); break; case 204: - ChipLogProgress(chipTool, " ***** Test Step 204 : Write attribute NULLABLE_INT8S Min Value\n"); - err = TestWriteAttributeNullableInt8sMinValue_204(); + ChipLogProgress(chipTool, " ***** Test Step 204 : Read attribute NULLABLE_INT64U null Value\n"); + err = TestReadAttributeNullableInt64uNullValue_204(); break; case 205: - ChipLogProgress(chipTool, " ***** Test Step 205 : Read attribute NULLABLE_INT8S Min Value\n"); - err = TestReadAttributeNullableInt8sMinValue_205(); + ChipLogProgress(chipTool, " ***** Test Step 205 : Write attribute NULLABLE_INT8S Min Value\n"); + err = TestWriteAttributeNullableInt8sMinValue_205(); break; case 206: - ChipLogProgress(chipTool, " ***** Test Step 206 : Write attribute NULLABLE_INT8S Invalid Value\n"); - err = TestWriteAttributeNullableInt8sInvalidValue_206(); + ChipLogProgress(chipTool, " ***** Test Step 206 : Read attribute NULLABLE_INT8S Min Value\n"); + err = TestReadAttributeNullableInt8sMinValue_206(); break; case 207: - ChipLogProgress(chipTool, " ***** Test Step 207 : Read attribute NULLABLE_INT8S unchanged Value\n"); - err = TestReadAttributeNullableInt8sUnchangedValue_207(); + ChipLogProgress(chipTool, " ***** Test Step 207 : Write attribute NULLABLE_INT8S Invalid Value\n"); + err = TestWriteAttributeNullableInt8sInvalidValue_207(); break; case 208: - ChipLogProgress(chipTool, " ***** Test Step 208 : Write attribute NULLABLE_INT8S null Value\n"); - err = TestWriteAttributeNullableInt8sNullValue_208(); + ChipLogProgress(chipTool, " ***** Test Step 208 : Read attribute NULLABLE_INT8S unchanged Value\n"); + err = TestReadAttributeNullableInt8sUnchangedValue_208(); break; case 209: - ChipLogProgress(chipTool, " ***** Test Step 209 : Read attribute NULLABLE_INT8S null Value\n"); - err = TestReadAttributeNullableInt8sNullValue_209(); + ChipLogProgress(chipTool, " ***** Test Step 209 : Write attribute NULLABLE_INT8S null Value\n"); + err = TestWriteAttributeNullableInt8sNullValue_209(); break; case 210: - ChipLogProgress(chipTool, " ***** Test Step 210 : Write attribute NULLABLE_INT16S Min Value\n"); - err = TestWriteAttributeNullableInt16sMinValue_210(); + ChipLogProgress(chipTool, " ***** Test Step 210 : Read attribute NULLABLE_INT8S null Value\n"); + err = TestReadAttributeNullableInt8sNullValue_210(); break; case 211: - ChipLogProgress(chipTool, " ***** Test Step 211 : Read attribute NULLABLE_INT16S Min Value\n"); - err = TestReadAttributeNullableInt16sMinValue_211(); + ChipLogProgress(chipTool, " ***** Test Step 211 : Write attribute NULLABLE_INT16S Min Value\n"); + err = TestWriteAttributeNullableInt16sMinValue_211(); break; case 212: - ChipLogProgress(chipTool, " ***** Test Step 212 : Write attribute NULLABLE_INT16S Invalid Value\n"); - err = TestWriteAttributeNullableInt16sInvalidValue_212(); + ChipLogProgress(chipTool, " ***** Test Step 212 : Read attribute NULLABLE_INT16S Min Value\n"); + err = TestReadAttributeNullableInt16sMinValue_212(); break; case 213: - ChipLogProgress(chipTool, " ***** Test Step 213 : Read attribute NULLABLE_INT16S unchanged Value\n"); - err = TestReadAttributeNullableInt16sUnchangedValue_213(); + ChipLogProgress(chipTool, " ***** Test Step 213 : Write attribute NULLABLE_INT16S Invalid Value\n"); + err = TestWriteAttributeNullableInt16sInvalidValue_213(); break; case 214: - ChipLogProgress(chipTool, " ***** Test Step 214 : Write attribute NULLABLE_INT16S null Value\n"); - err = TestWriteAttributeNullableInt16sNullValue_214(); + ChipLogProgress(chipTool, " ***** Test Step 214 : Read attribute NULLABLE_INT16S unchanged Value\n"); + err = TestReadAttributeNullableInt16sUnchangedValue_214(); break; case 215: - ChipLogProgress(chipTool, " ***** Test Step 215 : Read attribute NULLABLE_INT16S null Value\n"); - err = TestReadAttributeNullableInt16sNullValue_215(); + ChipLogProgress(chipTool, " ***** Test Step 215 : Write attribute NULLABLE_INT16S null Value\n"); + err = TestWriteAttributeNullableInt16sNullValue_215(); break; case 216: - ChipLogProgress(chipTool, " ***** Test Step 216 : Write attribute NULLABLE_INT32S Min Value\n"); - err = TestWriteAttributeNullableInt32sMinValue_216(); + ChipLogProgress(chipTool, " ***** Test Step 216 : Read attribute NULLABLE_INT16S null Value\n"); + err = TestReadAttributeNullableInt16sNullValue_216(); break; case 217: - ChipLogProgress(chipTool, " ***** Test Step 217 : Read attribute NULLABLE_INT32S Min Value\n"); - err = TestReadAttributeNullableInt32sMinValue_217(); + ChipLogProgress(chipTool, " ***** Test Step 217 : Write attribute NULLABLE_INT32S Min Value\n"); + err = TestWriteAttributeNullableInt32sMinValue_217(); break; case 218: - ChipLogProgress(chipTool, " ***** Test Step 218 : Write attribute NULLABLE_INT32S Invalid Value\n"); - err = TestWriteAttributeNullableInt32sInvalidValue_218(); + ChipLogProgress(chipTool, " ***** Test Step 218 : Read attribute NULLABLE_INT32S Min Value\n"); + err = TestReadAttributeNullableInt32sMinValue_218(); break; case 219: - ChipLogProgress(chipTool, " ***** Test Step 219 : Read attribute NULLABLE_INT32S unchanged Value\n"); - err = TestReadAttributeNullableInt32sUnchangedValue_219(); + ChipLogProgress(chipTool, " ***** Test Step 219 : Write attribute NULLABLE_INT32S Invalid Value\n"); + err = TestWriteAttributeNullableInt32sInvalidValue_219(); break; case 220: - ChipLogProgress(chipTool, " ***** Test Step 220 : Write attribute NULLABLE_INT32S null Value\n"); - err = TestWriteAttributeNullableInt32sNullValue_220(); + ChipLogProgress(chipTool, " ***** Test Step 220 : Read attribute NULLABLE_INT32S unchanged Value\n"); + err = TestReadAttributeNullableInt32sUnchangedValue_220(); break; case 221: - ChipLogProgress(chipTool, " ***** Test Step 221 : Read attribute NULLABLE_INT32S null Value\n"); - err = TestReadAttributeNullableInt32sNullValue_221(); + ChipLogProgress(chipTool, " ***** Test Step 221 : Write attribute NULLABLE_INT32S null Value\n"); + err = TestWriteAttributeNullableInt32sNullValue_221(); break; case 222: - ChipLogProgress(chipTool, " ***** Test Step 222 : Write attribute NULLABLE_INT64S Min Value\n"); - err = TestWriteAttributeNullableInt64sMinValue_222(); + ChipLogProgress(chipTool, " ***** Test Step 222 : Read attribute NULLABLE_INT32S null Value\n"); + err = TestReadAttributeNullableInt32sNullValue_222(); break; case 223: - ChipLogProgress(chipTool, " ***** Test Step 223 : Read attribute NULLABLE_INT64S Min Value\n"); - err = TestReadAttributeNullableInt64sMinValue_223(); + ChipLogProgress(chipTool, " ***** Test Step 223 : Write attribute NULLABLE_INT64S Min Value\n"); + err = TestWriteAttributeNullableInt64sMinValue_223(); break; case 224: - ChipLogProgress(chipTool, " ***** Test Step 224 : Write attribute NULLABLE_INT64S Invalid Value\n"); - err = TestWriteAttributeNullableInt64sInvalidValue_224(); + ChipLogProgress(chipTool, " ***** Test Step 224 : Read attribute NULLABLE_INT64S Min Value\n"); + err = TestReadAttributeNullableInt64sMinValue_224(); break; case 225: - ChipLogProgress(chipTool, " ***** Test Step 225 : Read attribute NULLABLE_INT64S unchanged Value\n"); - err = TestReadAttributeNullableInt64sUnchangedValue_225(); + ChipLogProgress(chipTool, " ***** Test Step 225 : Write attribute NULLABLE_INT64S Invalid Value\n"); + err = TestWriteAttributeNullableInt64sInvalidValue_225(); break; case 226: - ChipLogProgress(chipTool, " ***** Test Step 226 : Write attribute NULLABLE_INT64S null Value\n"); - err = TestWriteAttributeNullableInt64sNullValue_226(); + ChipLogProgress(chipTool, " ***** Test Step 226 : Read attribute NULLABLE_INT64S unchanged Value\n"); + err = TestReadAttributeNullableInt64sUnchangedValue_226(); break; case 227: - ChipLogProgress(chipTool, " ***** Test Step 227 : Read attribute NULLABLE_INT64S null Value\n"); - err = TestReadAttributeNullableInt64sNullValue_227(); + ChipLogProgress(chipTool, " ***** Test Step 227 : Write attribute NULLABLE_INT64S null Value\n"); + err = TestWriteAttributeNullableInt64sNullValue_227(); break; case 228: - ChipLogProgress(chipTool, " ***** Test Step 228 : Write attribute NULLABLE_ENUM8 Max Value\n"); - err = TestWriteAttributeNullableEnum8MaxValue_228(); + ChipLogProgress(chipTool, " ***** Test Step 228 : Read attribute NULLABLE_INT64S null Value\n"); + err = TestReadAttributeNullableInt64sNullValue_228(); break; case 229: - ChipLogProgress(chipTool, " ***** Test Step 229 : Read attribute NULLABLE_ENUM8 Max Value\n"); - err = TestReadAttributeNullableEnum8MaxValue_229(); + ChipLogProgress(chipTool, " ***** Test Step 229 : Write attribute NULLABLE_ENUM8 Max Value\n"); + err = TestWriteAttributeNullableEnum8MaxValue_229(); break; case 230: - ChipLogProgress(chipTool, " ***** Test Step 230 : Write attribute NULLABLE_ENUM8 Invalid Value\n"); - err = TestWriteAttributeNullableEnum8InvalidValue_230(); + ChipLogProgress(chipTool, " ***** Test Step 230 : Read attribute NULLABLE_ENUM8 Max Value\n"); + err = TestReadAttributeNullableEnum8MaxValue_230(); break; case 231: - ChipLogProgress(chipTool, " ***** Test Step 231 : Read attribute NULLABLE_ENUM8 unchanged Value\n"); - err = TestReadAttributeNullableEnum8UnchangedValue_231(); + ChipLogProgress(chipTool, " ***** Test Step 231 : Write attribute NULLABLE_ENUM8 Invalid Value\n"); + err = TestWriteAttributeNullableEnum8InvalidValue_231(); break; case 232: - ChipLogProgress(chipTool, " ***** Test Step 232 : Write attribute NULLABLE_ENUM8 null Value\n"); - err = TestWriteAttributeNullableEnum8NullValue_232(); + ChipLogProgress(chipTool, " ***** Test Step 232 : Read attribute NULLABLE_ENUM8 unchanged Value\n"); + err = TestReadAttributeNullableEnum8UnchangedValue_232(); break; case 233: - ChipLogProgress(chipTool, " ***** Test Step 233 : Read attribute NULLABLE_ENUM8 null Value\n"); - err = TestReadAttributeNullableEnum8NullValue_233(); + ChipLogProgress(chipTool, " ***** Test Step 233 : Write attribute NULLABLE_ENUM8 null Value\n"); + err = TestWriteAttributeNullableEnum8NullValue_233(); break; case 234: - ChipLogProgress(chipTool, " ***** Test Step 234 : Write attribute NULLABLE_ENUM16 Max Value\n"); - err = TestWriteAttributeNullableEnum16MaxValue_234(); + ChipLogProgress(chipTool, " ***** Test Step 234 : Read attribute NULLABLE_ENUM8 null Value\n"); + err = TestReadAttributeNullableEnum8NullValue_234(); break; case 235: - ChipLogProgress(chipTool, " ***** Test Step 235 : Read attribute NULLABLE_ENUM16 Max Value\n"); - err = TestReadAttributeNullableEnum16MaxValue_235(); + ChipLogProgress(chipTool, " ***** Test Step 235 : Write attribute NULLABLE_ENUM16 Max Value\n"); + err = TestWriteAttributeNullableEnum16MaxValue_235(); break; case 236: - ChipLogProgress(chipTool, " ***** Test Step 236 : Write attribute NULLABLE_ENUM16 Invalid Value\n"); - err = TestWriteAttributeNullableEnum16InvalidValue_236(); + ChipLogProgress(chipTool, " ***** Test Step 236 : Read attribute NULLABLE_ENUM16 Max Value\n"); + err = TestReadAttributeNullableEnum16MaxValue_236(); break; case 237: - ChipLogProgress(chipTool, " ***** Test Step 237 : Read attribute NULLABLE_ENUM16 unchanged Value\n"); - err = TestReadAttributeNullableEnum16UnchangedValue_237(); + ChipLogProgress(chipTool, " ***** Test Step 237 : Write attribute NULLABLE_ENUM16 Invalid Value\n"); + err = TestWriteAttributeNullableEnum16InvalidValue_237(); break; case 238: - ChipLogProgress(chipTool, " ***** Test Step 238 : Write attribute NULLABLE_ENUM16 null Value\n"); - err = TestWriteAttributeNullableEnum16NullValue_238(); + ChipLogProgress(chipTool, " ***** Test Step 238 : Read attribute NULLABLE_ENUM16 unchanged Value\n"); + err = TestReadAttributeNullableEnum16UnchangedValue_238(); break; case 239: - ChipLogProgress(chipTool, " ***** Test Step 239 : Read attribute NULLABLE_ENUM16 null Value\n"); - err = TestReadAttributeNullableEnum16NullValue_239(); + ChipLogProgress(chipTool, " ***** Test Step 239 : Write attribute NULLABLE_ENUM16 null Value\n"); + err = TestWriteAttributeNullableEnum16NullValue_239(); break; case 240: - ChipLogProgress(chipTool, " ***** Test Step 240 : Read attribute NULLABLE_OCTET_STRING Default Value\n"); - err = TestReadAttributeNullableOctetStringDefaultValue_240(); + ChipLogProgress(chipTool, " ***** Test Step 240 : Read attribute NULLABLE_ENUM16 null Value\n"); + err = TestReadAttributeNullableEnum16NullValue_240(); break; case 241: - ChipLogProgress(chipTool, " ***** Test Step 241 : Write attribute NULLABLE_OCTET_STRING\n"); - err = TestWriteAttributeNullableOctetString_241(); + ChipLogProgress(chipTool, " ***** Test Step 241 : Read attribute NULLABLE_OCTET_STRING Default Value\n"); + err = TestReadAttributeNullableOctetStringDefaultValue_241(); break; case 242: - ChipLogProgress(chipTool, " ***** Test Step 242 : Read attribute NULLABLE_OCTET_STRING\n"); - err = TestReadAttributeNullableOctetString_242(); + ChipLogProgress(chipTool, " ***** Test Step 242 : Write attribute NULLABLE_OCTET_STRING\n"); + err = TestWriteAttributeNullableOctetString_242(); break; case 243: - ChipLogProgress(chipTool, " ***** Test Step 243 : Write attribute NULLABLE_OCTET_STRING\n"); - err = TestWriteAttributeNullableOctetString_243(); + ChipLogProgress(chipTool, " ***** Test Step 243 : Read attribute NULLABLE_OCTET_STRING\n"); + err = TestReadAttributeNullableOctetString_243(); break; case 244: - ChipLogProgress(chipTool, " ***** Test Step 244 : Read attribute NULLABLE_OCTET_STRING\n"); - err = TestReadAttributeNullableOctetString_244(); + ChipLogProgress(chipTool, " ***** Test Step 244 : Write attribute NULLABLE_OCTET_STRING\n"); + err = TestWriteAttributeNullableOctetString_244(); break; case 245: - ChipLogProgress(chipTool, " ***** Test Step 245 : Write attribute NULLABLE_OCTET_STRING\n"); - err = TestWriteAttributeNullableOctetString_245(); + ChipLogProgress(chipTool, " ***** Test Step 245 : Read attribute NULLABLE_OCTET_STRING\n"); + err = TestReadAttributeNullableOctetString_245(); break; case 246: - ChipLogProgress(chipTool, " ***** Test Step 246 : Read attribute NULLABLE_OCTET_STRING\n"); - err = TestReadAttributeNullableOctetString_246(); + ChipLogProgress(chipTool, " ***** Test Step 246 : Write attribute NULLABLE_OCTET_STRING\n"); + err = TestWriteAttributeNullableOctetString_246(); break; case 247: - ChipLogProgress(chipTool, " ***** Test Step 247 : Read attribute NULLABLE_CHAR_STRING Default Value\n"); - err = TestReadAttributeNullableCharStringDefaultValue_247(); + ChipLogProgress(chipTool, " ***** Test Step 247 : Read attribute NULLABLE_OCTET_STRING\n"); + err = TestReadAttributeNullableOctetString_247(); break; case 248: - ChipLogProgress(chipTool, " ***** Test Step 248 : Write attribute NULLABLE_CHAR_STRING\n"); - err = TestWriteAttributeNullableCharString_248(); + ChipLogProgress(chipTool, " ***** Test Step 248 : Read attribute NULLABLE_CHAR_STRING Default Value\n"); + err = TestReadAttributeNullableCharStringDefaultValue_248(); break; case 249: - ChipLogProgress(chipTool, " ***** Test Step 249 : Read attribute NULLABLE_CHAR_STRING\n"); - err = TestReadAttributeNullableCharString_249(); + ChipLogProgress(chipTool, " ***** Test Step 249 : Write attribute NULLABLE_CHAR_STRING\n"); + err = TestWriteAttributeNullableCharString_249(); break; case 250: - ChipLogProgress(chipTool, " ***** Test Step 250 : Write attribute NULLABLE_CHAR_STRING - Value too long\n"); - err = TestWriteAttributeNullableCharStringValueTooLong_250(); + ChipLogProgress(chipTool, " ***** Test Step 250 : Read attribute NULLABLE_CHAR_STRING\n"); + err = TestReadAttributeNullableCharString_250(); break; case 251: - ChipLogProgress(chipTool, " ***** Test Step 251 : Read attribute NULLABLE_CHAR_STRING\n"); - err = TestReadAttributeNullableCharString_251(); + ChipLogProgress(chipTool, " ***** Test Step 251 : Write attribute NULLABLE_CHAR_STRING - Value too long\n"); + err = TestWriteAttributeNullableCharStringValueTooLong_251(); break; case 252: - ChipLogProgress(chipTool, " ***** Test Step 252 : Write attribute NULLABLE_CHAR_STRING - Empty\n"); - err = TestWriteAttributeNullableCharStringEmpty_252(); + ChipLogProgress(chipTool, " ***** Test Step 252 : Read attribute NULLABLE_CHAR_STRING\n"); + err = TestReadAttributeNullableCharString_252(); break; case 253: - ChipLogProgress(chipTool, " ***** Test Step 253 : Read attribute NULLABLE_CHAR_STRING\n"); - err = TestReadAttributeNullableCharString_253(); + ChipLogProgress(chipTool, " ***** Test Step 253 : Write attribute NULLABLE_CHAR_STRING - Empty\n"); + err = TestWriteAttributeNullableCharStringEmpty_253(); break; case 254: - ChipLogProgress(chipTool, " ***** Test Step 254 : Read attribute from nonexistent endpoint.\n"); - err = TestReadAttributeFromNonexistentEndpoint_254(); + ChipLogProgress(chipTool, " ***** Test Step 254 : Read attribute NULLABLE_CHAR_STRING\n"); + err = TestReadAttributeNullableCharString_254(); break; case 255: - ChipLogProgress(chipTool, " ***** Test Step 255 : Read attribute from nonexistent cluster.\n"); - err = TestReadAttributeFromNonexistentCluster_255(); + ChipLogProgress(chipTool, " ***** Test Step 255 : Read attribute from nonexistent endpoint.\n"); + err = TestReadAttributeFromNonexistentEndpoint_255(); + break; + case 256: + ChipLogProgress(chipTool, " ***** Test Step 256 : Read attribute from nonexistent cluster.\n"); + err = TestReadAttributeFromNonexistentCluster_256(); break; } @@ -32215,60 +32819,50 @@ class TestCluster : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 256; - - static void OnFailureCallback_5(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); - } - - static void OnSuccessCallback_5(void * context, bool boolean) - { - (static_cast(context))->OnSuccessResponse_5(boolean); - } + const uint16_t mTestCount = 257; static void OnFailureCallback_6(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } + static void OnSuccessCallback_6(void * context, bool boolean) + { + (static_cast(context))->OnSuccessResponse_6(boolean); + } static void OnFailureCallback_7(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, bool boolean) - { - (static_cast(context))->OnSuccessResponse_7(boolean); - } + static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } static void OnFailureCallback_8(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } + static void OnSuccessCallback_8(void * context, bool boolean) + { + (static_cast(context))->OnSuccessResponse_8(boolean); + } static void OnFailureCallback_9(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); } - static void OnSuccessCallback_9(void * context, bool boolean) - { - (static_cast(context))->OnSuccessResponse_9(boolean); - } + static void OnSuccessCallback_9(void * context) { (static_cast(context))->OnSuccessResponse_9(); } static void OnFailureCallback_10(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); } - static void OnSuccessCallback_10(void * context, uint8_t bitmap8) + static void OnSuccessCallback_10(void * context, bool boolean) { - (static_cast(context))->OnSuccessResponse_10(bitmap8); + (static_cast(context))->OnSuccessResponse_10(boolean); } static void OnFailureCallback_11(void * context, EmberAfStatus status) @@ -32276,43 +32870,43 @@ class TestCluster : public TestCommand (static_cast(context))->OnFailureResponse_11(chip::to_underlying(status)); } - static void OnSuccessCallback_11(void * context) { (static_cast(context))->OnSuccessResponse_11(); } + static void OnSuccessCallback_11(void * context, uint8_t bitmap8) + { + (static_cast(context))->OnSuccessResponse_11(bitmap8); + } static void OnFailureCallback_12(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_12(chip::to_underlying(status)); } - static void OnSuccessCallback_12(void * context, uint8_t bitmap8) - { - (static_cast(context))->OnSuccessResponse_12(bitmap8); - } + static void OnSuccessCallback_12(void * context) { (static_cast(context))->OnSuccessResponse_12(); } static void OnFailureCallback_13(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_13(chip::to_underlying(status)); } - static void OnSuccessCallback_13(void * context) { (static_cast(context))->OnSuccessResponse_13(); } + static void OnSuccessCallback_13(void * context, uint8_t bitmap8) + { + (static_cast(context))->OnSuccessResponse_13(bitmap8); + } static void OnFailureCallback_14(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_14(chip::to_underlying(status)); } - static void OnSuccessCallback_14(void * context, uint8_t bitmap8) - { - (static_cast(context))->OnSuccessResponse_14(bitmap8); - } + static void OnSuccessCallback_14(void * context) { (static_cast(context))->OnSuccessResponse_14(); } static void OnFailureCallback_15(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_15(chip::to_underlying(status)); } - static void OnSuccessCallback_15(void * context, uint16_t bitmap16) + static void OnSuccessCallback_15(void * context, uint8_t bitmap8) { - (static_cast(context))->OnSuccessResponse_15(bitmap16); + (static_cast(context))->OnSuccessResponse_15(bitmap8); } static void OnFailureCallback_16(void * context, EmberAfStatus status) @@ -32320,43 +32914,43 @@ class TestCluster : public TestCommand (static_cast(context))->OnFailureResponse_16(chip::to_underlying(status)); } - static void OnSuccessCallback_16(void * context) { (static_cast(context))->OnSuccessResponse_16(); } + static void OnSuccessCallback_16(void * context, uint16_t bitmap16) + { + (static_cast(context))->OnSuccessResponse_16(bitmap16); + } static void OnFailureCallback_17(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_17(chip::to_underlying(status)); } - static void OnSuccessCallback_17(void * context, uint16_t bitmap16) - { - (static_cast(context))->OnSuccessResponse_17(bitmap16); - } + static void OnSuccessCallback_17(void * context) { (static_cast(context))->OnSuccessResponse_17(); } static void OnFailureCallback_18(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_18(chip::to_underlying(status)); } - static void OnSuccessCallback_18(void * context) { (static_cast(context))->OnSuccessResponse_18(); } + static void OnSuccessCallback_18(void * context, uint16_t bitmap16) + { + (static_cast(context))->OnSuccessResponse_18(bitmap16); + } static void OnFailureCallback_19(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_19(chip::to_underlying(status)); } - static void OnSuccessCallback_19(void * context, uint16_t bitmap16) - { - (static_cast(context))->OnSuccessResponse_19(bitmap16); - } + static void OnSuccessCallback_19(void * context) { (static_cast(context))->OnSuccessResponse_19(); } static void OnFailureCallback_20(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_20(chip::to_underlying(status)); } - static void OnSuccessCallback_20(void * context, uint32_t bitmap32) + static void OnSuccessCallback_20(void * context, uint16_t bitmap16) { - (static_cast(context))->OnSuccessResponse_20(bitmap32); + (static_cast(context))->OnSuccessResponse_20(bitmap16); } static void OnFailureCallback_21(void * context, EmberAfStatus status) @@ -32364,43 +32958,43 @@ class TestCluster : public TestCommand (static_cast(context))->OnFailureResponse_21(chip::to_underlying(status)); } - static void OnSuccessCallback_21(void * context) { (static_cast(context))->OnSuccessResponse_21(); } + static void OnSuccessCallback_21(void * context, uint32_t bitmap32) + { + (static_cast(context))->OnSuccessResponse_21(bitmap32); + } static void OnFailureCallback_22(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_22(chip::to_underlying(status)); } - static void OnSuccessCallback_22(void * context, uint32_t bitmap32) - { - (static_cast(context))->OnSuccessResponse_22(bitmap32); - } + static void OnSuccessCallback_22(void * context) { (static_cast(context))->OnSuccessResponse_22(); } static void OnFailureCallback_23(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_23(chip::to_underlying(status)); } - static void OnSuccessCallback_23(void * context) { (static_cast(context))->OnSuccessResponse_23(); } + static void OnSuccessCallback_23(void * context, uint32_t bitmap32) + { + (static_cast(context))->OnSuccessResponse_23(bitmap32); + } static void OnFailureCallback_24(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_24(chip::to_underlying(status)); } - static void OnSuccessCallback_24(void * context, uint32_t bitmap32) - { - (static_cast(context))->OnSuccessResponse_24(bitmap32); - } + static void OnSuccessCallback_24(void * context) { (static_cast(context))->OnSuccessResponse_24(); } static void OnFailureCallback_25(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_25(chip::to_underlying(status)); } - static void OnSuccessCallback_25(void * context, uint64_t bitmap64) + static void OnSuccessCallback_25(void * context, uint32_t bitmap32) { - (static_cast(context))->OnSuccessResponse_25(bitmap64); + (static_cast(context))->OnSuccessResponse_25(bitmap32); } static void OnFailureCallback_26(void * context, EmberAfStatus status) @@ -32408,43 +33002,43 @@ class TestCluster : public TestCommand (static_cast(context))->OnFailureResponse_26(chip::to_underlying(status)); } - static void OnSuccessCallback_26(void * context) { (static_cast(context))->OnSuccessResponse_26(); } + static void OnSuccessCallback_26(void * context, uint64_t bitmap64) + { + (static_cast(context))->OnSuccessResponse_26(bitmap64); + } static void OnFailureCallback_27(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_27(chip::to_underlying(status)); } - static void OnSuccessCallback_27(void * context, uint64_t bitmap64) - { - (static_cast(context))->OnSuccessResponse_27(bitmap64); - } + static void OnSuccessCallback_27(void * context) { (static_cast(context))->OnSuccessResponse_27(); } static void OnFailureCallback_28(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_28(chip::to_underlying(status)); } - static void OnSuccessCallback_28(void * context) { (static_cast(context))->OnSuccessResponse_28(); } + static void OnSuccessCallback_28(void * context, uint64_t bitmap64) + { + (static_cast(context))->OnSuccessResponse_28(bitmap64); + } static void OnFailureCallback_29(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_29(chip::to_underlying(status)); } - static void OnSuccessCallback_29(void * context, uint64_t bitmap64) - { - (static_cast(context))->OnSuccessResponse_29(bitmap64); - } + static void OnSuccessCallback_29(void * context) { (static_cast(context))->OnSuccessResponse_29(); } static void OnFailureCallback_30(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_30(chip::to_underlying(status)); } - static void OnSuccessCallback_30(void * context, uint8_t int8u) + static void OnSuccessCallback_30(void * context, uint64_t bitmap64) { - (static_cast(context))->OnSuccessResponse_30(int8u); + (static_cast(context))->OnSuccessResponse_30(bitmap64); } static void OnFailureCallback_31(void * context, EmberAfStatus status) @@ -32452,43 +33046,43 @@ class TestCluster : public TestCommand (static_cast(context))->OnFailureResponse_31(chip::to_underlying(status)); } - static void OnSuccessCallback_31(void * context) { (static_cast(context))->OnSuccessResponse_31(); } + static void OnSuccessCallback_31(void * context, uint8_t int8u) + { + (static_cast(context))->OnSuccessResponse_31(int8u); + } static void OnFailureCallback_32(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_32(chip::to_underlying(status)); } - static void OnSuccessCallback_32(void * context, uint8_t int8u) - { - (static_cast(context))->OnSuccessResponse_32(int8u); - } + static void OnSuccessCallback_32(void * context) { (static_cast(context))->OnSuccessResponse_32(); } static void OnFailureCallback_33(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_33(chip::to_underlying(status)); } - static void OnSuccessCallback_33(void * context) { (static_cast(context))->OnSuccessResponse_33(); } + static void OnSuccessCallback_33(void * context, uint8_t int8u) + { + (static_cast(context))->OnSuccessResponse_33(int8u); + } static void OnFailureCallback_34(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_34(chip::to_underlying(status)); } - static void OnSuccessCallback_34(void * context, uint8_t int8u) - { - (static_cast(context))->OnSuccessResponse_34(int8u); - } + static void OnSuccessCallback_34(void * context) { (static_cast(context))->OnSuccessResponse_34(); } static void OnFailureCallback_35(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_35(chip::to_underlying(status)); } - static void OnSuccessCallback_35(void * context, uint16_t int16u) + static void OnSuccessCallback_35(void * context, uint8_t int8u) { - (static_cast(context))->OnSuccessResponse_35(int16u); + (static_cast(context))->OnSuccessResponse_35(int8u); } static void OnFailureCallback_36(void * context, EmberAfStatus status) @@ -32496,43 +33090,43 @@ class TestCluster : public TestCommand (static_cast(context))->OnFailureResponse_36(chip::to_underlying(status)); } - static void OnSuccessCallback_36(void * context) { (static_cast(context))->OnSuccessResponse_36(); } + static void OnSuccessCallback_36(void * context, uint16_t int16u) + { + (static_cast(context))->OnSuccessResponse_36(int16u); + } static void OnFailureCallback_37(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_37(chip::to_underlying(status)); } - static void OnSuccessCallback_37(void * context, uint16_t int16u) - { - (static_cast(context))->OnSuccessResponse_37(int16u); - } + static void OnSuccessCallback_37(void * context) { (static_cast(context))->OnSuccessResponse_37(); } static void OnFailureCallback_38(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_38(chip::to_underlying(status)); } - static void OnSuccessCallback_38(void * context) { (static_cast(context))->OnSuccessResponse_38(); } + static void OnSuccessCallback_38(void * context, uint16_t int16u) + { + (static_cast(context))->OnSuccessResponse_38(int16u); + } static void OnFailureCallback_39(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_39(chip::to_underlying(status)); } - static void OnSuccessCallback_39(void * context, uint16_t int16u) - { - (static_cast(context))->OnSuccessResponse_39(int16u); - } + static void OnSuccessCallback_39(void * context) { (static_cast(context))->OnSuccessResponse_39(); } static void OnFailureCallback_40(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_40(chip::to_underlying(status)); } - static void OnSuccessCallback_40(void * context, uint32_t int32u) + static void OnSuccessCallback_40(void * context, uint16_t int16u) { - (static_cast(context))->OnSuccessResponse_40(int32u); + (static_cast(context))->OnSuccessResponse_40(int16u); } static void OnFailureCallback_41(void * context, EmberAfStatus status) @@ -32540,43 +33134,43 @@ class TestCluster : public TestCommand (static_cast(context))->OnFailureResponse_41(chip::to_underlying(status)); } - static void OnSuccessCallback_41(void * context) { (static_cast(context))->OnSuccessResponse_41(); } + static void OnSuccessCallback_41(void * context, uint32_t int32u) + { + (static_cast(context))->OnSuccessResponse_41(int32u); + } static void OnFailureCallback_42(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_42(chip::to_underlying(status)); } - static void OnSuccessCallback_42(void * context, uint32_t int32u) - { - (static_cast(context))->OnSuccessResponse_42(int32u); - } + static void OnSuccessCallback_42(void * context) { (static_cast(context))->OnSuccessResponse_42(); } static void OnFailureCallback_43(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_43(chip::to_underlying(status)); } - static void OnSuccessCallback_43(void * context) { (static_cast(context))->OnSuccessResponse_43(); } + static void OnSuccessCallback_43(void * context, uint32_t int32u) + { + (static_cast(context))->OnSuccessResponse_43(int32u); + } static void OnFailureCallback_44(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_44(chip::to_underlying(status)); } - static void OnSuccessCallback_44(void * context, uint32_t int32u) - { - (static_cast(context))->OnSuccessResponse_44(int32u); - } + static void OnSuccessCallback_44(void * context) { (static_cast(context))->OnSuccessResponse_44(); } static void OnFailureCallback_45(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_45(chip::to_underlying(status)); } - static void OnSuccessCallback_45(void * context, uint64_t int64u) + static void OnSuccessCallback_45(void * context, uint32_t int32u) { - (static_cast(context))->OnSuccessResponse_45(int64u); + (static_cast(context))->OnSuccessResponse_45(int32u); } static void OnFailureCallback_46(void * context, EmberAfStatus status) @@ -32584,43 +33178,43 @@ class TestCluster : public TestCommand (static_cast(context))->OnFailureResponse_46(chip::to_underlying(status)); } - static void OnSuccessCallback_46(void * context) { (static_cast(context))->OnSuccessResponse_46(); } + static void OnSuccessCallback_46(void * context, uint64_t int64u) + { + (static_cast(context))->OnSuccessResponse_46(int64u); + } static void OnFailureCallback_47(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_47(chip::to_underlying(status)); } - static void OnSuccessCallback_47(void * context, uint64_t int64u) - { - (static_cast(context))->OnSuccessResponse_47(int64u); - } + static void OnSuccessCallback_47(void * context) { (static_cast(context))->OnSuccessResponse_47(); } static void OnFailureCallback_48(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_48(chip::to_underlying(status)); } - static void OnSuccessCallback_48(void * context) { (static_cast(context))->OnSuccessResponse_48(); } + static void OnSuccessCallback_48(void * context, uint64_t int64u) + { + (static_cast(context))->OnSuccessResponse_48(int64u); + } static void OnFailureCallback_49(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_49(chip::to_underlying(status)); } - static void OnSuccessCallback_49(void * context, uint64_t int64u) - { - (static_cast(context))->OnSuccessResponse_49(int64u); - } + static void OnSuccessCallback_49(void * context) { (static_cast(context))->OnSuccessResponse_49(); } static void OnFailureCallback_50(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_50(chip::to_underlying(status)); } - static void OnSuccessCallback_50(void * context, int8_t int8s) + static void OnSuccessCallback_50(void * context, uint64_t int64u) { - (static_cast(context))->OnSuccessResponse_50(int8s); + (static_cast(context))->OnSuccessResponse_50(int64u); } static void OnFailureCallback_51(void * context, EmberAfStatus status) @@ -32628,60 +33222,60 @@ class TestCluster : public TestCommand (static_cast(context))->OnFailureResponse_51(chip::to_underlying(status)); } - static void OnSuccessCallback_51(void * context) { (static_cast(context))->OnSuccessResponse_51(); } + static void OnSuccessCallback_51(void * context, int8_t int8s) + { + (static_cast(context))->OnSuccessResponse_51(int8s); + } static void OnFailureCallback_52(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_52(chip::to_underlying(status)); } - static void OnSuccessCallback_52(void * context, int8_t int8s) - { - (static_cast(context))->OnSuccessResponse_52(int8s); - } + static void OnSuccessCallback_52(void * context) { (static_cast(context))->OnSuccessResponse_52(); } static void OnFailureCallback_53(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_53(chip::to_underlying(status)); } - static void OnSuccessCallback_53(void * context) { (static_cast(context))->OnSuccessResponse_53(); } + static void OnSuccessCallback_53(void * context, int8_t int8s) + { + (static_cast(context))->OnSuccessResponse_53(int8s); + } static void OnFailureCallback_54(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_54(chip::to_underlying(status)); } - static void OnSuccessCallback_54(void * context, int8_t int8s) - { - (static_cast(context))->OnSuccessResponse_54(int8s); - } + static void OnSuccessCallback_54(void * context) { (static_cast(context))->OnSuccessResponse_54(); } static void OnFailureCallback_55(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_55(chip::to_underlying(status)); } - static void OnSuccessCallback_55(void * context) { (static_cast(context))->OnSuccessResponse_55(); } + static void OnSuccessCallback_55(void * context, int8_t int8s) + { + (static_cast(context))->OnSuccessResponse_55(int8s); + } static void OnFailureCallback_56(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_56(chip::to_underlying(status)); } - static void OnSuccessCallback_56(void * context, int8_t int8s) - { - (static_cast(context))->OnSuccessResponse_56(int8s); - } + static void OnSuccessCallback_56(void * context) { (static_cast(context))->OnSuccessResponse_56(); } static void OnFailureCallback_57(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_57(chip::to_underlying(status)); } - static void OnSuccessCallback_57(void * context, int16_t int16s) + static void OnSuccessCallback_57(void * context, int8_t int8s) { - (static_cast(context))->OnSuccessResponse_57(int16s); + (static_cast(context))->OnSuccessResponse_57(int8s); } static void OnFailureCallback_58(void * context, EmberAfStatus status) @@ -32689,60 +33283,60 @@ class TestCluster : public TestCommand (static_cast(context))->OnFailureResponse_58(chip::to_underlying(status)); } - static void OnSuccessCallback_58(void * context) { (static_cast(context))->OnSuccessResponse_58(); } + static void OnSuccessCallback_58(void * context, int16_t int16s) + { + (static_cast(context))->OnSuccessResponse_58(int16s); + } static void OnFailureCallback_59(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_59(chip::to_underlying(status)); } - static void OnSuccessCallback_59(void * context, int16_t int16s) - { - (static_cast(context))->OnSuccessResponse_59(int16s); - } + static void OnSuccessCallback_59(void * context) { (static_cast(context))->OnSuccessResponse_59(); } static void OnFailureCallback_60(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_60(chip::to_underlying(status)); } - static void OnSuccessCallback_60(void * context) { (static_cast(context))->OnSuccessResponse_60(); } + static void OnSuccessCallback_60(void * context, int16_t int16s) + { + (static_cast(context))->OnSuccessResponse_60(int16s); + } static void OnFailureCallback_61(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_61(chip::to_underlying(status)); } - static void OnSuccessCallback_61(void * context, int16_t int16s) - { - (static_cast(context))->OnSuccessResponse_61(int16s); - } + static void OnSuccessCallback_61(void * context) { (static_cast(context))->OnSuccessResponse_61(); } static void OnFailureCallback_62(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_62(chip::to_underlying(status)); } - static void OnSuccessCallback_62(void * context) { (static_cast(context))->OnSuccessResponse_62(); } + static void OnSuccessCallback_62(void * context, int16_t int16s) + { + (static_cast(context))->OnSuccessResponse_62(int16s); + } static void OnFailureCallback_63(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_63(chip::to_underlying(status)); } - static void OnSuccessCallback_63(void * context, int16_t int16s) - { - (static_cast(context))->OnSuccessResponse_63(int16s); - } + static void OnSuccessCallback_63(void * context) { (static_cast(context))->OnSuccessResponse_63(); } static void OnFailureCallback_64(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_64(chip::to_underlying(status)); } - static void OnSuccessCallback_64(void * context, int32_t int32s) + static void OnSuccessCallback_64(void * context, int16_t int16s) { - (static_cast(context))->OnSuccessResponse_64(int32s); + (static_cast(context))->OnSuccessResponse_64(int16s); } static void OnFailureCallback_65(void * context, EmberAfStatus status) @@ -32750,60 +33344,60 @@ class TestCluster : public TestCommand (static_cast(context))->OnFailureResponse_65(chip::to_underlying(status)); } - static void OnSuccessCallback_65(void * context) { (static_cast(context))->OnSuccessResponse_65(); } + static void OnSuccessCallback_65(void * context, int32_t int32s) + { + (static_cast(context))->OnSuccessResponse_65(int32s); + } static void OnFailureCallback_66(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_66(chip::to_underlying(status)); } - static void OnSuccessCallback_66(void * context, int32_t int32s) - { - (static_cast(context))->OnSuccessResponse_66(int32s); - } + static void OnSuccessCallback_66(void * context) { (static_cast(context))->OnSuccessResponse_66(); } static void OnFailureCallback_67(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_67(chip::to_underlying(status)); } - static void OnSuccessCallback_67(void * context) { (static_cast(context))->OnSuccessResponse_67(); } + static void OnSuccessCallback_67(void * context, int32_t int32s) + { + (static_cast(context))->OnSuccessResponse_67(int32s); + } static void OnFailureCallback_68(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_68(chip::to_underlying(status)); } - static void OnSuccessCallback_68(void * context, int32_t int32s) - { - (static_cast(context))->OnSuccessResponse_68(int32s); - } + static void OnSuccessCallback_68(void * context) { (static_cast(context))->OnSuccessResponse_68(); } static void OnFailureCallback_69(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_69(chip::to_underlying(status)); } - static void OnSuccessCallback_69(void * context) { (static_cast(context))->OnSuccessResponse_69(); } + static void OnSuccessCallback_69(void * context, int32_t int32s) + { + (static_cast(context))->OnSuccessResponse_69(int32s); + } static void OnFailureCallback_70(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_70(chip::to_underlying(status)); } - static void OnSuccessCallback_70(void * context, int32_t int32s) - { - (static_cast(context))->OnSuccessResponse_70(int32s); - } + static void OnSuccessCallback_70(void * context) { (static_cast(context))->OnSuccessResponse_70(); } static void OnFailureCallback_71(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_71(chip::to_underlying(status)); } - static void OnSuccessCallback_71(void * context, int64_t int64s) + static void OnSuccessCallback_71(void * context, int32_t int32s) { - (static_cast(context))->OnSuccessResponse_71(int64s); + (static_cast(context))->OnSuccessResponse_71(int32s); } static void OnFailureCallback_72(void * context, EmberAfStatus status) @@ -32811,60 +33405,60 @@ class TestCluster : public TestCommand (static_cast(context))->OnFailureResponse_72(chip::to_underlying(status)); } - static void OnSuccessCallback_72(void * context) { (static_cast(context))->OnSuccessResponse_72(); } + static void OnSuccessCallback_72(void * context, int64_t int64s) + { + (static_cast(context))->OnSuccessResponse_72(int64s); + } static void OnFailureCallback_73(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_73(chip::to_underlying(status)); } - static void OnSuccessCallback_73(void * context, int64_t int64s) - { - (static_cast(context))->OnSuccessResponse_73(int64s); - } + static void OnSuccessCallback_73(void * context) { (static_cast(context))->OnSuccessResponse_73(); } static void OnFailureCallback_74(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_74(chip::to_underlying(status)); } - static void OnSuccessCallback_74(void * context) { (static_cast(context))->OnSuccessResponse_74(); } + static void OnSuccessCallback_74(void * context, int64_t int64s) + { + (static_cast(context))->OnSuccessResponse_74(int64s); + } static void OnFailureCallback_75(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_75(chip::to_underlying(status)); } - static void OnSuccessCallback_75(void * context, int64_t int64s) - { - (static_cast(context))->OnSuccessResponse_75(int64s); - } + static void OnSuccessCallback_75(void * context) { (static_cast(context))->OnSuccessResponse_75(); } static void OnFailureCallback_76(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_76(chip::to_underlying(status)); } - static void OnSuccessCallback_76(void * context) { (static_cast(context))->OnSuccessResponse_76(); } + static void OnSuccessCallback_76(void * context, int64_t int64s) + { + (static_cast(context))->OnSuccessResponse_76(int64s); + } static void OnFailureCallback_77(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_77(chip::to_underlying(status)); } - static void OnSuccessCallback_77(void * context, int64_t int64s) - { - (static_cast(context))->OnSuccessResponse_77(int64s); - } + static void OnSuccessCallback_77(void * context) { (static_cast(context))->OnSuccessResponse_77(); } static void OnFailureCallback_78(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_78(chip::to_underlying(status)); } - static void OnSuccessCallback_78(void * context, uint8_t enum8) + static void OnSuccessCallback_78(void * context, int64_t int64s) { - (static_cast(context))->OnSuccessResponse_78(enum8); + (static_cast(context))->OnSuccessResponse_78(int64s); } static void OnFailureCallback_79(void * context, EmberAfStatus status) @@ -32872,43 +33466,43 @@ class TestCluster : public TestCommand (static_cast(context))->OnFailureResponse_79(chip::to_underlying(status)); } - static void OnSuccessCallback_79(void * context) { (static_cast(context))->OnSuccessResponse_79(); } + static void OnSuccessCallback_79(void * context, uint8_t enum8) + { + (static_cast(context))->OnSuccessResponse_79(enum8); + } static void OnFailureCallback_80(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_80(chip::to_underlying(status)); } - static void OnSuccessCallback_80(void * context, uint8_t enum8) - { - (static_cast(context))->OnSuccessResponse_80(enum8); - } + static void OnSuccessCallback_80(void * context) { (static_cast(context))->OnSuccessResponse_80(); } static void OnFailureCallback_81(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_81(chip::to_underlying(status)); } - static void OnSuccessCallback_81(void * context) { (static_cast(context))->OnSuccessResponse_81(); } + static void OnSuccessCallback_81(void * context, uint8_t enum8) + { + (static_cast(context))->OnSuccessResponse_81(enum8); + } static void OnFailureCallback_82(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_82(chip::to_underlying(status)); } - static void OnSuccessCallback_82(void * context, uint8_t enum8) - { - (static_cast(context))->OnSuccessResponse_82(enum8); - } + static void OnSuccessCallback_82(void * context) { (static_cast(context))->OnSuccessResponse_82(); } static void OnFailureCallback_83(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_83(chip::to_underlying(status)); } - static void OnSuccessCallback_83(void * context, uint16_t enum16) + static void OnSuccessCallback_83(void * context, uint8_t enum8) { - (static_cast(context))->OnSuccessResponse_83(enum16); + (static_cast(context))->OnSuccessResponse_83(enum8); } static void OnFailureCallback_84(void * context, EmberAfStatus status) @@ -32916,43 +33510,43 @@ class TestCluster : public TestCommand (static_cast(context))->OnFailureResponse_84(chip::to_underlying(status)); } - static void OnSuccessCallback_84(void * context) { (static_cast(context))->OnSuccessResponse_84(); } + static void OnSuccessCallback_84(void * context, uint16_t enum16) + { + (static_cast(context))->OnSuccessResponse_84(enum16); + } static void OnFailureCallback_85(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_85(chip::to_underlying(status)); } - static void OnSuccessCallback_85(void * context, uint16_t enum16) - { - (static_cast(context))->OnSuccessResponse_85(enum16); - } + static void OnSuccessCallback_85(void * context) { (static_cast(context))->OnSuccessResponse_85(); } static void OnFailureCallback_86(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_86(chip::to_underlying(status)); } - static void OnSuccessCallback_86(void * context) { (static_cast(context))->OnSuccessResponse_86(); } + static void OnSuccessCallback_86(void * context, uint16_t enum16) + { + (static_cast(context))->OnSuccessResponse_86(enum16); + } static void OnFailureCallback_87(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_87(chip::to_underlying(status)); } - static void OnSuccessCallback_87(void * context, uint16_t enum16) - { - (static_cast(context))->OnSuccessResponse_87(enum16); - } + static void OnSuccessCallback_87(void * context) { (static_cast(context))->OnSuccessResponse_87(); } static void OnFailureCallback_88(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_88(chip::to_underlying(status)); } - static void OnSuccessCallback_88(void * context, chip::ByteSpan octetString) + static void OnSuccessCallback_88(void * context, uint16_t enum16) { - (static_cast(context))->OnSuccessResponse_88(octetString); + (static_cast(context))->OnSuccessResponse_88(enum16); } static void OnFailureCallback_89(void * context, EmberAfStatus status) @@ -32960,230 +33554,230 @@ class TestCluster : public TestCommand (static_cast(context))->OnFailureResponse_89(chip::to_underlying(status)); } - static void OnSuccessCallback_89(void * context) { (static_cast(context))->OnSuccessResponse_89(); } + static void OnSuccessCallback_89(void * context, chip::ByteSpan octetString) + { + (static_cast(context))->OnSuccessResponse_89(octetString); + } static void OnFailureCallback_90(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_90(chip::to_underlying(status)); } - static void OnSuccessCallback_90(void * context, chip::ByteSpan octetString) - { - (static_cast(context))->OnSuccessResponse_90(octetString); - } + static void OnSuccessCallback_90(void * context) { (static_cast(context))->OnSuccessResponse_90(); } static void OnFailureCallback_91(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_91(chip::to_underlying(status)); } - static void OnSuccessCallback_91(void * context) { (static_cast(context))->OnSuccessResponse_91(); } + static void OnSuccessCallback_91(void * context, chip::ByteSpan octetString) + { + (static_cast(context))->OnSuccessResponse_91(octetString); + } static void OnFailureCallback_92(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_92(chip::to_underlying(status)); } - static void OnSuccessCallback_92(void * context, chip::ByteSpan octetString) - { - (static_cast(context))->OnSuccessResponse_92(octetString); - } + static void OnSuccessCallback_92(void * context) { (static_cast(context))->OnSuccessResponse_92(); } static void OnFailureCallback_93(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_93(chip::to_underlying(status)); } - static void OnSuccessCallback_93(void * context) { (static_cast(context))->OnSuccessResponse_93(); } + static void OnSuccessCallback_93(void * context, chip::ByteSpan octetString) + { + (static_cast(context))->OnSuccessResponse_93(octetString); + } static void OnFailureCallback_94(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_94(chip::to_underlying(status)); } - static void OnSuccessCallback_94(void * context, chip::ByteSpan octetString) - { - (static_cast(context))->OnSuccessResponse_94(octetString); - } + static void OnSuccessCallback_94(void * context) { (static_cast(context))->OnSuccessResponse_94(); } static void OnFailureCallback_95(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_95(chip::to_underlying(status)); } - static void OnSuccessCallback_95(void * context) { (static_cast(context))->OnSuccessResponse_95(); } + static void OnSuccessCallback_95(void * context, chip::ByteSpan octetString) + { + (static_cast(context))->OnSuccessResponse_95(octetString); + } static void OnFailureCallback_96(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_96(chip::to_underlying(status)); } - static void OnSuccessCallback_96(void * context, chip::ByteSpan longOctetString) - { - (static_cast(context))->OnSuccessResponse_96(longOctetString); - } + static void OnSuccessCallback_96(void * context) { (static_cast(context))->OnSuccessResponse_96(); } static void OnFailureCallback_97(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_97(chip::to_underlying(status)); } - static void OnSuccessCallback_97(void * context) { (static_cast(context))->OnSuccessResponse_97(); } + static void OnSuccessCallback_97(void * context, chip::ByteSpan longOctetString) + { + (static_cast(context))->OnSuccessResponse_97(longOctetString); + } static void OnFailureCallback_98(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_98(chip::to_underlying(status)); } - static void OnSuccessCallback_98(void * context, chip::ByteSpan longOctetString) - { - (static_cast(context))->OnSuccessResponse_98(longOctetString); - } + static void OnSuccessCallback_98(void * context) { (static_cast(context))->OnSuccessResponse_98(); } static void OnFailureCallback_99(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_99(chip::to_underlying(status)); } - static void OnSuccessCallback_99(void * context) { (static_cast(context))->OnSuccessResponse_99(); } + static void OnSuccessCallback_99(void * context, chip::ByteSpan longOctetString) + { + (static_cast(context))->OnSuccessResponse_99(longOctetString); + } static void OnFailureCallback_100(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_100(chip::to_underlying(status)); } - static void OnSuccessCallback_100(void * context, chip::CharSpan charString) - { - (static_cast(context))->OnSuccessResponse_100(charString); - } + static void OnSuccessCallback_100(void * context) { (static_cast(context))->OnSuccessResponse_100(); } static void OnFailureCallback_101(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_101(chip::to_underlying(status)); } - static void OnSuccessCallback_101(void * context) { (static_cast(context))->OnSuccessResponse_101(); } + static void OnSuccessCallback_101(void * context, chip::CharSpan charString) + { + (static_cast(context))->OnSuccessResponse_101(charString); + } static void OnFailureCallback_102(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_102(chip::to_underlying(status)); } - static void OnSuccessCallback_102(void * context, chip::CharSpan charString) - { - (static_cast(context))->OnSuccessResponse_102(charString); - } + static void OnSuccessCallback_102(void * context) { (static_cast(context))->OnSuccessResponse_102(); } static void OnFailureCallback_103(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_103(chip::to_underlying(status)); } - static void OnSuccessCallback_103(void * context) { (static_cast(context))->OnSuccessResponse_103(); } + static void OnSuccessCallback_103(void * context, chip::CharSpan charString) + { + (static_cast(context))->OnSuccessResponse_103(charString); + } static void OnFailureCallback_104(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_104(chip::to_underlying(status)); } - static void OnSuccessCallback_104(void * context, chip::CharSpan charString) - { - (static_cast(context))->OnSuccessResponse_104(charString); - } + static void OnSuccessCallback_104(void * context) { (static_cast(context))->OnSuccessResponse_104(); } static void OnFailureCallback_105(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_105(chip::to_underlying(status)); } - static void OnSuccessCallback_105(void * context) { (static_cast(context))->OnSuccessResponse_105(); } + static void OnSuccessCallback_105(void * context, chip::CharSpan charString) + { + (static_cast(context))->OnSuccessResponse_105(charString); + } static void OnFailureCallback_106(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_106(chip::to_underlying(status)); } - static void OnSuccessCallback_106(void * context, chip::CharSpan longCharString) - { - (static_cast(context))->OnSuccessResponse_106(longCharString); - } + static void OnSuccessCallback_106(void * context) { (static_cast(context))->OnSuccessResponse_106(); } static void OnFailureCallback_107(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_107(chip::to_underlying(status)); } - static void OnSuccessCallback_107(void * context) { (static_cast(context))->OnSuccessResponse_107(); } + static void OnSuccessCallback_107(void * context, chip::CharSpan longCharString) + { + (static_cast(context))->OnSuccessResponse_107(longCharString); + } static void OnFailureCallback_108(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_108(chip::to_underlying(status)); } - static void OnSuccessCallback_108(void * context, chip::CharSpan longCharString) - { - (static_cast(context))->OnSuccessResponse_108(longCharString); - } + static void OnSuccessCallback_108(void * context) { (static_cast(context))->OnSuccessResponse_108(); } static void OnFailureCallback_109(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_109(chip::to_underlying(status)); } - static void OnSuccessCallback_109(void * context) { (static_cast(context))->OnSuccessResponse_109(); } + static void OnSuccessCallback_109(void * context, chip::CharSpan longCharString) + { + (static_cast(context))->OnSuccessResponse_109(longCharString); + } static void OnFailureCallback_110(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_110(chip::to_underlying(status)); } - static void OnSuccessCallback_110(void * context, uint64_t epochUs) - { - (static_cast(context))->OnSuccessResponse_110(epochUs); - } + static void OnSuccessCallback_110(void * context) { (static_cast(context))->OnSuccessResponse_110(); } static void OnFailureCallback_111(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_111(chip::to_underlying(status)); } - static void OnSuccessCallback_111(void * context) { (static_cast(context))->OnSuccessResponse_111(); } + static void OnSuccessCallback_111(void * context, uint64_t epochUs) + { + (static_cast(context))->OnSuccessResponse_111(epochUs); + } static void OnFailureCallback_112(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_112(chip::to_underlying(status)); } - static void OnSuccessCallback_112(void * context, uint64_t epochUs) - { - (static_cast(context))->OnSuccessResponse_112(epochUs); - } + static void OnSuccessCallback_112(void * context) { (static_cast(context))->OnSuccessResponse_112(); } static void OnFailureCallback_113(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_113(chip::to_underlying(status)); } - static void OnSuccessCallback_113(void * context) { (static_cast(context))->OnSuccessResponse_113(); } + static void OnSuccessCallback_113(void * context, uint64_t epochUs) + { + (static_cast(context))->OnSuccessResponse_113(epochUs); + } static void OnFailureCallback_114(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_114(chip::to_underlying(status)); } - static void OnSuccessCallback_114(void * context, uint64_t epochUs) - { - (static_cast(context))->OnSuccessResponse_114(epochUs); - } + static void OnSuccessCallback_114(void * context) { (static_cast(context))->OnSuccessResponse_114(); } static void OnFailureCallback_115(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_115(chip::to_underlying(status)); } - static void OnSuccessCallback_115(void * context, uint32_t epochS) + static void OnSuccessCallback_115(void * context, uint64_t epochUs) { - (static_cast(context))->OnSuccessResponse_115(epochS); + (static_cast(context))->OnSuccessResponse_115(epochUs); } static void OnFailureCallback_116(void * context, EmberAfStatus status) @@ -33191,43 +33785,43 @@ class TestCluster : public TestCommand (static_cast(context))->OnFailureResponse_116(chip::to_underlying(status)); } - static void OnSuccessCallback_116(void * context) { (static_cast(context))->OnSuccessResponse_116(); } + static void OnSuccessCallback_116(void * context, uint32_t epochS) + { + (static_cast(context))->OnSuccessResponse_116(epochS); + } static void OnFailureCallback_117(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_117(chip::to_underlying(status)); } - static void OnSuccessCallback_117(void * context, uint32_t epochS) - { - (static_cast(context))->OnSuccessResponse_117(epochS); - } + static void OnSuccessCallback_117(void * context) { (static_cast(context))->OnSuccessResponse_117(); } static void OnFailureCallback_118(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_118(chip::to_underlying(status)); } - static void OnSuccessCallback_118(void * context) { (static_cast(context))->OnSuccessResponse_118(); } + static void OnSuccessCallback_118(void * context, uint32_t epochS) + { + (static_cast(context))->OnSuccessResponse_118(epochS); + } static void OnFailureCallback_119(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_119(chip::to_underlying(status)); } - static void OnSuccessCallback_119(void * context, uint32_t epochS) - { - (static_cast(context))->OnSuccessResponse_119(epochS); - } + static void OnSuccessCallback_119(void * context) { (static_cast(context))->OnSuccessResponse_119(); } static void OnFailureCallback_120(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_120(chip::to_underlying(status)); } - static void OnSuccessCallback_120(void * context, bool unsupported) + static void OnSuccessCallback_120(void * context, uint32_t epochS) { - (static_cast(context))->OnSuccessResponse_120(unsupported); + (static_cast(context))->OnSuccessResponse_120(epochS); } static void OnFailureCallback_121(void * context, EmberAfStatus status) @@ -33235,852 +33829,852 @@ class TestCluster : public TestCommand (static_cast(context))->OnFailureResponse_121(chip::to_underlying(status)); } - static void OnSuccessCallback_121(void * context) { (static_cast(context))->OnSuccessResponse_121(); } - - static void OnFailureCallback_124(void * context, EmberAfStatus status) + static void OnSuccessCallback_121(void * context, bool unsupported) { - (static_cast(context))->OnFailureResponse_124(chip::to_underlying(status)); + (static_cast(context))->OnSuccessResponse_121(unsupported); } - static void OnSuccessCallback_124(void * context, chip::VendorId vendorId) + static void OnFailureCallback_122(void * context, EmberAfStatus status) { - (static_cast(context))->OnSuccessResponse_124(vendorId); + (static_cast(context))->OnFailureResponse_122(chip::to_underlying(status)); } + static void OnSuccessCallback_122(void * context) { (static_cast(context))->OnSuccessResponse_122(); } + static void OnFailureCallback_125(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_125(chip::to_underlying(status)); } - static void OnSuccessCallback_125(void * context) { (static_cast(context))->OnSuccessResponse_125(); } + static void OnSuccessCallback_125(void * context, chip::VendorId vendorId) + { + (static_cast(context))->OnSuccessResponse_125(vendorId); + } static void OnFailureCallback_126(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_126(chip::to_underlying(status)); } - static void OnSuccessCallback_126(void * context, chip::VendorId vendorId) - { - (static_cast(context))->OnSuccessResponse_126(vendorId); - } + static void OnSuccessCallback_126(void * context) { (static_cast(context))->OnSuccessResponse_126(); } static void OnFailureCallback_127(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_127(chip::to_underlying(status)); } - static void OnSuccessCallback_127(void * context) { (static_cast(context))->OnSuccessResponse_127(); } + static void OnSuccessCallback_127(void * context, chip::VendorId vendorId) + { + (static_cast(context))->OnSuccessResponse_127(vendorId); + } - static void OnFailureCallback_144(void * context, EmberAfStatus status) + static void OnFailureCallback_128(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_144(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_128(chip::to_underlying(status)); } - static void OnSuccessCallback_144(void * context) { (static_cast(context))->OnSuccessResponse_144(); } + static void OnSuccessCallback_128(void * context) { (static_cast(context))->OnSuccessResponse_128(); } static void OnFailureCallback_145(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_145(chip::to_underlying(status)); } - static void OnSuccessCallback_145(void * context, const chip::app::DataModel::DecodableList & listInt8u) - { - (static_cast(context))->OnSuccessResponse_145(listInt8u); - } + static void OnSuccessCallback_145(void * context) { (static_cast(context))->OnSuccessResponse_145(); } static void OnFailureCallback_146(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_146(chip::to_underlying(status)); } - static void OnSuccessCallback_146(void * context) { (static_cast(context))->OnSuccessResponse_146(); } + static void OnSuccessCallback_146(void * context, const chip::app::DataModel::DecodableList & listInt8u) + { + (static_cast(context))->OnSuccessResponse_146(listInt8u); + } static void OnFailureCallback_147(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_147(chip::to_underlying(status)); } - static void OnSuccessCallback_147(void * context, const chip::app::DataModel::DecodableList & listOctetString) - { - (static_cast(context))->OnSuccessResponse_147(listOctetString); - } + static void OnSuccessCallback_147(void * context) { (static_cast(context))->OnSuccessResponse_147(); } static void OnFailureCallback_148(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_148(chip::to_underlying(status)); } - static void OnSuccessCallback_148(void * context) { (static_cast(context))->OnSuccessResponse_148(); } + static void OnSuccessCallback_148(void * context, const chip::app::DataModel::DecodableList & listOctetString) + { + (static_cast(context))->OnSuccessResponse_148(listOctetString); + } static void OnFailureCallback_149(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_149(chip::to_underlying(status)); } - static void OnSuccessCallback_149( - void * context, - const chip::app::DataModel::DecodableList & - listStructOctetString) + static void OnSuccessCallback_149(void * context) { (static_cast(context))->OnSuccessResponse_149(); } + + static void OnFailureCallback_150(void * context, EmberAfStatus status) { - (static_cast(context))->OnSuccessResponse_149(listStructOctetString); + (static_cast(context))->OnFailureResponse_150(chip::to_underlying(status)); } - static void OnFailureCallback_152(void * context, EmberAfStatus status) + static void OnSuccessCallback_150( + void * context, + const chip::app::DataModel::DecodableList & + listStructOctetString) { - (static_cast(context))->OnFailureResponse_152(chip::to_underlying(status)); + (static_cast(context))->OnSuccessResponse_150(listStructOctetString); } - static void OnSuccessCallback_152(void * context) { (static_cast(context))->OnSuccessResponse_152(); } - static void OnFailureCallback_153(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_153(chip::to_underlying(status)); } - static void OnSuccessCallback_153(void * context, const chip::app::DataModel::Nullable & nullableBoolean) - { - (static_cast(context))->OnSuccessResponse_153(nullableBoolean); - } + static void OnSuccessCallback_153(void * context) { (static_cast(context))->OnSuccessResponse_153(); } static void OnFailureCallback_154(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_154(chip::to_underlying(status)); } - static void OnSuccessCallback_154(void * context) { (static_cast(context))->OnSuccessResponse_154(); } + static void OnSuccessCallback_154(void * context, const chip::app::DataModel::Nullable & nullableBoolean) + { + (static_cast(context))->OnSuccessResponse_154(nullableBoolean); + } static void OnFailureCallback_155(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_155(chip::to_underlying(status)); } - static void OnSuccessCallback_155(void * context, const chip::app::DataModel::Nullable & nullableBoolean) - { - (static_cast(context))->OnSuccessResponse_155(nullableBoolean); - } + static void OnSuccessCallback_155(void * context) { (static_cast(context))->OnSuccessResponse_155(); } static void OnFailureCallback_156(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_156(chip::to_underlying(status)); } - static void OnSuccessCallback_156(void * context) { (static_cast(context))->OnSuccessResponse_156(); } + static void OnSuccessCallback_156(void * context, const chip::app::DataModel::Nullable & nullableBoolean) + { + (static_cast(context))->OnSuccessResponse_156(nullableBoolean); + } static void OnFailureCallback_157(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_157(chip::to_underlying(status)); } - static void OnSuccessCallback_157(void * context, const chip::app::DataModel::Nullable & nullableBitmap8) - { - (static_cast(context))->OnSuccessResponse_157(nullableBitmap8); - } + static void OnSuccessCallback_157(void * context) { (static_cast(context))->OnSuccessResponse_157(); } static void OnFailureCallback_158(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_158(chip::to_underlying(status)); } - static void OnSuccessCallback_158(void * context) { (static_cast(context))->OnSuccessResponse_158(); } + static void OnSuccessCallback_158(void * context, const chip::app::DataModel::Nullable & nullableBitmap8) + { + (static_cast(context))->OnSuccessResponse_158(nullableBitmap8); + } static void OnFailureCallback_159(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_159(chip::to_underlying(status)); } - static void OnSuccessCallback_159(void * context, const chip::app::DataModel::Nullable & nullableBitmap8) - { - (static_cast(context))->OnSuccessResponse_159(nullableBitmap8); - } + static void OnSuccessCallback_159(void * context) { (static_cast(context))->OnSuccessResponse_159(); } static void OnFailureCallback_160(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_160(chip::to_underlying(status)); } - static void OnSuccessCallback_160(void * context) { (static_cast(context))->OnSuccessResponse_160(); } + static void OnSuccessCallback_160(void * context, const chip::app::DataModel::Nullable & nullableBitmap8) + { + (static_cast(context))->OnSuccessResponse_160(nullableBitmap8); + } static void OnFailureCallback_161(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_161(chip::to_underlying(status)); } - static void OnSuccessCallback_161(void * context, const chip::app::DataModel::Nullable & nullableBitmap8) - { - (static_cast(context))->OnSuccessResponse_161(nullableBitmap8); - } + static void OnSuccessCallback_161(void * context) { (static_cast(context))->OnSuccessResponse_161(); } static void OnFailureCallback_162(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_162(chip::to_underlying(status)); } - static void OnSuccessCallback_162(void * context) { (static_cast(context))->OnSuccessResponse_162(); } + static void OnSuccessCallback_162(void * context, const chip::app::DataModel::Nullable & nullableBitmap8) + { + (static_cast(context))->OnSuccessResponse_162(nullableBitmap8); + } static void OnFailureCallback_163(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_163(chip::to_underlying(status)); } - static void OnSuccessCallback_163(void * context, const chip::app::DataModel::Nullable & nullableBitmap16) - { - (static_cast(context))->OnSuccessResponse_163(nullableBitmap16); - } + static void OnSuccessCallback_163(void * context) { (static_cast(context))->OnSuccessResponse_163(); } static void OnFailureCallback_164(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_164(chip::to_underlying(status)); } - static void OnSuccessCallback_164(void * context) { (static_cast(context))->OnSuccessResponse_164(); } + static void OnSuccessCallback_164(void * context, const chip::app::DataModel::Nullable & nullableBitmap16) + { + (static_cast(context))->OnSuccessResponse_164(nullableBitmap16); + } static void OnFailureCallback_165(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_165(chip::to_underlying(status)); } - static void OnSuccessCallback_165(void * context, const chip::app::DataModel::Nullable & nullableBitmap16) - { - (static_cast(context))->OnSuccessResponse_165(nullableBitmap16); - } + static void OnSuccessCallback_165(void * context) { (static_cast(context))->OnSuccessResponse_165(); } static void OnFailureCallback_166(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_166(chip::to_underlying(status)); } - static void OnSuccessCallback_166(void * context) { (static_cast(context))->OnSuccessResponse_166(); } + static void OnSuccessCallback_166(void * context, const chip::app::DataModel::Nullable & nullableBitmap16) + { + (static_cast(context))->OnSuccessResponse_166(nullableBitmap16); + } static void OnFailureCallback_167(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_167(chip::to_underlying(status)); } - static void OnSuccessCallback_167(void * context, const chip::app::DataModel::Nullable & nullableBitmap16) - { - (static_cast(context))->OnSuccessResponse_167(nullableBitmap16); - } + static void OnSuccessCallback_167(void * context) { (static_cast(context))->OnSuccessResponse_167(); } static void OnFailureCallback_168(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_168(chip::to_underlying(status)); } - static void OnSuccessCallback_168(void * context) { (static_cast(context))->OnSuccessResponse_168(); } + static void OnSuccessCallback_168(void * context, const chip::app::DataModel::Nullable & nullableBitmap16) + { + (static_cast(context))->OnSuccessResponse_168(nullableBitmap16); + } static void OnFailureCallback_169(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_169(chip::to_underlying(status)); } - static void OnSuccessCallback_169(void * context, const chip::app::DataModel::Nullable & nullableBitmap32) - { - (static_cast(context))->OnSuccessResponse_169(nullableBitmap32); - } + static void OnSuccessCallback_169(void * context) { (static_cast(context))->OnSuccessResponse_169(); } static void OnFailureCallback_170(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_170(chip::to_underlying(status)); } - static void OnSuccessCallback_170(void * context) { (static_cast(context))->OnSuccessResponse_170(); } + static void OnSuccessCallback_170(void * context, const chip::app::DataModel::Nullable & nullableBitmap32) + { + (static_cast(context))->OnSuccessResponse_170(nullableBitmap32); + } static void OnFailureCallback_171(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_171(chip::to_underlying(status)); } - static void OnSuccessCallback_171(void * context, const chip::app::DataModel::Nullable & nullableBitmap32) - { - (static_cast(context))->OnSuccessResponse_171(nullableBitmap32); - } + static void OnSuccessCallback_171(void * context) { (static_cast(context))->OnSuccessResponse_171(); } static void OnFailureCallback_172(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_172(chip::to_underlying(status)); } - static void OnSuccessCallback_172(void * context) { (static_cast(context))->OnSuccessResponse_172(); } + static void OnSuccessCallback_172(void * context, const chip::app::DataModel::Nullable & nullableBitmap32) + { + (static_cast(context))->OnSuccessResponse_172(nullableBitmap32); + } static void OnFailureCallback_173(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_173(chip::to_underlying(status)); } - static void OnSuccessCallback_173(void * context, const chip::app::DataModel::Nullable & nullableBitmap32) - { - (static_cast(context))->OnSuccessResponse_173(nullableBitmap32); - } + static void OnSuccessCallback_173(void * context) { (static_cast(context))->OnSuccessResponse_173(); } static void OnFailureCallback_174(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_174(chip::to_underlying(status)); } - static void OnSuccessCallback_174(void * context) { (static_cast(context))->OnSuccessResponse_174(); } + static void OnSuccessCallback_174(void * context, const chip::app::DataModel::Nullable & nullableBitmap32) + { + (static_cast(context))->OnSuccessResponse_174(nullableBitmap32); + } static void OnFailureCallback_175(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_175(chip::to_underlying(status)); } - static void OnSuccessCallback_175(void * context, const chip::app::DataModel::Nullable & nullableBitmap64) - { - (static_cast(context))->OnSuccessResponse_175(nullableBitmap64); - } + static void OnSuccessCallback_175(void * context) { (static_cast(context))->OnSuccessResponse_175(); } static void OnFailureCallback_176(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_176(chip::to_underlying(status)); } - static void OnSuccessCallback_176(void * context) { (static_cast(context))->OnSuccessResponse_176(); } + static void OnSuccessCallback_176(void * context, const chip::app::DataModel::Nullable & nullableBitmap64) + { + (static_cast(context))->OnSuccessResponse_176(nullableBitmap64); + } static void OnFailureCallback_177(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_177(chip::to_underlying(status)); } - static void OnSuccessCallback_177(void * context, const chip::app::DataModel::Nullable & nullableBitmap64) - { - (static_cast(context))->OnSuccessResponse_177(nullableBitmap64); - } + static void OnSuccessCallback_177(void * context) { (static_cast(context))->OnSuccessResponse_177(); } static void OnFailureCallback_178(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_178(chip::to_underlying(status)); } - static void OnSuccessCallback_178(void * context) { (static_cast(context))->OnSuccessResponse_178(); } + static void OnSuccessCallback_178(void * context, const chip::app::DataModel::Nullable & nullableBitmap64) + { + (static_cast(context))->OnSuccessResponse_178(nullableBitmap64); + } static void OnFailureCallback_179(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_179(chip::to_underlying(status)); } - static void OnSuccessCallback_179(void * context, const chip::app::DataModel::Nullable & nullableBitmap64) - { - (static_cast(context))->OnSuccessResponse_179(nullableBitmap64); - } + static void OnSuccessCallback_179(void * context) { (static_cast(context))->OnSuccessResponse_179(); } static void OnFailureCallback_180(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_180(chip::to_underlying(status)); } - static void OnSuccessCallback_180(void * context) { (static_cast(context))->OnSuccessResponse_180(); } + static void OnSuccessCallback_180(void * context, const chip::app::DataModel::Nullable & nullableBitmap64) + { + (static_cast(context))->OnSuccessResponse_180(nullableBitmap64); + } static void OnFailureCallback_181(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_181(chip::to_underlying(status)); } - static void OnSuccessCallback_181(void * context, const chip::app::DataModel::Nullable & nullableInt8u) - { - (static_cast(context))->OnSuccessResponse_181(nullableInt8u); - } + static void OnSuccessCallback_181(void * context) { (static_cast(context))->OnSuccessResponse_181(); } static void OnFailureCallback_182(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_182(chip::to_underlying(status)); } - static void OnSuccessCallback_182(void * context) { (static_cast(context))->OnSuccessResponse_182(); } + static void OnSuccessCallback_182(void * context, const chip::app::DataModel::Nullable & nullableInt8u) + { + (static_cast(context))->OnSuccessResponse_182(nullableInt8u); + } static void OnFailureCallback_183(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_183(chip::to_underlying(status)); } - static void OnSuccessCallback_183(void * context, const chip::app::DataModel::Nullable & nullableInt8u) - { - (static_cast(context))->OnSuccessResponse_183(nullableInt8u); - } + static void OnSuccessCallback_183(void * context) { (static_cast(context))->OnSuccessResponse_183(); } static void OnFailureCallback_184(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_184(chip::to_underlying(status)); } - static void OnSuccessCallback_184(void * context) { (static_cast(context))->OnSuccessResponse_184(); } + static void OnSuccessCallback_184(void * context, const chip::app::DataModel::Nullable & nullableInt8u) + { + (static_cast(context))->OnSuccessResponse_184(nullableInt8u); + } static void OnFailureCallback_185(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_185(chip::to_underlying(status)); } - static void OnSuccessCallback_185(void * context, const chip::app::DataModel::Nullable & nullableInt8u) - { - (static_cast(context))->OnSuccessResponse_185(nullableInt8u); - } + static void OnSuccessCallback_185(void * context) { (static_cast(context))->OnSuccessResponse_185(); } static void OnFailureCallback_186(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_186(chip::to_underlying(status)); } - static void OnSuccessCallback_186(void * context) { (static_cast(context))->OnSuccessResponse_186(); } + static void OnSuccessCallback_186(void * context, const chip::app::DataModel::Nullable & nullableInt8u) + { + (static_cast(context))->OnSuccessResponse_186(nullableInt8u); + } static void OnFailureCallback_187(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_187(chip::to_underlying(status)); } - static void OnSuccessCallback_187(void * context, const chip::app::DataModel::Nullable & nullableInt16u) - { - (static_cast(context))->OnSuccessResponse_187(nullableInt16u); - } + static void OnSuccessCallback_187(void * context) { (static_cast(context))->OnSuccessResponse_187(); } static void OnFailureCallback_188(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_188(chip::to_underlying(status)); } - static void OnSuccessCallback_188(void * context) { (static_cast(context))->OnSuccessResponse_188(); } + static void OnSuccessCallback_188(void * context, const chip::app::DataModel::Nullable & nullableInt16u) + { + (static_cast(context))->OnSuccessResponse_188(nullableInt16u); + } static void OnFailureCallback_189(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_189(chip::to_underlying(status)); } - static void OnSuccessCallback_189(void * context, const chip::app::DataModel::Nullable & nullableInt16u) - { - (static_cast(context))->OnSuccessResponse_189(nullableInt16u); - } + static void OnSuccessCallback_189(void * context) { (static_cast(context))->OnSuccessResponse_189(); } static void OnFailureCallback_190(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_190(chip::to_underlying(status)); } - static void OnSuccessCallback_190(void * context) { (static_cast(context))->OnSuccessResponse_190(); } + static void OnSuccessCallback_190(void * context, const chip::app::DataModel::Nullable & nullableInt16u) + { + (static_cast(context))->OnSuccessResponse_190(nullableInt16u); + } static void OnFailureCallback_191(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_191(chip::to_underlying(status)); } - static void OnSuccessCallback_191(void * context, const chip::app::DataModel::Nullable & nullableInt16u) - { - (static_cast(context))->OnSuccessResponse_191(nullableInt16u); - } + static void OnSuccessCallback_191(void * context) { (static_cast(context))->OnSuccessResponse_191(); } static void OnFailureCallback_192(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_192(chip::to_underlying(status)); } - static void OnSuccessCallback_192(void * context) { (static_cast(context))->OnSuccessResponse_192(); } + static void OnSuccessCallback_192(void * context, const chip::app::DataModel::Nullable & nullableInt16u) + { + (static_cast(context))->OnSuccessResponse_192(nullableInt16u); + } static void OnFailureCallback_193(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_193(chip::to_underlying(status)); } - static void OnSuccessCallback_193(void * context, const chip::app::DataModel::Nullable & nullableInt32u) - { - (static_cast(context))->OnSuccessResponse_193(nullableInt32u); - } + static void OnSuccessCallback_193(void * context) { (static_cast(context))->OnSuccessResponse_193(); } static void OnFailureCallback_194(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_194(chip::to_underlying(status)); } - static void OnSuccessCallback_194(void * context) { (static_cast(context))->OnSuccessResponse_194(); } + static void OnSuccessCallback_194(void * context, const chip::app::DataModel::Nullable & nullableInt32u) + { + (static_cast(context))->OnSuccessResponse_194(nullableInt32u); + } static void OnFailureCallback_195(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_195(chip::to_underlying(status)); } - static void OnSuccessCallback_195(void * context, const chip::app::DataModel::Nullable & nullableInt32u) - { - (static_cast(context))->OnSuccessResponse_195(nullableInt32u); - } + static void OnSuccessCallback_195(void * context) { (static_cast(context))->OnSuccessResponse_195(); } static void OnFailureCallback_196(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_196(chip::to_underlying(status)); } - static void OnSuccessCallback_196(void * context) { (static_cast(context))->OnSuccessResponse_196(); } + static void OnSuccessCallback_196(void * context, const chip::app::DataModel::Nullable & nullableInt32u) + { + (static_cast(context))->OnSuccessResponse_196(nullableInt32u); + } static void OnFailureCallback_197(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_197(chip::to_underlying(status)); } - static void OnSuccessCallback_197(void * context, const chip::app::DataModel::Nullable & nullableInt32u) - { - (static_cast(context))->OnSuccessResponse_197(nullableInt32u); - } + static void OnSuccessCallback_197(void * context) { (static_cast(context))->OnSuccessResponse_197(); } static void OnFailureCallback_198(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_198(chip::to_underlying(status)); } - static void OnSuccessCallback_198(void * context) { (static_cast(context))->OnSuccessResponse_198(); } + static void OnSuccessCallback_198(void * context, const chip::app::DataModel::Nullable & nullableInt32u) + { + (static_cast(context))->OnSuccessResponse_198(nullableInt32u); + } static void OnFailureCallback_199(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_199(chip::to_underlying(status)); } - static void OnSuccessCallback_199(void * context, const chip::app::DataModel::Nullable & nullableInt64u) - { - (static_cast(context))->OnSuccessResponse_199(nullableInt64u); - } + static void OnSuccessCallback_199(void * context) { (static_cast(context))->OnSuccessResponse_199(); } static void OnFailureCallback_200(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_200(chip::to_underlying(status)); } - static void OnSuccessCallback_200(void * context) { (static_cast(context))->OnSuccessResponse_200(); } + static void OnSuccessCallback_200(void * context, const chip::app::DataModel::Nullable & nullableInt64u) + { + (static_cast(context))->OnSuccessResponse_200(nullableInt64u); + } static void OnFailureCallback_201(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_201(chip::to_underlying(status)); } - static void OnSuccessCallback_201(void * context, const chip::app::DataModel::Nullable & nullableInt64u) - { - (static_cast(context))->OnSuccessResponse_201(nullableInt64u); - } + static void OnSuccessCallback_201(void * context) { (static_cast(context))->OnSuccessResponse_201(); } static void OnFailureCallback_202(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_202(chip::to_underlying(status)); } - static void OnSuccessCallback_202(void * context) { (static_cast(context))->OnSuccessResponse_202(); } + static void OnSuccessCallback_202(void * context, const chip::app::DataModel::Nullable & nullableInt64u) + { + (static_cast(context))->OnSuccessResponse_202(nullableInt64u); + } static void OnFailureCallback_203(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_203(chip::to_underlying(status)); } - static void OnSuccessCallback_203(void * context, const chip::app::DataModel::Nullable & nullableInt64u) - { - (static_cast(context))->OnSuccessResponse_203(nullableInt64u); - } + static void OnSuccessCallback_203(void * context) { (static_cast(context))->OnSuccessResponse_203(); } static void OnFailureCallback_204(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_204(chip::to_underlying(status)); } - static void OnSuccessCallback_204(void * context) { (static_cast(context))->OnSuccessResponse_204(); } + static void OnSuccessCallback_204(void * context, const chip::app::DataModel::Nullable & nullableInt64u) + { + (static_cast(context))->OnSuccessResponse_204(nullableInt64u); + } static void OnFailureCallback_205(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_205(chip::to_underlying(status)); } - static void OnSuccessCallback_205(void * context, const chip::app::DataModel::Nullable & nullableInt8s) - { - (static_cast(context))->OnSuccessResponse_205(nullableInt8s); - } + static void OnSuccessCallback_205(void * context) { (static_cast(context))->OnSuccessResponse_205(); } static void OnFailureCallback_206(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_206(chip::to_underlying(status)); } - static void OnSuccessCallback_206(void * context) { (static_cast(context))->OnSuccessResponse_206(); } + static void OnSuccessCallback_206(void * context, const chip::app::DataModel::Nullable & nullableInt8s) + { + (static_cast(context))->OnSuccessResponse_206(nullableInt8s); + } static void OnFailureCallback_207(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_207(chip::to_underlying(status)); } - static void OnSuccessCallback_207(void * context, const chip::app::DataModel::Nullable & nullableInt8s) - { - (static_cast(context))->OnSuccessResponse_207(nullableInt8s); - } + static void OnSuccessCallback_207(void * context) { (static_cast(context))->OnSuccessResponse_207(); } static void OnFailureCallback_208(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_208(chip::to_underlying(status)); } - static void OnSuccessCallback_208(void * context) { (static_cast(context))->OnSuccessResponse_208(); } + static void OnSuccessCallback_208(void * context, const chip::app::DataModel::Nullable & nullableInt8s) + { + (static_cast(context))->OnSuccessResponse_208(nullableInt8s); + } static void OnFailureCallback_209(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_209(chip::to_underlying(status)); } - static void OnSuccessCallback_209(void * context, const chip::app::DataModel::Nullable & nullableInt8s) - { - (static_cast(context))->OnSuccessResponse_209(nullableInt8s); - } + static void OnSuccessCallback_209(void * context) { (static_cast(context))->OnSuccessResponse_209(); } static void OnFailureCallback_210(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_210(chip::to_underlying(status)); } - static void OnSuccessCallback_210(void * context) { (static_cast(context))->OnSuccessResponse_210(); } + static void OnSuccessCallback_210(void * context, const chip::app::DataModel::Nullable & nullableInt8s) + { + (static_cast(context))->OnSuccessResponse_210(nullableInt8s); + } static void OnFailureCallback_211(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_211(chip::to_underlying(status)); } - static void OnSuccessCallback_211(void * context, const chip::app::DataModel::Nullable & nullableInt16s) - { - (static_cast(context))->OnSuccessResponse_211(nullableInt16s); - } + static void OnSuccessCallback_211(void * context) { (static_cast(context))->OnSuccessResponse_211(); } static void OnFailureCallback_212(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_212(chip::to_underlying(status)); } - static void OnSuccessCallback_212(void * context) { (static_cast(context))->OnSuccessResponse_212(); } + static void OnSuccessCallback_212(void * context, const chip::app::DataModel::Nullable & nullableInt16s) + { + (static_cast(context))->OnSuccessResponse_212(nullableInt16s); + } static void OnFailureCallback_213(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_213(chip::to_underlying(status)); } - static void OnSuccessCallback_213(void * context, const chip::app::DataModel::Nullable & nullableInt16s) - { - (static_cast(context))->OnSuccessResponse_213(nullableInt16s); - } + static void OnSuccessCallback_213(void * context) { (static_cast(context))->OnSuccessResponse_213(); } static void OnFailureCallback_214(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_214(chip::to_underlying(status)); } - static void OnSuccessCallback_214(void * context) { (static_cast(context))->OnSuccessResponse_214(); } + static void OnSuccessCallback_214(void * context, const chip::app::DataModel::Nullable & nullableInt16s) + { + (static_cast(context))->OnSuccessResponse_214(nullableInt16s); + } static void OnFailureCallback_215(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_215(chip::to_underlying(status)); } - static void OnSuccessCallback_215(void * context, const chip::app::DataModel::Nullable & nullableInt16s) - { - (static_cast(context))->OnSuccessResponse_215(nullableInt16s); - } + static void OnSuccessCallback_215(void * context) { (static_cast(context))->OnSuccessResponse_215(); } static void OnFailureCallback_216(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_216(chip::to_underlying(status)); } - static void OnSuccessCallback_216(void * context) { (static_cast(context))->OnSuccessResponse_216(); } + static void OnSuccessCallback_216(void * context, const chip::app::DataModel::Nullable & nullableInt16s) + { + (static_cast(context))->OnSuccessResponse_216(nullableInt16s); + } static void OnFailureCallback_217(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_217(chip::to_underlying(status)); } - static void OnSuccessCallback_217(void * context, const chip::app::DataModel::Nullable & nullableInt32s) - { - (static_cast(context))->OnSuccessResponse_217(nullableInt32s); - } + static void OnSuccessCallback_217(void * context) { (static_cast(context))->OnSuccessResponse_217(); } static void OnFailureCallback_218(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_218(chip::to_underlying(status)); } - static void OnSuccessCallback_218(void * context) { (static_cast(context))->OnSuccessResponse_218(); } + static void OnSuccessCallback_218(void * context, const chip::app::DataModel::Nullable & nullableInt32s) + { + (static_cast(context))->OnSuccessResponse_218(nullableInt32s); + } static void OnFailureCallback_219(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_219(chip::to_underlying(status)); } - static void OnSuccessCallback_219(void * context, const chip::app::DataModel::Nullable & nullableInt32s) - { - (static_cast(context))->OnSuccessResponse_219(nullableInt32s); - } + static void OnSuccessCallback_219(void * context) { (static_cast(context))->OnSuccessResponse_219(); } static void OnFailureCallback_220(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_220(chip::to_underlying(status)); } - static void OnSuccessCallback_220(void * context) { (static_cast(context))->OnSuccessResponse_220(); } + static void OnSuccessCallback_220(void * context, const chip::app::DataModel::Nullable & nullableInt32s) + { + (static_cast(context))->OnSuccessResponse_220(nullableInt32s); + } static void OnFailureCallback_221(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_221(chip::to_underlying(status)); } - static void OnSuccessCallback_221(void * context, const chip::app::DataModel::Nullable & nullableInt32s) - { - (static_cast(context))->OnSuccessResponse_221(nullableInt32s); - } + static void OnSuccessCallback_221(void * context) { (static_cast(context))->OnSuccessResponse_221(); } static void OnFailureCallback_222(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_222(chip::to_underlying(status)); } - static void OnSuccessCallback_222(void * context) { (static_cast(context))->OnSuccessResponse_222(); } + static void OnSuccessCallback_222(void * context, const chip::app::DataModel::Nullable & nullableInt32s) + { + (static_cast(context))->OnSuccessResponse_222(nullableInt32s); + } static void OnFailureCallback_223(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_223(chip::to_underlying(status)); } - static void OnSuccessCallback_223(void * context, const chip::app::DataModel::Nullable & nullableInt64s) - { - (static_cast(context))->OnSuccessResponse_223(nullableInt64s); - } + static void OnSuccessCallback_223(void * context) { (static_cast(context))->OnSuccessResponse_223(); } static void OnFailureCallback_224(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_224(chip::to_underlying(status)); } - static void OnSuccessCallback_224(void * context) { (static_cast(context))->OnSuccessResponse_224(); } + static void OnSuccessCallback_224(void * context, const chip::app::DataModel::Nullable & nullableInt64s) + { + (static_cast(context))->OnSuccessResponse_224(nullableInt64s); + } static void OnFailureCallback_225(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_225(chip::to_underlying(status)); } - static void OnSuccessCallback_225(void * context, const chip::app::DataModel::Nullable & nullableInt64s) - { - (static_cast(context))->OnSuccessResponse_225(nullableInt64s); - } + static void OnSuccessCallback_225(void * context) { (static_cast(context))->OnSuccessResponse_225(); } static void OnFailureCallback_226(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_226(chip::to_underlying(status)); } - static void OnSuccessCallback_226(void * context) { (static_cast(context))->OnSuccessResponse_226(); } + static void OnSuccessCallback_226(void * context, const chip::app::DataModel::Nullable & nullableInt64s) + { + (static_cast(context))->OnSuccessResponse_226(nullableInt64s); + } static void OnFailureCallback_227(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_227(chip::to_underlying(status)); } - static void OnSuccessCallback_227(void * context, const chip::app::DataModel::Nullable & nullableInt64s) - { - (static_cast(context))->OnSuccessResponse_227(nullableInt64s); - } + static void OnSuccessCallback_227(void * context) { (static_cast(context))->OnSuccessResponse_227(); } static void OnFailureCallback_228(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_228(chip::to_underlying(status)); } - static void OnSuccessCallback_228(void * context) { (static_cast(context))->OnSuccessResponse_228(); } + static void OnSuccessCallback_228(void * context, const chip::app::DataModel::Nullable & nullableInt64s) + { + (static_cast(context))->OnSuccessResponse_228(nullableInt64s); + } static void OnFailureCallback_229(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_229(chip::to_underlying(status)); } - static void OnSuccessCallback_229(void * context, const chip::app::DataModel::Nullable & nullableEnum8) - { - (static_cast(context))->OnSuccessResponse_229(nullableEnum8); - } + static void OnSuccessCallback_229(void * context) { (static_cast(context))->OnSuccessResponse_229(); } static void OnFailureCallback_230(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_230(chip::to_underlying(status)); } - static void OnSuccessCallback_230(void * context) { (static_cast(context))->OnSuccessResponse_230(); } + static void OnSuccessCallback_230(void * context, const chip::app::DataModel::Nullable & nullableEnum8) + { + (static_cast(context))->OnSuccessResponse_230(nullableEnum8); + } static void OnFailureCallback_231(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_231(chip::to_underlying(status)); } - static void OnSuccessCallback_231(void * context, const chip::app::DataModel::Nullable & nullableEnum8) - { - (static_cast(context))->OnSuccessResponse_231(nullableEnum8); - } + static void OnSuccessCallback_231(void * context) { (static_cast(context))->OnSuccessResponse_231(); } static void OnFailureCallback_232(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_232(chip::to_underlying(status)); } - static void OnSuccessCallback_232(void * context) { (static_cast(context))->OnSuccessResponse_232(); } + static void OnSuccessCallback_232(void * context, const chip::app::DataModel::Nullable & nullableEnum8) + { + (static_cast(context))->OnSuccessResponse_232(nullableEnum8); + } static void OnFailureCallback_233(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_233(chip::to_underlying(status)); } - static void OnSuccessCallback_233(void * context, const chip::app::DataModel::Nullable & nullableEnum8) - { - (static_cast(context))->OnSuccessResponse_233(nullableEnum8); - } + static void OnSuccessCallback_233(void * context) { (static_cast(context))->OnSuccessResponse_233(); } static void OnFailureCallback_234(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_234(chip::to_underlying(status)); } - static void OnSuccessCallback_234(void * context) { (static_cast(context))->OnSuccessResponse_234(); } + static void OnSuccessCallback_234(void * context, const chip::app::DataModel::Nullable & nullableEnum8) + { + (static_cast(context))->OnSuccessResponse_234(nullableEnum8); + } static void OnFailureCallback_235(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_235(chip::to_underlying(status)); } - static void OnSuccessCallback_235(void * context, const chip::app::DataModel::Nullable & nullableEnum16) - { - (static_cast(context))->OnSuccessResponse_235(nullableEnum16); - } + static void OnSuccessCallback_235(void * context) { (static_cast(context))->OnSuccessResponse_235(); } static void OnFailureCallback_236(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_236(chip::to_underlying(status)); } - static void OnSuccessCallback_236(void * context) { (static_cast(context))->OnSuccessResponse_236(); } + static void OnSuccessCallback_236(void * context, const chip::app::DataModel::Nullable & nullableEnum16) + { + (static_cast(context))->OnSuccessResponse_236(nullableEnum16); + } static void OnFailureCallback_237(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_237(chip::to_underlying(status)); } - static void OnSuccessCallback_237(void * context, const chip::app::DataModel::Nullable & nullableEnum16) - { - (static_cast(context))->OnSuccessResponse_237(nullableEnum16); - } + static void OnSuccessCallback_237(void * context) { (static_cast(context))->OnSuccessResponse_237(); } static void OnFailureCallback_238(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_238(chip::to_underlying(status)); } - static void OnSuccessCallback_238(void * context) { (static_cast(context))->OnSuccessResponse_238(); } + static void OnSuccessCallback_238(void * context, const chip::app::DataModel::Nullable & nullableEnum16) + { + (static_cast(context))->OnSuccessResponse_238(nullableEnum16); + } static void OnFailureCallback_239(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_239(chip::to_underlying(status)); } - static void OnSuccessCallback_239(void * context, const chip::app::DataModel::Nullable & nullableEnum16) - { - (static_cast(context))->OnSuccessResponse_239(nullableEnum16); - } + static void OnSuccessCallback_239(void * context) { (static_cast(context))->OnSuccessResponse_239(); } static void OnFailureCallback_240(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_240(chip::to_underlying(status)); } - static void OnSuccessCallback_240(void * context, const chip::app::DataModel::Nullable & nullableOctetString) + static void OnSuccessCallback_240(void * context, const chip::app::DataModel::Nullable & nullableEnum16) { - (static_cast(context))->OnSuccessResponse_240(nullableOctetString); + (static_cast(context))->OnSuccessResponse_240(nullableEnum16); } static void OnFailureCallback_241(void * context, EmberAfStatus status) @@ -34088,60 +34682,60 @@ class TestCluster : public TestCommand (static_cast(context))->OnFailureResponse_241(chip::to_underlying(status)); } - static void OnSuccessCallback_241(void * context) { (static_cast(context))->OnSuccessResponse_241(); } + static void OnSuccessCallback_241(void * context, const chip::app::DataModel::Nullable & nullableOctetString) + { + (static_cast(context))->OnSuccessResponse_241(nullableOctetString); + } static void OnFailureCallback_242(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_242(chip::to_underlying(status)); } - static void OnSuccessCallback_242(void * context, const chip::app::DataModel::Nullable & nullableOctetString) - { - (static_cast(context))->OnSuccessResponse_242(nullableOctetString); - } + static void OnSuccessCallback_242(void * context) { (static_cast(context))->OnSuccessResponse_242(); } static void OnFailureCallback_243(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_243(chip::to_underlying(status)); } - static void OnSuccessCallback_243(void * context) { (static_cast(context))->OnSuccessResponse_243(); } + static void OnSuccessCallback_243(void * context, const chip::app::DataModel::Nullable & nullableOctetString) + { + (static_cast(context))->OnSuccessResponse_243(nullableOctetString); + } static void OnFailureCallback_244(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_244(chip::to_underlying(status)); } - static void OnSuccessCallback_244(void * context, const chip::app::DataModel::Nullable & nullableOctetString) - { - (static_cast(context))->OnSuccessResponse_244(nullableOctetString); - } + static void OnSuccessCallback_244(void * context) { (static_cast(context))->OnSuccessResponse_244(); } static void OnFailureCallback_245(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_245(chip::to_underlying(status)); } - static void OnSuccessCallback_245(void * context) { (static_cast(context))->OnSuccessResponse_245(); } + static void OnSuccessCallback_245(void * context, const chip::app::DataModel::Nullable & nullableOctetString) + { + (static_cast(context))->OnSuccessResponse_245(nullableOctetString); + } static void OnFailureCallback_246(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_246(chip::to_underlying(status)); } - static void OnSuccessCallback_246(void * context, const chip::app::DataModel::Nullable & nullableOctetString) - { - (static_cast(context))->OnSuccessResponse_246(nullableOctetString); - } + static void OnSuccessCallback_246(void * context) { (static_cast(context))->OnSuccessResponse_246(); } static void OnFailureCallback_247(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_247(chip::to_underlying(status)); } - static void OnSuccessCallback_247(void * context, const chip::app::DataModel::Nullable & nullableCharString) + static void OnSuccessCallback_247(void * context, const chip::app::DataModel::Nullable & nullableOctetString) { - (static_cast(context))->OnSuccessResponse_247(nullableCharString); + (static_cast(context))->OnSuccessResponse_247(nullableOctetString); } static void OnFailureCallback_248(void * context, EmberAfStatus status) @@ -34149,60 +34743,60 @@ class TestCluster : public TestCommand (static_cast(context))->OnFailureResponse_248(chip::to_underlying(status)); } - static void OnSuccessCallback_248(void * context) { (static_cast(context))->OnSuccessResponse_248(); } + static void OnSuccessCallback_248(void * context, const chip::app::DataModel::Nullable & nullableCharString) + { + (static_cast(context))->OnSuccessResponse_248(nullableCharString); + } static void OnFailureCallback_249(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_249(chip::to_underlying(status)); } - static void OnSuccessCallback_249(void * context, const chip::app::DataModel::Nullable & nullableCharString) - { - (static_cast(context))->OnSuccessResponse_249(nullableCharString); - } + static void OnSuccessCallback_249(void * context) { (static_cast(context))->OnSuccessResponse_249(); } static void OnFailureCallback_250(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_250(chip::to_underlying(status)); } - static void OnSuccessCallback_250(void * context) { (static_cast(context))->OnSuccessResponse_250(); } + static void OnSuccessCallback_250(void * context, const chip::app::DataModel::Nullable & nullableCharString) + { + (static_cast(context))->OnSuccessResponse_250(nullableCharString); + } static void OnFailureCallback_251(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_251(chip::to_underlying(status)); } - static void OnSuccessCallback_251(void * context, const chip::app::DataModel::Nullable & nullableCharString) - { - (static_cast(context))->OnSuccessResponse_251(nullableCharString); - } + static void OnSuccessCallback_251(void * context) { (static_cast(context))->OnSuccessResponse_251(); } static void OnFailureCallback_252(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_252(chip::to_underlying(status)); } - static void OnSuccessCallback_252(void * context) { (static_cast(context))->OnSuccessResponse_252(); } + static void OnSuccessCallback_252(void * context, const chip::app::DataModel::Nullable & nullableCharString) + { + (static_cast(context))->OnSuccessResponse_252(nullableCharString); + } static void OnFailureCallback_253(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_253(chip::to_underlying(status)); } - static void OnSuccessCallback_253(void * context, const chip::app::DataModel::Nullable & nullableCharString) - { - (static_cast(context))->OnSuccessResponse_253(nullableCharString); - } + static void OnSuccessCallback_253(void * context) { (static_cast(context))->OnSuccessResponse_253(); } static void OnFailureCallback_254(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_254(chip::to_underlying(status)); } - static void OnSuccessCallback_254(void * context, const chip::app::DataModel::DecodableList & listInt8u) + static void OnSuccessCallback_254(void * context, const chip::app::DataModel::Nullable & nullableCharString) { - (static_cast(context))->OnSuccessResponse_254(listInt8u); + (static_cast(context))->OnSuccessResponse_254(nullableCharString); } static void OnFailureCallback_255(void * context, EmberAfStatus status) @@ -34215,11 +34809,23 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_255(listInt8u); } + static void OnFailureCallback_256(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_256(chip::to_underlying(status)); + } + + static void OnSuccessCallback_256(void * context, const chip::app::DataModel::DecodableList & listInt8u) + { + (static_cast(context))->OnSuccessResponse_256(listInt8u); + } + // // Tests methods // - CHIP_ERROR TestSendTestCommand_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestSendTestCommand_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::Test::Type; @@ -34227,22 +34833,22 @@ class TestCluster : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestSendTestNotHandledCommand_1() + CHIP_ERROR TestSendTestNotHandledCommand_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestNotHandled::Type; @@ -34250,26 +34856,26 @@ class TestCluster : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_1(); + (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_2(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(uint8_t status) + void OnFailureResponse_2(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); } - void OnSuccessResponse_1() { ThrowSuccessResponse(); } + void OnSuccessResponse_2() { ThrowSuccessResponse(); } - CHIP_ERROR TestSendTestSpecificCommand_2() + CHIP_ERROR TestSendTestSpecificCommand_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestSpecific::Type; @@ -34277,27 +34883,27 @@ class TestCluster : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(data.returnValue); + (static_cast(context))->OnSuccessResponse_3(data.returnValue); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint8_t returnValue) + void OnSuccessResponse_3(uint8_t returnValue) { VerifyOrReturn(CheckValue("returnValue", returnValue, 7)); NextTest(); } - CHIP_ERROR TestSendTestAddArgumentsCommand_3() + CHIP_ERROR TestSendTestAddArgumentsCommand_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type; @@ -34307,27 +34913,27 @@ class TestCluster : public TestCommand request.arg2 = 17; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_3(data.returnValue); + (static_cast(context))->OnSuccessResponse_4(data.returnValue); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_4(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint8_t returnValue) + void OnSuccessResponse_4(uint8_t returnValue) { VerifyOrReturn(CheckValue("returnValue", returnValue, 20)); NextTest(); } - CHIP_ERROR TestSendFailingTestAddArgumentsCommand_4() + CHIP_ERROR TestSendFailingTestAddArgumentsCommand_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type; @@ -34337,45 +34943,45 @@ class TestCluster : public TestCommand request.arg2 = 6; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_4(data.returnValue); + (static_cast(context))->OnSuccessResponse_5(data.returnValue); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_5(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(uint8_t status) + void OnFailureResponse_5(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); } - void OnSuccessResponse_4(uint8_t returnValue) { ThrowSuccessResponse(); } + void OnSuccessResponse_5(uint8_t returnValue) { ThrowSuccessResponse(); } - CHIP_ERROR TestReadAttributeBooleanDefaultValue_5() + CHIP_ERROR TestReadAttributeBooleanDefaultValue_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_5, - OnFailureCallback_5); + return cluster.ReadAttribute(this, OnSuccessCallback_6, + OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(bool boolean) + void OnSuccessResponse_6(bool boolean) { VerifyOrReturn(CheckValue("boolean", boolean, 0)); NextTest(); } - CHIP_ERROR TestWriteAttributeBooleanTrue_6() + CHIP_ERROR TestWriteAttributeBooleanTrue_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -34385,33 +34991,33 @@ class TestCluster : public TestCommand booleanArgument = 1; return cluster.WriteAttribute( - booleanArgument, this, OnSuccessCallback_6, OnFailureCallback_6); + booleanArgument, this, OnSuccessCallback_7, OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6() { NextTest(); } + void OnSuccessResponse_7() { NextTest(); } - CHIP_ERROR TestReadAttributeBooleanTrue_7() + CHIP_ERROR TestReadAttributeBooleanTrue_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_7, - OnFailureCallback_7); + return cluster.ReadAttribute(this, OnSuccessCallback_8, + OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(bool boolean) + void OnSuccessResponse_8(bool boolean) { VerifyOrReturn(CheckValue("boolean", boolean, 1)); NextTest(); } - CHIP_ERROR TestWriteAttributeBooleanFalse_8() + CHIP_ERROR TestWriteAttributeBooleanFalse_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -34421,52 +35027,52 @@ class TestCluster : public TestCommand booleanArgument = 0; return cluster.WriteAttribute( - booleanArgument, this, OnSuccessCallback_8, OnFailureCallback_8); + booleanArgument, this, OnSuccessCallback_9, OnFailureCallback_9); } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8() { NextTest(); } + void OnSuccessResponse_9() { NextTest(); } - CHIP_ERROR TestReadAttributeBooleanFalse_9() + CHIP_ERROR TestReadAttributeBooleanFalse_10() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_9, - OnFailureCallback_9); + return cluster.ReadAttribute(this, OnSuccessCallback_10, + OnFailureCallback_10); } - void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9(bool boolean) + void OnSuccessResponse_10(bool boolean) { VerifyOrReturn(CheckValue("boolean", boolean, 0)); NextTest(); } - CHIP_ERROR TestReadAttributeBitmap8DefaultValue_10() + CHIP_ERROR TestReadAttributeBitmap8DefaultValue_11() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_10, - OnFailureCallback_10); + return cluster.ReadAttribute(this, OnSuccessCallback_11, + OnFailureCallback_11); } - void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_10(uint8_t bitmap8) + void OnSuccessResponse_11(uint8_t bitmap8) { VerifyOrReturn(CheckValue("bitmap8", bitmap8, 0)); NextTest(); } - CHIP_ERROR TestWriteAttributeBitmap8MaxValue_11() + CHIP_ERROR TestWriteAttributeBitmap8MaxValue_12() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -34476,33 +35082,33 @@ class TestCluster : public TestCommand bitmap8Argument = 255; return cluster.WriteAttribute( - bitmap8Argument, this, OnSuccessCallback_11, OnFailureCallback_11); + bitmap8Argument, this, OnSuccessCallback_12, OnFailureCallback_12); } - void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_11() { NextTest(); } + void OnSuccessResponse_12() { NextTest(); } - CHIP_ERROR TestReadAttributeBitmap8MaxValue_12() + CHIP_ERROR TestReadAttributeBitmap8MaxValue_13() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_12, - OnFailureCallback_12); + return cluster.ReadAttribute(this, OnSuccessCallback_13, + OnFailureCallback_13); } - void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_12(uint8_t bitmap8) + void OnSuccessResponse_13(uint8_t bitmap8) { VerifyOrReturn(CheckValue("bitmap8", bitmap8, 255)); NextTest(); } - CHIP_ERROR TestWriteAttributeBitmap8MinValue_13() + CHIP_ERROR TestWriteAttributeBitmap8MinValue_14() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -34512,52 +35118,52 @@ class TestCluster : public TestCommand bitmap8Argument = 0; return cluster.WriteAttribute( - bitmap8Argument, this, OnSuccessCallback_13, OnFailureCallback_13); + bitmap8Argument, this, OnSuccessCallback_14, OnFailureCallback_14); } - void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_13() { NextTest(); } + void OnSuccessResponse_14() { NextTest(); } - CHIP_ERROR TestReadAttributeBitmap8MinValue_14() + CHIP_ERROR TestReadAttributeBitmap8MinValue_15() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_14, - OnFailureCallback_14); + return cluster.ReadAttribute(this, OnSuccessCallback_15, + OnFailureCallback_15); } - void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_15(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_14(uint8_t bitmap8) + void OnSuccessResponse_15(uint8_t bitmap8) { VerifyOrReturn(CheckValue("bitmap8", bitmap8, 0)); NextTest(); } - CHIP_ERROR TestReadAttributeBitmap16DefaultValue_15() + CHIP_ERROR TestReadAttributeBitmap16DefaultValue_16() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_15, - OnFailureCallback_15); + return cluster.ReadAttribute(this, OnSuccessCallback_16, + OnFailureCallback_16); } - void OnFailureResponse_15(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_16(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_15(uint16_t bitmap16) + void OnSuccessResponse_16(uint16_t bitmap16) { VerifyOrReturn(CheckValue("bitmap16", bitmap16, 0U)); NextTest(); } - CHIP_ERROR TestWriteAttributeBitmap16MaxValue_16() + CHIP_ERROR TestWriteAttributeBitmap16MaxValue_17() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -34567,33 +35173,33 @@ class TestCluster : public TestCommand bitmap16Argument = 65535U; return cluster.WriteAttribute( - bitmap16Argument, this, OnSuccessCallback_16, OnFailureCallback_16); + bitmap16Argument, this, OnSuccessCallback_17, OnFailureCallback_17); } - void OnFailureResponse_16(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_17(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_16() { NextTest(); } + void OnSuccessResponse_17() { NextTest(); } - CHIP_ERROR TestReadAttributeBitmap16MaxValue_17() + CHIP_ERROR TestReadAttributeBitmap16MaxValue_18() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_17, - OnFailureCallback_17); + return cluster.ReadAttribute(this, OnSuccessCallback_18, + OnFailureCallback_18); } - void OnFailureResponse_17(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_18(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_17(uint16_t bitmap16) + void OnSuccessResponse_18(uint16_t bitmap16) { VerifyOrReturn(CheckValue("bitmap16", bitmap16, 65535U)); NextTest(); } - CHIP_ERROR TestWriteAttributeBitmap16MinValue_18() + CHIP_ERROR TestWriteAttributeBitmap16MinValue_19() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -34603,52 +35209,52 @@ class TestCluster : public TestCommand bitmap16Argument = 0U; return cluster.WriteAttribute( - bitmap16Argument, this, OnSuccessCallback_18, OnFailureCallback_18); + bitmap16Argument, this, OnSuccessCallback_19, OnFailureCallback_19); } - void OnFailureResponse_18(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_19(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_18() { NextTest(); } + void OnSuccessResponse_19() { NextTest(); } - CHIP_ERROR TestReadAttributeBitmap16MinValue_19() + CHIP_ERROR TestReadAttributeBitmap16MinValue_20() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_19, - OnFailureCallback_19); + return cluster.ReadAttribute(this, OnSuccessCallback_20, + OnFailureCallback_20); } - void OnFailureResponse_19(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_20(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_19(uint16_t bitmap16) + void OnSuccessResponse_20(uint16_t bitmap16) { VerifyOrReturn(CheckValue("bitmap16", bitmap16, 0U)); NextTest(); } - CHIP_ERROR TestReadAttributeBitmap32DefaultValue_20() + CHIP_ERROR TestReadAttributeBitmap32DefaultValue_21() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_20, - OnFailureCallback_20); + return cluster.ReadAttribute(this, OnSuccessCallback_21, + OnFailureCallback_21); } - void OnFailureResponse_20(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_21(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_20(uint32_t bitmap32) + void OnSuccessResponse_21(uint32_t bitmap32) { VerifyOrReturn(CheckValue("bitmap32", bitmap32, 0UL)); NextTest(); } - CHIP_ERROR TestWriteAttributeBitmap32MaxValue_21() + CHIP_ERROR TestWriteAttributeBitmap32MaxValue_22() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -34658,33 +35264,33 @@ class TestCluster : public TestCommand bitmap32Argument = 4294967295UL; return cluster.WriteAttribute( - bitmap32Argument, this, OnSuccessCallback_21, OnFailureCallback_21); + bitmap32Argument, this, OnSuccessCallback_22, OnFailureCallback_22); } - void OnFailureResponse_21(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_22(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_21() { NextTest(); } + void OnSuccessResponse_22() { NextTest(); } - CHIP_ERROR TestReadAttributeBitmap32MaxValue_22() + CHIP_ERROR TestReadAttributeBitmap32MaxValue_23() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_22, - OnFailureCallback_22); + return cluster.ReadAttribute(this, OnSuccessCallback_23, + OnFailureCallback_23); } - void OnFailureResponse_22(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_23(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_22(uint32_t bitmap32) + void OnSuccessResponse_23(uint32_t bitmap32) { VerifyOrReturn(CheckValue("bitmap32", bitmap32, 4294967295UL)); NextTest(); } - CHIP_ERROR TestWriteAttributeBitmap32MinValue_23() + CHIP_ERROR TestWriteAttributeBitmap32MinValue_24() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -34694,52 +35300,52 @@ class TestCluster : public TestCommand bitmap32Argument = 0UL; return cluster.WriteAttribute( - bitmap32Argument, this, OnSuccessCallback_23, OnFailureCallback_23); + bitmap32Argument, this, OnSuccessCallback_24, OnFailureCallback_24); } - void OnFailureResponse_23(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_24(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_23() { NextTest(); } + void OnSuccessResponse_24() { NextTest(); } - CHIP_ERROR TestReadAttributeBitmap32MinValue_24() + CHIP_ERROR TestReadAttributeBitmap32MinValue_25() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_24, - OnFailureCallback_24); + return cluster.ReadAttribute(this, OnSuccessCallback_25, + OnFailureCallback_25); } - void OnFailureResponse_24(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_25(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_24(uint32_t bitmap32) + void OnSuccessResponse_25(uint32_t bitmap32) { VerifyOrReturn(CheckValue("bitmap32", bitmap32, 0UL)); NextTest(); } - CHIP_ERROR TestReadAttributeBitmap64DefaultValue_25() + CHIP_ERROR TestReadAttributeBitmap64DefaultValue_26() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_25, - OnFailureCallback_25); + return cluster.ReadAttribute(this, OnSuccessCallback_26, + OnFailureCallback_26); } - void OnFailureResponse_25(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_26(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_25(uint64_t bitmap64) + void OnSuccessResponse_26(uint64_t bitmap64) { VerifyOrReturn(CheckValue("bitmap64", bitmap64, 0ULL)); NextTest(); } - CHIP_ERROR TestWriteAttributeBitmap64MaxValue_26() + CHIP_ERROR TestWriteAttributeBitmap64MaxValue_27() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -34749,33 +35355,33 @@ class TestCluster : public TestCommand bitmap64Argument = 18446744073709551615ULL; return cluster.WriteAttribute( - bitmap64Argument, this, OnSuccessCallback_26, OnFailureCallback_26); + bitmap64Argument, this, OnSuccessCallback_27, OnFailureCallback_27); } - void OnFailureResponse_26(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_27(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_26() { NextTest(); } + void OnSuccessResponse_27() { NextTest(); } - CHIP_ERROR TestReadAttributeBitmap64MaxValue_27() + CHIP_ERROR TestReadAttributeBitmap64MaxValue_28() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_27, - OnFailureCallback_27); + return cluster.ReadAttribute(this, OnSuccessCallback_28, + OnFailureCallback_28); } - void OnFailureResponse_27(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_28(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_27(uint64_t bitmap64) + void OnSuccessResponse_28(uint64_t bitmap64) { VerifyOrReturn(CheckValue("bitmap64", bitmap64, 18446744073709551615ULL)); NextTest(); } - CHIP_ERROR TestWriteAttributeBitmap64MinValue_28() + CHIP_ERROR TestWriteAttributeBitmap64MinValue_29() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -34785,52 +35391,52 @@ class TestCluster : public TestCommand bitmap64Argument = 0ULL; return cluster.WriteAttribute( - bitmap64Argument, this, OnSuccessCallback_28, OnFailureCallback_28); + bitmap64Argument, this, OnSuccessCallback_29, OnFailureCallback_29); } - void OnFailureResponse_28(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_29(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_28() { NextTest(); } + void OnSuccessResponse_29() { NextTest(); } - CHIP_ERROR TestReadAttributeBitmap64MinValue_29() + CHIP_ERROR TestReadAttributeBitmap64MinValue_30() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_29, - OnFailureCallback_29); + return cluster.ReadAttribute(this, OnSuccessCallback_30, + OnFailureCallback_30); } - void OnFailureResponse_29(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_30(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_29(uint64_t bitmap64) + void OnSuccessResponse_30(uint64_t bitmap64) { VerifyOrReturn(CheckValue("bitmap64", bitmap64, 0ULL)); NextTest(); } - CHIP_ERROR TestReadAttributeInt8uDefaultValue_30() + CHIP_ERROR TestReadAttributeInt8uDefaultValue_31() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_30, - OnFailureCallback_30); + return cluster.ReadAttribute(this, OnSuccessCallback_31, + OnFailureCallback_31); } - void OnFailureResponse_30(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_31(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_30(uint8_t int8u) + void OnSuccessResponse_31(uint8_t int8u) { VerifyOrReturn(CheckValue("int8u", int8u, 0)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt8uMaxValue_31() + CHIP_ERROR TestWriteAttributeInt8uMaxValue_32() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -34840,33 +35446,33 @@ class TestCluster : public TestCommand int8uArgument = 255; return cluster.WriteAttribute( - int8uArgument, this, OnSuccessCallback_31, OnFailureCallback_31); + int8uArgument, this, OnSuccessCallback_32, OnFailureCallback_32); } - void OnFailureResponse_31(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_32(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_31() { NextTest(); } + void OnSuccessResponse_32() { NextTest(); } - CHIP_ERROR TestReadAttributeInt8uMaxValue_32() + CHIP_ERROR TestReadAttributeInt8uMaxValue_33() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_32, - OnFailureCallback_32); + return cluster.ReadAttribute(this, OnSuccessCallback_33, + OnFailureCallback_33); } - void OnFailureResponse_32(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_33(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_32(uint8_t int8u) + void OnSuccessResponse_33(uint8_t int8u) { VerifyOrReturn(CheckValue("int8u", int8u, 255)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt8uMinValue_33() + CHIP_ERROR TestWriteAttributeInt8uMinValue_34() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -34876,52 +35482,52 @@ class TestCluster : public TestCommand int8uArgument = 0; return cluster.WriteAttribute( - int8uArgument, this, OnSuccessCallback_33, OnFailureCallback_33); + int8uArgument, this, OnSuccessCallback_34, OnFailureCallback_34); } - void OnFailureResponse_33(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_34(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_33() { NextTest(); } + void OnSuccessResponse_34() { NextTest(); } - CHIP_ERROR TestReadAttributeInt8uMinValue_34() + CHIP_ERROR TestReadAttributeInt8uMinValue_35() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_34, - OnFailureCallback_34); + return cluster.ReadAttribute(this, OnSuccessCallback_35, + OnFailureCallback_35); } - void OnFailureResponse_34(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_35(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_34(uint8_t int8u) + void OnSuccessResponse_35(uint8_t int8u) { VerifyOrReturn(CheckValue("int8u", int8u, 0)); NextTest(); } - CHIP_ERROR TestReadAttributeInt16uDefaultValue_35() + CHIP_ERROR TestReadAttributeInt16uDefaultValue_36() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_35, - OnFailureCallback_35); + return cluster.ReadAttribute(this, OnSuccessCallback_36, + OnFailureCallback_36); } - void OnFailureResponse_35(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_36(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_35(uint16_t int16u) + void OnSuccessResponse_36(uint16_t int16u) { VerifyOrReturn(CheckValue("int16u", int16u, 0U)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt16uMaxValue_36() + CHIP_ERROR TestWriteAttributeInt16uMaxValue_37() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -34931,33 +35537,33 @@ class TestCluster : public TestCommand int16uArgument = 65535U; return cluster.WriteAttribute( - int16uArgument, this, OnSuccessCallback_36, OnFailureCallback_36); + int16uArgument, this, OnSuccessCallback_37, OnFailureCallback_37); } - void OnFailureResponse_36(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_37(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_36() { NextTest(); } + void OnSuccessResponse_37() { NextTest(); } - CHIP_ERROR TestReadAttributeInt16uMaxValue_37() + CHIP_ERROR TestReadAttributeInt16uMaxValue_38() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_37, - OnFailureCallback_37); + return cluster.ReadAttribute(this, OnSuccessCallback_38, + OnFailureCallback_38); } - void OnFailureResponse_37(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_38(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_37(uint16_t int16u) + void OnSuccessResponse_38(uint16_t int16u) { VerifyOrReturn(CheckValue("int16u", int16u, 65535U)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt16uMinValue_38() + CHIP_ERROR TestWriteAttributeInt16uMinValue_39() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -34967,52 +35573,52 @@ class TestCluster : public TestCommand int16uArgument = 0U; return cluster.WriteAttribute( - int16uArgument, this, OnSuccessCallback_38, OnFailureCallback_38); + int16uArgument, this, OnSuccessCallback_39, OnFailureCallback_39); } - void OnFailureResponse_38(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_39(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_38() { NextTest(); } + void OnSuccessResponse_39() { NextTest(); } - CHIP_ERROR TestReadAttributeInt16uMinValue_39() + CHIP_ERROR TestReadAttributeInt16uMinValue_40() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_39, - OnFailureCallback_39); + return cluster.ReadAttribute(this, OnSuccessCallback_40, + OnFailureCallback_40); } - void OnFailureResponse_39(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_40(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_39(uint16_t int16u) + void OnSuccessResponse_40(uint16_t int16u) { VerifyOrReturn(CheckValue("int16u", int16u, 0U)); NextTest(); } - CHIP_ERROR TestReadAttributeInt32uDefaultValue_40() + CHIP_ERROR TestReadAttributeInt32uDefaultValue_41() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_40, - OnFailureCallback_40); + return cluster.ReadAttribute(this, OnSuccessCallback_41, + OnFailureCallback_41); } - void OnFailureResponse_40(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_41(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_40(uint32_t int32u) + void OnSuccessResponse_41(uint32_t int32u) { VerifyOrReturn(CheckValue("int32u", int32u, 0UL)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt32uMaxValue_41() + CHIP_ERROR TestWriteAttributeInt32uMaxValue_42() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35022,33 +35628,33 @@ class TestCluster : public TestCommand int32uArgument = 4294967295UL; return cluster.WriteAttribute( - int32uArgument, this, OnSuccessCallback_41, OnFailureCallback_41); + int32uArgument, this, OnSuccessCallback_42, OnFailureCallback_42); } - void OnFailureResponse_41(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_42(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_41() { NextTest(); } + void OnSuccessResponse_42() { NextTest(); } - CHIP_ERROR TestReadAttributeInt32uMaxValue_42() + CHIP_ERROR TestReadAttributeInt32uMaxValue_43() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_42, - OnFailureCallback_42); + return cluster.ReadAttribute(this, OnSuccessCallback_43, + OnFailureCallback_43); } - void OnFailureResponse_42(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_43(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_42(uint32_t int32u) + void OnSuccessResponse_43(uint32_t int32u) { VerifyOrReturn(CheckValue("int32u", int32u, 4294967295UL)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt32uMinValue_43() + CHIP_ERROR TestWriteAttributeInt32uMinValue_44() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35058,52 +35664,52 @@ class TestCluster : public TestCommand int32uArgument = 0UL; return cluster.WriteAttribute( - int32uArgument, this, OnSuccessCallback_43, OnFailureCallback_43); + int32uArgument, this, OnSuccessCallback_44, OnFailureCallback_44); } - void OnFailureResponse_43(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_44(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_43() { NextTest(); } + void OnSuccessResponse_44() { NextTest(); } - CHIP_ERROR TestReadAttributeInt32uMinValue_44() + CHIP_ERROR TestReadAttributeInt32uMinValue_45() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_44, - OnFailureCallback_44); + return cluster.ReadAttribute(this, OnSuccessCallback_45, + OnFailureCallback_45); } - void OnFailureResponse_44(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_45(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_44(uint32_t int32u) + void OnSuccessResponse_45(uint32_t int32u) { VerifyOrReturn(CheckValue("int32u", int32u, 0UL)); NextTest(); } - CHIP_ERROR TestReadAttributeInt64uDefaultValue_45() + CHIP_ERROR TestReadAttributeInt64uDefaultValue_46() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_45, - OnFailureCallback_45); + return cluster.ReadAttribute(this, OnSuccessCallback_46, + OnFailureCallback_46); } - void OnFailureResponse_45(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_46(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_45(uint64_t int64u) + void OnSuccessResponse_46(uint64_t int64u) { VerifyOrReturn(CheckValue("int64u", int64u, 0ULL)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt64uMaxValue_46() + CHIP_ERROR TestWriteAttributeInt64uMaxValue_47() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35113,33 +35719,33 @@ class TestCluster : public TestCommand int64uArgument = 18446744073709551615ULL; return cluster.WriteAttribute( - int64uArgument, this, OnSuccessCallback_46, OnFailureCallback_46); + int64uArgument, this, OnSuccessCallback_47, OnFailureCallback_47); } - void OnFailureResponse_46(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_47(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_46() { NextTest(); } + void OnSuccessResponse_47() { NextTest(); } - CHIP_ERROR TestReadAttributeInt64uMaxValue_47() + CHIP_ERROR TestReadAttributeInt64uMaxValue_48() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_47, - OnFailureCallback_47); + return cluster.ReadAttribute(this, OnSuccessCallback_48, + OnFailureCallback_48); } - void OnFailureResponse_47(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_48(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_47(uint64_t int64u) + void OnSuccessResponse_48(uint64_t int64u) { VerifyOrReturn(CheckValue("int64u", int64u, 18446744073709551615ULL)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt64uMinValue_48() + CHIP_ERROR TestWriteAttributeInt64uMinValue_49() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35149,52 +35755,52 @@ class TestCluster : public TestCommand int64uArgument = 0ULL; return cluster.WriteAttribute( - int64uArgument, this, OnSuccessCallback_48, OnFailureCallback_48); + int64uArgument, this, OnSuccessCallback_49, OnFailureCallback_49); } - void OnFailureResponse_48(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_49(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_48() { NextTest(); } + void OnSuccessResponse_49() { NextTest(); } - CHIP_ERROR TestReadAttributeInt64uMinValue_49() + CHIP_ERROR TestReadAttributeInt64uMinValue_50() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_49, - OnFailureCallback_49); + return cluster.ReadAttribute(this, OnSuccessCallback_50, + OnFailureCallback_50); } - void OnFailureResponse_49(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_50(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_49(uint64_t int64u) + void OnSuccessResponse_50(uint64_t int64u) { VerifyOrReturn(CheckValue("int64u", int64u, 0ULL)); NextTest(); } - CHIP_ERROR TestReadAttributeInt8sDefaultValue_50() + CHIP_ERROR TestReadAttributeInt8sDefaultValue_51() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_50, - OnFailureCallback_50); + return cluster.ReadAttribute(this, OnSuccessCallback_51, + OnFailureCallback_51); } - void OnFailureResponse_50(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_51(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_50(int8_t int8s) + void OnSuccessResponse_51(int8_t int8s) { VerifyOrReturn(CheckValue("int8s", int8s, 0)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt8sMaxValue_51() + CHIP_ERROR TestWriteAttributeInt8sMaxValue_52() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35204,33 +35810,33 @@ class TestCluster : public TestCommand int8sArgument = 127; return cluster.WriteAttribute( - int8sArgument, this, OnSuccessCallback_51, OnFailureCallback_51); + int8sArgument, this, OnSuccessCallback_52, OnFailureCallback_52); } - void OnFailureResponse_51(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_52(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_51() { NextTest(); } + void OnSuccessResponse_52() { NextTest(); } - CHIP_ERROR TestReadAttributeInt8sMaxValue_52() + CHIP_ERROR TestReadAttributeInt8sMaxValue_53() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_52, - OnFailureCallback_52); + return cluster.ReadAttribute(this, OnSuccessCallback_53, + OnFailureCallback_53); } - void OnFailureResponse_52(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_53(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_52(int8_t int8s) + void OnSuccessResponse_53(int8_t int8s) { VerifyOrReturn(CheckValue("int8s", int8s, 127)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt8sMinValue_53() + CHIP_ERROR TestWriteAttributeInt8sMinValue_54() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35240,33 +35846,33 @@ class TestCluster : public TestCommand int8sArgument = -128; return cluster.WriteAttribute( - int8sArgument, this, OnSuccessCallback_53, OnFailureCallback_53); + int8sArgument, this, OnSuccessCallback_54, OnFailureCallback_54); } - void OnFailureResponse_53(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_54(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_53() { NextTest(); } + void OnSuccessResponse_54() { NextTest(); } - CHIP_ERROR TestReadAttributeInt8sMinValue_54() + CHIP_ERROR TestReadAttributeInt8sMinValue_55() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_54, - OnFailureCallback_54); + return cluster.ReadAttribute(this, OnSuccessCallback_55, + OnFailureCallback_55); } - void OnFailureResponse_54(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_55(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_54(int8_t int8s) + void OnSuccessResponse_55(int8_t int8s) { VerifyOrReturn(CheckValue("int8s", int8s, -128)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt8sDefaultValue_55() + CHIP_ERROR TestWriteAttributeInt8sDefaultValue_56() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35276,52 +35882,52 @@ class TestCluster : public TestCommand int8sArgument = 0; return cluster.WriteAttribute( - int8sArgument, this, OnSuccessCallback_55, OnFailureCallback_55); + int8sArgument, this, OnSuccessCallback_56, OnFailureCallback_56); } - void OnFailureResponse_55(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_56(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_55() { NextTest(); } + void OnSuccessResponse_56() { NextTest(); } - CHIP_ERROR TestReadAttributeInt8sDefaultValue_56() + CHIP_ERROR TestReadAttributeInt8sDefaultValue_57() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_56, - OnFailureCallback_56); + return cluster.ReadAttribute(this, OnSuccessCallback_57, + OnFailureCallback_57); } - void OnFailureResponse_56(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_57(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_56(int8_t int8s) + void OnSuccessResponse_57(int8_t int8s) { VerifyOrReturn(CheckValue("int8s", int8s, 0)); NextTest(); } - CHIP_ERROR TestReadAttributeInt16sDefaultValue_57() + CHIP_ERROR TestReadAttributeInt16sDefaultValue_58() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_57, - OnFailureCallback_57); + return cluster.ReadAttribute(this, OnSuccessCallback_58, + OnFailureCallback_58); } - void OnFailureResponse_57(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_58(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_57(int16_t int16s) + void OnSuccessResponse_58(int16_t int16s) { VerifyOrReturn(CheckValue("int16s", int16s, 0)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt16sMaxValue_58() + CHIP_ERROR TestWriteAttributeInt16sMaxValue_59() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35331,33 +35937,33 @@ class TestCluster : public TestCommand int16sArgument = 32767; return cluster.WriteAttribute( - int16sArgument, this, OnSuccessCallback_58, OnFailureCallback_58); + int16sArgument, this, OnSuccessCallback_59, OnFailureCallback_59); } - void OnFailureResponse_58(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_59(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_58() { NextTest(); } + void OnSuccessResponse_59() { NextTest(); } - CHIP_ERROR TestReadAttributeInt16sMaxValue_59() + CHIP_ERROR TestReadAttributeInt16sMaxValue_60() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_59, - OnFailureCallback_59); + return cluster.ReadAttribute(this, OnSuccessCallback_60, + OnFailureCallback_60); } - void OnFailureResponse_59(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_60(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_59(int16_t int16s) + void OnSuccessResponse_60(int16_t int16s) { VerifyOrReturn(CheckValue("int16s", int16s, 32767)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt16sMinValue_60() + CHIP_ERROR TestWriteAttributeInt16sMinValue_61() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35367,33 +35973,33 @@ class TestCluster : public TestCommand int16sArgument = -32768; return cluster.WriteAttribute( - int16sArgument, this, OnSuccessCallback_60, OnFailureCallback_60); + int16sArgument, this, OnSuccessCallback_61, OnFailureCallback_61); } - void OnFailureResponse_60(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_61(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_60() { NextTest(); } + void OnSuccessResponse_61() { NextTest(); } - CHIP_ERROR TestReadAttributeInt16sMinValue_61() + CHIP_ERROR TestReadAttributeInt16sMinValue_62() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_61, - OnFailureCallback_61); + return cluster.ReadAttribute(this, OnSuccessCallback_62, + OnFailureCallback_62); } - void OnFailureResponse_61(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_62(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_61(int16_t int16s) + void OnSuccessResponse_62(int16_t int16s) { VerifyOrReturn(CheckValue("int16s", int16s, -32768)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt16sDefaultValue_62() + CHIP_ERROR TestWriteAttributeInt16sDefaultValue_63() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35403,52 +36009,52 @@ class TestCluster : public TestCommand int16sArgument = 0; return cluster.WriteAttribute( - int16sArgument, this, OnSuccessCallback_62, OnFailureCallback_62); + int16sArgument, this, OnSuccessCallback_63, OnFailureCallback_63); } - void OnFailureResponse_62(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_63(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_62() { NextTest(); } + void OnSuccessResponse_63() { NextTest(); } - CHIP_ERROR TestReadAttributeInt16sDefaultValue_63() + CHIP_ERROR TestReadAttributeInt16sDefaultValue_64() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_63, - OnFailureCallback_63); + return cluster.ReadAttribute(this, OnSuccessCallback_64, + OnFailureCallback_64); } - void OnFailureResponse_63(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_64(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_63(int16_t int16s) + void OnSuccessResponse_64(int16_t int16s) { VerifyOrReturn(CheckValue("int16s", int16s, 0)); NextTest(); } - CHIP_ERROR TestReadAttributeInt32sDefaultValue_64() + CHIP_ERROR TestReadAttributeInt32sDefaultValue_65() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_64, - OnFailureCallback_64); + return cluster.ReadAttribute(this, OnSuccessCallback_65, + OnFailureCallback_65); } - void OnFailureResponse_64(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_65(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_64(int32_t int32s) + void OnSuccessResponse_65(int32_t int32s) { VerifyOrReturn(CheckValue("int32s", int32s, 0L)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt32sMaxValue_65() + CHIP_ERROR TestWriteAttributeInt32sMaxValue_66() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35458,33 +36064,33 @@ class TestCluster : public TestCommand int32sArgument = 2147483647L; return cluster.WriteAttribute( - int32sArgument, this, OnSuccessCallback_65, OnFailureCallback_65); + int32sArgument, this, OnSuccessCallback_66, OnFailureCallback_66); } - void OnFailureResponse_65(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_66(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_65() { NextTest(); } + void OnSuccessResponse_66() { NextTest(); } - CHIP_ERROR TestReadAttributeInt32sMaxValue_66() + CHIP_ERROR TestReadAttributeInt32sMaxValue_67() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_66, - OnFailureCallback_66); + return cluster.ReadAttribute(this, OnSuccessCallback_67, + OnFailureCallback_67); } - void OnFailureResponse_66(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_67(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_66(int32_t int32s) + void OnSuccessResponse_67(int32_t int32s) { VerifyOrReturn(CheckValue("int32s", int32s, 2147483647L)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt32sMinValue_67() + CHIP_ERROR TestWriteAttributeInt32sMinValue_68() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35494,33 +36100,33 @@ class TestCluster : public TestCommand int32sArgument = -2147483648L; return cluster.WriteAttribute( - int32sArgument, this, OnSuccessCallback_67, OnFailureCallback_67); + int32sArgument, this, OnSuccessCallback_68, OnFailureCallback_68); } - void OnFailureResponse_67(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_68(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_67() { NextTest(); } + void OnSuccessResponse_68() { NextTest(); } - CHIP_ERROR TestReadAttributeInt32sMinValue_68() + CHIP_ERROR TestReadAttributeInt32sMinValue_69() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_68, - OnFailureCallback_68); + return cluster.ReadAttribute(this, OnSuccessCallback_69, + OnFailureCallback_69); } - void OnFailureResponse_68(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_69(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_68(int32_t int32s) + void OnSuccessResponse_69(int32_t int32s) { VerifyOrReturn(CheckValue("int32s", int32s, -2147483648L)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt32sDefaultValue_69() + CHIP_ERROR TestWriteAttributeInt32sDefaultValue_70() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35530,52 +36136,52 @@ class TestCluster : public TestCommand int32sArgument = 0L; return cluster.WriteAttribute( - int32sArgument, this, OnSuccessCallback_69, OnFailureCallback_69); + int32sArgument, this, OnSuccessCallback_70, OnFailureCallback_70); } - void OnFailureResponse_69(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_70(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_69() { NextTest(); } + void OnSuccessResponse_70() { NextTest(); } - CHIP_ERROR TestReadAttributeInt32sDefaultValue_70() + CHIP_ERROR TestReadAttributeInt32sDefaultValue_71() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_70, - OnFailureCallback_70); + return cluster.ReadAttribute(this, OnSuccessCallback_71, + OnFailureCallback_71); } - void OnFailureResponse_70(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_71(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_70(int32_t int32s) + void OnSuccessResponse_71(int32_t int32s) { VerifyOrReturn(CheckValue("int32s", int32s, 0L)); NextTest(); } - CHIP_ERROR TestReadAttributeInt64sDefaultValue_71() + CHIP_ERROR TestReadAttributeInt64sDefaultValue_72() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_71, - OnFailureCallback_71); + return cluster.ReadAttribute(this, OnSuccessCallback_72, + OnFailureCallback_72); } - void OnFailureResponse_71(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_72(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_71(int64_t int64s) + void OnSuccessResponse_72(int64_t int64s) { VerifyOrReturn(CheckValue("int64s", int64s, 0LL)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt64sMaxValue_72() + CHIP_ERROR TestWriteAttributeInt64sMaxValue_73() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35585,33 +36191,33 @@ class TestCluster : public TestCommand int64sArgument = 9223372036854775807LL; return cluster.WriteAttribute( - int64sArgument, this, OnSuccessCallback_72, OnFailureCallback_72); + int64sArgument, this, OnSuccessCallback_73, OnFailureCallback_73); } - void OnFailureResponse_72(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_73(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_72() { NextTest(); } + void OnSuccessResponse_73() { NextTest(); } - CHIP_ERROR TestReadAttributeInt64sMaxValue_73() + CHIP_ERROR TestReadAttributeInt64sMaxValue_74() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_73, - OnFailureCallback_73); + return cluster.ReadAttribute(this, OnSuccessCallback_74, + OnFailureCallback_74); } - void OnFailureResponse_73(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_74(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_73(int64_t int64s) + void OnSuccessResponse_74(int64_t int64s) { VerifyOrReturn(CheckValue("int64s", int64s, 9223372036854775807LL)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt64sMinValue_74() + CHIP_ERROR TestWriteAttributeInt64sMinValue_75() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35621,33 +36227,33 @@ class TestCluster : public TestCommand int64sArgument = -9223372036854775807LL; return cluster.WriteAttribute( - int64sArgument, this, OnSuccessCallback_74, OnFailureCallback_74); + int64sArgument, this, OnSuccessCallback_75, OnFailureCallback_75); } - void OnFailureResponse_74(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_75(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_74() { NextTest(); } + void OnSuccessResponse_75() { NextTest(); } - CHIP_ERROR TestReadAttributeInt64sMinValue_75() + CHIP_ERROR TestReadAttributeInt64sMinValue_76() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_75, - OnFailureCallback_75); + return cluster.ReadAttribute(this, OnSuccessCallback_76, + OnFailureCallback_76); } - void OnFailureResponse_75(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_76(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_75(int64_t int64s) + void OnSuccessResponse_76(int64_t int64s) { VerifyOrReturn(CheckValue("int64s", int64s, -9223372036854775807LL)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt64sDefaultValue_76() + CHIP_ERROR TestWriteAttributeInt64sDefaultValue_77() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35657,52 +36263,52 @@ class TestCluster : public TestCommand int64sArgument = 0LL; return cluster.WriteAttribute( - int64sArgument, this, OnSuccessCallback_76, OnFailureCallback_76); + int64sArgument, this, OnSuccessCallback_77, OnFailureCallback_77); } - void OnFailureResponse_76(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_77(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_76() { NextTest(); } + void OnSuccessResponse_77() { NextTest(); } - CHIP_ERROR TestReadAttributeInt64sDefaultValue_77() + CHIP_ERROR TestReadAttributeInt64sDefaultValue_78() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_77, - OnFailureCallback_77); + return cluster.ReadAttribute(this, OnSuccessCallback_78, + OnFailureCallback_78); } - void OnFailureResponse_77(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_78(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_77(int64_t int64s) + void OnSuccessResponse_78(int64_t int64s) { VerifyOrReturn(CheckValue("int64s", int64s, 0LL)); NextTest(); } - CHIP_ERROR TestReadAttributeEnum8DefaultValue_78() + CHIP_ERROR TestReadAttributeEnum8DefaultValue_79() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_78, - OnFailureCallback_78); + return cluster.ReadAttribute(this, OnSuccessCallback_79, + OnFailureCallback_79); } - void OnFailureResponse_78(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_79(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_78(uint8_t enum8) + void OnSuccessResponse_79(uint8_t enum8) { VerifyOrReturn(CheckValue("enum8", enum8, 0)); NextTest(); } - CHIP_ERROR TestWriteAttributeEnum8MaxValue_79() + CHIP_ERROR TestWriteAttributeEnum8MaxValue_80() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35712,33 +36318,33 @@ class TestCluster : public TestCommand enum8Argument = static_cast(255); return cluster.WriteAttribute( - enum8Argument, this, OnSuccessCallback_79, OnFailureCallback_79); + enum8Argument, this, OnSuccessCallback_80, OnFailureCallback_80); } - void OnFailureResponse_79(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_80(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_79() { NextTest(); } + void OnSuccessResponse_80() { NextTest(); } - CHIP_ERROR TestReadAttributeEnum8MaxValue_80() + CHIP_ERROR TestReadAttributeEnum8MaxValue_81() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_80, - OnFailureCallback_80); + return cluster.ReadAttribute(this, OnSuccessCallback_81, + OnFailureCallback_81); } - void OnFailureResponse_80(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_81(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_80(uint8_t enum8) + void OnSuccessResponse_81(uint8_t enum8) { VerifyOrReturn(CheckValue("enum8", enum8, 255)); NextTest(); } - CHIP_ERROR TestWriteAttributeEnum8MinValue_81() + CHIP_ERROR TestWriteAttributeEnum8MinValue_82() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35748,52 +36354,52 @@ class TestCluster : public TestCommand enum8Argument = static_cast(0); return cluster.WriteAttribute( - enum8Argument, this, OnSuccessCallback_81, OnFailureCallback_81); + enum8Argument, this, OnSuccessCallback_82, OnFailureCallback_82); } - void OnFailureResponse_81(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_82(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_81() { NextTest(); } + void OnSuccessResponse_82() { NextTest(); } - CHIP_ERROR TestReadAttributeEnum8MinValue_82() + CHIP_ERROR TestReadAttributeEnum8MinValue_83() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_82, - OnFailureCallback_82); + return cluster.ReadAttribute(this, OnSuccessCallback_83, + OnFailureCallback_83); } - void OnFailureResponse_82(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_83(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_82(uint8_t enum8) + void OnSuccessResponse_83(uint8_t enum8) { VerifyOrReturn(CheckValue("enum8", enum8, 0)); NextTest(); } - CHIP_ERROR TestReadAttributeEnum16DefaultValue_83() + CHIP_ERROR TestReadAttributeEnum16DefaultValue_84() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_83, - OnFailureCallback_83); + return cluster.ReadAttribute(this, OnSuccessCallback_84, + OnFailureCallback_84); } - void OnFailureResponse_83(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_84(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_83(uint16_t enum16) + void OnSuccessResponse_84(uint16_t enum16) { VerifyOrReturn(CheckValue("enum16", enum16, 0U)); NextTest(); } - CHIP_ERROR TestWriteAttributeEnum16MaxValue_84() + CHIP_ERROR TestWriteAttributeEnum16MaxValue_85() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35803,33 +36409,33 @@ class TestCluster : public TestCommand enum16Argument = static_cast(65535); return cluster.WriteAttribute( - enum16Argument, this, OnSuccessCallback_84, OnFailureCallback_84); + enum16Argument, this, OnSuccessCallback_85, OnFailureCallback_85); } - void OnFailureResponse_84(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_85(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_84() { NextTest(); } + void OnSuccessResponse_85() { NextTest(); } - CHIP_ERROR TestReadAttributeEnum16MaxValue_85() + CHIP_ERROR TestReadAttributeEnum16MaxValue_86() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_85, - OnFailureCallback_85); + return cluster.ReadAttribute(this, OnSuccessCallback_86, + OnFailureCallback_86); } - void OnFailureResponse_85(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_86(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_85(uint16_t enum16) + void OnSuccessResponse_86(uint16_t enum16) { VerifyOrReturn(CheckValue("enum16", enum16, 65535U)); NextTest(); } - CHIP_ERROR TestWriteAttributeEnum16MinValue_86() + CHIP_ERROR TestWriteAttributeEnum16MinValue_87() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35839,52 +36445,52 @@ class TestCluster : public TestCommand enum16Argument = static_cast(0); return cluster.WriteAttribute( - enum16Argument, this, OnSuccessCallback_86, OnFailureCallback_86); + enum16Argument, this, OnSuccessCallback_87, OnFailureCallback_87); } - void OnFailureResponse_86(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_87(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_86() { NextTest(); } + void OnSuccessResponse_87() { NextTest(); } - CHIP_ERROR TestReadAttributeEnum16MinValue_87() + CHIP_ERROR TestReadAttributeEnum16MinValue_88() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_87, - OnFailureCallback_87); + return cluster.ReadAttribute(this, OnSuccessCallback_88, + OnFailureCallback_88); } - void OnFailureResponse_87(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_88(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_87(uint16_t enum16) + void OnSuccessResponse_88(uint16_t enum16) { VerifyOrReturn(CheckValue("enum16", enum16, 0U)); NextTest(); } - CHIP_ERROR TestReadAttributeOctetStringDefaultValue_88() + CHIP_ERROR TestReadAttributeOctetStringDefaultValue_89() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_88, OnFailureCallback_88); + this, OnSuccessCallback_89, OnFailureCallback_89); } - void OnFailureResponse_88(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_89(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_88(chip::ByteSpan octetString) + void OnSuccessResponse_89(chip::ByteSpan octetString) { VerifyOrReturn(CheckValueAsString("octetString", octetString, chip::ByteSpan(chip::Uint8::from_const_char(""), 0))); NextTest(); } - CHIP_ERROR TestWriteAttributeOctetStringWithEmbeddedNull_89() + CHIP_ERROR TestWriteAttributeOctetStringWithEmbeddedNull_90() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35894,26 +36500,26 @@ class TestCluster : public TestCommand octetStringArgument = chip::ByteSpan(chip::Uint8::from_const_char("Tes\x00ti\x00nggarbage: not in length on purpose"), 9); return cluster.WriteAttribute( - octetStringArgument, this, OnSuccessCallback_89, OnFailureCallback_89); + octetStringArgument, this, OnSuccessCallback_90, OnFailureCallback_90); } - void OnFailureResponse_89(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_90(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_89() { NextTest(); } + void OnSuccessResponse_90() { NextTest(); } - CHIP_ERROR TestReadAttributeOctetStringWithEmbeddedNull_90() + CHIP_ERROR TestReadAttributeOctetStringWithEmbeddedNull_91() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_90, OnFailureCallback_90); + this, OnSuccessCallback_91, OnFailureCallback_91); } - void OnFailureResponse_90(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_91(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_90(chip::ByteSpan octetString) + void OnSuccessResponse_91(chip::ByteSpan octetString) { VerifyOrReturn( CheckValueAsString("octetString", octetString, chip::ByteSpan(chip::Uint8::from_const_char("Tes\x00ti\x00ng"), 9))); @@ -35921,7 +36527,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeOctetString_91() + CHIP_ERROR TestWriteAttributeOctetString_92() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35931,26 +36537,26 @@ class TestCluster : public TestCommand octetStringArgument = chip::ByteSpan(chip::Uint8::from_const_char("TestValuegarbage: not in length on purpose"), 9); return cluster.WriteAttribute( - octetStringArgument, this, OnSuccessCallback_91, OnFailureCallback_91); + octetStringArgument, this, OnSuccessCallback_92, OnFailureCallback_92); } - void OnFailureResponse_91(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_92(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_91() { NextTest(); } + void OnSuccessResponse_92() { NextTest(); } - CHIP_ERROR TestReadAttributeOctetString_92() + CHIP_ERROR TestReadAttributeOctetString_93() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_92, OnFailureCallback_92); + this, OnSuccessCallback_93, OnFailureCallback_93); } - void OnFailureResponse_92(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_93(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_92(chip::ByteSpan octetString) + void OnSuccessResponse_93(chip::ByteSpan octetString) { VerifyOrReturn( CheckValueAsString("octetString", octetString, chip::ByteSpan(chip::Uint8::from_const_char("TestValue"), 9))); @@ -35958,7 +36564,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeOctetString_93() + CHIP_ERROR TestWriteAttributeOctetString_94() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -35969,30 +36575,30 @@ class TestCluster : public TestCommand chip::ByteSpan(chip::Uint8::from_const_char("TestValueLongerThan10garbage: not in length on purpose"), 21); return cluster.WriteAttribute( - octetStringArgument, this, OnSuccessCallback_93, OnFailureCallback_93); + octetStringArgument, this, OnSuccessCallback_94, OnFailureCallback_94); } - void OnFailureResponse_93(uint8_t status) + void OnFailureResponse_94(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } - void OnSuccessResponse_93() { ThrowSuccessResponse(); } + void OnSuccessResponse_94() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadAttributeOctetString_94() + CHIP_ERROR TestReadAttributeOctetString_95() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_94, OnFailureCallback_94); + this, OnSuccessCallback_95, OnFailureCallback_95); } - void OnFailureResponse_94(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_95(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_94(chip::ByteSpan octetString) + void OnSuccessResponse_95(chip::ByteSpan octetString) { VerifyOrReturn( CheckValueAsString("octetString", octetString, chip::ByteSpan(chip::Uint8::from_const_char("TestValue"), 9))); @@ -36000,7 +36606,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeOctetString_95() + CHIP_ERROR TestWriteAttributeOctetString_96() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -36010,33 +36616,33 @@ class TestCluster : public TestCommand octetStringArgument = chip::ByteSpan(chip::Uint8::from_const_char("garbage: not in length on purpose"), 0); return cluster.WriteAttribute( - octetStringArgument, this, OnSuccessCallback_95, OnFailureCallback_95); + octetStringArgument, this, OnSuccessCallback_96, OnFailureCallback_96); } - void OnFailureResponse_95(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_96(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_95() { NextTest(); } + void OnSuccessResponse_96() { NextTest(); } - CHIP_ERROR TestReadAttributeLongOctetStringDefaultValue_96() + CHIP_ERROR TestReadAttributeLongOctetStringDefaultValue_97() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_96, OnFailureCallback_96); + this, OnSuccessCallback_97, OnFailureCallback_97); } - void OnFailureResponse_96(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_97(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_96(chip::ByteSpan longOctetString) + void OnSuccessResponse_97(chip::ByteSpan longOctetString) { VerifyOrReturn(CheckValueAsString("longOctetString", longOctetString, chip::ByteSpan(chip::Uint8::from_const_char(""), 0))); NextTest(); } - CHIP_ERROR TestWriteAttributeLongOctetString_97() + CHIP_ERROR TestWriteAttributeLongOctetString_98() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -36051,26 +36657,26 @@ class TestCluster : public TestCommand 300); return cluster.WriteAttribute( - longOctetStringArgument, this, OnSuccessCallback_97, OnFailureCallback_97); + longOctetStringArgument, this, OnSuccessCallback_98, OnFailureCallback_98); } - void OnFailureResponse_97(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_98(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_97() { NextTest(); } + void OnSuccessResponse_98() { NextTest(); } - CHIP_ERROR TestReadAttributeLongOctetString_98() + CHIP_ERROR TestReadAttributeLongOctetString_99() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_98, OnFailureCallback_98); + this, OnSuccessCallback_99, OnFailureCallback_99); } - void OnFailureResponse_98(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_99(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_98(chip::ByteSpan longOctetString) + void OnSuccessResponse_99(chip::ByteSpan longOctetString) { VerifyOrReturn(CheckValueAsString( "longOctetString", longOctetString, @@ -36084,7 +36690,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeLongOctetString_99() + CHIP_ERROR TestWriteAttributeLongOctetString_100() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -36094,33 +36700,33 @@ class TestCluster : public TestCommand longOctetStringArgument = chip::ByteSpan(chip::Uint8::from_const_char("garbage: not in length on purpose"), 0); return cluster.WriteAttribute( - longOctetStringArgument, this, OnSuccessCallback_99, OnFailureCallback_99); + longOctetStringArgument, this, OnSuccessCallback_100, OnFailureCallback_100); } - void OnFailureResponse_99(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_100(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_99() { NextTest(); } + void OnSuccessResponse_100() { NextTest(); } - CHIP_ERROR TestReadAttributeCharStringDefaultValue_100() + CHIP_ERROR TestReadAttributeCharStringDefaultValue_101() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_100, OnFailureCallback_100); + this, OnSuccessCallback_101, OnFailureCallback_101); } - void OnFailureResponse_100(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_101(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_100(chip::CharSpan charString) + void OnSuccessResponse_101(chip::CharSpan charString) { VerifyOrReturn(CheckValueAsString("charString", charString, chip::CharSpan("", 0))); NextTest(); } - CHIP_ERROR TestWriteAttributeCharString_101() + CHIP_ERROR TestWriteAttributeCharString_102() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -36130,33 +36736,33 @@ class TestCluster : public TestCommand charStringArgument = chip::Span("☉T☉garbage: not in length on purpose", 7); return cluster.WriteAttribute( - charStringArgument, this, OnSuccessCallback_101, OnFailureCallback_101); + charStringArgument, this, OnSuccessCallback_102, OnFailureCallback_102); } - void OnFailureResponse_101(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_102(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_101() { NextTest(); } + void OnSuccessResponse_102() { NextTest(); } - CHIP_ERROR TestReadAttributeCharString_102() + CHIP_ERROR TestReadAttributeCharString_103() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_102, OnFailureCallback_102); + this, OnSuccessCallback_103, OnFailureCallback_103); } - void OnFailureResponse_102(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_103(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_102(chip::CharSpan charString) + void OnSuccessResponse_103(chip::CharSpan charString) { VerifyOrReturn(CheckValueAsString("charString", charString, chip::CharSpan("☉T☉", 7))); NextTest(); } - CHIP_ERROR TestWriteAttributeCharStringValueTooLong_103() + CHIP_ERROR TestWriteAttributeCharStringValueTooLong_104() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -36166,37 +36772,37 @@ class TestCluster : public TestCommand charStringArgument = chip::Span("☉TestValueLongerThan10☉garbage: not in length on purpose", 27); return cluster.WriteAttribute( - charStringArgument, this, OnSuccessCallback_103, OnFailureCallback_103); + charStringArgument, this, OnSuccessCallback_104, OnFailureCallback_104); } - void OnFailureResponse_103(uint8_t status) + void OnFailureResponse_104(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } - void OnSuccessResponse_103() { ThrowSuccessResponse(); } + void OnSuccessResponse_104() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadAttributeCharString_104() + CHIP_ERROR TestReadAttributeCharString_105() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_104, OnFailureCallback_104); + this, OnSuccessCallback_105, OnFailureCallback_105); } - void OnFailureResponse_104(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_105(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_104(chip::CharSpan charString) + void OnSuccessResponse_105(chip::CharSpan charString) { VerifyOrReturn(CheckValueAsString("charString", charString, chip::CharSpan("☉T☉", 7))); NextTest(); } - CHIP_ERROR TestWriteAttributeCharStringEmpty_105() + CHIP_ERROR TestWriteAttributeCharStringEmpty_106() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -36206,33 +36812,33 @@ class TestCluster : public TestCommand charStringArgument = chip::Span("garbage: not in length on purpose", 0); return cluster.WriteAttribute( - charStringArgument, this, OnSuccessCallback_105, OnFailureCallback_105); + charStringArgument, this, OnSuccessCallback_106, OnFailureCallback_106); } - void OnFailureResponse_105(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_106(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_105() { NextTest(); } + void OnSuccessResponse_106() { NextTest(); } - CHIP_ERROR TestReadAttributeLongCharStringDefaultValue_106() + CHIP_ERROR TestReadAttributeLongCharStringDefaultValue_107() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_106, OnFailureCallback_106); + this, OnSuccessCallback_107, OnFailureCallback_107); } - void OnFailureResponse_106(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_107(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_106(chip::CharSpan longCharString) + void OnSuccessResponse_107(chip::CharSpan longCharString) { VerifyOrReturn(CheckValueAsString("longCharString", longCharString, chip::CharSpan("", 0))); NextTest(); } - CHIP_ERROR TestWriteAttributeLongCharString_107() + CHIP_ERROR TestWriteAttributeLongCharString_108() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -36246,26 +36852,26 @@ class TestCluster : public TestCommand 900); return cluster.WriteAttribute( - longCharStringArgument, this, OnSuccessCallback_107, OnFailureCallback_107); + longCharStringArgument, this, OnSuccessCallback_108, OnFailureCallback_108); } - void OnFailureResponse_107(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_108(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_107() { NextTest(); } + void OnSuccessResponse_108() { NextTest(); } - CHIP_ERROR TestReadAttributeLongCharString_108() + CHIP_ERROR TestReadAttributeLongCharString_109() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_108, OnFailureCallback_108); + this, OnSuccessCallback_109, OnFailureCallback_109); } - void OnFailureResponse_108(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_109(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_108(chip::CharSpan longCharString) + void OnSuccessResponse_109(chip::CharSpan longCharString) { VerifyOrReturn(CheckValueAsString( "longCharString", longCharString, @@ -36277,7 +36883,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeLongCharString_109() + CHIP_ERROR TestWriteAttributeLongCharString_110() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -36287,33 +36893,33 @@ class TestCluster : public TestCommand longCharStringArgument = chip::Span("garbage: not in length on purpose", 0); return cluster.WriteAttribute( - longCharStringArgument, this, OnSuccessCallback_109, OnFailureCallback_109); + longCharStringArgument, this, OnSuccessCallback_110, OnFailureCallback_110); } - void OnFailureResponse_109(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_110(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_109() { NextTest(); } + void OnSuccessResponse_110() { NextTest(); } - CHIP_ERROR TestReadAttributeEpochUsDefaultValue_110() + CHIP_ERROR TestReadAttributeEpochUsDefaultValue_111() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_110, - OnFailureCallback_110); + return cluster.ReadAttribute(this, OnSuccessCallback_111, + OnFailureCallback_111); } - void OnFailureResponse_110(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_111(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_110(uint64_t epochUs) + void OnSuccessResponse_111(uint64_t epochUs) { VerifyOrReturn(CheckValue("epochUs", epochUs, 0ULL)); NextTest(); } - CHIP_ERROR TestWriteAttributeEpochUsMaxValue_111() + CHIP_ERROR TestWriteAttributeEpochUsMaxValue_112() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -36323,33 +36929,33 @@ class TestCluster : public TestCommand epochUsArgument = 18446744073709551615ULL; return cluster.WriteAttribute( - epochUsArgument, this, OnSuccessCallback_111, OnFailureCallback_111); + epochUsArgument, this, OnSuccessCallback_112, OnFailureCallback_112); } - void OnFailureResponse_111(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_112(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_111() { NextTest(); } + void OnSuccessResponse_112() { NextTest(); } - CHIP_ERROR TestReadAttributeEpochUsMaxValue_112() + CHIP_ERROR TestReadAttributeEpochUsMaxValue_113() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_112, - OnFailureCallback_112); + return cluster.ReadAttribute(this, OnSuccessCallback_113, + OnFailureCallback_113); } - void OnFailureResponse_112(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_113(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_112(uint64_t epochUs) + void OnSuccessResponse_113(uint64_t epochUs) { VerifyOrReturn(CheckValue("epochUs", epochUs, 18446744073709551615ULL)); NextTest(); } - CHIP_ERROR TestWriteAttributeEpochUsMinValue_113() + CHIP_ERROR TestWriteAttributeEpochUsMinValue_114() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -36359,52 +36965,52 @@ class TestCluster : public TestCommand epochUsArgument = 0ULL; return cluster.WriteAttribute( - epochUsArgument, this, OnSuccessCallback_113, OnFailureCallback_113); + epochUsArgument, this, OnSuccessCallback_114, OnFailureCallback_114); } - void OnFailureResponse_113(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_114(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_113() { NextTest(); } + void OnSuccessResponse_114() { NextTest(); } - CHIP_ERROR TestReadAttributeEpochUsMinValue_114() + CHIP_ERROR TestReadAttributeEpochUsMinValue_115() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_114, - OnFailureCallback_114); + return cluster.ReadAttribute(this, OnSuccessCallback_115, + OnFailureCallback_115); } - void OnFailureResponse_114(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_115(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_114(uint64_t epochUs) + void OnSuccessResponse_115(uint64_t epochUs) { VerifyOrReturn(CheckValue("epochUs", epochUs, 0ULL)); NextTest(); } - CHIP_ERROR TestReadAttributeEpochSDefaultValue_115() + CHIP_ERROR TestReadAttributeEpochSDefaultValue_116() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_115, - OnFailureCallback_115); + return cluster.ReadAttribute(this, OnSuccessCallback_116, + OnFailureCallback_116); } - void OnFailureResponse_115(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_116(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_115(uint32_t epochS) + void OnSuccessResponse_116(uint32_t epochS) { VerifyOrReturn(CheckValue("epochS", epochS, 0UL)); NextTest(); } - CHIP_ERROR TestWriteAttributeEpochSMaxValue_116() + CHIP_ERROR TestWriteAttributeEpochSMaxValue_117() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -36414,33 +37020,33 @@ class TestCluster : public TestCommand epochSArgument = 4294967295UL; return cluster.WriteAttribute( - epochSArgument, this, OnSuccessCallback_116, OnFailureCallback_116); + epochSArgument, this, OnSuccessCallback_117, OnFailureCallback_117); } - void OnFailureResponse_116(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_117(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_116() { NextTest(); } + void OnSuccessResponse_117() { NextTest(); } - CHIP_ERROR TestReadAttributeEpochSMaxValue_117() + CHIP_ERROR TestReadAttributeEpochSMaxValue_118() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_117, - OnFailureCallback_117); + return cluster.ReadAttribute(this, OnSuccessCallback_118, + OnFailureCallback_118); } - void OnFailureResponse_117(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_118(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_117(uint32_t epochS) + void OnSuccessResponse_118(uint32_t epochS) { VerifyOrReturn(CheckValue("epochS", epochS, 4294967295UL)); NextTest(); } - CHIP_ERROR TestWriteAttributeEpochSMinValue_118() + CHIP_ERROR TestWriteAttributeEpochSMinValue_119() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -36450,55 +37056,55 @@ class TestCluster : public TestCommand epochSArgument = 0UL; return cluster.WriteAttribute( - epochSArgument, this, OnSuccessCallback_118, OnFailureCallback_118); + epochSArgument, this, OnSuccessCallback_119, OnFailureCallback_119); } - void OnFailureResponse_118(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_119(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_118() { NextTest(); } + void OnSuccessResponse_119() { NextTest(); } - CHIP_ERROR TestReadAttributeEpochSMinValue_119() + CHIP_ERROR TestReadAttributeEpochSMinValue_120() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_119, - OnFailureCallback_119); + return cluster.ReadAttribute(this, OnSuccessCallback_120, + OnFailureCallback_120); } - void OnFailureResponse_119(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_120(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_119(uint32_t epochS) + void OnSuccessResponse_120(uint32_t epochS) { VerifyOrReturn(CheckValue("epochS", epochS, 0UL)); NextTest(); } - CHIP_ERROR TestReadAttributeUnsupported_120() + CHIP_ERROR TestReadAttributeUnsupported_121() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_120, OnFailureCallback_120); + this, OnSuccessCallback_121, OnFailureCallback_121); } - void OnFailureResponse_120(uint8_t status) + void OnFailureResponse_121(uint8_t status) { (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); } - void OnSuccessResponse_120(bool unsupported) + void OnSuccessResponse_121(bool unsupported) { VerifyOrReturn(CheckValue("unsupported", unsupported, 0)); NextTest(); } - CHIP_ERROR TestWriteattributeUnsupported_121() + CHIP_ERROR TestWriteattributeUnsupported_122() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -36508,17 +37114,17 @@ class TestCluster : public TestCommand unsupportedArgument = 0; return cluster.WriteAttribute( - unsupportedArgument, this, OnSuccessCallback_121, OnFailureCallback_121); + unsupportedArgument, this, OnSuccessCallback_122, OnFailureCallback_122); } - void OnFailureResponse_121(uint8_t status) + void OnFailureResponse_122(uint8_t status) { (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); } - void OnSuccessResponse_121() { NextTest(); } + void OnSuccessResponse_122() { NextTest(); } - CHIP_ERROR TestSendTestCommandToUnsupportedEndpoint_122() + CHIP_ERROR TestSendTestCommandToUnsupportedEndpoint_123() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 200; using RequestType = chip::app::Clusters::TestCluster::Commands::Test::Type; @@ -36526,26 +37132,26 @@ class TestCluster : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_122(); + (static_cast(context))->OnSuccessResponse_123(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_122(status); + (static_cast(context))->OnFailureResponse_123(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_122(uint8_t status) + void OnFailureResponse_123(uint8_t status) { VerifyOrReturn(CheckConstraintNotValue("status", status, 0)); NextTest(); } - void OnSuccessResponse_122() { ThrowSuccessResponse(); } + void OnSuccessResponse_123() { ThrowSuccessResponse(); } - CHIP_ERROR TestSendTestCommandToUnsupportedCluster_123() + CHIP_ERROR TestSendTestCommandToUnsupportedCluster_124() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; using RequestType = chip::app::Clusters::TestCluster::Commands::Test::Type; @@ -36553,45 +37159,45 @@ class TestCluster : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_123(); + (static_cast(context))->OnSuccessResponse_124(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_123(status); + (static_cast(context))->OnFailureResponse_124(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_123(uint8_t status) + void OnFailureResponse_124(uint8_t status) { VerifyOrReturn(CheckConstraintNotValue("status", status, 0)); NextTest(); } - void OnSuccessResponse_123() { ThrowSuccessResponse(); } + void OnSuccessResponse_124() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadAttributeVendorIdDefaultValue_124() + CHIP_ERROR TestReadAttributeVendorIdDefaultValue_125() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_124, - OnFailureCallback_124); + return cluster.ReadAttribute(this, OnSuccessCallback_125, + OnFailureCallback_125); } - void OnFailureResponse_124(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_125(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_124(chip::VendorId vendorId) + void OnSuccessResponse_125(chip::VendorId vendorId) { VerifyOrReturn(CheckValue("vendorId", vendorId, 0U)); NextTest(); } - CHIP_ERROR TestWriteAttributeVendorId_125() + CHIP_ERROR TestWriteAttributeVendorId_126() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -36601,33 +37207,33 @@ class TestCluster : public TestCommand vendorIdArgument = static_cast(17); return cluster.WriteAttribute( - vendorIdArgument, this, OnSuccessCallback_125, OnFailureCallback_125); + vendorIdArgument, this, OnSuccessCallback_126, OnFailureCallback_126); } - void OnFailureResponse_125(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_126(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_125() { NextTest(); } + void OnSuccessResponse_126() { NextTest(); } - CHIP_ERROR TestReadAttributeVendorId_126() + CHIP_ERROR TestReadAttributeVendorId_127() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_126, - OnFailureCallback_126); + return cluster.ReadAttribute(this, OnSuccessCallback_127, + OnFailureCallback_127); } - void OnFailureResponse_126(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_127(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_126(chip::VendorId vendorId) + void OnSuccessResponse_127(chip::VendorId vendorId) { VerifyOrReturn(CheckValue("vendorId", vendorId, 17U)); NextTest(); } - CHIP_ERROR TestRestoreAttributeVendorId_127() + CHIP_ERROR TestRestoreAttributeVendorId_128() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -36637,14 +37243,14 @@ class TestCluster : public TestCommand vendorIdArgument = static_cast(0); return cluster.WriteAttribute( - vendorIdArgument, this, OnSuccessCallback_127, OnFailureCallback_127); + vendorIdArgument, this, OnSuccessCallback_128, OnFailureCallback_128); } - void OnFailureResponse_127(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_128(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_127() { NextTest(); } + void OnSuccessResponse_128() { NextTest(); } - CHIP_ERROR TestSendACommandWithAVendorIdAndEnum_128() + CHIP_ERROR TestSendACommandWithAVendorIdAndEnum_129() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestEnumsRequest::Type; @@ -36654,20 +37260,20 @@ class TestCluster : public TestCommand request.arg2 = static_cast(101); auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_128(data.arg1, data.arg2); + (static_cast(context))->OnSuccessResponse_129(data.arg1, data.arg2); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_128(status); + (static_cast(context))->OnFailureResponse_129(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_128(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_129(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_128(chip::VendorId arg1, chip::app::Clusters::TestCluster::SimpleEnum arg2) + void OnSuccessResponse_129(chip::VendorId arg1, chip::app::Clusters::TestCluster::SimpleEnum arg2) { VerifyOrReturn(CheckValue("arg1", arg1, 20003U)); @@ -36676,7 +37282,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestSendTestCommandWithStructArgumentAndArg1bIsTrue_129() + CHIP_ERROR TestSendTestCommandWithStructArgumentAndArg1bIsTrue_130() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestStructArgumentRequest::Type; @@ -36693,27 +37299,27 @@ class TestCluster : public TestCommand request.arg1.h = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_129(data.value); + (static_cast(context))->OnSuccessResponse_130(data.value); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_129(status); + (static_cast(context))->OnFailureResponse_130(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_129(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_130(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_129(bool value) + void OnSuccessResponse_130(bool value) { VerifyOrReturn(CheckValue("value", value, true)); NextTest(); } - CHIP_ERROR TestSendTestCommandWithStructArgumentAndArg1bIsFalse_130() + CHIP_ERROR TestSendTestCommandWithStructArgumentAndArg1bIsFalse_131() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestStructArgumentRequest::Type; @@ -36730,27 +37336,27 @@ class TestCluster : public TestCommand request.arg1.h = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_130(data.value); + (static_cast(context))->OnSuccessResponse_131(data.value); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_130(status); + (static_cast(context))->OnFailureResponse_131(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_130(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_131(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_130(bool value) + void OnSuccessResponse_131(bool value) { VerifyOrReturn(CheckValue("value", value, false)); NextTest(); } - CHIP_ERROR TestSendTestCommandWithNestedStructArgumentAndArg1cbIsTrue_131() + CHIP_ERROR TestSendTestCommandWithNestedStructArgumentAndArg1cbIsTrue_132() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestNestedStructArgumentRequest::Type; @@ -36770,27 +37376,27 @@ class TestCluster : public TestCommand request.arg1.c.h = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_131(data.value); + (static_cast(context))->OnSuccessResponse_132(data.value); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_131(status); + (static_cast(context))->OnFailureResponse_132(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_131(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_132(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_131(bool value) + void OnSuccessResponse_132(bool value) { VerifyOrReturn(CheckValue("value", value, true)); NextTest(); } - CHIP_ERROR TestSendTestCommandWithNestedStructArgumentArg1cbIsFalse_132() + CHIP_ERROR TestSendTestCommandWithNestedStructArgumentArg1cbIsFalse_133() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestNestedStructArgumentRequest::Type; @@ -36810,27 +37416,27 @@ class TestCluster : public TestCommand request.arg1.c.h = 0; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_132(data.value); + (static_cast(context))->OnSuccessResponse_133(data.value); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_132(status); + (static_cast(context))->OnFailureResponse_133(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_132(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_133(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_132(bool value) + void OnSuccessResponse_133(bool value) { VerifyOrReturn(CheckValue("value", value, false)); NextTest(); } - CHIP_ERROR TestSendTestCommandWithNestedStructListArgumentAndAllFieldsBOfArg1dAreTrue_133() + CHIP_ERROR TestSendTestCommandWithNestedStructListArgumentAndAllFieldsBOfArg1dAreTrue_134() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestNestedStructListArgumentRequest::Type; @@ -36889,27 +37495,27 @@ class TestCluster : public TestCommand request.arg1.g = gList; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_133(data.value); + (static_cast(context))->OnSuccessResponse_134(data.value); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_133(status); + (static_cast(context))->OnFailureResponse_134(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_133(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_134(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_133(bool value) + void OnSuccessResponse_134(bool value) { VerifyOrReturn(CheckValue("value", value, true)); NextTest(); } - CHIP_ERROR TestSendTestCommandWithNestedStructListArgumentAndSomeFieldsBOfArg1dAreFalse_134() + CHIP_ERROR TestSendTestCommandWithNestedStructListArgumentAndSomeFieldsBOfArg1dAreFalse_135() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestNestedStructListArgumentRequest::Type; @@ -36968,27 +37574,27 @@ class TestCluster : public TestCommand request.arg1.g = gList; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_134(data.value); + (static_cast(context))->OnSuccessResponse_135(data.value); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_134(status); + (static_cast(context))->OnFailureResponse_135(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_134(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_135(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_134(bool value) + void OnSuccessResponse_135(bool value) { VerifyOrReturn(CheckValue("value", value, false)); NextTest(); } - CHIP_ERROR TestSendTestCommandWithStructArgumentAndSeeWhatWeGetBack_135() + CHIP_ERROR TestSendTestCommandWithStructArgumentAndSeeWhatWeGetBack_136() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::SimpleStructEchoRequest::Type; @@ -37005,20 +37611,20 @@ class TestCluster : public TestCommand request.arg1.h = 0.1; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_135(data.arg1); + (static_cast(context))->OnSuccessResponse_136(data.arg1); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_135(status); + (static_cast(context))->OnFailureResponse_136(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_135(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_136(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_135(const chip::app::Clusters::TestCluster::Structs::SimpleStruct::DecodableType & arg1) + void OnSuccessResponse_136(const chip::app::Clusters::TestCluster::Structs::SimpleStruct::DecodableType & arg1) { VerifyOrReturn(CheckValue("arg1.a", arg1.a, 17)); VerifyOrReturn(CheckValue("arg1.b", arg1.b, false)); @@ -37032,7 +37638,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestSendTestCommandWithListOfInt8uAndNoneOfThemIsSetTo0_136() + CHIP_ERROR TestSendTestCommandWithListOfInt8uAndNoneOfThemIsSetTo0_137() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestListInt8UArgumentRequest::Type; @@ -37052,27 +37658,27 @@ class TestCluster : public TestCommand request.arg1 = arg1List; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_136(data.value); + (static_cast(context))->OnSuccessResponse_137(data.value); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_136(status); + (static_cast(context))->OnFailureResponse_137(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_136(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_137(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_136(bool value) + void OnSuccessResponse_137(bool value) { VerifyOrReturn(CheckValue("value", value, true)); NextTest(); } - CHIP_ERROR TestSendTestCommandWithListOfInt8uAndOneOfThemIsSetTo0_137() + CHIP_ERROR TestSendTestCommandWithListOfInt8uAndOneOfThemIsSetTo0_138() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestListInt8UArgumentRequest::Type; @@ -37093,27 +37699,27 @@ class TestCluster : public TestCommand request.arg1 = arg1List; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_137(data.value); + (static_cast(context))->OnSuccessResponse_138(data.value); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_137(status); + (static_cast(context))->OnFailureResponse_138(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_137(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_138(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_137(bool value) + void OnSuccessResponse_138(bool value) { VerifyOrReturn(CheckValue("value", value, false)); NextTest(); } - CHIP_ERROR TestSendTestCommandWithListOfInt8uAndGetItReversed_138() + CHIP_ERROR TestSendTestCommandWithListOfInt8uAndGetItReversed_139() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseRequest::Type; @@ -37133,20 +37739,20 @@ class TestCluster : public TestCommand request.arg1 = arg1List; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_138(data.arg1); + (static_cast(context))->OnSuccessResponse_139(data.arg1); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_138(status); + (static_cast(context))->OnFailureResponse_139(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_138(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_139(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_138(const chip::app::DataModel::DecodableList & arg1) + void OnSuccessResponse_139(const chip::app::DataModel::DecodableList & arg1) { auto iter = arg1.begin(); VerifyOrReturn(CheckNextListItemDecodes("arg1", iter, 0)); @@ -37172,7 +37778,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestSendTestCommandWithEmptyListOfInt8uAndGetAnEmptyListBack_139() + CHIP_ERROR TestSendTestCommandWithEmptyListOfInt8uAndGetAnEmptyListBack_140() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseRequest::Type; @@ -37182,20 +37788,20 @@ class TestCluster : public TestCommand request.arg1 = chip::app::DataModel::List(); auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_139(data.arg1); + (static_cast(context))->OnSuccessResponse_140(data.arg1); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_139(status); + (static_cast(context))->OnFailureResponse_140(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_139(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_140(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_139(const chip::app::DataModel::DecodableList & arg1) + void OnSuccessResponse_140(const chip::app::DataModel::DecodableList & arg1) { auto iter = arg1.begin(); VerifyOrReturn(CheckNoMoreListItems("arg1", iter, 0)); @@ -37203,7 +37809,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestSendTestCommandWithListOfStructArgumentAndArg1bOfFirstItemIsTrue_140() + CHIP_ERROR TestSendTestCommandWithListOfStructArgumentAndArg1bOfFirstItemIsTrue_141() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestListStructArgumentRequest::Type; @@ -37233,27 +37839,27 @@ class TestCluster : public TestCommand request.arg1 = arg1List; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_140(data.value); + (static_cast(context))->OnSuccessResponse_141(data.value); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_140(status); + (static_cast(context))->OnFailureResponse_141(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_140(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_141(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_140(bool value) + void OnSuccessResponse_141(bool value) { VerifyOrReturn(CheckValue("value", value, true)); NextTest(); } - CHIP_ERROR TestSendTestCommandWithListOfStructArgumentAndArg1bOfFirstItemIsFalse_141() + CHIP_ERROR TestSendTestCommandWithListOfStructArgumentAndArg1bOfFirstItemIsFalse_142() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestListStructArgumentRequest::Type; @@ -37283,27 +37889,27 @@ class TestCluster : public TestCommand request.arg1 = arg1List; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_141(data.value); + (static_cast(context))->OnSuccessResponse_142(data.value); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_141(status); + (static_cast(context))->OnFailureResponse_142(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_141(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_142(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_141(bool value) + void OnSuccessResponse_142(bool value) { VerifyOrReturn(CheckValue("value", value, false)); NextTest(); } - CHIP_ERROR TestSendTestCommandWithListOfNestedStructListArgumentAndAllFieldsBOfElementsOfArg1dAreTrue_142() + CHIP_ERROR TestSendTestCommandWithListOfNestedStructListArgumentAndAllFieldsBOfElementsOfArg1dAreTrue_143() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestListNestedStructListArgumentRequest::Type; @@ -37366,27 +37972,27 @@ class TestCluster : public TestCommand request.arg1 = arg1List; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_142(data.value); + (static_cast(context))->OnSuccessResponse_143(data.value); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_142(status); + (static_cast(context))->OnFailureResponse_143(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_142(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_143(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_142(bool value) + void OnSuccessResponse_143(bool value) { VerifyOrReturn(CheckValue("value", value, true)); NextTest(); } - CHIP_ERROR TestSendTestCommandWithNestedStructListArgumentAndSomeFieldsBOfElementsOfArg1dAreFalse_143() + CHIP_ERROR TestSendTestCommandWithNestedStructListArgumentAndSomeFieldsBOfElementsOfArg1dAreFalse_144() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestListNestedStructListArgumentRequest::Type; @@ -37449,27 +38055,27 @@ class TestCluster : public TestCommand request.arg1 = arg1List; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_143(data.value); + (static_cast(context))->OnSuccessResponse_144(data.value); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_143(status); + (static_cast(context))->OnFailureResponse_144(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_143(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_144(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_143(bool value) + void OnSuccessResponse_144(bool value) { VerifyOrReturn(CheckValue("value", value, false)); NextTest(); } - CHIP_ERROR TestWriteAttributeListWithListOfInt8uAndNoneOfThemIsSetTo0_144() + CHIP_ERROR TestWriteAttributeListWithListOfInt8uAndNoneOfThemIsSetTo0_145() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -37485,26 +38091,26 @@ class TestCluster : public TestCommand listInt8uArgument = listInt8uList; return cluster.WriteAttribute( - listInt8uArgument, this, OnSuccessCallback_144, OnFailureCallback_144); + listInt8uArgument, this, OnSuccessCallback_145, OnFailureCallback_145); } - void OnFailureResponse_144(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_145(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_144() { NextTest(); } + void OnSuccessResponse_145() { NextTest(); } - CHIP_ERROR TestReadAttributeListWithListOfInt8u_145() + CHIP_ERROR TestReadAttributeListWithListOfInt8u_146() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_145, - OnFailureCallback_145); + return cluster.ReadAttribute(this, OnSuccessCallback_146, + OnFailureCallback_146); } - void OnFailureResponse_145(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_146(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_145(const chip::app::DataModel::DecodableList & listInt8u) + void OnSuccessResponse_146(const chip::app::DataModel::DecodableList & listInt8u) { auto iter = listInt8u.begin(); VerifyOrReturn(CheckNextListItemDecodes("listInt8u", iter, 0)); @@ -37520,7 +38126,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeListWithListOfOctetString_146() + CHIP_ERROR TestWriteAttributeListWithListOfOctetString_147() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -37536,26 +38142,26 @@ class TestCluster : public TestCommand listOctetStringArgument = listOctetStringList; return cluster.WriteAttribute( - listOctetStringArgument, this, OnSuccessCallback_146, OnFailureCallback_146); + listOctetStringArgument, this, OnSuccessCallback_147, OnFailureCallback_147); } - void OnFailureResponse_146(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_147(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_146() { NextTest(); } + void OnSuccessResponse_147() { NextTest(); } - CHIP_ERROR TestReadAttributeListWithListOfOctetString_147() + CHIP_ERROR TestReadAttributeListWithListOfOctetString_148() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_147, OnFailureCallback_147); + this, OnSuccessCallback_148, OnFailureCallback_148); } - void OnFailureResponse_147(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_148(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_147(const chip::app::DataModel::DecodableList & listOctetString) + void OnSuccessResponse_148(const chip::app::DataModel::DecodableList & listOctetString) { auto iter = listOctetString.begin(); VerifyOrReturn(CheckNextListItemDecodes("listOctetString", iter, 0)); @@ -37575,7 +38181,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeListWithListOfListStructOctetString_148() + CHIP_ERROR TestWriteAttributeListWithListOfListStructOctetString_149() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -37605,26 +38211,26 @@ class TestCluster : public TestCommand listStructOctetStringArgument = listStructOctetStringList; return cluster.WriteAttribute( - listStructOctetStringArgument, this, OnSuccessCallback_148, OnFailureCallback_148); + listStructOctetStringArgument, this, OnSuccessCallback_149, OnFailureCallback_149); } - void OnFailureResponse_148(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_149(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_148() { NextTest(); } + void OnSuccessResponse_149() { NextTest(); } - CHIP_ERROR TestReadAttributeListWithListOfListStructOctetString_149() + CHIP_ERROR TestReadAttributeListWithListOfListStructOctetString_150() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_149, OnFailureCallback_149); + this, OnSuccessCallback_150, OnFailureCallback_150); } - void OnFailureResponse_149(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_150(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_149( + void OnSuccessResponse_150( const chip::app::DataModel::DecodableList & listStructOctetString) { @@ -37650,7 +38256,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestSendTestCommandWithOptionalArgSet_150() + CHIP_ERROR TestSendTestCommandWithOptionalArgSet_151() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type; @@ -37660,20 +38266,20 @@ class TestCluster : public TestCommand auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context)) - ->OnSuccessResponse_150(data.wasPresent, data.wasNull, data.value, data.originalValue); + ->OnSuccessResponse_151(data.wasPresent, data.wasNull, data.value, data.originalValue); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_150(status); + (static_cast(context))->OnFailureResponse_151(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_150(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_151(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_150(bool wasPresent, const chip::Optional & wasNull, const chip::Optional & value, + void OnSuccessResponse_151(bool wasPresent, const chip::Optional & wasNull, const chip::Optional & value, const chip::Optional> & originalValue) { VerifyOrReturn(CheckValue("wasPresent", wasPresent, true)); @@ -37691,7 +38297,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestSendTestCommandWithoutItsOptionalArg_151() + CHIP_ERROR TestSendTestCommandWithoutItsOptionalArg_152() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type; @@ -37700,20 +38306,20 @@ class TestCluster : public TestCommand auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context)) - ->OnSuccessResponse_151(data.wasPresent, data.wasNull, data.value, data.originalValue); + ->OnSuccessResponse_152(data.wasPresent, data.wasNull, data.value, data.originalValue); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_151(status); + (static_cast(context))->OnFailureResponse_152(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_151(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_152(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_151(bool wasPresent, const chip::Optional & wasNull, const chip::Optional & value, + void OnSuccessResponse_152(bool wasPresent, const chip::Optional & wasNull, const chip::Optional & value, const chip::Optional> & originalValue) { VerifyOrReturn(CheckValue("wasPresent", wasPresent, false)); @@ -37721,7 +38327,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableBooleanNull_152() + CHIP_ERROR TestWriteAttributeNullableBooleanNull_153() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -37731,33 +38337,33 @@ class TestCluster : public TestCommand nullableBooleanArgument.SetNull(); return cluster.WriteAttribute( - nullableBooleanArgument, this, OnSuccessCallback_152, OnFailureCallback_152); + nullableBooleanArgument, this, OnSuccessCallback_153, OnFailureCallback_153); } - void OnFailureResponse_152(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_153(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_152() { NextTest(); } + void OnSuccessResponse_153() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableBooleanNull_153() + CHIP_ERROR TestReadAttributeNullableBooleanNull_154() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_153, OnFailureCallback_153); + this, OnSuccessCallback_154, OnFailureCallback_154); } - void OnFailureResponse_153(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_154(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_153(const chip::app::DataModel::Nullable & nullableBoolean) + void OnSuccessResponse_154(const chip::app::DataModel::Nullable & nullableBoolean) { VerifyOrReturn(CheckValueNull("nullableBoolean", nullableBoolean)); NextTest(); } - CHIP_ERROR TestWriteAttributeNullableBooleanTrue_154() + CHIP_ERROR TestWriteAttributeNullableBooleanTrue_155() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -37767,26 +38373,26 @@ class TestCluster : public TestCommand nullableBooleanArgument.SetNonNull() = true; return cluster.WriteAttribute( - nullableBooleanArgument, this, OnSuccessCallback_154, OnFailureCallback_154); + nullableBooleanArgument, this, OnSuccessCallback_155, OnFailureCallback_155); } - void OnFailureResponse_154(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_155(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_154() { NextTest(); } + void OnSuccessResponse_155() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableBooleanTrue_155() + CHIP_ERROR TestReadAttributeNullableBooleanTrue_156() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_155, OnFailureCallback_155); + this, OnSuccessCallback_156, OnFailureCallback_156); } - void OnFailureResponse_155(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_156(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_155(const chip::app::DataModel::Nullable & nullableBoolean) + void OnSuccessResponse_156(const chip::app::DataModel::Nullable & nullableBoolean) { VerifyOrReturn(CheckValueNonNull("nullableBoolean", nullableBoolean)); VerifyOrReturn(CheckValue("nullableBoolean.Value()", nullableBoolean.Value(), true)); @@ -37794,7 +38400,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableBitmap8MaxValue_156() + CHIP_ERROR TestWriteAttributeNullableBitmap8MaxValue_157() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -37804,26 +38410,26 @@ class TestCluster : public TestCommand nullableBitmap8Argument.SetNonNull() = 254; return cluster.WriteAttribute( - nullableBitmap8Argument, this, OnSuccessCallback_156, OnFailureCallback_156); + nullableBitmap8Argument, this, OnSuccessCallback_157, OnFailureCallback_157); } - void OnFailureResponse_156(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_157(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_156() { NextTest(); } + void OnSuccessResponse_157() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableBitmap8MaxValue_157() + CHIP_ERROR TestReadAttributeNullableBitmap8MaxValue_158() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_157, OnFailureCallback_157); + this, OnSuccessCallback_158, OnFailureCallback_158); } - void OnFailureResponse_157(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_158(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_157(const chip::app::DataModel::Nullable & nullableBitmap8) + void OnSuccessResponse_158(const chip::app::DataModel::Nullable & nullableBitmap8) { VerifyOrReturn(CheckValueNonNull("nullableBitmap8", nullableBitmap8)); VerifyOrReturn(CheckValue("nullableBitmap8.Value()", nullableBitmap8.Value(), 254)); @@ -37831,7 +38437,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableBitmap8InvalidValue_158() + CHIP_ERROR TestWriteAttributeNullableBitmap8InvalidValue_159() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -37841,30 +38447,30 @@ class TestCluster : public TestCommand nullableBitmap8Argument.SetNonNull() = 255; return cluster.WriteAttribute( - nullableBitmap8Argument, this, OnSuccessCallback_158, OnFailureCallback_158); + nullableBitmap8Argument, this, OnSuccessCallback_159, OnFailureCallback_159); } - void OnFailureResponse_158(uint8_t status) + void OnFailureResponse_159(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } - void OnSuccessResponse_158() { ThrowSuccessResponse(); } + void OnSuccessResponse_159() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadAttributeNullableBitmap8UnchangedValue_159() + CHIP_ERROR TestReadAttributeNullableBitmap8UnchangedValue_160() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_159, OnFailureCallback_159); + this, OnSuccessCallback_160, OnFailureCallback_160); } - void OnFailureResponse_159(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_160(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_159(const chip::app::DataModel::Nullable & nullableBitmap8) + void OnSuccessResponse_160(const chip::app::DataModel::Nullable & nullableBitmap8) { VerifyOrReturn(CheckValueNonNull("nullableBitmap8", nullableBitmap8)); VerifyOrReturn(CheckValue("nullableBitmap8.Value()", nullableBitmap8.Value(), 254)); @@ -37872,7 +38478,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableBitmap8NullValue_160() + CHIP_ERROR TestWriteAttributeNullableBitmap8NullValue_161() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -37882,33 +38488,33 @@ class TestCluster : public TestCommand nullableBitmap8Argument.SetNull(); return cluster.WriteAttribute( - nullableBitmap8Argument, this, OnSuccessCallback_160, OnFailureCallback_160); + nullableBitmap8Argument, this, OnSuccessCallback_161, OnFailureCallback_161); } - void OnFailureResponse_160(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_161(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_160() { NextTest(); } + void OnSuccessResponse_161() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableBitmap8NullValue_161() + CHIP_ERROR TestReadAttributeNullableBitmap8NullValue_162() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_161, OnFailureCallback_161); + this, OnSuccessCallback_162, OnFailureCallback_162); } - void OnFailureResponse_161(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_162(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_161(const chip::app::DataModel::Nullable & nullableBitmap8) + void OnSuccessResponse_162(const chip::app::DataModel::Nullable & nullableBitmap8) { VerifyOrReturn(CheckValueNull("nullableBitmap8", nullableBitmap8)); NextTest(); } - CHIP_ERROR TestWriteAttributeNullableBitmap16MaxValue_162() + CHIP_ERROR TestWriteAttributeNullableBitmap16MaxValue_163() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -37918,26 +38524,26 @@ class TestCluster : public TestCommand nullableBitmap16Argument.SetNonNull() = 65534U; return cluster.WriteAttribute( - nullableBitmap16Argument, this, OnSuccessCallback_162, OnFailureCallback_162); + nullableBitmap16Argument, this, OnSuccessCallback_163, OnFailureCallback_163); } - void OnFailureResponse_162(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_163(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_162() { NextTest(); } + void OnSuccessResponse_163() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableBitmap16MaxValue_163() + CHIP_ERROR TestReadAttributeNullableBitmap16MaxValue_164() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_163, OnFailureCallback_163); + this, OnSuccessCallback_164, OnFailureCallback_164); } - void OnFailureResponse_163(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_164(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_163(const chip::app::DataModel::Nullable & nullableBitmap16) + void OnSuccessResponse_164(const chip::app::DataModel::Nullable & nullableBitmap16) { VerifyOrReturn(CheckValueNonNull("nullableBitmap16", nullableBitmap16)); VerifyOrReturn(CheckValue("nullableBitmap16.Value()", nullableBitmap16.Value(), 65534U)); @@ -37945,7 +38551,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableBitmap16InvalidValue_164() + CHIP_ERROR TestWriteAttributeNullableBitmap16InvalidValue_165() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -37955,30 +38561,30 @@ class TestCluster : public TestCommand nullableBitmap16Argument.SetNonNull() = 65535U; return cluster.WriteAttribute( - nullableBitmap16Argument, this, OnSuccessCallback_164, OnFailureCallback_164); + nullableBitmap16Argument, this, OnSuccessCallback_165, OnFailureCallback_165); } - void OnFailureResponse_164(uint8_t status) + void OnFailureResponse_165(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } - void OnSuccessResponse_164() { ThrowSuccessResponse(); } + void OnSuccessResponse_165() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadAttributeNullableBitmap16UnchangedValue_165() + CHIP_ERROR TestReadAttributeNullableBitmap16UnchangedValue_166() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_165, OnFailureCallback_165); + this, OnSuccessCallback_166, OnFailureCallback_166); } - void OnFailureResponse_165(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_166(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_165(const chip::app::DataModel::Nullable & nullableBitmap16) + void OnSuccessResponse_166(const chip::app::DataModel::Nullable & nullableBitmap16) { VerifyOrReturn(CheckValueNonNull("nullableBitmap16", nullableBitmap16)); VerifyOrReturn(CheckValue("nullableBitmap16.Value()", nullableBitmap16.Value(), 65534U)); @@ -37986,7 +38592,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableBitmap16NullValue_166() + CHIP_ERROR TestWriteAttributeNullableBitmap16NullValue_167() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -37996,33 +38602,33 @@ class TestCluster : public TestCommand nullableBitmap16Argument.SetNull(); return cluster.WriteAttribute( - nullableBitmap16Argument, this, OnSuccessCallback_166, OnFailureCallback_166); + nullableBitmap16Argument, this, OnSuccessCallback_167, OnFailureCallback_167); } - void OnFailureResponse_166(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_167(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_166() { NextTest(); } + void OnSuccessResponse_167() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableBitmap16NullValue_167() + CHIP_ERROR TestReadAttributeNullableBitmap16NullValue_168() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_167, OnFailureCallback_167); + this, OnSuccessCallback_168, OnFailureCallback_168); } - void OnFailureResponse_167(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_168(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_167(const chip::app::DataModel::Nullable & nullableBitmap16) + void OnSuccessResponse_168(const chip::app::DataModel::Nullable & nullableBitmap16) { VerifyOrReturn(CheckValueNull("nullableBitmap16", nullableBitmap16)); NextTest(); } - CHIP_ERROR TestWriteAttributeNullableBitmap32MaxValue_168() + CHIP_ERROR TestWriteAttributeNullableBitmap32MaxValue_169() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38032,26 +38638,26 @@ class TestCluster : public TestCommand nullableBitmap32Argument.SetNonNull() = 4294967294UL; return cluster.WriteAttribute( - nullableBitmap32Argument, this, OnSuccessCallback_168, OnFailureCallback_168); + nullableBitmap32Argument, this, OnSuccessCallback_169, OnFailureCallback_169); } - void OnFailureResponse_168(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_169(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_168() { NextTest(); } + void OnSuccessResponse_169() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableBitmap32MaxValue_169() + CHIP_ERROR TestReadAttributeNullableBitmap32MaxValue_170() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_169, OnFailureCallback_169); + this, OnSuccessCallback_170, OnFailureCallback_170); } - void OnFailureResponse_169(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_170(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_169(const chip::app::DataModel::Nullable & nullableBitmap32) + void OnSuccessResponse_170(const chip::app::DataModel::Nullable & nullableBitmap32) { VerifyOrReturn(CheckValueNonNull("nullableBitmap32", nullableBitmap32)); VerifyOrReturn(CheckValue("nullableBitmap32.Value()", nullableBitmap32.Value(), 4294967294UL)); @@ -38059,7 +38665,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableBitmap32InvalidValue_170() + CHIP_ERROR TestWriteAttributeNullableBitmap32InvalidValue_171() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38069,30 +38675,30 @@ class TestCluster : public TestCommand nullableBitmap32Argument.SetNonNull() = 4294967295UL; return cluster.WriteAttribute( - nullableBitmap32Argument, this, OnSuccessCallback_170, OnFailureCallback_170); + nullableBitmap32Argument, this, OnSuccessCallback_171, OnFailureCallback_171); } - void OnFailureResponse_170(uint8_t status) + void OnFailureResponse_171(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } - void OnSuccessResponse_170() { ThrowSuccessResponse(); } + void OnSuccessResponse_171() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadAttributeNullableBitmap32UnchangedValue_171() + CHIP_ERROR TestReadAttributeNullableBitmap32UnchangedValue_172() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_171, OnFailureCallback_171); + this, OnSuccessCallback_172, OnFailureCallback_172); } - void OnFailureResponse_171(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_172(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_171(const chip::app::DataModel::Nullable & nullableBitmap32) + void OnSuccessResponse_172(const chip::app::DataModel::Nullable & nullableBitmap32) { VerifyOrReturn(CheckValueNonNull("nullableBitmap32", nullableBitmap32)); VerifyOrReturn(CheckValue("nullableBitmap32.Value()", nullableBitmap32.Value(), 4294967294UL)); @@ -38100,7 +38706,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableBitmap32NullValue_172() + CHIP_ERROR TestWriteAttributeNullableBitmap32NullValue_173() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38110,33 +38716,33 @@ class TestCluster : public TestCommand nullableBitmap32Argument.SetNull(); return cluster.WriteAttribute( - nullableBitmap32Argument, this, OnSuccessCallback_172, OnFailureCallback_172); + nullableBitmap32Argument, this, OnSuccessCallback_173, OnFailureCallback_173); } - void OnFailureResponse_172(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_173(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_172() { NextTest(); } + void OnSuccessResponse_173() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableBitmap32NullValue_173() + CHIP_ERROR TestReadAttributeNullableBitmap32NullValue_174() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_173, OnFailureCallback_173); + this, OnSuccessCallback_174, OnFailureCallback_174); } - void OnFailureResponse_173(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_174(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_173(const chip::app::DataModel::Nullable & nullableBitmap32) + void OnSuccessResponse_174(const chip::app::DataModel::Nullable & nullableBitmap32) { VerifyOrReturn(CheckValueNull("nullableBitmap32", nullableBitmap32)); NextTest(); } - CHIP_ERROR TestWriteAttributeNullableBitmap64MaxValue_174() + CHIP_ERROR TestWriteAttributeNullableBitmap64MaxValue_175() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38146,26 +38752,26 @@ class TestCluster : public TestCommand nullableBitmap64Argument.SetNonNull() = 18446744073709551614ULL; return cluster.WriteAttribute( - nullableBitmap64Argument, this, OnSuccessCallback_174, OnFailureCallback_174); + nullableBitmap64Argument, this, OnSuccessCallback_175, OnFailureCallback_175); } - void OnFailureResponse_174(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_175(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_174() { NextTest(); } + void OnSuccessResponse_175() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableBitmap64MaxValue_175() + CHIP_ERROR TestReadAttributeNullableBitmap64MaxValue_176() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_175, OnFailureCallback_175); + this, OnSuccessCallback_176, OnFailureCallback_176); } - void OnFailureResponse_175(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_176(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_175(const chip::app::DataModel::Nullable & nullableBitmap64) + void OnSuccessResponse_176(const chip::app::DataModel::Nullable & nullableBitmap64) { VerifyOrReturn(CheckValueNonNull("nullableBitmap64", nullableBitmap64)); VerifyOrReturn(CheckValue("nullableBitmap64.Value()", nullableBitmap64.Value(), 18446744073709551614ULL)); @@ -38173,7 +38779,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableBitmap64InvalidValue_176() + CHIP_ERROR TestWriteAttributeNullableBitmap64InvalidValue_177() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38183,30 +38789,30 @@ class TestCluster : public TestCommand nullableBitmap64Argument.SetNonNull() = 18446744073709551615ULL; return cluster.WriteAttribute( - nullableBitmap64Argument, this, OnSuccessCallback_176, OnFailureCallback_176); + nullableBitmap64Argument, this, OnSuccessCallback_177, OnFailureCallback_177); } - void OnFailureResponse_176(uint8_t status) + void OnFailureResponse_177(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } - void OnSuccessResponse_176() { ThrowSuccessResponse(); } + void OnSuccessResponse_177() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadAttributeNullableBitmap64UnchangedValue_177() + CHIP_ERROR TestReadAttributeNullableBitmap64UnchangedValue_178() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_177, OnFailureCallback_177); + this, OnSuccessCallback_178, OnFailureCallback_178); } - void OnFailureResponse_177(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_178(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_177(const chip::app::DataModel::Nullable & nullableBitmap64) + void OnSuccessResponse_178(const chip::app::DataModel::Nullable & nullableBitmap64) { VerifyOrReturn(CheckValueNonNull("nullableBitmap64", nullableBitmap64)); VerifyOrReturn(CheckValue("nullableBitmap64.Value()", nullableBitmap64.Value(), 18446744073709551614ULL)); @@ -38214,7 +38820,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableBitmap64NullValue_178() + CHIP_ERROR TestWriteAttributeNullableBitmap64NullValue_179() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38224,33 +38830,33 @@ class TestCluster : public TestCommand nullableBitmap64Argument.SetNull(); return cluster.WriteAttribute( - nullableBitmap64Argument, this, OnSuccessCallback_178, OnFailureCallback_178); + nullableBitmap64Argument, this, OnSuccessCallback_179, OnFailureCallback_179); } - void OnFailureResponse_178(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_179(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_178() { NextTest(); } + void OnSuccessResponse_179() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableBitmap64NullValue_179() + CHIP_ERROR TestReadAttributeNullableBitmap64NullValue_180() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_179, OnFailureCallback_179); + this, OnSuccessCallback_180, OnFailureCallback_180); } - void OnFailureResponse_179(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_180(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_179(const chip::app::DataModel::Nullable & nullableBitmap64) + void OnSuccessResponse_180(const chip::app::DataModel::Nullable & nullableBitmap64) { VerifyOrReturn(CheckValueNull("nullableBitmap64", nullableBitmap64)); NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt8uMaxValue_180() + CHIP_ERROR TestWriteAttributeNullableInt8uMaxValue_181() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38260,26 +38866,26 @@ class TestCluster : public TestCommand nullableInt8uArgument.SetNonNull() = 254; return cluster.WriteAttribute( - nullableInt8uArgument, this, OnSuccessCallback_180, OnFailureCallback_180); + nullableInt8uArgument, this, OnSuccessCallback_181, OnFailureCallback_181); } - void OnFailureResponse_180(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_181(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_180() { NextTest(); } + void OnSuccessResponse_181() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableInt8uMaxValue_181() + CHIP_ERROR TestReadAttributeNullableInt8uMaxValue_182() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_181, OnFailureCallback_181); + this, OnSuccessCallback_182, OnFailureCallback_182); } - void OnFailureResponse_181(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_182(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_181(const chip::app::DataModel::Nullable & nullableInt8u) + void OnSuccessResponse_182(const chip::app::DataModel::Nullable & nullableInt8u) { VerifyOrReturn(CheckValueNonNull("nullableInt8u", nullableInt8u)); VerifyOrReturn(CheckValue("nullableInt8u.Value()", nullableInt8u.Value(), 254)); @@ -38287,7 +38893,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt8uInvalidValue_182() + CHIP_ERROR TestWriteAttributeNullableInt8uInvalidValue_183() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38297,30 +38903,30 @@ class TestCluster : public TestCommand nullableInt8uArgument.SetNonNull() = 255; return cluster.WriteAttribute( - nullableInt8uArgument, this, OnSuccessCallback_182, OnFailureCallback_182); + nullableInt8uArgument, this, OnSuccessCallback_183, OnFailureCallback_183); } - void OnFailureResponse_182(uint8_t status) + void OnFailureResponse_183(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } - void OnSuccessResponse_182() { ThrowSuccessResponse(); } + void OnSuccessResponse_183() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadAttributeNullableInt8uUnchangedValue_183() + CHIP_ERROR TestReadAttributeNullableInt8uUnchangedValue_184() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_183, OnFailureCallback_183); + this, OnSuccessCallback_184, OnFailureCallback_184); } - void OnFailureResponse_183(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_184(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_183(const chip::app::DataModel::Nullable & nullableInt8u) + void OnSuccessResponse_184(const chip::app::DataModel::Nullable & nullableInt8u) { VerifyOrReturn(CheckValueNonNull("nullableInt8u", nullableInt8u)); VerifyOrReturn(CheckValue("nullableInt8u.Value()", nullableInt8u.Value(), 254)); @@ -38328,7 +38934,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt8uNullValue_184() + CHIP_ERROR TestWriteAttributeNullableInt8uNullValue_185() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38338,33 +38944,33 @@ class TestCluster : public TestCommand nullableInt8uArgument.SetNull(); return cluster.WriteAttribute( - nullableInt8uArgument, this, OnSuccessCallback_184, OnFailureCallback_184); + nullableInt8uArgument, this, OnSuccessCallback_185, OnFailureCallback_185); } - void OnFailureResponse_184(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_185(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_184() { NextTest(); } + void OnSuccessResponse_185() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableInt8uNullValue_185() + CHIP_ERROR TestReadAttributeNullableInt8uNullValue_186() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_185, OnFailureCallback_185); + this, OnSuccessCallback_186, OnFailureCallback_186); } - void OnFailureResponse_185(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_186(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_185(const chip::app::DataModel::Nullable & nullableInt8u) + void OnSuccessResponse_186(const chip::app::DataModel::Nullable & nullableInt8u) { VerifyOrReturn(CheckValueNull("nullableInt8u", nullableInt8u)); NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt16uMaxValue_186() + CHIP_ERROR TestWriteAttributeNullableInt16uMaxValue_187() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38374,26 +38980,26 @@ class TestCluster : public TestCommand nullableInt16uArgument.SetNonNull() = 65534U; return cluster.WriteAttribute( - nullableInt16uArgument, this, OnSuccessCallback_186, OnFailureCallback_186); + nullableInt16uArgument, this, OnSuccessCallback_187, OnFailureCallback_187); } - void OnFailureResponse_186(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_187(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_186() { NextTest(); } + void OnSuccessResponse_187() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableInt16uMaxValue_187() + CHIP_ERROR TestReadAttributeNullableInt16uMaxValue_188() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_187, OnFailureCallback_187); + this, OnSuccessCallback_188, OnFailureCallback_188); } - void OnFailureResponse_187(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_188(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_187(const chip::app::DataModel::Nullable & nullableInt16u) + void OnSuccessResponse_188(const chip::app::DataModel::Nullable & nullableInt16u) { VerifyOrReturn(CheckValueNonNull("nullableInt16u", nullableInt16u)); VerifyOrReturn(CheckValue("nullableInt16u.Value()", nullableInt16u.Value(), 65534U)); @@ -38401,7 +39007,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt16uInvalidValue_188() + CHIP_ERROR TestWriteAttributeNullableInt16uInvalidValue_189() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38411,30 +39017,30 @@ class TestCluster : public TestCommand nullableInt16uArgument.SetNonNull() = 65535U; return cluster.WriteAttribute( - nullableInt16uArgument, this, OnSuccessCallback_188, OnFailureCallback_188); + nullableInt16uArgument, this, OnSuccessCallback_189, OnFailureCallback_189); } - void OnFailureResponse_188(uint8_t status) + void OnFailureResponse_189(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } - void OnSuccessResponse_188() { ThrowSuccessResponse(); } + void OnSuccessResponse_189() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadAttributeNullableInt16uUnchangedValue_189() + CHIP_ERROR TestReadAttributeNullableInt16uUnchangedValue_190() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_189, OnFailureCallback_189); + this, OnSuccessCallback_190, OnFailureCallback_190); } - void OnFailureResponse_189(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_190(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_189(const chip::app::DataModel::Nullable & nullableInt16u) + void OnSuccessResponse_190(const chip::app::DataModel::Nullable & nullableInt16u) { VerifyOrReturn(CheckValueNonNull("nullableInt16u", nullableInt16u)); VerifyOrReturn(CheckValue("nullableInt16u.Value()", nullableInt16u.Value(), 65534U)); @@ -38442,7 +39048,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt16uNullValue_190() + CHIP_ERROR TestWriteAttributeNullableInt16uNullValue_191() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38452,33 +39058,33 @@ class TestCluster : public TestCommand nullableInt16uArgument.SetNull(); return cluster.WriteAttribute( - nullableInt16uArgument, this, OnSuccessCallback_190, OnFailureCallback_190); + nullableInt16uArgument, this, OnSuccessCallback_191, OnFailureCallback_191); } - void OnFailureResponse_190(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_191(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_190() { NextTest(); } + void OnSuccessResponse_191() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableInt16uNullValue_191() + CHIP_ERROR TestReadAttributeNullableInt16uNullValue_192() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_191, OnFailureCallback_191); + this, OnSuccessCallback_192, OnFailureCallback_192); } - void OnFailureResponse_191(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_192(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_191(const chip::app::DataModel::Nullable & nullableInt16u) + void OnSuccessResponse_192(const chip::app::DataModel::Nullable & nullableInt16u) { VerifyOrReturn(CheckValueNull("nullableInt16u", nullableInt16u)); NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt32uMaxValue_192() + CHIP_ERROR TestWriteAttributeNullableInt32uMaxValue_193() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38488,26 +39094,26 @@ class TestCluster : public TestCommand nullableInt32uArgument.SetNonNull() = 4294967294UL; return cluster.WriteAttribute( - nullableInt32uArgument, this, OnSuccessCallback_192, OnFailureCallback_192); + nullableInt32uArgument, this, OnSuccessCallback_193, OnFailureCallback_193); } - void OnFailureResponse_192(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_193(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_192() { NextTest(); } + void OnSuccessResponse_193() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableInt32uMaxValue_193() + CHIP_ERROR TestReadAttributeNullableInt32uMaxValue_194() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_193, OnFailureCallback_193); + this, OnSuccessCallback_194, OnFailureCallback_194); } - void OnFailureResponse_193(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_194(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_193(const chip::app::DataModel::Nullable & nullableInt32u) + void OnSuccessResponse_194(const chip::app::DataModel::Nullable & nullableInt32u) { VerifyOrReturn(CheckValueNonNull("nullableInt32u", nullableInt32u)); VerifyOrReturn(CheckValue("nullableInt32u.Value()", nullableInt32u.Value(), 4294967294UL)); @@ -38515,7 +39121,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt32uInvalidValue_194() + CHIP_ERROR TestWriteAttributeNullableInt32uInvalidValue_195() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38525,30 +39131,30 @@ class TestCluster : public TestCommand nullableInt32uArgument.SetNonNull() = 4294967295UL; return cluster.WriteAttribute( - nullableInt32uArgument, this, OnSuccessCallback_194, OnFailureCallback_194); + nullableInt32uArgument, this, OnSuccessCallback_195, OnFailureCallback_195); } - void OnFailureResponse_194(uint8_t status) + void OnFailureResponse_195(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } - void OnSuccessResponse_194() { ThrowSuccessResponse(); } + void OnSuccessResponse_195() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadAttributeNullableInt32uUnchangedValue_195() + CHIP_ERROR TestReadAttributeNullableInt32uUnchangedValue_196() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_195, OnFailureCallback_195); + this, OnSuccessCallback_196, OnFailureCallback_196); } - void OnFailureResponse_195(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_196(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_195(const chip::app::DataModel::Nullable & nullableInt32u) + void OnSuccessResponse_196(const chip::app::DataModel::Nullable & nullableInt32u) { VerifyOrReturn(CheckValueNonNull("nullableInt32u", nullableInt32u)); VerifyOrReturn(CheckValue("nullableInt32u.Value()", nullableInt32u.Value(), 4294967294UL)); @@ -38556,7 +39162,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt32uNullValue_196() + CHIP_ERROR TestWriteAttributeNullableInt32uNullValue_197() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38566,33 +39172,33 @@ class TestCluster : public TestCommand nullableInt32uArgument.SetNull(); return cluster.WriteAttribute( - nullableInt32uArgument, this, OnSuccessCallback_196, OnFailureCallback_196); + nullableInt32uArgument, this, OnSuccessCallback_197, OnFailureCallback_197); } - void OnFailureResponse_196(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_197(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_196() { NextTest(); } + void OnSuccessResponse_197() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableInt32uNullValue_197() + CHIP_ERROR TestReadAttributeNullableInt32uNullValue_198() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_197, OnFailureCallback_197); + this, OnSuccessCallback_198, OnFailureCallback_198); } - void OnFailureResponse_197(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_198(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_197(const chip::app::DataModel::Nullable & nullableInt32u) + void OnSuccessResponse_198(const chip::app::DataModel::Nullable & nullableInt32u) { VerifyOrReturn(CheckValueNull("nullableInt32u", nullableInt32u)); NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt64uMaxValue_198() + CHIP_ERROR TestWriteAttributeNullableInt64uMaxValue_199() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38602,26 +39208,26 @@ class TestCluster : public TestCommand nullableInt64uArgument.SetNonNull() = 18446744073709551614ULL; return cluster.WriteAttribute( - nullableInt64uArgument, this, OnSuccessCallback_198, OnFailureCallback_198); + nullableInt64uArgument, this, OnSuccessCallback_199, OnFailureCallback_199); } - void OnFailureResponse_198(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_199(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_198() { NextTest(); } + void OnSuccessResponse_199() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableInt64uMaxValue_199() + CHIP_ERROR TestReadAttributeNullableInt64uMaxValue_200() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_199, OnFailureCallback_199); + this, OnSuccessCallback_200, OnFailureCallback_200); } - void OnFailureResponse_199(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_200(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_199(const chip::app::DataModel::Nullable & nullableInt64u) + void OnSuccessResponse_200(const chip::app::DataModel::Nullable & nullableInt64u) { VerifyOrReturn(CheckValueNonNull("nullableInt64u", nullableInt64u)); VerifyOrReturn(CheckValue("nullableInt64u.Value()", nullableInt64u.Value(), 18446744073709551614ULL)); @@ -38629,7 +39235,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt64uInvalidValue_200() + CHIP_ERROR TestWriteAttributeNullableInt64uInvalidValue_201() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38639,30 +39245,30 @@ class TestCluster : public TestCommand nullableInt64uArgument.SetNonNull() = 18446744073709551615ULL; return cluster.WriteAttribute( - nullableInt64uArgument, this, OnSuccessCallback_200, OnFailureCallback_200); + nullableInt64uArgument, this, OnSuccessCallback_201, OnFailureCallback_201); } - void OnFailureResponse_200(uint8_t status) + void OnFailureResponse_201(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } - void OnSuccessResponse_200() { ThrowSuccessResponse(); } + void OnSuccessResponse_201() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadAttributeNullableInt64uUnchangedValue_201() + CHIP_ERROR TestReadAttributeNullableInt64uUnchangedValue_202() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_201, OnFailureCallback_201); + this, OnSuccessCallback_202, OnFailureCallback_202); } - void OnFailureResponse_201(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_202(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_201(const chip::app::DataModel::Nullable & nullableInt64u) + void OnSuccessResponse_202(const chip::app::DataModel::Nullable & nullableInt64u) { VerifyOrReturn(CheckValueNonNull("nullableInt64u", nullableInt64u)); VerifyOrReturn(CheckValue("nullableInt64u.Value()", nullableInt64u.Value(), 18446744073709551614ULL)); @@ -38670,7 +39276,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt64uNullValue_202() + CHIP_ERROR TestWriteAttributeNullableInt64uNullValue_203() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38680,33 +39286,33 @@ class TestCluster : public TestCommand nullableInt64uArgument.SetNull(); return cluster.WriteAttribute( - nullableInt64uArgument, this, OnSuccessCallback_202, OnFailureCallback_202); + nullableInt64uArgument, this, OnSuccessCallback_203, OnFailureCallback_203); } - void OnFailureResponse_202(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_203(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_202() { NextTest(); } + void OnSuccessResponse_203() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableInt64uNullValue_203() + CHIP_ERROR TestReadAttributeNullableInt64uNullValue_204() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_203, OnFailureCallback_203); + this, OnSuccessCallback_204, OnFailureCallback_204); } - void OnFailureResponse_203(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_204(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_203(const chip::app::DataModel::Nullable & nullableInt64u) + void OnSuccessResponse_204(const chip::app::DataModel::Nullable & nullableInt64u) { VerifyOrReturn(CheckValueNull("nullableInt64u", nullableInt64u)); NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt8sMinValue_204() + CHIP_ERROR TestWriteAttributeNullableInt8sMinValue_205() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38716,26 +39322,26 @@ class TestCluster : public TestCommand nullableInt8sArgument.SetNonNull() = -127; return cluster.WriteAttribute( - nullableInt8sArgument, this, OnSuccessCallback_204, OnFailureCallback_204); + nullableInt8sArgument, this, OnSuccessCallback_205, OnFailureCallback_205); } - void OnFailureResponse_204(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_205(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_204() { NextTest(); } + void OnSuccessResponse_205() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableInt8sMinValue_205() + CHIP_ERROR TestReadAttributeNullableInt8sMinValue_206() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_205, OnFailureCallback_205); + this, OnSuccessCallback_206, OnFailureCallback_206); } - void OnFailureResponse_205(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_206(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_205(const chip::app::DataModel::Nullable & nullableInt8s) + void OnSuccessResponse_206(const chip::app::DataModel::Nullable & nullableInt8s) { VerifyOrReturn(CheckValueNonNull("nullableInt8s", nullableInt8s)); VerifyOrReturn(CheckValue("nullableInt8s.Value()", nullableInt8s.Value(), -127)); @@ -38743,7 +39349,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt8sInvalidValue_206() + CHIP_ERROR TestWriteAttributeNullableInt8sInvalidValue_207() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38753,30 +39359,30 @@ class TestCluster : public TestCommand nullableInt8sArgument.SetNonNull() = -128; return cluster.WriteAttribute( - nullableInt8sArgument, this, OnSuccessCallback_206, OnFailureCallback_206); + nullableInt8sArgument, this, OnSuccessCallback_207, OnFailureCallback_207); } - void OnFailureResponse_206(uint8_t status) + void OnFailureResponse_207(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } - void OnSuccessResponse_206() { ThrowSuccessResponse(); } + void OnSuccessResponse_207() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadAttributeNullableInt8sUnchangedValue_207() + CHIP_ERROR TestReadAttributeNullableInt8sUnchangedValue_208() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_207, OnFailureCallback_207); + this, OnSuccessCallback_208, OnFailureCallback_208); } - void OnFailureResponse_207(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_208(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_207(const chip::app::DataModel::Nullable & nullableInt8s) + void OnSuccessResponse_208(const chip::app::DataModel::Nullable & nullableInt8s) { VerifyOrReturn(CheckValueNonNull("nullableInt8s", nullableInt8s)); VerifyOrReturn(CheckValue("nullableInt8s.Value()", nullableInt8s.Value(), -127)); @@ -38784,7 +39390,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt8sNullValue_208() + CHIP_ERROR TestWriteAttributeNullableInt8sNullValue_209() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38794,33 +39400,33 @@ class TestCluster : public TestCommand nullableInt8sArgument.SetNull(); return cluster.WriteAttribute( - nullableInt8sArgument, this, OnSuccessCallback_208, OnFailureCallback_208); + nullableInt8sArgument, this, OnSuccessCallback_209, OnFailureCallback_209); } - void OnFailureResponse_208(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_209(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_208() { NextTest(); } + void OnSuccessResponse_209() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableInt8sNullValue_209() + CHIP_ERROR TestReadAttributeNullableInt8sNullValue_210() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_209, OnFailureCallback_209); + this, OnSuccessCallback_210, OnFailureCallback_210); } - void OnFailureResponse_209(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_210(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_209(const chip::app::DataModel::Nullable & nullableInt8s) + void OnSuccessResponse_210(const chip::app::DataModel::Nullable & nullableInt8s) { VerifyOrReturn(CheckValueNull("nullableInt8s", nullableInt8s)); NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt16sMinValue_210() + CHIP_ERROR TestWriteAttributeNullableInt16sMinValue_211() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38830,26 +39436,26 @@ class TestCluster : public TestCommand nullableInt16sArgument.SetNonNull() = -32767; return cluster.WriteAttribute( - nullableInt16sArgument, this, OnSuccessCallback_210, OnFailureCallback_210); + nullableInt16sArgument, this, OnSuccessCallback_211, OnFailureCallback_211); } - void OnFailureResponse_210(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_211(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_210() { NextTest(); } + void OnSuccessResponse_211() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableInt16sMinValue_211() + CHIP_ERROR TestReadAttributeNullableInt16sMinValue_212() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_211, OnFailureCallback_211); + this, OnSuccessCallback_212, OnFailureCallback_212); } - void OnFailureResponse_211(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_212(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_211(const chip::app::DataModel::Nullable & nullableInt16s) + void OnSuccessResponse_212(const chip::app::DataModel::Nullable & nullableInt16s) { VerifyOrReturn(CheckValueNonNull("nullableInt16s", nullableInt16s)); VerifyOrReturn(CheckValue("nullableInt16s.Value()", nullableInt16s.Value(), -32767)); @@ -38857,7 +39463,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt16sInvalidValue_212() + CHIP_ERROR TestWriteAttributeNullableInt16sInvalidValue_213() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38867,30 +39473,30 @@ class TestCluster : public TestCommand nullableInt16sArgument.SetNonNull() = -32768; return cluster.WriteAttribute( - nullableInt16sArgument, this, OnSuccessCallback_212, OnFailureCallback_212); + nullableInt16sArgument, this, OnSuccessCallback_213, OnFailureCallback_213); } - void OnFailureResponse_212(uint8_t status) + void OnFailureResponse_213(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } - void OnSuccessResponse_212() { ThrowSuccessResponse(); } + void OnSuccessResponse_213() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadAttributeNullableInt16sUnchangedValue_213() + CHIP_ERROR TestReadAttributeNullableInt16sUnchangedValue_214() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_213, OnFailureCallback_213); + this, OnSuccessCallback_214, OnFailureCallback_214); } - void OnFailureResponse_213(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_214(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_213(const chip::app::DataModel::Nullable & nullableInt16s) + void OnSuccessResponse_214(const chip::app::DataModel::Nullable & nullableInt16s) { VerifyOrReturn(CheckValueNonNull("nullableInt16s", nullableInt16s)); VerifyOrReturn(CheckValue("nullableInt16s.Value()", nullableInt16s.Value(), -32767)); @@ -38898,7 +39504,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt16sNullValue_214() + CHIP_ERROR TestWriteAttributeNullableInt16sNullValue_215() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38908,33 +39514,33 @@ class TestCluster : public TestCommand nullableInt16sArgument.SetNull(); return cluster.WriteAttribute( - nullableInt16sArgument, this, OnSuccessCallback_214, OnFailureCallback_214); + nullableInt16sArgument, this, OnSuccessCallback_215, OnFailureCallback_215); } - void OnFailureResponse_214(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_215(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_214() { NextTest(); } + void OnSuccessResponse_215() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableInt16sNullValue_215() + CHIP_ERROR TestReadAttributeNullableInt16sNullValue_216() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_215, OnFailureCallback_215); + this, OnSuccessCallback_216, OnFailureCallback_216); } - void OnFailureResponse_215(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_216(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_215(const chip::app::DataModel::Nullable & nullableInt16s) + void OnSuccessResponse_216(const chip::app::DataModel::Nullable & nullableInt16s) { VerifyOrReturn(CheckValueNull("nullableInt16s", nullableInt16s)); NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt32sMinValue_216() + CHIP_ERROR TestWriteAttributeNullableInt32sMinValue_217() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38944,26 +39550,26 @@ class TestCluster : public TestCommand nullableInt32sArgument.SetNonNull() = -2147483647L; return cluster.WriteAttribute( - nullableInt32sArgument, this, OnSuccessCallback_216, OnFailureCallback_216); + nullableInt32sArgument, this, OnSuccessCallback_217, OnFailureCallback_217); } - void OnFailureResponse_216(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_217(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_216() { NextTest(); } + void OnSuccessResponse_217() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableInt32sMinValue_217() + CHIP_ERROR TestReadAttributeNullableInt32sMinValue_218() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_217, OnFailureCallback_217); + this, OnSuccessCallback_218, OnFailureCallback_218); } - void OnFailureResponse_217(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_218(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_217(const chip::app::DataModel::Nullable & nullableInt32s) + void OnSuccessResponse_218(const chip::app::DataModel::Nullable & nullableInt32s) { VerifyOrReturn(CheckValueNonNull("nullableInt32s", nullableInt32s)); VerifyOrReturn(CheckValue("nullableInt32s.Value()", nullableInt32s.Value(), -2147483647L)); @@ -38971,7 +39577,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt32sInvalidValue_218() + CHIP_ERROR TestWriteAttributeNullableInt32sInvalidValue_219() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -38981,30 +39587,30 @@ class TestCluster : public TestCommand nullableInt32sArgument.SetNonNull() = -2147483648L; return cluster.WriteAttribute( - nullableInt32sArgument, this, OnSuccessCallback_218, OnFailureCallback_218); + nullableInt32sArgument, this, OnSuccessCallback_219, OnFailureCallback_219); } - void OnFailureResponse_218(uint8_t status) + void OnFailureResponse_219(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } - void OnSuccessResponse_218() { ThrowSuccessResponse(); } + void OnSuccessResponse_219() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadAttributeNullableInt32sUnchangedValue_219() + CHIP_ERROR TestReadAttributeNullableInt32sUnchangedValue_220() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_219, OnFailureCallback_219); + this, OnSuccessCallback_220, OnFailureCallback_220); } - void OnFailureResponse_219(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_220(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_219(const chip::app::DataModel::Nullable & nullableInt32s) + void OnSuccessResponse_220(const chip::app::DataModel::Nullable & nullableInt32s) { VerifyOrReturn(CheckValueNonNull("nullableInt32s", nullableInt32s)); VerifyOrReturn(CheckValue("nullableInt32s.Value()", nullableInt32s.Value(), -2147483647L)); @@ -39012,7 +39618,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt32sNullValue_220() + CHIP_ERROR TestWriteAttributeNullableInt32sNullValue_221() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -39022,33 +39628,33 @@ class TestCluster : public TestCommand nullableInt32sArgument.SetNull(); return cluster.WriteAttribute( - nullableInt32sArgument, this, OnSuccessCallback_220, OnFailureCallback_220); + nullableInt32sArgument, this, OnSuccessCallback_221, OnFailureCallback_221); } - void OnFailureResponse_220(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_221(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_220() { NextTest(); } + void OnSuccessResponse_221() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableInt32sNullValue_221() + CHIP_ERROR TestReadAttributeNullableInt32sNullValue_222() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_221, OnFailureCallback_221); + this, OnSuccessCallback_222, OnFailureCallback_222); } - void OnFailureResponse_221(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_222(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_221(const chip::app::DataModel::Nullable & nullableInt32s) + void OnSuccessResponse_222(const chip::app::DataModel::Nullable & nullableInt32s) { VerifyOrReturn(CheckValueNull("nullableInt32s", nullableInt32s)); NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt64sMinValue_222() + CHIP_ERROR TestWriteAttributeNullableInt64sMinValue_223() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -39058,26 +39664,26 @@ class TestCluster : public TestCommand nullableInt64sArgument.SetNonNull() = -9223372036854775807LL; return cluster.WriteAttribute( - nullableInt64sArgument, this, OnSuccessCallback_222, OnFailureCallback_222); + nullableInt64sArgument, this, OnSuccessCallback_223, OnFailureCallback_223); } - void OnFailureResponse_222(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_223(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_222() { NextTest(); } + void OnSuccessResponse_223() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableInt64sMinValue_223() + CHIP_ERROR TestReadAttributeNullableInt64sMinValue_224() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_223, OnFailureCallback_223); + this, OnSuccessCallback_224, OnFailureCallback_224); } - void OnFailureResponse_223(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_224(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_223(const chip::app::DataModel::Nullable & nullableInt64s) + void OnSuccessResponse_224(const chip::app::DataModel::Nullable & nullableInt64s) { VerifyOrReturn(CheckValueNonNull("nullableInt64s", nullableInt64s)); VerifyOrReturn(CheckValue("nullableInt64s.Value()", nullableInt64s.Value(), -9223372036854775807LL)); @@ -39085,7 +39691,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt64sInvalidValue_224() + CHIP_ERROR TestWriteAttributeNullableInt64sInvalidValue_225() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -39095,30 +39701,30 @@ class TestCluster : public TestCommand nullableInt64sArgument.SetNonNull() = -9223372036854775807LL - 1; return cluster.WriteAttribute( - nullableInt64sArgument, this, OnSuccessCallback_224, OnFailureCallback_224); + nullableInt64sArgument, this, OnSuccessCallback_225, OnFailureCallback_225); } - void OnFailureResponse_224(uint8_t status) + void OnFailureResponse_225(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } - void OnSuccessResponse_224() { ThrowSuccessResponse(); } + void OnSuccessResponse_225() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadAttributeNullableInt64sUnchangedValue_225() + CHIP_ERROR TestReadAttributeNullableInt64sUnchangedValue_226() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_225, OnFailureCallback_225); + this, OnSuccessCallback_226, OnFailureCallback_226); } - void OnFailureResponse_225(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_226(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_225(const chip::app::DataModel::Nullable & nullableInt64s) + void OnSuccessResponse_226(const chip::app::DataModel::Nullable & nullableInt64s) { VerifyOrReturn(CheckValueNonNull("nullableInt64s", nullableInt64s)); VerifyOrReturn(CheckValue("nullableInt64s.Value()", nullableInt64s.Value(), -9223372036854775807LL)); @@ -39126,7 +39732,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableInt64sNullValue_226() + CHIP_ERROR TestWriteAttributeNullableInt64sNullValue_227() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -39136,33 +39742,33 @@ class TestCluster : public TestCommand nullableInt64sArgument.SetNull(); return cluster.WriteAttribute( - nullableInt64sArgument, this, OnSuccessCallback_226, OnFailureCallback_226); + nullableInt64sArgument, this, OnSuccessCallback_227, OnFailureCallback_227); } - void OnFailureResponse_226(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_227(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_226() { NextTest(); } + void OnSuccessResponse_227() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableInt64sNullValue_227() + CHIP_ERROR TestReadAttributeNullableInt64sNullValue_228() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_227, OnFailureCallback_227); + this, OnSuccessCallback_228, OnFailureCallback_228); } - void OnFailureResponse_227(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_228(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_227(const chip::app::DataModel::Nullable & nullableInt64s) + void OnSuccessResponse_228(const chip::app::DataModel::Nullable & nullableInt64s) { VerifyOrReturn(CheckValueNull("nullableInt64s", nullableInt64s)); NextTest(); } - CHIP_ERROR TestWriteAttributeNullableEnum8MaxValue_228() + CHIP_ERROR TestWriteAttributeNullableEnum8MaxValue_229() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -39172,26 +39778,26 @@ class TestCluster : public TestCommand nullableEnum8Argument.SetNonNull() = static_cast(254); return cluster.WriteAttribute( - nullableEnum8Argument, this, OnSuccessCallback_228, OnFailureCallback_228); + nullableEnum8Argument, this, OnSuccessCallback_229, OnFailureCallback_229); } - void OnFailureResponse_228(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_229(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_228() { NextTest(); } + void OnSuccessResponse_229() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableEnum8MaxValue_229() + CHIP_ERROR TestReadAttributeNullableEnum8MaxValue_230() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_229, OnFailureCallback_229); + this, OnSuccessCallback_230, OnFailureCallback_230); } - void OnFailureResponse_229(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_230(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_229(const chip::app::DataModel::Nullable & nullableEnum8) + void OnSuccessResponse_230(const chip::app::DataModel::Nullable & nullableEnum8) { VerifyOrReturn(CheckValueNonNull("nullableEnum8", nullableEnum8)); VerifyOrReturn(CheckValue("nullableEnum8.Value()", nullableEnum8.Value(), 254)); @@ -39199,7 +39805,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableEnum8InvalidValue_230() + CHIP_ERROR TestWriteAttributeNullableEnum8InvalidValue_231() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -39209,30 +39815,30 @@ class TestCluster : public TestCommand nullableEnum8Argument.SetNonNull() = static_cast(255); return cluster.WriteAttribute( - nullableEnum8Argument, this, OnSuccessCallback_230, OnFailureCallback_230); + nullableEnum8Argument, this, OnSuccessCallback_231, OnFailureCallback_231); } - void OnFailureResponse_230(uint8_t status) + void OnFailureResponse_231(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } - void OnSuccessResponse_230() { ThrowSuccessResponse(); } + void OnSuccessResponse_231() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadAttributeNullableEnum8UnchangedValue_231() + CHIP_ERROR TestReadAttributeNullableEnum8UnchangedValue_232() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_231, OnFailureCallback_231); + this, OnSuccessCallback_232, OnFailureCallback_232); } - void OnFailureResponse_231(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_232(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_231(const chip::app::DataModel::Nullable & nullableEnum8) + void OnSuccessResponse_232(const chip::app::DataModel::Nullable & nullableEnum8) { VerifyOrReturn(CheckValueNonNull("nullableEnum8", nullableEnum8)); VerifyOrReturn(CheckValue("nullableEnum8.Value()", nullableEnum8.Value(), 254)); @@ -39240,7 +39846,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableEnum8NullValue_232() + CHIP_ERROR TestWriteAttributeNullableEnum8NullValue_233() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -39250,33 +39856,33 @@ class TestCluster : public TestCommand nullableEnum8Argument.SetNull(); return cluster.WriteAttribute( - nullableEnum8Argument, this, OnSuccessCallback_232, OnFailureCallback_232); + nullableEnum8Argument, this, OnSuccessCallback_233, OnFailureCallback_233); } - void OnFailureResponse_232(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_233(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_232() { NextTest(); } + void OnSuccessResponse_233() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableEnum8NullValue_233() + CHIP_ERROR TestReadAttributeNullableEnum8NullValue_234() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_233, OnFailureCallback_233); + this, OnSuccessCallback_234, OnFailureCallback_234); } - void OnFailureResponse_233(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_234(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_233(const chip::app::DataModel::Nullable & nullableEnum8) + void OnSuccessResponse_234(const chip::app::DataModel::Nullable & nullableEnum8) { VerifyOrReturn(CheckValueNull("nullableEnum8", nullableEnum8)); NextTest(); } - CHIP_ERROR TestWriteAttributeNullableEnum16MaxValue_234() + CHIP_ERROR TestWriteAttributeNullableEnum16MaxValue_235() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -39286,26 +39892,26 @@ class TestCluster : public TestCommand nullableEnum16Argument.SetNonNull() = static_cast(65534); return cluster.WriteAttribute( - nullableEnum16Argument, this, OnSuccessCallback_234, OnFailureCallback_234); + nullableEnum16Argument, this, OnSuccessCallback_235, OnFailureCallback_235); } - void OnFailureResponse_234(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_235(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_234() { NextTest(); } + void OnSuccessResponse_235() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableEnum16MaxValue_235() + CHIP_ERROR TestReadAttributeNullableEnum16MaxValue_236() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_235, OnFailureCallback_235); + this, OnSuccessCallback_236, OnFailureCallback_236); } - void OnFailureResponse_235(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_236(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_235(const chip::app::DataModel::Nullable & nullableEnum16) + void OnSuccessResponse_236(const chip::app::DataModel::Nullable & nullableEnum16) { VerifyOrReturn(CheckValueNonNull("nullableEnum16", nullableEnum16)); VerifyOrReturn(CheckValue("nullableEnum16.Value()", nullableEnum16.Value(), 65534U)); @@ -39313,7 +39919,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableEnum16InvalidValue_236() + CHIP_ERROR TestWriteAttributeNullableEnum16InvalidValue_237() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -39323,30 +39929,30 @@ class TestCluster : public TestCommand nullableEnum16Argument.SetNonNull() = static_cast(65535); return cluster.WriteAttribute( - nullableEnum16Argument, this, OnSuccessCallback_236, OnFailureCallback_236); + nullableEnum16Argument, this, OnSuccessCallback_237, OnFailureCallback_237); } - void OnFailureResponse_236(uint8_t status) + void OnFailureResponse_237(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } - void OnSuccessResponse_236() { ThrowSuccessResponse(); } + void OnSuccessResponse_237() { ThrowSuccessResponse(); } - CHIP_ERROR TestReadAttributeNullableEnum16UnchangedValue_237() + CHIP_ERROR TestReadAttributeNullableEnum16UnchangedValue_238() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_237, OnFailureCallback_237); + this, OnSuccessCallback_238, OnFailureCallback_238); } - void OnFailureResponse_237(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_238(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_237(const chip::app::DataModel::Nullable & nullableEnum16) + void OnSuccessResponse_238(const chip::app::DataModel::Nullable & nullableEnum16) { VerifyOrReturn(CheckValueNonNull("nullableEnum16", nullableEnum16)); VerifyOrReturn(CheckValue("nullableEnum16.Value()", nullableEnum16.Value(), 65534U)); @@ -39354,7 +39960,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableEnum16NullValue_238() + CHIP_ERROR TestWriteAttributeNullableEnum16NullValue_239() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -39364,45 +39970,45 @@ class TestCluster : public TestCommand nullableEnum16Argument.SetNull(); return cluster.WriteAttribute( - nullableEnum16Argument, this, OnSuccessCallback_238, OnFailureCallback_238); + nullableEnum16Argument, this, OnSuccessCallback_239, OnFailureCallback_239); } - void OnFailureResponse_238(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_239(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_238() { NextTest(); } + void OnSuccessResponse_239() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableEnum16NullValue_239() + CHIP_ERROR TestReadAttributeNullableEnum16NullValue_240() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_239, OnFailureCallback_239); + this, OnSuccessCallback_240, OnFailureCallback_240); } - void OnFailureResponse_239(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_240(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_239(const chip::app::DataModel::Nullable & nullableEnum16) + void OnSuccessResponse_240(const chip::app::DataModel::Nullable & nullableEnum16) { VerifyOrReturn(CheckValueNull("nullableEnum16", nullableEnum16)); NextTest(); } - CHIP_ERROR TestReadAttributeNullableOctetStringDefaultValue_240() + CHIP_ERROR TestReadAttributeNullableOctetStringDefaultValue_241() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_240, OnFailureCallback_240); + this, OnSuccessCallback_241, OnFailureCallback_241); } - void OnFailureResponse_240(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_241(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_240(const chip::app::DataModel::Nullable & nullableOctetString) + void OnSuccessResponse_241(const chip::app::DataModel::Nullable & nullableOctetString) { VerifyOrReturn(CheckValueNonNull("nullableOctetString", nullableOctetString)); VerifyOrReturn(CheckValueAsString("nullableOctetString.Value()", nullableOctetString.Value(), @@ -39411,7 +40017,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableOctetString_241() + CHIP_ERROR TestWriteAttributeNullableOctetString_242() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -39422,26 +40028,26 @@ class TestCluster : public TestCommand chip::ByteSpan(chip::Uint8::from_const_char("TestValuegarbage: not in length on purpose"), 9); return cluster.WriteAttribute( - nullableOctetStringArgument, this, OnSuccessCallback_241, OnFailureCallback_241); + nullableOctetStringArgument, this, OnSuccessCallback_242, OnFailureCallback_242); } - void OnFailureResponse_241(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_242(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_241() { NextTest(); } + void OnSuccessResponse_242() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableOctetString_242() + CHIP_ERROR TestReadAttributeNullableOctetString_243() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_242, OnFailureCallback_242); + this, OnSuccessCallback_243, OnFailureCallback_243); } - void OnFailureResponse_242(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_243(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_242(const chip::app::DataModel::Nullable & nullableOctetString) + void OnSuccessResponse_243(const chip::app::DataModel::Nullable & nullableOctetString) { VerifyOrReturn(CheckValueNonNull("nullableOctetString", nullableOctetString)); VerifyOrReturn(CheckValueAsString("nullableOctetString.Value()", nullableOctetString.Value(), @@ -39450,7 +40056,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableOctetString_243() + CHIP_ERROR TestWriteAttributeNullableOctetString_244() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -39460,33 +40066,33 @@ class TestCluster : public TestCommand nullableOctetStringArgument.SetNull(); return cluster.WriteAttribute( - nullableOctetStringArgument, this, OnSuccessCallback_243, OnFailureCallback_243); + nullableOctetStringArgument, this, OnSuccessCallback_244, OnFailureCallback_244); } - void OnFailureResponse_243(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_244(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_243() { NextTest(); } + void OnSuccessResponse_244() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableOctetString_244() + CHIP_ERROR TestReadAttributeNullableOctetString_245() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_244, OnFailureCallback_244); + this, OnSuccessCallback_245, OnFailureCallback_245); } - void OnFailureResponse_244(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_245(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_244(const chip::app::DataModel::Nullable & nullableOctetString) + void OnSuccessResponse_245(const chip::app::DataModel::Nullable & nullableOctetString) { VerifyOrReturn(CheckValueNull("nullableOctetString", nullableOctetString)); NextTest(); } - CHIP_ERROR TestWriteAttributeNullableOctetString_245() + CHIP_ERROR TestWriteAttributeNullableOctetString_246() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -39497,26 +40103,26 @@ class TestCluster : public TestCommand chip::ByteSpan(chip::Uint8::from_const_char("garbage: not in length on purpose"), 0); return cluster.WriteAttribute( - nullableOctetStringArgument, this, OnSuccessCallback_245, OnFailureCallback_245); + nullableOctetStringArgument, this, OnSuccessCallback_246, OnFailureCallback_246); } - void OnFailureResponse_245(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_246(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_245() { NextTest(); } + void OnSuccessResponse_246() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableOctetString_246() + CHIP_ERROR TestReadAttributeNullableOctetString_247() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_246, OnFailureCallback_246); + this, OnSuccessCallback_247, OnFailureCallback_247); } - void OnFailureResponse_246(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_247(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_246(const chip::app::DataModel::Nullable & nullableOctetString) + void OnSuccessResponse_247(const chip::app::DataModel::Nullable & nullableOctetString) { VerifyOrReturn(CheckValueNonNull("nullableOctetString", nullableOctetString)); VerifyOrReturn(CheckValueAsString("nullableOctetString.Value()", nullableOctetString.Value(), @@ -39525,19 +40131,19 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestReadAttributeNullableCharStringDefaultValue_247() + CHIP_ERROR TestReadAttributeNullableCharStringDefaultValue_248() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_247, OnFailureCallback_247); + this, OnSuccessCallback_248, OnFailureCallback_248); } - void OnFailureResponse_247(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_248(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_247(const chip::app::DataModel::Nullable & nullableCharString) + void OnSuccessResponse_248(const chip::app::DataModel::Nullable & nullableCharString) { VerifyOrReturn(CheckValueNonNull("nullableCharString", nullableCharString)); VerifyOrReturn(CheckValueAsString("nullableCharString.Value()", nullableCharString.Value(), chip::CharSpan("", 0))); @@ -39545,7 +40151,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableCharString_248() + CHIP_ERROR TestWriteAttributeNullableCharString_249() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -39555,26 +40161,26 @@ class TestCluster : public TestCommand nullableCharStringArgument.SetNonNull() = chip::Span("☉T☉garbage: not in length on purpose", 7); return cluster.WriteAttribute( - nullableCharStringArgument, this, OnSuccessCallback_248, OnFailureCallback_248); + nullableCharStringArgument, this, OnSuccessCallback_249, OnFailureCallback_249); } - void OnFailureResponse_248(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_249(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_248() { NextTest(); } + void OnSuccessResponse_249() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableCharString_249() + CHIP_ERROR TestReadAttributeNullableCharString_250() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_249, OnFailureCallback_249); + this, OnSuccessCallback_250, OnFailureCallback_250); } - void OnFailureResponse_249(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_250(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_249(const chip::app::DataModel::Nullable & nullableCharString) + void OnSuccessResponse_250(const chip::app::DataModel::Nullable & nullableCharString) { VerifyOrReturn(CheckValueNonNull("nullableCharString", nullableCharString)); VerifyOrReturn(CheckValueAsString("nullableCharString.Value()", nullableCharString.Value(), chip::CharSpan("☉T☉", 7))); @@ -39582,7 +40188,7 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeNullableCharStringValueTooLong_250() + CHIP_ERROR TestWriteAttributeNullableCharStringValueTooLong_251() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -39592,33 +40198,33 @@ class TestCluster : public TestCommand nullableCharStringArgument.SetNull(); return cluster.WriteAttribute( - nullableCharStringArgument, this, OnSuccessCallback_250, OnFailureCallback_250); + nullableCharStringArgument, this, OnSuccessCallback_251, OnFailureCallback_251); } - void OnFailureResponse_250(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_251(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_250() { NextTest(); } + void OnSuccessResponse_251() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableCharString_251() + CHIP_ERROR TestReadAttributeNullableCharString_252() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_251, OnFailureCallback_251); + this, OnSuccessCallback_252, OnFailureCallback_252); } - void OnFailureResponse_251(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_252(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_251(const chip::app::DataModel::Nullable & nullableCharString) + void OnSuccessResponse_252(const chip::app::DataModel::Nullable & nullableCharString) { VerifyOrReturn(CheckValueNull("nullableCharString", nullableCharString)); NextTest(); } - CHIP_ERROR TestWriteAttributeNullableCharStringEmpty_252() + CHIP_ERROR TestWriteAttributeNullableCharStringEmpty_253() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -39628,26 +40234,26 @@ class TestCluster : public TestCommand nullableCharStringArgument.SetNonNull() = chip::Span("garbage: not in length on purpose", 0); return cluster.WriteAttribute( - nullableCharStringArgument, this, OnSuccessCallback_252, OnFailureCallback_252); + nullableCharStringArgument, this, OnSuccessCallback_253, OnFailureCallback_253); } - void OnFailureResponse_252(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_253(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_252() { NextTest(); } + void OnSuccessResponse_253() { NextTest(); } - CHIP_ERROR TestReadAttributeNullableCharString_253() + CHIP_ERROR TestReadAttributeNullableCharString_254() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_253, OnFailureCallback_253); + this, OnSuccessCallback_254, OnFailureCallback_254); } - void OnFailureResponse_253(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_254(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_253(const chip::app::DataModel::Nullable & nullableCharString) + void OnSuccessResponse_254(const chip::app::DataModel::Nullable & nullableCharString) { VerifyOrReturn(CheckValueNonNull("nullableCharString", nullableCharString)); VerifyOrReturn(CheckValueAsString("nullableCharString.Value()", nullableCharString.Value(), chip::CharSpan("", 0))); @@ -39655,41 +40261,41 @@ class TestCluster : public TestCommand NextTest(); } - CHIP_ERROR TestReadAttributeFromNonexistentEndpoint_254() + CHIP_ERROR TestReadAttributeFromNonexistentEndpoint_255() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 200; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_254, - OnFailureCallback_254); + return cluster.ReadAttribute(this, OnSuccessCallback_255, + OnFailureCallback_255); } - void OnFailureResponse_254(uint8_t status) + void OnFailureResponse_255(uint8_t status) { VerifyOrReturn(CheckConstraintNotValue("status", status, 0)); NextTest(); } - void OnSuccessResponse_254(const chip::app::DataModel::DecodableList & listInt8u) { ThrowSuccessResponse(); } + void OnSuccessResponse_255(const chip::app::DataModel::DecodableList & listInt8u) { ThrowSuccessResponse(); } - CHIP_ERROR TestReadAttributeFromNonexistentCluster_255() + CHIP_ERROR TestReadAttributeFromNonexistentCluster_256() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_255, - OnFailureCallback_255); + return cluster.ReadAttribute(this, OnSuccessCallback_256, + OnFailureCallback_256); } - void OnFailureResponse_255(uint8_t status) + void OnFailureResponse_256(uint8_t status) { VerifyOrReturn(CheckConstraintNotValue("status", status, 0)); NextTest(); } - void OnSuccessResponse_255(const chip::app::DataModel::DecodableList & listInt8u) { ThrowSuccessResponse(); } + void OnSuccessResponse_256(const chip::app::DataModel::DecodableList & listInt8u) { ThrowSuccessResponse(); } }; class TestClusterComplexTypes : public TestCommand @@ -39723,8 +40329,12 @@ class TestClusterComplexTypes : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Send Test Command with optional arg set to null.\n"); - err = TestSendTestCommandWithOptionalArgSetToNull_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 Command with optional arg set to null.\n"); + err = TestSendTestCommandWithOptionalArgSetToNull_1(); break; } @@ -39737,13 +40347,15 @@ class TestClusterComplexTypes : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 1; + const uint16_t mTestCount = 2; // // Tests methods // - CHIP_ERROR TestSendTestCommandWithOptionalArgSetToNull_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestSendTestCommandWithOptionalArgSetToNull_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type; @@ -39753,20 +40365,20 @@ class TestClusterComplexTypes : public TestCommand auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context)) - ->OnSuccessResponse_0(data.wasPresent, data.wasNull, data.value, data.originalValue); + ->OnSuccessResponse_1(data.wasPresent, data.wasNull, data.value, data.originalValue); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(bool wasPresent, const chip::Optional & wasNull, const chip::Optional & value, + void OnSuccessResponse_1(bool wasPresent, const chip::Optional & wasNull, const chip::Optional & value, const chip::Optional> & originalValue) { VerifyOrReturn(CheckValue("wasPresent", wasPresent, true)); @@ -39812,48 +40424,52 @@ class TestConstraints : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Write attribute INT32U Value\n"); - err = TestWriteAttributeInt32uValue_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 : Read attribute INT32U Value MinValue Constraints\n"); - err = TestReadAttributeInt32uValueMinValueConstraints_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Write attribute INT32U Value\n"); + err = TestWriteAttributeInt32uValue_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Read attribute INT32U Value MaxValue Constraints\n"); - err = TestReadAttributeInt32uValueMaxValueConstraints_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Read attribute INT32U Value MinValue Constraints\n"); + err = TestReadAttributeInt32uValueMinValueConstraints_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Read attribute INT32U Value NotValue Constraints\n"); - err = TestReadAttributeInt32uValueNotValueConstraints_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Read attribute INT32U Value MaxValue Constraints\n"); + err = TestReadAttributeInt32uValueMaxValueConstraints_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Write attribute INT32U Value Back to Default Value\n"); - err = TestWriteAttributeInt32uValueBackToDefaultValue_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Read attribute INT32U Value NotValue Constraints\n"); + err = TestReadAttributeInt32uValueNotValueConstraints_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Write attribute CHAR_STRING Value\n"); - err = TestWriteAttributeCharStringValue_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Write attribute INT32U Value Back to Default Value\n"); + err = TestWriteAttributeInt32uValueBackToDefaultValue_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Read attribute CHAR_STRING Value MinLength Constraints\n"); - err = TestReadAttributeCharStringValueMinLengthConstraints_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Write attribute CHAR_STRING Value\n"); + err = TestWriteAttributeCharStringValue_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Read attribute CHAR_STRING Value MaxLength Constraints\n"); - err = TestReadAttributeCharStringValueMaxLengthConstraints_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Read attribute CHAR_STRING Value MinLength Constraints\n"); + err = TestReadAttributeCharStringValueMinLengthConstraints_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Read attribute CHAR_STRING Value StartsWith Constraints\n"); - err = TestReadAttributeCharStringValueStartsWithConstraints_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : Read attribute CHAR_STRING Value MaxLength Constraints\n"); + err = TestReadAttributeCharStringValueMaxLengthConstraints_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Read attribute CHAR_STRING Value EndsWith Constraints\n"); - err = TestReadAttributeCharStringValueEndsWithConstraints_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : Read attribute CHAR_STRING Value StartsWith Constraints\n"); + err = TestReadAttributeCharStringValueStartsWithConstraints_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Write attribute CHAR_STRING Value Back to Default Value\n"); - err = TestWriteAttributeCharStringValueBackToDefaultValue_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : Read attribute CHAR_STRING Value EndsWith Constraints\n"); + err = TestReadAttributeCharStringValueEndsWithConstraints_10(); + break; + case 11: + ChipLogProgress(chipTool, " ***** Test Step 11 : Write attribute CHAR_STRING Value Back to Default Value\n"); + err = TestWriteAttributeCharStringValueBackToDefaultValue_11(); break; } @@ -39866,24 +40482,14 @@ class TestConstraints : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 11; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } + const uint16_t mTestCount = 12; static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint32_t int32u) - { - (static_cast(context))->OnSuccessResponse_1(int32u); - } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } static void OnFailureCallback_2(void * context, EmberAfStatus status) { @@ -39910,7 +40516,10 @@ class TestConstraints : public TestCommand (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } + static void OnSuccessCallback_4(void * context, uint32_t int32u) + { + (static_cast(context))->OnSuccessResponse_4(int32u); + } static void OnFailureCallback_5(void * context, EmberAfStatus status) { @@ -39924,10 +40533,7 @@ class TestConstraints : public TestCommand (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, chip::CharSpan charString) - { - (static_cast(context))->OnSuccessResponse_6(charString); - } + static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } static void OnFailureCallback_7(void * context, EmberAfStatus status) { @@ -39964,13 +40570,25 @@ class TestConstraints : public TestCommand (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); } - static void OnSuccessCallback_10(void * context) { (static_cast(context))->OnSuccessResponse_10(); } + static void OnSuccessCallback_10(void * context, chip::CharSpan charString) + { + (static_cast(context))->OnSuccessResponse_10(charString); + } + + static void OnFailureCallback_11(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_11(chip::to_underlying(status)); + } + + static void OnSuccessCallback_11(void * context) { (static_cast(context))->OnSuccessResponse_11(); } // // Tests methods // - CHIP_ERROR TestWriteAttributeInt32uValue_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestWriteAttributeInt32uValue_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -39980,71 +40598,71 @@ class TestConstraints : public TestCommand int32uArgument = 5UL; return cluster.WriteAttribute( - int32uArgument, this, OnSuccessCallback_0, OnFailureCallback_0); + int32uArgument, this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestReadAttributeInt32uValueMinValueConstraints_1() + CHIP_ERROR TestReadAttributeInt32uValueMinValueConstraints_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(uint32_t int32u) + void OnSuccessResponse_2(uint32_t int32u) { VerifyOrReturn(CheckConstraintMinValue("int32u", int32u, 5)); NextTest(); } - CHIP_ERROR TestReadAttributeInt32uValueMaxValueConstraints_2() + CHIP_ERROR TestReadAttributeInt32uValueMaxValueConstraints_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_2, - OnFailureCallback_2); + return cluster.ReadAttribute(this, OnSuccessCallback_3, + OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint32_t int32u) + void OnSuccessResponse_3(uint32_t int32u) { VerifyOrReturn(CheckConstraintMaxValue("int32u", int32u, 5)); NextTest(); } - CHIP_ERROR TestReadAttributeInt32uValueNotValueConstraints_3() + CHIP_ERROR TestReadAttributeInt32uValueNotValueConstraints_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_3, - OnFailureCallback_3); + return cluster.ReadAttribute(this, OnSuccessCallback_4, + OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint32_t int32u) + void OnSuccessResponse_4(uint32_t int32u) { VerifyOrReturn(CheckConstraintNotValue("int32u", int32u, 6UL)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt32uValueBackToDefaultValue_4() + CHIP_ERROR TestWriteAttributeInt32uValueBackToDefaultValue_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -40054,14 +40672,14 @@ class TestConstraints : public TestCommand int32uArgument = 0UL; return cluster.WriteAttribute( - int32uArgument, this, OnSuccessCallback_4, OnFailureCallback_4); + int32uArgument, this, OnSuccessCallback_5, OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4() { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } - CHIP_ERROR TestWriteAttributeCharStringValue_5() + CHIP_ERROR TestWriteAttributeCharStringValue_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -40071,90 +40689,90 @@ class TestConstraints : public TestCommand charStringArgument = chip::Span("** Test **garbage: not in length on purpose", 10); return cluster.WriteAttribute( - charStringArgument, this, OnSuccessCallback_5, OnFailureCallback_5); + charStringArgument, this, OnSuccessCallback_6, OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5() { NextTest(); } + void OnSuccessResponse_6() { NextTest(); } - CHIP_ERROR TestReadAttributeCharStringValueMinLengthConstraints_6() + CHIP_ERROR TestReadAttributeCharStringValueMinLengthConstraints_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_6, - OnFailureCallback_6); + return cluster.ReadAttribute(this, OnSuccessCallback_7, + OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(chip::CharSpan charString) + void OnSuccessResponse_7(chip::CharSpan charString) { VerifyOrReturn(CheckConstraintMinLength("charString", charString.size(), 5)); NextTest(); } - CHIP_ERROR TestReadAttributeCharStringValueMaxLengthConstraints_7() + CHIP_ERROR TestReadAttributeCharStringValueMaxLengthConstraints_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_7, - OnFailureCallback_7); + return cluster.ReadAttribute(this, OnSuccessCallback_8, + OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(chip::CharSpan charString) + void OnSuccessResponse_8(chip::CharSpan charString) { VerifyOrReturn(CheckConstraintMaxLength("charString", charString.size(), 20)); NextTest(); } - CHIP_ERROR TestReadAttributeCharStringValueStartsWithConstraints_8() + CHIP_ERROR TestReadAttributeCharStringValueStartsWithConstraints_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_8, - OnFailureCallback_8); + return cluster.ReadAttribute(this, OnSuccessCallback_9, + OnFailureCallback_9); } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8(chip::CharSpan charString) + void OnSuccessResponse_9(chip::CharSpan charString) { VerifyOrReturn(CheckConstraintStartsWith("charString", charString, "**")); NextTest(); } - CHIP_ERROR TestReadAttributeCharStringValueEndsWithConstraints_9() + CHIP_ERROR TestReadAttributeCharStringValueEndsWithConstraints_10() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_9, - OnFailureCallback_9); + return cluster.ReadAttribute(this, OnSuccessCallback_10, + OnFailureCallback_10); } - void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9(chip::CharSpan charString) + void OnSuccessResponse_10(chip::CharSpan charString) { VerifyOrReturn(CheckConstraintEndsWith("charString", charString, "**")); NextTest(); } - CHIP_ERROR TestWriteAttributeCharStringValueBackToDefaultValue_10() + CHIP_ERROR TestWriteAttributeCharStringValueBackToDefaultValue_11() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -40164,12 +40782,12 @@ class TestConstraints : public TestCommand charStringArgument = chip::Span("garbage: not in length on purpose", 0); return cluster.WriteAttribute( - charStringArgument, this, OnSuccessCallback_10, OnFailureCallback_10); + charStringArgument, this, OnSuccessCallback_11, OnFailureCallback_11); } - void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_10() { NextTest(); } + void OnSuccessResponse_11() { NextTest(); } }; class TestDelayCommands : public TestCommand @@ -40203,8 +40821,12 @@ class TestDelayCommands : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Wait 100ms\n"); - err = TestWait100ms_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 : Wait 100ms\n"); + err = TestWait100ms_1(); break; } @@ -40217,13 +40839,15 @@ class TestDelayCommands : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 1; + const uint16_t mTestCount = 2; // // Tests methods // - CHIP_ERROR TestWait100ms_0() { return WaitForMs(100); } + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestWait100ms_1() { return WaitForMs(100); } }; class TestLogCommands : public TestCommand @@ -40257,12 +40881,16 @@ class TestLogCommands : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Log a simple message\n"); - err = TestLogASimpleMessage_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 : Do a simple user prompt message\n"); - err = TestDoASimpleUserPromptMessage_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Log a simple message\n"); + err = TestLogASimpleMessage_1(); + break; + case 2: + ChipLogProgress(chipTool, " ***** Test Step 2 : Do a simple user prompt message\n"); + err = TestDoASimpleUserPromptMessage_2(); break; } @@ -40275,15 +40903,17 @@ class TestLogCommands : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 2; + const uint16_t mTestCount = 3; // // Tests methods // - CHIP_ERROR TestLogASimpleMessage_0() { return Log("This is a simple message"); } + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestLogASimpleMessage_1() { return Log("This is a simple message"); } - CHIP_ERROR TestDoASimpleUserPromptMessage_1() { return UserPrompt("This is a simple message"); } + CHIP_ERROR TestDoASimpleUserPromptMessage_2() { return UserPrompt("This is a simple message"); } }; class TestSaveAs : public TestCommand @@ -40317,8 +40947,8 @@ class TestSaveAs : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Send Test Add Arguments Command\n"); - err = TestSendTestAddArgumentsCommand_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"); @@ -40329,364 +40959,368 @@ class TestSaveAs : public TestCommand err = TestSendTestAddArgumentsCommand_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Read attribute BOOLEAN Default Value\n"); - err = TestReadAttributeBooleanDefaultValue_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Send Test Add Arguments Command\n"); + err = TestSendTestAddArgumentsCommand_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Write attribute BOOLEAN Not Default Value\n"); - err = TestWriteAttributeBooleanNotDefaultValue_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Read attribute BOOLEAN Default Value\n"); + err = TestReadAttributeBooleanDefaultValue_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Read attribute BOOLEAN Not Default Value\n"); - err = TestReadAttributeBooleanNotDefaultValue_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Write attribute BOOLEAN Not Default Value\n"); + err = TestWriteAttributeBooleanNotDefaultValue_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Write attribute BOOLEAN DefaultValue\n"); - err = TestWriteAttributeBooleanDefaultValue_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Read attribute BOOLEAN Not Default Value\n"); + err = TestReadAttributeBooleanNotDefaultValue_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Read attribute BOOLEAN False\n"); - err = TestReadAttributeBooleanFalse_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Write attribute BOOLEAN DefaultValue\n"); + err = TestWriteAttributeBooleanDefaultValue_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Read attribute BITMAP8 Default Value\n"); - err = TestReadAttributeBitmap8DefaultValue_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : Read attribute BOOLEAN False\n"); + err = TestReadAttributeBooleanFalse_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : Write attribute BITMAP8 Not Default Value\n"); - err = TestWriteAttributeBitmap8NotDefaultValue_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : Read attribute BITMAP8 Default Value\n"); + err = TestReadAttributeBitmap8DefaultValue_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : Read attribute BITMAP8 Not Default Value\n"); - err = TestReadAttributeBitmap8NotDefaultValue_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : Write attribute BITMAP8 Not Default Value\n"); + err = TestWriteAttributeBitmap8NotDefaultValue_10(); break; case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : Write attribute BITMAP8 Default Value\n"); - err = TestWriteAttributeBitmap8DefaultValue_11(); + ChipLogProgress(chipTool, " ***** Test Step 11 : Read attribute BITMAP8 Not Default Value\n"); + err = TestReadAttributeBitmap8NotDefaultValue_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : Read attribute BITMAP8 Default Value\n"); - err = TestReadAttributeBitmap8DefaultValue_12(); + ChipLogProgress(chipTool, " ***** Test Step 12 : Write attribute BITMAP8 Default Value\n"); + err = TestWriteAttributeBitmap8DefaultValue_12(); break; case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : Read attribute BITMAP16 Default Value\n"); - err = TestReadAttributeBitmap16DefaultValue_13(); + ChipLogProgress(chipTool, " ***** Test Step 13 : Read attribute BITMAP8 Default Value\n"); + err = TestReadAttributeBitmap8DefaultValue_13(); break; case 14: - ChipLogProgress(chipTool, " ***** Test Step 14 : Write attribute BITMAP16 Not Default Value\n"); - err = TestWriteAttributeBitmap16NotDefaultValue_14(); + ChipLogProgress(chipTool, " ***** Test Step 14 : Read attribute BITMAP16 Default Value\n"); + err = TestReadAttributeBitmap16DefaultValue_14(); break; case 15: - ChipLogProgress(chipTool, " ***** Test Step 15 : Read attribute BITMAP16 Not Default Value\n"); - err = TestReadAttributeBitmap16NotDefaultValue_15(); + ChipLogProgress(chipTool, " ***** Test Step 15 : Write attribute BITMAP16 Not Default Value\n"); + err = TestWriteAttributeBitmap16NotDefaultValue_15(); break; case 16: - ChipLogProgress(chipTool, " ***** Test Step 16 : Write attribute BITMAP16 Default Value\n"); - err = TestWriteAttributeBitmap16DefaultValue_16(); + ChipLogProgress(chipTool, " ***** Test Step 16 : Read attribute BITMAP16 Not Default Value\n"); + err = TestReadAttributeBitmap16NotDefaultValue_16(); break; case 17: - ChipLogProgress(chipTool, " ***** Test Step 17 : Read attribute BITMAP16 Default Value\n"); - err = TestReadAttributeBitmap16DefaultValue_17(); + ChipLogProgress(chipTool, " ***** Test Step 17 : Write attribute BITMAP16 Default Value\n"); + err = TestWriteAttributeBitmap16DefaultValue_17(); break; case 18: - ChipLogProgress(chipTool, " ***** Test Step 18 : Read attribute BITMAP32 Default Value\n"); - err = TestReadAttributeBitmap32DefaultValue_18(); + ChipLogProgress(chipTool, " ***** Test Step 18 : Read attribute BITMAP16 Default Value\n"); + err = TestReadAttributeBitmap16DefaultValue_18(); break; case 19: - ChipLogProgress(chipTool, " ***** Test Step 19 : Write attribute BITMAP32 Not Default Value\n"); - err = TestWriteAttributeBitmap32NotDefaultValue_19(); + ChipLogProgress(chipTool, " ***** Test Step 19 : Read attribute BITMAP32 Default Value\n"); + err = TestReadAttributeBitmap32DefaultValue_19(); break; case 20: - ChipLogProgress(chipTool, " ***** Test Step 20 : Read attribute BITMAP32 Not Default Value\n"); - err = TestReadAttributeBitmap32NotDefaultValue_20(); + ChipLogProgress(chipTool, " ***** Test Step 20 : Write attribute BITMAP32 Not Default Value\n"); + err = TestWriteAttributeBitmap32NotDefaultValue_20(); break; case 21: - ChipLogProgress(chipTool, " ***** Test Step 21 : Write attribute BITMAP32 Default Value\n"); - err = TestWriteAttributeBitmap32DefaultValue_21(); + ChipLogProgress(chipTool, " ***** Test Step 21 : Read attribute BITMAP32 Not Default Value\n"); + err = TestReadAttributeBitmap32NotDefaultValue_21(); break; case 22: - ChipLogProgress(chipTool, " ***** Test Step 22 : Read attribute BITMAP32 Default Value\n"); - err = TestReadAttributeBitmap32DefaultValue_22(); + ChipLogProgress(chipTool, " ***** Test Step 22 : Write attribute BITMAP32 Default Value\n"); + err = TestWriteAttributeBitmap32DefaultValue_22(); break; case 23: - ChipLogProgress(chipTool, " ***** Test Step 23 : Read attribute BITMAP64 Default Value\n"); - err = TestReadAttributeBitmap64DefaultValue_23(); + ChipLogProgress(chipTool, " ***** Test Step 23 : Read attribute BITMAP32 Default Value\n"); + err = TestReadAttributeBitmap32DefaultValue_23(); break; case 24: - ChipLogProgress(chipTool, " ***** Test Step 24 : Write attribute BITMAP64 Not Default Value\n"); - err = TestWriteAttributeBitmap64NotDefaultValue_24(); + ChipLogProgress(chipTool, " ***** Test Step 24 : Read attribute BITMAP64 Default Value\n"); + err = TestReadAttributeBitmap64DefaultValue_24(); break; case 25: - ChipLogProgress(chipTool, " ***** Test Step 25 : Read attribute BITMAP64 Default Value\n"); - err = TestReadAttributeBitmap64DefaultValue_25(); + ChipLogProgress(chipTool, " ***** Test Step 25 : Write attribute BITMAP64 Not Default Value\n"); + err = TestWriteAttributeBitmap64NotDefaultValue_25(); break; case 26: - ChipLogProgress(chipTool, " ***** Test Step 26 : Write attribute BITMAP64 Default Value\n"); - err = TestWriteAttributeBitmap64DefaultValue_26(); + ChipLogProgress(chipTool, " ***** Test Step 26 : Read attribute BITMAP64 Default Value\n"); + err = TestReadAttributeBitmap64DefaultValue_26(); break; case 27: - ChipLogProgress(chipTool, " ***** Test Step 27 : Read attribute BITMAP64 Default Value\n"); - err = TestReadAttributeBitmap64DefaultValue_27(); + ChipLogProgress(chipTool, " ***** Test Step 27 : Write attribute BITMAP64 Default Value\n"); + err = TestWriteAttributeBitmap64DefaultValue_27(); break; case 28: - ChipLogProgress(chipTool, " ***** Test Step 28 : Read attribute INT8U Default Value\n"); - err = TestReadAttributeInt8uDefaultValue_28(); + ChipLogProgress(chipTool, " ***** Test Step 28 : Read attribute BITMAP64 Default Value\n"); + err = TestReadAttributeBitmap64DefaultValue_28(); break; case 29: - ChipLogProgress(chipTool, " ***** Test Step 29 : Write attribute INT8U Not Default Value\n"); - err = TestWriteAttributeInt8uNotDefaultValue_29(); + ChipLogProgress(chipTool, " ***** Test Step 29 : Read attribute INT8U Default Value\n"); + err = TestReadAttributeInt8uDefaultValue_29(); break; case 30: - ChipLogProgress(chipTool, " ***** Test Step 30 : Read attribute INT8U Not Default Value\n"); - err = TestReadAttributeInt8uNotDefaultValue_30(); + ChipLogProgress(chipTool, " ***** Test Step 30 : Write attribute INT8U Not Default Value\n"); + err = TestWriteAttributeInt8uNotDefaultValue_30(); break; case 31: - ChipLogProgress(chipTool, " ***** Test Step 31 : Write attribute INT8U Default Value\n"); - err = TestWriteAttributeInt8uDefaultValue_31(); + ChipLogProgress(chipTool, " ***** Test Step 31 : Read attribute INT8U Not Default Value\n"); + err = TestReadAttributeInt8uNotDefaultValue_31(); break; case 32: - ChipLogProgress(chipTool, " ***** Test Step 32 : Read attribute INT8U Default Value\n"); - err = TestReadAttributeInt8uDefaultValue_32(); + ChipLogProgress(chipTool, " ***** Test Step 32 : Write attribute INT8U Default Value\n"); + err = TestWriteAttributeInt8uDefaultValue_32(); break; case 33: - ChipLogProgress(chipTool, " ***** Test Step 33 : Read attribute INT16U Default Value\n"); - err = TestReadAttributeInt16uDefaultValue_33(); + ChipLogProgress(chipTool, " ***** Test Step 33 : Read attribute INT8U Default Value\n"); + err = TestReadAttributeInt8uDefaultValue_33(); break; case 34: - ChipLogProgress(chipTool, " ***** Test Step 34 : Write attribute INT16U Not Default Value\n"); - err = TestWriteAttributeInt16uNotDefaultValue_34(); + ChipLogProgress(chipTool, " ***** Test Step 34 : Read attribute INT16U Default Value\n"); + err = TestReadAttributeInt16uDefaultValue_34(); break; case 35: - ChipLogProgress(chipTool, " ***** Test Step 35 : Read attribute INT16U Not Default Value\n"); - err = TestReadAttributeInt16uNotDefaultValue_35(); + ChipLogProgress(chipTool, " ***** Test Step 35 : Write attribute INT16U Not Default Value\n"); + err = TestWriteAttributeInt16uNotDefaultValue_35(); break; case 36: - ChipLogProgress(chipTool, " ***** Test Step 36 : Write attribute INT16U Default Value\n"); - err = TestWriteAttributeInt16uDefaultValue_36(); + ChipLogProgress(chipTool, " ***** Test Step 36 : Read attribute INT16U Not Default Value\n"); + err = TestReadAttributeInt16uNotDefaultValue_36(); break; case 37: - ChipLogProgress(chipTool, " ***** Test Step 37 : Read attribute INT16U Default Value\n"); - err = TestReadAttributeInt16uDefaultValue_37(); + ChipLogProgress(chipTool, " ***** Test Step 37 : Write attribute INT16U Default Value\n"); + err = TestWriteAttributeInt16uDefaultValue_37(); break; case 38: - ChipLogProgress(chipTool, " ***** Test Step 38 : Read attribute INT32U Default Value\n"); - err = TestReadAttributeInt32uDefaultValue_38(); + ChipLogProgress(chipTool, " ***** Test Step 38 : Read attribute INT16U Default Value\n"); + err = TestReadAttributeInt16uDefaultValue_38(); break; case 39: - ChipLogProgress(chipTool, " ***** Test Step 39 : Write attribute INT32U Not Default Value\n"); - err = TestWriteAttributeInt32uNotDefaultValue_39(); + ChipLogProgress(chipTool, " ***** Test Step 39 : Read attribute INT32U Default Value\n"); + err = TestReadAttributeInt32uDefaultValue_39(); break; case 40: - ChipLogProgress(chipTool, " ***** Test Step 40 : Read attribute INT32U Not Default Value\n"); - err = TestReadAttributeInt32uNotDefaultValue_40(); + ChipLogProgress(chipTool, " ***** Test Step 40 : Write attribute INT32U Not Default Value\n"); + err = TestWriteAttributeInt32uNotDefaultValue_40(); break; case 41: - ChipLogProgress(chipTool, " ***** Test Step 41 : Write attribute INT32U Default Value\n"); - err = TestWriteAttributeInt32uDefaultValue_41(); + ChipLogProgress(chipTool, " ***** Test Step 41 : Read attribute INT32U Not Default Value\n"); + err = TestReadAttributeInt32uNotDefaultValue_41(); break; case 42: - ChipLogProgress(chipTool, " ***** Test Step 42 : Read attribute INT32U Default Value\n"); - err = TestReadAttributeInt32uDefaultValue_42(); + ChipLogProgress(chipTool, " ***** Test Step 42 : Write attribute INT32U Default Value\n"); + err = TestWriteAttributeInt32uDefaultValue_42(); break; case 43: - ChipLogProgress(chipTool, " ***** Test Step 43 : Read attribute INT64U Default Value\n"); - err = TestReadAttributeInt64uDefaultValue_43(); + ChipLogProgress(chipTool, " ***** Test Step 43 : Read attribute INT32U Default Value\n"); + err = TestReadAttributeInt32uDefaultValue_43(); break; case 44: - ChipLogProgress(chipTool, " ***** Test Step 44 : Write attribute INT64U Not Default Value\n"); - err = TestWriteAttributeInt64uNotDefaultValue_44(); + ChipLogProgress(chipTool, " ***** Test Step 44 : Read attribute INT64U Default Value\n"); + err = TestReadAttributeInt64uDefaultValue_44(); break; case 45: - ChipLogProgress(chipTool, " ***** Test Step 45 : Read attribute INT64U Not Default Value\n"); - err = TestReadAttributeInt64uNotDefaultValue_45(); + ChipLogProgress(chipTool, " ***** Test Step 45 : Write attribute INT64U Not Default Value\n"); + err = TestWriteAttributeInt64uNotDefaultValue_45(); break; case 46: - ChipLogProgress(chipTool, " ***** Test Step 46 : Write attribute INT64U Default Value\n"); - err = TestWriteAttributeInt64uDefaultValue_46(); + ChipLogProgress(chipTool, " ***** Test Step 46 : Read attribute INT64U Not Default Value\n"); + err = TestReadAttributeInt64uNotDefaultValue_46(); break; case 47: - ChipLogProgress(chipTool, " ***** Test Step 47 : Read attribute INT64U Default Value\n"); - err = TestReadAttributeInt64uDefaultValue_47(); + ChipLogProgress(chipTool, " ***** Test Step 47 : Write attribute INT64U Default Value\n"); + err = TestWriteAttributeInt64uDefaultValue_47(); break; case 48: - ChipLogProgress(chipTool, " ***** Test Step 48 : Read attribute INT8S Default Value\n"); - err = TestReadAttributeInt8sDefaultValue_48(); + ChipLogProgress(chipTool, " ***** Test Step 48 : Read attribute INT64U Default Value\n"); + err = TestReadAttributeInt64uDefaultValue_48(); break; case 49: - ChipLogProgress(chipTool, " ***** Test Step 49 : Write attribute INT8S Not Default Value\n"); - err = TestWriteAttributeInt8sNotDefaultValue_49(); + ChipLogProgress(chipTool, " ***** Test Step 49 : Read attribute INT8S Default Value\n"); + err = TestReadAttributeInt8sDefaultValue_49(); break; case 50: - ChipLogProgress(chipTool, " ***** Test Step 50 : Read attribute INT8S Not Default Value\n"); - err = TestReadAttributeInt8sNotDefaultValue_50(); + ChipLogProgress(chipTool, " ***** Test Step 50 : Write attribute INT8S Not Default Value\n"); + err = TestWriteAttributeInt8sNotDefaultValue_50(); break; case 51: - ChipLogProgress(chipTool, " ***** Test Step 51 : Write attribute INT8S Default Value\n"); - err = TestWriteAttributeInt8sDefaultValue_51(); + ChipLogProgress(chipTool, " ***** Test Step 51 : Read attribute INT8S Not Default Value\n"); + err = TestReadAttributeInt8sNotDefaultValue_51(); break; case 52: - ChipLogProgress(chipTool, " ***** Test Step 52 : Read attribute INT8S Default Value\n"); - err = TestReadAttributeInt8sDefaultValue_52(); + ChipLogProgress(chipTool, " ***** Test Step 52 : Write attribute INT8S Default Value\n"); + err = TestWriteAttributeInt8sDefaultValue_52(); break; case 53: - ChipLogProgress(chipTool, " ***** Test Step 53 : Read attribute INT16S Default Value\n"); - err = TestReadAttributeInt16sDefaultValue_53(); + ChipLogProgress(chipTool, " ***** Test Step 53 : Read attribute INT8S Default Value\n"); + err = TestReadAttributeInt8sDefaultValue_53(); break; case 54: - ChipLogProgress(chipTool, " ***** Test Step 54 : Write attribute INT16S Not Default Value\n"); - err = TestWriteAttributeInt16sNotDefaultValue_54(); + ChipLogProgress(chipTool, " ***** Test Step 54 : Read attribute INT16S Default Value\n"); + err = TestReadAttributeInt16sDefaultValue_54(); break; case 55: - ChipLogProgress(chipTool, " ***** Test Step 55 : Read attribute INT16S Not Default Value\n"); - err = TestReadAttributeInt16sNotDefaultValue_55(); + ChipLogProgress(chipTool, " ***** Test Step 55 : Write attribute INT16S Not Default Value\n"); + err = TestWriteAttributeInt16sNotDefaultValue_55(); break; case 56: - ChipLogProgress(chipTool, " ***** Test Step 56 : Write attribute INT16S Default Value\n"); - err = TestWriteAttributeInt16sDefaultValue_56(); + ChipLogProgress(chipTool, " ***** Test Step 56 : Read attribute INT16S Not Default Value\n"); + err = TestReadAttributeInt16sNotDefaultValue_56(); break; case 57: - ChipLogProgress(chipTool, " ***** Test Step 57 : Read attribute INT16S Default Value\n"); - err = TestReadAttributeInt16sDefaultValue_57(); + ChipLogProgress(chipTool, " ***** Test Step 57 : Write attribute INT16S Default Value\n"); + err = TestWriteAttributeInt16sDefaultValue_57(); break; case 58: - ChipLogProgress(chipTool, " ***** Test Step 58 : Read attribute INT32S Default Value\n"); - err = TestReadAttributeInt32sDefaultValue_58(); + ChipLogProgress(chipTool, " ***** Test Step 58 : Read attribute INT16S Default Value\n"); + err = TestReadAttributeInt16sDefaultValue_58(); break; case 59: - ChipLogProgress(chipTool, " ***** Test Step 59 : Write attribute INT32S Not Default Value\n"); - err = TestWriteAttributeInt32sNotDefaultValue_59(); + ChipLogProgress(chipTool, " ***** Test Step 59 : Read attribute INT32S Default Value\n"); + err = TestReadAttributeInt32sDefaultValue_59(); break; case 60: - ChipLogProgress(chipTool, " ***** Test Step 60 : Read attribute INT32S Not Default Value\n"); - err = TestReadAttributeInt32sNotDefaultValue_60(); + ChipLogProgress(chipTool, " ***** Test Step 60 : Write attribute INT32S Not Default Value\n"); + err = TestWriteAttributeInt32sNotDefaultValue_60(); break; case 61: - ChipLogProgress(chipTool, " ***** Test Step 61 : Write attribute INT32S Default Value\n"); - err = TestWriteAttributeInt32sDefaultValue_61(); + ChipLogProgress(chipTool, " ***** Test Step 61 : Read attribute INT32S Not Default Value\n"); + err = TestReadAttributeInt32sNotDefaultValue_61(); break; case 62: - ChipLogProgress(chipTool, " ***** Test Step 62 : Read attribute INT32S Default Value\n"); - err = TestReadAttributeInt32sDefaultValue_62(); + ChipLogProgress(chipTool, " ***** Test Step 62 : Write attribute INT32S Default Value\n"); + err = TestWriteAttributeInt32sDefaultValue_62(); break; case 63: - ChipLogProgress(chipTool, " ***** Test Step 63 : Read attribute INT64S Default Value\n"); - err = TestReadAttributeInt64sDefaultValue_63(); + ChipLogProgress(chipTool, " ***** Test Step 63 : Read attribute INT32S Default Value\n"); + err = TestReadAttributeInt32sDefaultValue_63(); break; case 64: - ChipLogProgress(chipTool, " ***** Test Step 64 : Write attribute INTS Not Default Value\n"); - err = TestWriteAttributeIntsNotDefaultValue_64(); + ChipLogProgress(chipTool, " ***** Test Step 64 : Read attribute INT64S Default Value\n"); + err = TestReadAttributeInt64sDefaultValue_64(); break; case 65: - ChipLogProgress(chipTool, " ***** Test Step 65 : Read attribute INT64S Not Default Value\n"); - err = TestReadAttributeInt64sNotDefaultValue_65(); + ChipLogProgress(chipTool, " ***** Test Step 65 : Write attribute INTS Not Default Value\n"); + err = TestWriteAttributeIntsNotDefaultValue_65(); break; case 66: - ChipLogProgress(chipTool, " ***** Test Step 66 : Write attribute INT64S Default Value\n"); - err = TestWriteAttributeInt64sDefaultValue_66(); + ChipLogProgress(chipTool, " ***** Test Step 66 : Read attribute INT64S Not Default Value\n"); + err = TestReadAttributeInt64sNotDefaultValue_66(); break; case 67: - ChipLogProgress(chipTool, " ***** Test Step 67 : Read attribute INT64S Default Value\n"); - err = TestReadAttributeInt64sDefaultValue_67(); + ChipLogProgress(chipTool, " ***** Test Step 67 : Write attribute INT64S Default Value\n"); + err = TestWriteAttributeInt64sDefaultValue_67(); break; case 68: - ChipLogProgress(chipTool, " ***** Test Step 68 : Read attribute ENUM8 Default Value\n"); - err = TestReadAttributeEnum8DefaultValue_68(); + ChipLogProgress(chipTool, " ***** Test Step 68 : Read attribute INT64S Default Value\n"); + err = TestReadAttributeInt64sDefaultValue_68(); break; case 69: - ChipLogProgress(chipTool, " ***** Test Step 69 : Write attribute ENUM8 Not Default Value\n"); - err = TestWriteAttributeEnum8NotDefaultValue_69(); + ChipLogProgress(chipTool, " ***** Test Step 69 : Read attribute ENUM8 Default Value\n"); + err = TestReadAttributeEnum8DefaultValue_69(); break; case 70: - ChipLogProgress(chipTool, " ***** Test Step 70 : Read attribute ENUM8 Not Default Value\n"); - err = TestReadAttributeEnum8NotDefaultValue_70(); + ChipLogProgress(chipTool, " ***** Test Step 70 : Write attribute ENUM8 Not Default Value\n"); + err = TestWriteAttributeEnum8NotDefaultValue_70(); break; case 71: - ChipLogProgress(chipTool, " ***** Test Step 71 : Write attribute ENUM8 Default Value\n"); - err = TestWriteAttributeEnum8DefaultValue_71(); + ChipLogProgress(chipTool, " ***** Test Step 71 : Read attribute ENUM8 Not Default Value\n"); + err = TestReadAttributeEnum8NotDefaultValue_71(); break; case 72: - ChipLogProgress(chipTool, " ***** Test Step 72 : Read attribute ENUM8 Default Value\n"); - err = TestReadAttributeEnum8DefaultValue_72(); + ChipLogProgress(chipTool, " ***** Test Step 72 : Write attribute ENUM8 Default Value\n"); + err = TestWriteAttributeEnum8DefaultValue_72(); break; case 73: - ChipLogProgress(chipTool, " ***** Test Step 73 : Read attribute ENUM16 Default Value\n"); - err = TestReadAttributeEnum16DefaultValue_73(); + ChipLogProgress(chipTool, " ***** Test Step 73 : Read attribute ENUM8 Default Value\n"); + err = TestReadAttributeEnum8DefaultValue_73(); break; case 74: - ChipLogProgress(chipTool, " ***** Test Step 74 : Write attribute ENUM16 Not Default Value\n"); - err = TestWriteAttributeEnum16NotDefaultValue_74(); + ChipLogProgress(chipTool, " ***** Test Step 74 : Read attribute ENUM16 Default Value\n"); + err = TestReadAttributeEnum16DefaultValue_74(); break; case 75: - ChipLogProgress(chipTool, " ***** Test Step 75 : Read attribute ENUM16 Not Default Value\n"); - err = TestReadAttributeEnum16NotDefaultValue_75(); + ChipLogProgress(chipTool, " ***** Test Step 75 : Write attribute ENUM16 Not Default Value\n"); + err = TestWriteAttributeEnum16NotDefaultValue_75(); break; case 76: - ChipLogProgress(chipTool, " ***** Test Step 76 : Write attribute ENUM16 Default Value\n"); - err = TestWriteAttributeEnum16DefaultValue_76(); + ChipLogProgress(chipTool, " ***** Test Step 76 : Read attribute ENUM16 Not Default Value\n"); + err = TestReadAttributeEnum16NotDefaultValue_76(); break; case 77: - ChipLogProgress(chipTool, " ***** Test Step 77 : Read attribute ENUM16 Default Value\n"); - err = TestReadAttributeEnum16DefaultValue_77(); + ChipLogProgress(chipTool, " ***** Test Step 77 : Write attribute ENUM16 Default Value\n"); + err = TestWriteAttributeEnum16DefaultValue_77(); break; case 78: - ChipLogProgress(chipTool, " ***** Test Step 78 : Read attribute EPOCH_US Default Value\n"); - err = TestReadAttributeEpochUsDefaultValue_78(); + ChipLogProgress(chipTool, " ***** Test Step 78 : Read attribute ENUM16 Default Value\n"); + err = TestReadAttributeEnum16DefaultValue_78(); break; case 79: - ChipLogProgress(chipTool, " ***** Test Step 79 : Write attribute EPOCH_US Not Default Value\n"); - err = TestWriteAttributeEpochUsNotDefaultValue_79(); + ChipLogProgress(chipTool, " ***** Test Step 79 : Read attribute EPOCH_US Default Value\n"); + err = TestReadAttributeEpochUsDefaultValue_79(); break; case 80: - ChipLogProgress(chipTool, " ***** Test Step 80 : Read attribute EPOCH_US Not Default Value\n"); - err = TestReadAttributeEpochUsNotDefaultValue_80(); + ChipLogProgress(chipTool, " ***** Test Step 80 : Write attribute EPOCH_US Not Default Value\n"); + err = TestWriteAttributeEpochUsNotDefaultValue_80(); break; case 81: - ChipLogProgress(chipTool, " ***** Test Step 81 : Write attribute EPOCH_US Default Value\n"); - err = TestWriteAttributeEpochUsDefaultValue_81(); + ChipLogProgress(chipTool, " ***** Test Step 81 : Read attribute EPOCH_US Not Default Value\n"); + err = TestReadAttributeEpochUsNotDefaultValue_81(); break; case 82: - ChipLogProgress(chipTool, " ***** Test Step 82 : Read attribute EPOCH_US Default Value\n"); - err = TestReadAttributeEpochUsDefaultValue_82(); + ChipLogProgress(chipTool, " ***** Test Step 82 : Write attribute EPOCH_US Default Value\n"); + err = TestWriteAttributeEpochUsDefaultValue_82(); break; case 83: - ChipLogProgress(chipTool, " ***** Test Step 83 : Read attribute EPOCH_S Default Value\n"); - err = TestReadAttributeEpochSDefaultValue_83(); + ChipLogProgress(chipTool, " ***** Test Step 83 : Read attribute EPOCH_US Default Value\n"); + err = TestReadAttributeEpochUsDefaultValue_83(); break; case 84: - ChipLogProgress(chipTool, " ***** Test Step 84 : Write attribute EPOCH_S Not Default Value\n"); - err = TestWriteAttributeEpochSNotDefaultValue_84(); + ChipLogProgress(chipTool, " ***** Test Step 84 : Read attribute EPOCH_S Default Value\n"); + err = TestReadAttributeEpochSDefaultValue_84(); break; case 85: - ChipLogProgress(chipTool, " ***** Test Step 85 : Read attribute EPOCH_S Not Default Value\n"); - err = TestReadAttributeEpochSNotDefaultValue_85(); + ChipLogProgress(chipTool, " ***** Test Step 85 : Write attribute EPOCH_S Not Default Value\n"); + err = TestWriteAttributeEpochSNotDefaultValue_85(); break; case 86: - ChipLogProgress(chipTool, " ***** Test Step 86 : Write attribute EPOCH_S Default Value\n"); - err = TestWriteAttributeEpochSDefaultValue_86(); + ChipLogProgress(chipTool, " ***** Test Step 86 : Read attribute EPOCH_S Not Default Value\n"); + err = TestReadAttributeEpochSNotDefaultValue_86(); break; case 87: - ChipLogProgress(chipTool, " ***** Test Step 87 : Read attribute EPOCH_S Default Value\n"); - err = TestReadAttributeEpochSDefaultValue_87(); + ChipLogProgress(chipTool, " ***** Test Step 87 : Write attribute EPOCH_S Default Value\n"); + err = TestWriteAttributeEpochSDefaultValue_87(); break; case 88: - ChipLogProgress(chipTool, " ***** Test Step 88 : Read attribute vendor_id Default Value\n"); - err = TestReadAttributeVendorIdDefaultValue_88(); + ChipLogProgress(chipTool, " ***** Test Step 88 : Read attribute EPOCH_S Default Value\n"); + err = TestReadAttributeEpochSDefaultValue_88(); break; case 89: - ChipLogProgress(chipTool, " ***** Test Step 89 : Write attribute vendor_id Not Default Value\n"); - err = TestWriteAttributeVendorIdNotDefaultValue_89(); + ChipLogProgress(chipTool, " ***** Test Step 89 : Read attribute vendor_id Default Value\n"); + err = TestReadAttributeVendorIdDefaultValue_89(); break; case 90: - ChipLogProgress(chipTool, " ***** Test Step 90 : Read attribute vendor_id Not Default Value\n"); - err = TestReadAttributeVendorIdNotDefaultValue_90(); + ChipLogProgress(chipTool, " ***** Test Step 90 : Write attribute vendor_id Not Default Value\n"); + err = TestWriteAttributeVendorIdNotDefaultValue_90(); break; case 91: - ChipLogProgress(chipTool, " ***** Test Step 91 : Write attribute vendor_id Default Value\n"); - err = TestWriteAttributeVendorIdDefaultValue_91(); + ChipLogProgress(chipTool, " ***** Test Step 91 : Read attribute vendor_id Not Default Value\n"); + err = TestReadAttributeVendorIdNotDefaultValue_91(); break; case 92: - ChipLogProgress(chipTool, " ***** Test Step 92 : Read attribute vendor_id Default Value\n"); - err = TestReadAttributeVendorIdDefaultValue_92(); + ChipLogProgress(chipTool, " ***** Test Step 92 : Write attribute vendor_id Default Value\n"); + err = TestWriteAttributeVendorIdDefaultValue_92(); + break; + case 93: + ChipLogProgress(chipTool, " ***** Test Step 93 : Read attribute vendor_id Default Value\n"); + err = TestReadAttributeVendorIdDefaultValue_93(); break; } @@ -40699,7 +41333,7 @@ class TestSaveAs : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 93; + const uint16_t mTestCount = 94; uint8_t TestAddArgumentDefaultValue; bool readAttributeBooleanDefaultValue; @@ -40721,58 +41355,48 @@ class TestSaveAs : public TestCommand uint32_t readAttributeEpochSDefaultValue; chip::VendorId readAttributeVendorIdDefaultValue; - static void OnFailureCallback_3(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); - } - - static void OnSuccessCallback_3(void * context, bool boolean) - { - (static_cast(context))->OnSuccessResponse_3(boolean); - } - static void OnFailureCallback_4(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } + static void OnSuccessCallback_4(void * context, bool boolean) + { + (static_cast(context))->OnSuccessResponse_4(boolean); + } static void OnFailureCallback_5(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); } - static void OnSuccessCallback_5(void * context, bool boolean) - { - (static_cast(context))->OnSuccessResponse_5(boolean); - } + static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } static void OnFailureCallback_6(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } + static void OnSuccessCallback_6(void * context, bool boolean) + { + (static_cast(context))->OnSuccessResponse_6(boolean); + } static void OnFailureCallback_7(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_7(void * context, bool boolean) - { - (static_cast(context))->OnSuccessResponse_7(boolean); - } + static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } static void OnFailureCallback_8(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_8(chip::to_underlying(status)); } - static void OnSuccessCallback_8(void * context, uint8_t bitmap8) + static void OnSuccessCallback_8(void * context, bool boolean) { - (static_cast(context))->OnSuccessResponse_8(bitmap8); + (static_cast(context))->OnSuccessResponse_8(boolean); } static void OnFailureCallback_9(void * context, EmberAfStatus status) @@ -40780,43 +41404,43 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnFailureResponse_9(chip::to_underlying(status)); } - static void OnSuccessCallback_9(void * context) { (static_cast(context))->OnSuccessResponse_9(); } + static void OnSuccessCallback_9(void * context, uint8_t bitmap8) + { + (static_cast(context))->OnSuccessResponse_9(bitmap8); + } static void OnFailureCallback_10(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_10(chip::to_underlying(status)); } - static void OnSuccessCallback_10(void * context, uint8_t bitmap8) - { - (static_cast(context))->OnSuccessResponse_10(bitmap8); - } + static void OnSuccessCallback_10(void * context) { (static_cast(context))->OnSuccessResponse_10(); } static void OnFailureCallback_11(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_11(chip::to_underlying(status)); } - static void OnSuccessCallback_11(void * context) { (static_cast(context))->OnSuccessResponse_11(); } + static void OnSuccessCallback_11(void * context, uint8_t bitmap8) + { + (static_cast(context))->OnSuccessResponse_11(bitmap8); + } static void OnFailureCallback_12(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_12(chip::to_underlying(status)); } - static void OnSuccessCallback_12(void * context, uint8_t bitmap8) - { - (static_cast(context))->OnSuccessResponse_12(bitmap8); - } + static void OnSuccessCallback_12(void * context) { (static_cast(context))->OnSuccessResponse_12(); } static void OnFailureCallback_13(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_13(chip::to_underlying(status)); } - static void OnSuccessCallback_13(void * context, uint16_t bitmap16) + static void OnSuccessCallback_13(void * context, uint8_t bitmap8) { - (static_cast(context))->OnSuccessResponse_13(bitmap16); + (static_cast(context))->OnSuccessResponse_13(bitmap8); } static void OnFailureCallback_14(void * context, EmberAfStatus status) @@ -40824,43 +41448,43 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnFailureResponse_14(chip::to_underlying(status)); } - static void OnSuccessCallback_14(void * context) { (static_cast(context))->OnSuccessResponse_14(); } + static void OnSuccessCallback_14(void * context, uint16_t bitmap16) + { + (static_cast(context))->OnSuccessResponse_14(bitmap16); + } static void OnFailureCallback_15(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_15(chip::to_underlying(status)); } - static void OnSuccessCallback_15(void * context, uint16_t bitmap16) - { - (static_cast(context))->OnSuccessResponse_15(bitmap16); - } + static void OnSuccessCallback_15(void * context) { (static_cast(context))->OnSuccessResponse_15(); } static void OnFailureCallback_16(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_16(chip::to_underlying(status)); } - static void OnSuccessCallback_16(void * context) { (static_cast(context))->OnSuccessResponse_16(); } + static void OnSuccessCallback_16(void * context, uint16_t bitmap16) + { + (static_cast(context))->OnSuccessResponse_16(bitmap16); + } static void OnFailureCallback_17(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_17(chip::to_underlying(status)); } - static void OnSuccessCallback_17(void * context, uint16_t bitmap16) - { - (static_cast(context))->OnSuccessResponse_17(bitmap16); - } + static void OnSuccessCallback_17(void * context) { (static_cast(context))->OnSuccessResponse_17(); } static void OnFailureCallback_18(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_18(chip::to_underlying(status)); } - static void OnSuccessCallback_18(void * context, uint32_t bitmap32) + static void OnSuccessCallback_18(void * context, uint16_t bitmap16) { - (static_cast(context))->OnSuccessResponse_18(bitmap32); + (static_cast(context))->OnSuccessResponse_18(bitmap16); } static void OnFailureCallback_19(void * context, EmberAfStatus status) @@ -40868,43 +41492,43 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnFailureResponse_19(chip::to_underlying(status)); } - static void OnSuccessCallback_19(void * context) { (static_cast(context))->OnSuccessResponse_19(); } + static void OnSuccessCallback_19(void * context, uint32_t bitmap32) + { + (static_cast(context))->OnSuccessResponse_19(bitmap32); + } static void OnFailureCallback_20(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_20(chip::to_underlying(status)); } - static void OnSuccessCallback_20(void * context, uint32_t bitmap32) - { - (static_cast(context))->OnSuccessResponse_20(bitmap32); - } + static void OnSuccessCallback_20(void * context) { (static_cast(context))->OnSuccessResponse_20(); } static void OnFailureCallback_21(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_21(chip::to_underlying(status)); } - static void OnSuccessCallback_21(void * context) { (static_cast(context))->OnSuccessResponse_21(); } + static void OnSuccessCallback_21(void * context, uint32_t bitmap32) + { + (static_cast(context))->OnSuccessResponse_21(bitmap32); + } static void OnFailureCallback_22(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_22(chip::to_underlying(status)); } - static void OnSuccessCallback_22(void * context, uint32_t bitmap32) - { - (static_cast(context))->OnSuccessResponse_22(bitmap32); - } + static void OnSuccessCallback_22(void * context) { (static_cast(context))->OnSuccessResponse_22(); } static void OnFailureCallback_23(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_23(chip::to_underlying(status)); } - static void OnSuccessCallback_23(void * context, uint64_t bitmap64) + static void OnSuccessCallback_23(void * context, uint32_t bitmap32) { - (static_cast(context))->OnSuccessResponse_23(bitmap64); + (static_cast(context))->OnSuccessResponse_23(bitmap32); } static void OnFailureCallback_24(void * context, EmberAfStatus status) @@ -40912,43 +41536,43 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnFailureResponse_24(chip::to_underlying(status)); } - static void OnSuccessCallback_24(void * context) { (static_cast(context))->OnSuccessResponse_24(); } + static void OnSuccessCallback_24(void * context, uint64_t bitmap64) + { + (static_cast(context))->OnSuccessResponse_24(bitmap64); + } static void OnFailureCallback_25(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_25(chip::to_underlying(status)); } - static void OnSuccessCallback_25(void * context, uint64_t bitmap64) - { - (static_cast(context))->OnSuccessResponse_25(bitmap64); - } + static void OnSuccessCallback_25(void * context) { (static_cast(context))->OnSuccessResponse_25(); } static void OnFailureCallback_26(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_26(chip::to_underlying(status)); } - static void OnSuccessCallback_26(void * context) { (static_cast(context))->OnSuccessResponse_26(); } + static void OnSuccessCallback_26(void * context, uint64_t bitmap64) + { + (static_cast(context))->OnSuccessResponse_26(bitmap64); + } static void OnFailureCallback_27(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_27(chip::to_underlying(status)); } - static void OnSuccessCallback_27(void * context, uint64_t bitmap64) - { - (static_cast(context))->OnSuccessResponse_27(bitmap64); - } + static void OnSuccessCallback_27(void * context) { (static_cast(context))->OnSuccessResponse_27(); } static void OnFailureCallback_28(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_28(chip::to_underlying(status)); } - static void OnSuccessCallback_28(void * context, uint8_t int8u) + static void OnSuccessCallback_28(void * context, uint64_t bitmap64) { - (static_cast(context))->OnSuccessResponse_28(int8u); + (static_cast(context))->OnSuccessResponse_28(bitmap64); } static void OnFailureCallback_29(void * context, EmberAfStatus status) @@ -40956,43 +41580,43 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnFailureResponse_29(chip::to_underlying(status)); } - static void OnSuccessCallback_29(void * context) { (static_cast(context))->OnSuccessResponse_29(); } + static void OnSuccessCallback_29(void * context, uint8_t int8u) + { + (static_cast(context))->OnSuccessResponse_29(int8u); + } static void OnFailureCallback_30(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_30(chip::to_underlying(status)); } - static void OnSuccessCallback_30(void * context, uint8_t int8u) - { - (static_cast(context))->OnSuccessResponse_30(int8u); - } + static void OnSuccessCallback_30(void * context) { (static_cast(context))->OnSuccessResponse_30(); } static void OnFailureCallback_31(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_31(chip::to_underlying(status)); } - static void OnSuccessCallback_31(void * context) { (static_cast(context))->OnSuccessResponse_31(); } + static void OnSuccessCallback_31(void * context, uint8_t int8u) + { + (static_cast(context))->OnSuccessResponse_31(int8u); + } static void OnFailureCallback_32(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_32(chip::to_underlying(status)); } - static void OnSuccessCallback_32(void * context, uint8_t int8u) - { - (static_cast(context))->OnSuccessResponse_32(int8u); - } + static void OnSuccessCallback_32(void * context) { (static_cast(context))->OnSuccessResponse_32(); } static void OnFailureCallback_33(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_33(chip::to_underlying(status)); } - static void OnSuccessCallback_33(void * context, uint16_t int16u) + static void OnSuccessCallback_33(void * context, uint8_t int8u) { - (static_cast(context))->OnSuccessResponse_33(int16u); + (static_cast(context))->OnSuccessResponse_33(int8u); } static void OnFailureCallback_34(void * context, EmberAfStatus status) @@ -41000,43 +41624,43 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnFailureResponse_34(chip::to_underlying(status)); } - static void OnSuccessCallback_34(void * context) { (static_cast(context))->OnSuccessResponse_34(); } + static void OnSuccessCallback_34(void * context, uint16_t int16u) + { + (static_cast(context))->OnSuccessResponse_34(int16u); + } static void OnFailureCallback_35(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_35(chip::to_underlying(status)); } - static void OnSuccessCallback_35(void * context, uint16_t int16u) - { - (static_cast(context))->OnSuccessResponse_35(int16u); - } + static void OnSuccessCallback_35(void * context) { (static_cast(context))->OnSuccessResponse_35(); } static void OnFailureCallback_36(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_36(chip::to_underlying(status)); } - static void OnSuccessCallback_36(void * context) { (static_cast(context))->OnSuccessResponse_36(); } + static void OnSuccessCallback_36(void * context, uint16_t int16u) + { + (static_cast(context))->OnSuccessResponse_36(int16u); + } static void OnFailureCallback_37(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_37(chip::to_underlying(status)); } - static void OnSuccessCallback_37(void * context, uint16_t int16u) - { - (static_cast(context))->OnSuccessResponse_37(int16u); - } + static void OnSuccessCallback_37(void * context) { (static_cast(context))->OnSuccessResponse_37(); } static void OnFailureCallback_38(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_38(chip::to_underlying(status)); } - static void OnSuccessCallback_38(void * context, uint32_t int32u) + static void OnSuccessCallback_38(void * context, uint16_t int16u) { - (static_cast(context))->OnSuccessResponse_38(int32u); + (static_cast(context))->OnSuccessResponse_38(int16u); } static void OnFailureCallback_39(void * context, EmberAfStatus status) @@ -41044,43 +41668,43 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnFailureResponse_39(chip::to_underlying(status)); } - static void OnSuccessCallback_39(void * context) { (static_cast(context))->OnSuccessResponse_39(); } + static void OnSuccessCallback_39(void * context, uint32_t int32u) + { + (static_cast(context))->OnSuccessResponse_39(int32u); + } static void OnFailureCallback_40(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_40(chip::to_underlying(status)); } - static void OnSuccessCallback_40(void * context, uint32_t int32u) - { - (static_cast(context))->OnSuccessResponse_40(int32u); - } + static void OnSuccessCallback_40(void * context) { (static_cast(context))->OnSuccessResponse_40(); } static void OnFailureCallback_41(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_41(chip::to_underlying(status)); } - static void OnSuccessCallback_41(void * context) { (static_cast(context))->OnSuccessResponse_41(); } + static void OnSuccessCallback_41(void * context, uint32_t int32u) + { + (static_cast(context))->OnSuccessResponse_41(int32u); + } static void OnFailureCallback_42(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_42(chip::to_underlying(status)); } - static void OnSuccessCallback_42(void * context, uint32_t int32u) - { - (static_cast(context))->OnSuccessResponse_42(int32u); - } + static void OnSuccessCallback_42(void * context) { (static_cast(context))->OnSuccessResponse_42(); } static void OnFailureCallback_43(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_43(chip::to_underlying(status)); } - static void OnSuccessCallback_43(void * context, uint64_t int64u) + static void OnSuccessCallback_43(void * context, uint32_t int32u) { - (static_cast(context))->OnSuccessResponse_43(int64u); + (static_cast(context))->OnSuccessResponse_43(int32u); } static void OnFailureCallback_44(void * context, EmberAfStatus status) @@ -41088,43 +41712,43 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnFailureResponse_44(chip::to_underlying(status)); } - static void OnSuccessCallback_44(void * context) { (static_cast(context))->OnSuccessResponse_44(); } + static void OnSuccessCallback_44(void * context, uint64_t int64u) + { + (static_cast(context))->OnSuccessResponse_44(int64u); + } static void OnFailureCallback_45(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_45(chip::to_underlying(status)); } - static void OnSuccessCallback_45(void * context, uint64_t int64u) - { - (static_cast(context))->OnSuccessResponse_45(int64u); - } + static void OnSuccessCallback_45(void * context) { (static_cast(context))->OnSuccessResponse_45(); } static void OnFailureCallback_46(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_46(chip::to_underlying(status)); } - static void OnSuccessCallback_46(void * context) { (static_cast(context))->OnSuccessResponse_46(); } + static void OnSuccessCallback_46(void * context, uint64_t int64u) + { + (static_cast(context))->OnSuccessResponse_46(int64u); + } static void OnFailureCallback_47(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_47(chip::to_underlying(status)); } - static void OnSuccessCallback_47(void * context, uint64_t int64u) - { - (static_cast(context))->OnSuccessResponse_47(int64u); - } + static void OnSuccessCallback_47(void * context) { (static_cast(context))->OnSuccessResponse_47(); } static void OnFailureCallback_48(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_48(chip::to_underlying(status)); } - static void OnSuccessCallback_48(void * context, int8_t int8s) + static void OnSuccessCallback_48(void * context, uint64_t int64u) { - (static_cast(context))->OnSuccessResponse_48(int8s); + (static_cast(context))->OnSuccessResponse_48(int64u); } static void OnFailureCallback_49(void * context, EmberAfStatus status) @@ -41132,43 +41756,43 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnFailureResponse_49(chip::to_underlying(status)); } - static void OnSuccessCallback_49(void * context) { (static_cast(context))->OnSuccessResponse_49(); } + static void OnSuccessCallback_49(void * context, int8_t int8s) + { + (static_cast(context))->OnSuccessResponse_49(int8s); + } static void OnFailureCallback_50(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_50(chip::to_underlying(status)); } - static void OnSuccessCallback_50(void * context, int8_t int8s) - { - (static_cast(context))->OnSuccessResponse_50(int8s); - } + static void OnSuccessCallback_50(void * context) { (static_cast(context))->OnSuccessResponse_50(); } static void OnFailureCallback_51(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_51(chip::to_underlying(status)); } - static void OnSuccessCallback_51(void * context) { (static_cast(context))->OnSuccessResponse_51(); } + static void OnSuccessCallback_51(void * context, int8_t int8s) + { + (static_cast(context))->OnSuccessResponse_51(int8s); + } static void OnFailureCallback_52(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_52(chip::to_underlying(status)); } - static void OnSuccessCallback_52(void * context, int8_t int8s) - { - (static_cast(context))->OnSuccessResponse_52(int8s); - } + static void OnSuccessCallback_52(void * context) { (static_cast(context))->OnSuccessResponse_52(); } static void OnFailureCallback_53(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_53(chip::to_underlying(status)); } - static void OnSuccessCallback_53(void * context, int16_t int16s) + static void OnSuccessCallback_53(void * context, int8_t int8s) { - (static_cast(context))->OnSuccessResponse_53(int16s); + (static_cast(context))->OnSuccessResponse_53(int8s); } static void OnFailureCallback_54(void * context, EmberAfStatus status) @@ -41176,43 +41800,43 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnFailureResponse_54(chip::to_underlying(status)); } - static void OnSuccessCallback_54(void * context) { (static_cast(context))->OnSuccessResponse_54(); } + static void OnSuccessCallback_54(void * context, int16_t int16s) + { + (static_cast(context))->OnSuccessResponse_54(int16s); + } static void OnFailureCallback_55(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_55(chip::to_underlying(status)); } - static void OnSuccessCallback_55(void * context, int16_t int16s) - { - (static_cast(context))->OnSuccessResponse_55(int16s); - } + static void OnSuccessCallback_55(void * context) { (static_cast(context))->OnSuccessResponse_55(); } static void OnFailureCallback_56(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_56(chip::to_underlying(status)); } - static void OnSuccessCallback_56(void * context) { (static_cast(context))->OnSuccessResponse_56(); } + static void OnSuccessCallback_56(void * context, int16_t int16s) + { + (static_cast(context))->OnSuccessResponse_56(int16s); + } static void OnFailureCallback_57(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_57(chip::to_underlying(status)); } - static void OnSuccessCallback_57(void * context, int16_t int16s) - { - (static_cast(context))->OnSuccessResponse_57(int16s); - } + static void OnSuccessCallback_57(void * context) { (static_cast(context))->OnSuccessResponse_57(); } static void OnFailureCallback_58(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_58(chip::to_underlying(status)); } - static void OnSuccessCallback_58(void * context, int32_t int32s) + static void OnSuccessCallback_58(void * context, int16_t int16s) { - (static_cast(context))->OnSuccessResponse_58(int32s); + (static_cast(context))->OnSuccessResponse_58(int16s); } static void OnFailureCallback_59(void * context, EmberAfStatus status) @@ -41220,43 +41844,43 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnFailureResponse_59(chip::to_underlying(status)); } - static void OnSuccessCallback_59(void * context) { (static_cast(context))->OnSuccessResponse_59(); } + static void OnSuccessCallback_59(void * context, int32_t int32s) + { + (static_cast(context))->OnSuccessResponse_59(int32s); + } static void OnFailureCallback_60(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_60(chip::to_underlying(status)); } - static void OnSuccessCallback_60(void * context, int32_t int32s) - { - (static_cast(context))->OnSuccessResponse_60(int32s); - } + static void OnSuccessCallback_60(void * context) { (static_cast(context))->OnSuccessResponse_60(); } static void OnFailureCallback_61(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_61(chip::to_underlying(status)); } - static void OnSuccessCallback_61(void * context) { (static_cast(context))->OnSuccessResponse_61(); } + static void OnSuccessCallback_61(void * context, int32_t int32s) + { + (static_cast(context))->OnSuccessResponse_61(int32s); + } static void OnFailureCallback_62(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_62(chip::to_underlying(status)); } - static void OnSuccessCallback_62(void * context, int32_t int32s) - { - (static_cast(context))->OnSuccessResponse_62(int32s); - } + static void OnSuccessCallback_62(void * context) { (static_cast(context))->OnSuccessResponse_62(); } static void OnFailureCallback_63(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_63(chip::to_underlying(status)); } - static void OnSuccessCallback_63(void * context, int64_t int64s) + static void OnSuccessCallback_63(void * context, int32_t int32s) { - (static_cast(context))->OnSuccessResponse_63(int64s); + (static_cast(context))->OnSuccessResponse_63(int32s); } static void OnFailureCallback_64(void * context, EmberAfStatus status) @@ -41264,43 +41888,43 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnFailureResponse_64(chip::to_underlying(status)); } - static void OnSuccessCallback_64(void * context) { (static_cast(context))->OnSuccessResponse_64(); } + static void OnSuccessCallback_64(void * context, int64_t int64s) + { + (static_cast(context))->OnSuccessResponse_64(int64s); + } static void OnFailureCallback_65(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_65(chip::to_underlying(status)); } - static void OnSuccessCallback_65(void * context, int64_t int64s) - { - (static_cast(context))->OnSuccessResponse_65(int64s); - } + static void OnSuccessCallback_65(void * context) { (static_cast(context))->OnSuccessResponse_65(); } static void OnFailureCallback_66(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_66(chip::to_underlying(status)); } - static void OnSuccessCallback_66(void * context) { (static_cast(context))->OnSuccessResponse_66(); } + static void OnSuccessCallback_66(void * context, int64_t int64s) + { + (static_cast(context))->OnSuccessResponse_66(int64s); + } static void OnFailureCallback_67(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_67(chip::to_underlying(status)); } - static void OnSuccessCallback_67(void * context, int64_t int64s) - { - (static_cast(context))->OnSuccessResponse_67(int64s); - } + static void OnSuccessCallback_67(void * context) { (static_cast(context))->OnSuccessResponse_67(); } static void OnFailureCallback_68(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_68(chip::to_underlying(status)); } - static void OnSuccessCallback_68(void * context, uint8_t enum8) + static void OnSuccessCallback_68(void * context, int64_t int64s) { - (static_cast(context))->OnSuccessResponse_68(enum8); + (static_cast(context))->OnSuccessResponse_68(int64s); } static void OnFailureCallback_69(void * context, EmberAfStatus status) @@ -41308,43 +41932,43 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnFailureResponse_69(chip::to_underlying(status)); } - static void OnSuccessCallback_69(void * context) { (static_cast(context))->OnSuccessResponse_69(); } + static void OnSuccessCallback_69(void * context, uint8_t enum8) + { + (static_cast(context))->OnSuccessResponse_69(enum8); + } static void OnFailureCallback_70(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_70(chip::to_underlying(status)); } - static void OnSuccessCallback_70(void * context, uint8_t enum8) - { - (static_cast(context))->OnSuccessResponse_70(enum8); - } + static void OnSuccessCallback_70(void * context) { (static_cast(context))->OnSuccessResponse_70(); } static void OnFailureCallback_71(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_71(chip::to_underlying(status)); } - static void OnSuccessCallback_71(void * context) { (static_cast(context))->OnSuccessResponse_71(); } + static void OnSuccessCallback_71(void * context, uint8_t enum8) + { + (static_cast(context))->OnSuccessResponse_71(enum8); + } static void OnFailureCallback_72(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_72(chip::to_underlying(status)); } - static void OnSuccessCallback_72(void * context, uint8_t enum8) - { - (static_cast(context))->OnSuccessResponse_72(enum8); - } + static void OnSuccessCallback_72(void * context) { (static_cast(context))->OnSuccessResponse_72(); } static void OnFailureCallback_73(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_73(chip::to_underlying(status)); } - static void OnSuccessCallback_73(void * context, uint16_t enum16) + static void OnSuccessCallback_73(void * context, uint8_t enum8) { - (static_cast(context))->OnSuccessResponse_73(enum16); + (static_cast(context))->OnSuccessResponse_73(enum8); } static void OnFailureCallback_74(void * context, EmberAfStatus status) @@ -41352,43 +41976,43 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnFailureResponse_74(chip::to_underlying(status)); } - static void OnSuccessCallback_74(void * context) { (static_cast(context))->OnSuccessResponse_74(); } + static void OnSuccessCallback_74(void * context, uint16_t enum16) + { + (static_cast(context))->OnSuccessResponse_74(enum16); + } static void OnFailureCallback_75(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_75(chip::to_underlying(status)); } - static void OnSuccessCallback_75(void * context, uint16_t enum16) - { - (static_cast(context))->OnSuccessResponse_75(enum16); - } + static void OnSuccessCallback_75(void * context) { (static_cast(context))->OnSuccessResponse_75(); } static void OnFailureCallback_76(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_76(chip::to_underlying(status)); } - static void OnSuccessCallback_76(void * context) { (static_cast(context))->OnSuccessResponse_76(); } + static void OnSuccessCallback_76(void * context, uint16_t enum16) + { + (static_cast(context))->OnSuccessResponse_76(enum16); + } static void OnFailureCallback_77(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_77(chip::to_underlying(status)); } - static void OnSuccessCallback_77(void * context, uint16_t enum16) - { - (static_cast(context))->OnSuccessResponse_77(enum16); - } + static void OnSuccessCallback_77(void * context) { (static_cast(context))->OnSuccessResponse_77(); } static void OnFailureCallback_78(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_78(chip::to_underlying(status)); } - static void OnSuccessCallback_78(void * context, uint64_t epochUs) + static void OnSuccessCallback_78(void * context, uint16_t enum16) { - (static_cast(context))->OnSuccessResponse_78(epochUs); + (static_cast(context))->OnSuccessResponse_78(enum16); } static void OnFailureCallback_79(void * context, EmberAfStatus status) @@ -41396,43 +42020,43 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnFailureResponse_79(chip::to_underlying(status)); } - static void OnSuccessCallback_79(void * context) { (static_cast(context))->OnSuccessResponse_79(); } + static void OnSuccessCallback_79(void * context, uint64_t epochUs) + { + (static_cast(context))->OnSuccessResponse_79(epochUs); + } static void OnFailureCallback_80(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_80(chip::to_underlying(status)); } - static void OnSuccessCallback_80(void * context, uint64_t epochUs) - { - (static_cast(context))->OnSuccessResponse_80(epochUs); - } + static void OnSuccessCallback_80(void * context) { (static_cast(context))->OnSuccessResponse_80(); } static void OnFailureCallback_81(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_81(chip::to_underlying(status)); } - static void OnSuccessCallback_81(void * context) { (static_cast(context))->OnSuccessResponse_81(); } + static void OnSuccessCallback_81(void * context, uint64_t epochUs) + { + (static_cast(context))->OnSuccessResponse_81(epochUs); + } static void OnFailureCallback_82(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_82(chip::to_underlying(status)); } - static void OnSuccessCallback_82(void * context, uint64_t epochUs) - { - (static_cast(context))->OnSuccessResponse_82(epochUs); - } + static void OnSuccessCallback_82(void * context) { (static_cast(context))->OnSuccessResponse_82(); } static void OnFailureCallback_83(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_83(chip::to_underlying(status)); } - static void OnSuccessCallback_83(void * context, uint32_t epochS) + static void OnSuccessCallback_83(void * context, uint64_t epochUs) { - (static_cast(context))->OnSuccessResponse_83(epochS); + (static_cast(context))->OnSuccessResponse_83(epochUs); } static void OnFailureCallback_84(void * context, EmberAfStatus status) @@ -41440,43 +42064,43 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnFailureResponse_84(chip::to_underlying(status)); } - static void OnSuccessCallback_84(void * context) { (static_cast(context))->OnSuccessResponse_84(); } + static void OnSuccessCallback_84(void * context, uint32_t epochS) + { + (static_cast(context))->OnSuccessResponse_84(epochS); + } static void OnFailureCallback_85(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_85(chip::to_underlying(status)); } - static void OnSuccessCallback_85(void * context, uint32_t epochS) - { - (static_cast(context))->OnSuccessResponse_85(epochS); - } + static void OnSuccessCallback_85(void * context) { (static_cast(context))->OnSuccessResponse_85(); } static void OnFailureCallback_86(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_86(chip::to_underlying(status)); } - static void OnSuccessCallback_86(void * context) { (static_cast(context))->OnSuccessResponse_86(); } + static void OnSuccessCallback_86(void * context, uint32_t epochS) + { + (static_cast(context))->OnSuccessResponse_86(epochS); + } static void OnFailureCallback_87(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_87(chip::to_underlying(status)); } - static void OnSuccessCallback_87(void * context, uint32_t epochS) - { - (static_cast(context))->OnSuccessResponse_87(epochS); - } + static void OnSuccessCallback_87(void * context) { (static_cast(context))->OnSuccessResponse_87(); } static void OnFailureCallback_88(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_88(chip::to_underlying(status)); } - static void OnSuccessCallback_88(void * context, chip::VendorId vendorId) + static void OnSuccessCallback_88(void * context, uint32_t epochS) { - (static_cast(context))->OnSuccessResponse_88(vendorId); + (static_cast(context))->OnSuccessResponse_88(epochS); } static void OnFailureCallback_89(void * context, EmberAfStatus status) @@ -41484,69 +42108,50 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnFailureResponse_89(chip::to_underlying(status)); } - static void OnSuccessCallback_89(void * context) { (static_cast(context))->OnSuccessResponse_89(); } + static void OnSuccessCallback_89(void * context, chip::VendorId vendorId) + { + (static_cast(context))->OnSuccessResponse_89(vendorId); + } static void OnFailureCallback_90(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_90(chip::to_underlying(status)); } - static void OnSuccessCallback_90(void * context, chip::VendorId vendorId) - { - (static_cast(context))->OnSuccessResponse_90(vendorId); - } + static void OnSuccessCallback_90(void * context) { (static_cast(context))->OnSuccessResponse_90(); } static void OnFailureCallback_91(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_91(chip::to_underlying(status)); } - static void OnSuccessCallback_91(void * context) { (static_cast(context))->OnSuccessResponse_91(); } + static void OnSuccessCallback_91(void * context, chip::VendorId vendorId) + { + (static_cast(context))->OnSuccessResponse_91(vendorId); + } static void OnFailureCallback_92(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_92(chip::to_underlying(status)); } - static void OnSuccessCallback_92(void * context, chip::VendorId vendorId) + static void OnSuccessCallback_92(void * context) { (static_cast(context))->OnSuccessResponse_92(); } + + static void OnFailureCallback_93(void * context, EmberAfStatus status) { - (static_cast(context))->OnSuccessResponse_92(vendorId); + (static_cast(context))->OnFailureResponse_93(chip::to_underlying(status)); } - // - // Tests methods - // - - CHIP_ERROR TestSendTestAddArgumentsCommand_0() + static void OnSuccessCallback_93(void * context, chip::VendorId vendorId) { - const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.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_0(data.returnValue); - }; - - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); - }; - - ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); - return CHIP_NO_ERROR; + (static_cast(context))->OnSuccessResponse_93(vendorId); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } - - void OnSuccessResponse_0(uint8_t returnValue) - { - VerifyOrReturn(CheckValue("returnValue", returnValue, 20)); + // + // Tests methods + // - TestAddArgumentDefaultValue = returnValue; - NextTest(); - } + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } CHIP_ERROR TestSendTestAddArgumentsCommand_1() { @@ -41573,8 +42178,9 @@ class TestSaveAs : public TestCommand void OnSuccessResponse_1(uint8_t returnValue) { - VerifyOrReturn(CheckValue("returnValue", returnValue, TestAddArgumentDefaultValue)); + VerifyOrReturn(CheckValue("returnValue", returnValue, 20)); + TestAddArgumentDefaultValue = returnValue; NextTest(); } @@ -41585,7 +42191,7 @@ class TestSaveAs : public TestCommand RequestType request; request.arg1 = 3; - request.arg2 = TestAddArgumentDefaultValue; + request.arg2 = 17; auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(data.returnValue); @@ -41602,25 +42208,55 @@ class TestSaveAs : public TestCommand void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } void OnSuccessResponse_2(uint8_t returnValue) + { + VerifyOrReturn(CheckValue("returnValue", returnValue, TestAddArgumentDefaultValue)); + + NextTest(); + } + + CHIP_ERROR TestSendTestAddArgumentsCommand_3() + { + const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; + using RequestType = chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type; + + RequestType request; + request.arg1 = 3; + request.arg2 = TestAddArgumentDefaultValue; + + auto success = [](void * context, const typename RequestType::ResponseType & data) { + (static_cast(context))->OnSuccessResponse_3(data.returnValue); + }; + + auto failure = [](void * context, EmberAfStatus status) { + (static_cast(context))->OnFailureResponse_3(status); + }; + + ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + + void OnSuccessResponse_3(uint8_t returnValue) { VerifyOrReturn(CheckConstraintNotValue("returnValue", returnValue, TestAddArgumentDefaultValue)); NextTest(); } - CHIP_ERROR TestReadAttributeBooleanDefaultValue_3() + CHIP_ERROR TestReadAttributeBooleanDefaultValue_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_3, - OnFailureCallback_3); + return cluster.ReadAttribute(this, OnSuccessCallback_4, + OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(bool boolean) + void OnSuccessResponse_4(bool boolean) { VerifyOrReturn(CheckValue("boolean", boolean, 0)); @@ -41628,7 +42264,7 @@ class TestSaveAs : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeBooleanNotDefaultValue_4() + CHIP_ERROR TestWriteAttributeBooleanNotDefaultValue_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -41638,33 +42274,33 @@ class TestSaveAs : public TestCommand booleanArgument = 1; return cluster.WriteAttribute( - booleanArgument, this, OnSuccessCallback_4, OnFailureCallback_4); + booleanArgument, this, OnSuccessCallback_5, OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4() { NextTest(); } + void OnSuccessResponse_5() { NextTest(); } - CHIP_ERROR TestReadAttributeBooleanNotDefaultValue_5() + CHIP_ERROR TestReadAttributeBooleanNotDefaultValue_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_5, - OnFailureCallback_5); + return cluster.ReadAttribute(this, OnSuccessCallback_6, + OnFailureCallback_6); } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(bool boolean) + void OnSuccessResponse_6(bool boolean) { VerifyOrReturn(CheckConstraintNotValue("boolean", boolean, readAttributeBooleanDefaultValue)); NextTest(); } - CHIP_ERROR TestWriteAttributeBooleanDefaultValue_6() + CHIP_ERROR TestWriteAttributeBooleanDefaultValue_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -41674,45 +42310,45 @@ class TestSaveAs : public TestCommand booleanArgument = readAttributeBooleanDefaultValue; return cluster.WriteAttribute( - booleanArgument, this, OnSuccessCallback_6, OnFailureCallback_6); + booleanArgument, this, OnSuccessCallback_7, OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6() { NextTest(); } + void OnSuccessResponse_7() { NextTest(); } - CHIP_ERROR TestReadAttributeBooleanFalse_7() + CHIP_ERROR TestReadAttributeBooleanFalse_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_7, - OnFailureCallback_7); + return cluster.ReadAttribute(this, OnSuccessCallback_8, + OnFailureCallback_8); } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(bool boolean) + void OnSuccessResponse_8(bool boolean) { VerifyOrReturn(CheckValue("boolean", boolean, readAttributeBooleanDefaultValue)); NextTest(); } - CHIP_ERROR TestReadAttributeBitmap8DefaultValue_8() + CHIP_ERROR TestReadAttributeBitmap8DefaultValue_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_8, - OnFailureCallback_8); + return cluster.ReadAttribute(this, OnSuccessCallback_9, + OnFailureCallback_9); } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8(uint8_t bitmap8) + void OnSuccessResponse_9(uint8_t bitmap8) { VerifyOrReturn(CheckValue("bitmap8", bitmap8, 0)); @@ -41720,7 +42356,7 @@ class TestSaveAs : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeBitmap8NotDefaultValue_9() + CHIP_ERROR TestWriteAttributeBitmap8NotDefaultValue_10() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -41730,33 +42366,33 @@ class TestSaveAs : public TestCommand bitmap8Argument = 1; return cluster.WriteAttribute( - bitmap8Argument, this, OnSuccessCallback_9, OnFailureCallback_9); + bitmap8Argument, this, OnSuccessCallback_10, OnFailureCallback_10); } - void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9() { NextTest(); } + void OnSuccessResponse_10() { NextTest(); } - CHIP_ERROR TestReadAttributeBitmap8NotDefaultValue_10() + CHIP_ERROR TestReadAttributeBitmap8NotDefaultValue_11() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_10, - OnFailureCallback_10); + return cluster.ReadAttribute(this, OnSuccessCallback_11, + OnFailureCallback_11); } - void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_10(uint8_t bitmap8) + void OnSuccessResponse_11(uint8_t bitmap8) { VerifyOrReturn(CheckConstraintNotValue("bitmap8", bitmap8, readAttributeBitmap8DefaultValue)); NextTest(); } - CHIP_ERROR TestWriteAttributeBitmap8DefaultValue_11() + CHIP_ERROR TestWriteAttributeBitmap8DefaultValue_12() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -41766,45 +42402,45 @@ class TestSaveAs : public TestCommand bitmap8Argument = readAttributeBitmap8DefaultValue; return cluster.WriteAttribute( - bitmap8Argument, this, OnSuccessCallback_11, OnFailureCallback_11); + bitmap8Argument, this, OnSuccessCallback_12, OnFailureCallback_12); } - void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_11() { NextTest(); } + void OnSuccessResponse_12() { NextTest(); } - CHIP_ERROR TestReadAttributeBitmap8DefaultValue_12() + CHIP_ERROR TestReadAttributeBitmap8DefaultValue_13() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_12, - OnFailureCallback_12); + return cluster.ReadAttribute(this, OnSuccessCallback_13, + OnFailureCallback_13); } - void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_12(uint8_t bitmap8) + void OnSuccessResponse_13(uint8_t bitmap8) { VerifyOrReturn(CheckValue("bitmap8", bitmap8, readAttributeBitmap8DefaultValue)); NextTest(); } - CHIP_ERROR TestReadAttributeBitmap16DefaultValue_13() + CHIP_ERROR TestReadAttributeBitmap16DefaultValue_14() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_13, - OnFailureCallback_13); + return cluster.ReadAttribute(this, OnSuccessCallback_14, + OnFailureCallback_14); } - void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_13(uint16_t bitmap16) + void OnSuccessResponse_14(uint16_t bitmap16) { VerifyOrReturn(CheckValue("bitmap16", bitmap16, 0U)); @@ -41812,7 +42448,7 @@ class TestSaveAs : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeBitmap16NotDefaultValue_14() + CHIP_ERROR TestWriteAttributeBitmap16NotDefaultValue_15() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -41822,33 +42458,33 @@ class TestSaveAs : public TestCommand bitmap16Argument = 1U; return cluster.WriteAttribute( - bitmap16Argument, this, OnSuccessCallback_14, OnFailureCallback_14); + bitmap16Argument, this, OnSuccessCallback_15, OnFailureCallback_15); } - void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_15(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_14() { NextTest(); } + void OnSuccessResponse_15() { NextTest(); } - CHIP_ERROR TestReadAttributeBitmap16NotDefaultValue_15() + CHIP_ERROR TestReadAttributeBitmap16NotDefaultValue_16() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_15, - OnFailureCallback_15); + return cluster.ReadAttribute(this, OnSuccessCallback_16, + OnFailureCallback_16); } - void OnFailureResponse_15(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_16(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_15(uint16_t bitmap16) + void OnSuccessResponse_16(uint16_t bitmap16) { VerifyOrReturn(CheckConstraintNotValue("bitmap16", bitmap16, readAttributeBitmap16DefaultValue)); NextTest(); } - CHIP_ERROR TestWriteAttributeBitmap16DefaultValue_16() + CHIP_ERROR TestWriteAttributeBitmap16DefaultValue_17() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -41858,45 +42494,45 @@ class TestSaveAs : public TestCommand bitmap16Argument = readAttributeBitmap16DefaultValue; return cluster.WriteAttribute( - bitmap16Argument, this, OnSuccessCallback_16, OnFailureCallback_16); + bitmap16Argument, this, OnSuccessCallback_17, OnFailureCallback_17); } - void OnFailureResponse_16(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_17(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_16() { NextTest(); } + void OnSuccessResponse_17() { NextTest(); } - CHIP_ERROR TestReadAttributeBitmap16DefaultValue_17() + CHIP_ERROR TestReadAttributeBitmap16DefaultValue_18() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_17, - OnFailureCallback_17); + return cluster.ReadAttribute(this, OnSuccessCallback_18, + OnFailureCallback_18); } - void OnFailureResponse_17(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_18(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_17(uint16_t bitmap16) + void OnSuccessResponse_18(uint16_t bitmap16) { VerifyOrReturn(CheckValue("bitmap16", bitmap16, readAttributeBitmap16DefaultValue)); NextTest(); } - CHIP_ERROR TestReadAttributeBitmap32DefaultValue_18() + CHIP_ERROR TestReadAttributeBitmap32DefaultValue_19() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_18, - OnFailureCallback_18); + return cluster.ReadAttribute(this, OnSuccessCallback_19, + OnFailureCallback_19); } - void OnFailureResponse_18(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_19(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_18(uint32_t bitmap32) + void OnSuccessResponse_19(uint32_t bitmap32) { VerifyOrReturn(CheckValue("bitmap32", bitmap32, 0UL)); @@ -41904,7 +42540,7 @@ class TestSaveAs : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeBitmap32NotDefaultValue_19() + CHIP_ERROR TestWriteAttributeBitmap32NotDefaultValue_20() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -41914,33 +42550,33 @@ class TestSaveAs : public TestCommand bitmap32Argument = 1UL; return cluster.WriteAttribute( - bitmap32Argument, this, OnSuccessCallback_19, OnFailureCallback_19); + bitmap32Argument, this, OnSuccessCallback_20, OnFailureCallback_20); } - void OnFailureResponse_19(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_20(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_19() { NextTest(); } + void OnSuccessResponse_20() { NextTest(); } - CHIP_ERROR TestReadAttributeBitmap32NotDefaultValue_20() + CHIP_ERROR TestReadAttributeBitmap32NotDefaultValue_21() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_20, - OnFailureCallback_20); + return cluster.ReadAttribute(this, OnSuccessCallback_21, + OnFailureCallback_21); } - void OnFailureResponse_20(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_21(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_20(uint32_t bitmap32) + void OnSuccessResponse_21(uint32_t bitmap32) { VerifyOrReturn(CheckConstraintNotValue("bitmap32", bitmap32, readAttributeBitmap32DefaultValue)); NextTest(); } - CHIP_ERROR TestWriteAttributeBitmap32DefaultValue_21() + CHIP_ERROR TestWriteAttributeBitmap32DefaultValue_22() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -41950,45 +42586,45 @@ class TestSaveAs : public TestCommand bitmap32Argument = readAttributeBitmap32DefaultValue; return cluster.WriteAttribute( - bitmap32Argument, this, OnSuccessCallback_21, OnFailureCallback_21); + bitmap32Argument, this, OnSuccessCallback_22, OnFailureCallback_22); } - void OnFailureResponse_21(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_22(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_21() { NextTest(); } + void OnSuccessResponse_22() { NextTest(); } - CHIP_ERROR TestReadAttributeBitmap32DefaultValue_22() + CHIP_ERROR TestReadAttributeBitmap32DefaultValue_23() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_22, - OnFailureCallback_22); + return cluster.ReadAttribute(this, OnSuccessCallback_23, + OnFailureCallback_23); } - void OnFailureResponse_22(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_23(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_22(uint32_t bitmap32) + void OnSuccessResponse_23(uint32_t bitmap32) { VerifyOrReturn(CheckValue("bitmap32", bitmap32, readAttributeBitmap32DefaultValue)); NextTest(); } - CHIP_ERROR TestReadAttributeBitmap64DefaultValue_23() + CHIP_ERROR TestReadAttributeBitmap64DefaultValue_24() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_23, - OnFailureCallback_23); + return cluster.ReadAttribute(this, OnSuccessCallback_24, + OnFailureCallback_24); } - void OnFailureResponse_23(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_24(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_23(uint64_t bitmap64) + void OnSuccessResponse_24(uint64_t bitmap64) { VerifyOrReturn(CheckValue("bitmap64", bitmap64, 0ULL)); @@ -41996,7 +42632,7 @@ class TestSaveAs : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeBitmap64NotDefaultValue_24() + CHIP_ERROR TestWriteAttributeBitmap64NotDefaultValue_25() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42006,33 +42642,33 @@ class TestSaveAs : public TestCommand bitmap64Argument = 1ULL; return cluster.WriteAttribute( - bitmap64Argument, this, OnSuccessCallback_24, OnFailureCallback_24); + bitmap64Argument, this, OnSuccessCallback_25, OnFailureCallback_25); } - void OnFailureResponse_24(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_25(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_24() { NextTest(); } + void OnSuccessResponse_25() { NextTest(); } - CHIP_ERROR TestReadAttributeBitmap64DefaultValue_25() + CHIP_ERROR TestReadAttributeBitmap64DefaultValue_26() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_25, - OnFailureCallback_25); + return cluster.ReadAttribute(this, OnSuccessCallback_26, + OnFailureCallback_26); } - void OnFailureResponse_25(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_26(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_25(uint64_t bitmap64) + void OnSuccessResponse_26(uint64_t bitmap64) { VerifyOrReturn(CheckConstraintNotValue("bitmap64", bitmap64, readAttributeBitmap64DefaultValue)); NextTest(); } - CHIP_ERROR TestWriteAttributeBitmap64DefaultValue_26() + CHIP_ERROR TestWriteAttributeBitmap64DefaultValue_27() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42042,45 +42678,45 @@ class TestSaveAs : public TestCommand bitmap64Argument = readAttributeBitmap64DefaultValue; return cluster.WriteAttribute( - bitmap64Argument, this, OnSuccessCallback_26, OnFailureCallback_26); + bitmap64Argument, this, OnSuccessCallback_27, OnFailureCallback_27); } - void OnFailureResponse_26(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_27(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_26() { NextTest(); } + void OnSuccessResponse_27() { NextTest(); } - CHIP_ERROR TestReadAttributeBitmap64DefaultValue_27() + CHIP_ERROR TestReadAttributeBitmap64DefaultValue_28() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_27, - OnFailureCallback_27); + return cluster.ReadAttribute(this, OnSuccessCallback_28, + OnFailureCallback_28); } - void OnFailureResponse_27(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_28(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_27(uint64_t bitmap64) + void OnSuccessResponse_28(uint64_t bitmap64) { VerifyOrReturn(CheckValue("bitmap64", bitmap64, readAttributeBitmap64DefaultValue)); NextTest(); } - CHIP_ERROR TestReadAttributeInt8uDefaultValue_28() + CHIP_ERROR TestReadAttributeInt8uDefaultValue_29() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_28, - OnFailureCallback_28); + return cluster.ReadAttribute(this, OnSuccessCallback_29, + OnFailureCallback_29); } - void OnFailureResponse_28(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_29(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_28(uint8_t int8u) + void OnSuccessResponse_29(uint8_t int8u) { VerifyOrReturn(CheckValue("int8u", int8u, 0)); @@ -42088,7 +42724,7 @@ class TestSaveAs : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeInt8uNotDefaultValue_29() + CHIP_ERROR TestWriteAttributeInt8uNotDefaultValue_30() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42098,33 +42734,33 @@ class TestSaveAs : public TestCommand int8uArgument = 1; return cluster.WriteAttribute( - int8uArgument, this, OnSuccessCallback_29, OnFailureCallback_29); + int8uArgument, this, OnSuccessCallback_30, OnFailureCallback_30); } - void OnFailureResponse_29(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_30(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_29() { NextTest(); } + void OnSuccessResponse_30() { NextTest(); } - CHIP_ERROR TestReadAttributeInt8uNotDefaultValue_30() + CHIP_ERROR TestReadAttributeInt8uNotDefaultValue_31() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_30, - OnFailureCallback_30); + return cluster.ReadAttribute(this, OnSuccessCallback_31, + OnFailureCallback_31); } - void OnFailureResponse_30(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_31(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_30(uint8_t int8u) + void OnSuccessResponse_31(uint8_t int8u) { VerifyOrReturn(CheckConstraintNotValue("int8u", int8u, readAttributeInt8uDefaultValue)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt8uDefaultValue_31() + CHIP_ERROR TestWriteAttributeInt8uDefaultValue_32() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42134,45 +42770,45 @@ class TestSaveAs : public TestCommand int8uArgument = readAttributeInt8uDefaultValue; return cluster.WriteAttribute( - int8uArgument, this, OnSuccessCallback_31, OnFailureCallback_31); + int8uArgument, this, OnSuccessCallback_32, OnFailureCallback_32); } - void OnFailureResponse_31(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_32(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_31() { NextTest(); } + void OnSuccessResponse_32() { NextTest(); } - CHIP_ERROR TestReadAttributeInt8uDefaultValue_32() + CHIP_ERROR TestReadAttributeInt8uDefaultValue_33() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_32, - OnFailureCallback_32); + return cluster.ReadAttribute(this, OnSuccessCallback_33, + OnFailureCallback_33); } - void OnFailureResponse_32(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_33(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_32(uint8_t int8u) + void OnSuccessResponse_33(uint8_t int8u) { VerifyOrReturn(CheckValue("int8u", int8u, readAttributeInt8uDefaultValue)); NextTest(); } - CHIP_ERROR TestReadAttributeInt16uDefaultValue_33() + CHIP_ERROR TestReadAttributeInt16uDefaultValue_34() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_33, - OnFailureCallback_33); + return cluster.ReadAttribute(this, OnSuccessCallback_34, + OnFailureCallback_34); } - void OnFailureResponse_33(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_34(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_33(uint16_t int16u) + void OnSuccessResponse_34(uint16_t int16u) { VerifyOrReturn(CheckValue("int16u", int16u, 0U)); @@ -42180,7 +42816,7 @@ class TestSaveAs : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeInt16uNotDefaultValue_34() + CHIP_ERROR TestWriteAttributeInt16uNotDefaultValue_35() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42190,33 +42826,33 @@ class TestSaveAs : public TestCommand int16uArgument = 1U; return cluster.WriteAttribute( - int16uArgument, this, OnSuccessCallback_34, OnFailureCallback_34); + int16uArgument, this, OnSuccessCallback_35, OnFailureCallback_35); } - void OnFailureResponse_34(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_35(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_34() { NextTest(); } + void OnSuccessResponse_35() { NextTest(); } - CHIP_ERROR TestReadAttributeInt16uNotDefaultValue_35() + CHIP_ERROR TestReadAttributeInt16uNotDefaultValue_36() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_35, - OnFailureCallback_35); + return cluster.ReadAttribute(this, OnSuccessCallback_36, + OnFailureCallback_36); } - void OnFailureResponse_35(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_36(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_35(uint16_t int16u) + void OnSuccessResponse_36(uint16_t int16u) { VerifyOrReturn(CheckConstraintNotValue("int16u", int16u, readAttributeInt16uDefaultValue)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt16uDefaultValue_36() + CHIP_ERROR TestWriteAttributeInt16uDefaultValue_37() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42226,45 +42862,45 @@ class TestSaveAs : public TestCommand int16uArgument = readAttributeInt16uDefaultValue; return cluster.WriteAttribute( - int16uArgument, this, OnSuccessCallback_36, OnFailureCallback_36); + int16uArgument, this, OnSuccessCallback_37, OnFailureCallback_37); } - void OnFailureResponse_36(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_37(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_36() { NextTest(); } + void OnSuccessResponse_37() { NextTest(); } - CHIP_ERROR TestReadAttributeInt16uDefaultValue_37() + CHIP_ERROR TestReadAttributeInt16uDefaultValue_38() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_37, - OnFailureCallback_37); + return cluster.ReadAttribute(this, OnSuccessCallback_38, + OnFailureCallback_38); } - void OnFailureResponse_37(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_38(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_37(uint16_t int16u) + void OnSuccessResponse_38(uint16_t int16u) { VerifyOrReturn(CheckValue("int16u", int16u, readAttributeInt16uDefaultValue)); NextTest(); } - CHIP_ERROR TestReadAttributeInt32uDefaultValue_38() + CHIP_ERROR TestReadAttributeInt32uDefaultValue_39() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_38, - OnFailureCallback_38); + return cluster.ReadAttribute(this, OnSuccessCallback_39, + OnFailureCallback_39); } - void OnFailureResponse_38(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_39(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_38(uint32_t int32u) + void OnSuccessResponse_39(uint32_t int32u) { VerifyOrReturn(CheckValue("int32u", int32u, 0UL)); @@ -42272,7 +42908,7 @@ class TestSaveAs : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeInt32uNotDefaultValue_39() + CHIP_ERROR TestWriteAttributeInt32uNotDefaultValue_40() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42282,33 +42918,33 @@ class TestSaveAs : public TestCommand int32uArgument = 1UL; return cluster.WriteAttribute( - int32uArgument, this, OnSuccessCallback_39, OnFailureCallback_39); + int32uArgument, this, OnSuccessCallback_40, OnFailureCallback_40); } - void OnFailureResponse_39(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_40(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_39() { NextTest(); } + void OnSuccessResponse_40() { NextTest(); } - CHIP_ERROR TestReadAttributeInt32uNotDefaultValue_40() + CHIP_ERROR TestReadAttributeInt32uNotDefaultValue_41() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_40, - OnFailureCallback_40); + return cluster.ReadAttribute(this, OnSuccessCallback_41, + OnFailureCallback_41); } - void OnFailureResponse_40(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_41(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_40(uint32_t int32u) + void OnSuccessResponse_41(uint32_t int32u) { VerifyOrReturn(CheckConstraintNotValue("int32u", int32u, readAttributeInt32uDefaultValue)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt32uDefaultValue_41() + CHIP_ERROR TestWriteAttributeInt32uDefaultValue_42() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42318,45 +42954,45 @@ class TestSaveAs : public TestCommand int32uArgument = readAttributeInt32uDefaultValue; return cluster.WriteAttribute( - int32uArgument, this, OnSuccessCallback_41, OnFailureCallback_41); + int32uArgument, this, OnSuccessCallback_42, OnFailureCallback_42); } - void OnFailureResponse_41(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_42(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_41() { NextTest(); } + void OnSuccessResponse_42() { NextTest(); } - CHIP_ERROR TestReadAttributeInt32uDefaultValue_42() + CHIP_ERROR TestReadAttributeInt32uDefaultValue_43() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_42, - OnFailureCallback_42); + return cluster.ReadAttribute(this, OnSuccessCallback_43, + OnFailureCallback_43); } - void OnFailureResponse_42(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_43(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_42(uint32_t int32u) + void OnSuccessResponse_43(uint32_t int32u) { VerifyOrReturn(CheckValue("int32u", int32u, readAttributeInt32uDefaultValue)); NextTest(); } - CHIP_ERROR TestReadAttributeInt64uDefaultValue_43() + CHIP_ERROR TestReadAttributeInt64uDefaultValue_44() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_43, - OnFailureCallback_43); + return cluster.ReadAttribute(this, OnSuccessCallback_44, + OnFailureCallback_44); } - void OnFailureResponse_43(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_44(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_43(uint64_t int64u) + void OnSuccessResponse_44(uint64_t int64u) { VerifyOrReturn(CheckValue("int64u", int64u, 0ULL)); @@ -42364,7 +43000,7 @@ class TestSaveAs : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeInt64uNotDefaultValue_44() + CHIP_ERROR TestWriteAttributeInt64uNotDefaultValue_45() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42374,33 +43010,33 @@ class TestSaveAs : public TestCommand int64uArgument = 1ULL; return cluster.WriteAttribute( - int64uArgument, this, OnSuccessCallback_44, OnFailureCallback_44); + int64uArgument, this, OnSuccessCallback_45, OnFailureCallback_45); } - void OnFailureResponse_44(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_45(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_44() { NextTest(); } + void OnSuccessResponse_45() { NextTest(); } - CHIP_ERROR TestReadAttributeInt64uNotDefaultValue_45() + CHIP_ERROR TestReadAttributeInt64uNotDefaultValue_46() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_45, - OnFailureCallback_45); + return cluster.ReadAttribute(this, OnSuccessCallback_46, + OnFailureCallback_46); } - void OnFailureResponse_45(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_46(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_45(uint64_t int64u) + void OnSuccessResponse_46(uint64_t int64u) { VerifyOrReturn(CheckConstraintNotValue("int64u", int64u, readAttributeInt64uDefaultValue)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt64uDefaultValue_46() + CHIP_ERROR TestWriteAttributeInt64uDefaultValue_47() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42410,45 +43046,45 @@ class TestSaveAs : public TestCommand int64uArgument = readAttributeInt64uDefaultValue; return cluster.WriteAttribute( - int64uArgument, this, OnSuccessCallback_46, OnFailureCallback_46); + int64uArgument, this, OnSuccessCallback_47, OnFailureCallback_47); } - void OnFailureResponse_46(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_47(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_46() { NextTest(); } + void OnSuccessResponse_47() { NextTest(); } - CHIP_ERROR TestReadAttributeInt64uDefaultValue_47() + CHIP_ERROR TestReadAttributeInt64uDefaultValue_48() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_47, - OnFailureCallback_47); + return cluster.ReadAttribute(this, OnSuccessCallback_48, + OnFailureCallback_48); } - void OnFailureResponse_47(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_48(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_47(uint64_t int64u) + void OnSuccessResponse_48(uint64_t int64u) { VerifyOrReturn(CheckValue("int64u", int64u, readAttributeInt64uDefaultValue)); NextTest(); } - CHIP_ERROR TestReadAttributeInt8sDefaultValue_48() + CHIP_ERROR TestReadAttributeInt8sDefaultValue_49() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_48, - OnFailureCallback_48); + return cluster.ReadAttribute(this, OnSuccessCallback_49, + OnFailureCallback_49); } - void OnFailureResponse_48(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_49(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_48(int8_t int8s) + void OnSuccessResponse_49(int8_t int8s) { VerifyOrReturn(CheckValue("int8s", int8s, 0)); @@ -42456,7 +43092,7 @@ class TestSaveAs : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeInt8sNotDefaultValue_49() + CHIP_ERROR TestWriteAttributeInt8sNotDefaultValue_50() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42466,33 +43102,33 @@ class TestSaveAs : public TestCommand int8sArgument = 1; return cluster.WriteAttribute( - int8sArgument, this, OnSuccessCallback_49, OnFailureCallback_49); + int8sArgument, this, OnSuccessCallback_50, OnFailureCallback_50); } - void OnFailureResponse_49(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_50(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_49() { NextTest(); } + void OnSuccessResponse_50() { NextTest(); } - CHIP_ERROR TestReadAttributeInt8sNotDefaultValue_50() + CHIP_ERROR TestReadAttributeInt8sNotDefaultValue_51() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_50, - OnFailureCallback_50); + return cluster.ReadAttribute(this, OnSuccessCallback_51, + OnFailureCallback_51); } - void OnFailureResponse_50(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_51(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_50(int8_t int8s) + void OnSuccessResponse_51(int8_t int8s) { VerifyOrReturn(CheckConstraintNotValue("int8s", int8s, readAttributeInt8sDefaultValue)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt8sDefaultValue_51() + CHIP_ERROR TestWriteAttributeInt8sDefaultValue_52() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42502,45 +43138,45 @@ class TestSaveAs : public TestCommand int8sArgument = readAttributeInt8sDefaultValue; return cluster.WriteAttribute( - int8sArgument, this, OnSuccessCallback_51, OnFailureCallback_51); + int8sArgument, this, OnSuccessCallback_52, OnFailureCallback_52); } - void OnFailureResponse_51(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_52(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_51() { NextTest(); } + void OnSuccessResponse_52() { NextTest(); } - CHIP_ERROR TestReadAttributeInt8sDefaultValue_52() + CHIP_ERROR TestReadAttributeInt8sDefaultValue_53() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_52, - OnFailureCallback_52); + return cluster.ReadAttribute(this, OnSuccessCallback_53, + OnFailureCallback_53); } - void OnFailureResponse_52(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_53(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_52(int8_t int8s) + void OnSuccessResponse_53(int8_t int8s) { VerifyOrReturn(CheckValue("int8s", int8s, readAttributeInt8sDefaultValue)); NextTest(); } - CHIP_ERROR TestReadAttributeInt16sDefaultValue_53() + CHIP_ERROR TestReadAttributeInt16sDefaultValue_54() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_53, - OnFailureCallback_53); + return cluster.ReadAttribute(this, OnSuccessCallback_54, + OnFailureCallback_54); } - void OnFailureResponse_53(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_54(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_53(int16_t int16s) + void OnSuccessResponse_54(int16_t int16s) { VerifyOrReturn(CheckValue("int16s", int16s, 0)); @@ -42548,7 +43184,7 @@ class TestSaveAs : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeInt16sNotDefaultValue_54() + CHIP_ERROR TestWriteAttributeInt16sNotDefaultValue_55() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42558,33 +43194,33 @@ class TestSaveAs : public TestCommand int16sArgument = 1; return cluster.WriteAttribute( - int16sArgument, this, OnSuccessCallback_54, OnFailureCallback_54); + int16sArgument, this, OnSuccessCallback_55, OnFailureCallback_55); } - void OnFailureResponse_54(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_55(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_54() { NextTest(); } + void OnSuccessResponse_55() { NextTest(); } - CHIP_ERROR TestReadAttributeInt16sNotDefaultValue_55() + CHIP_ERROR TestReadAttributeInt16sNotDefaultValue_56() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_55, - OnFailureCallback_55); + return cluster.ReadAttribute(this, OnSuccessCallback_56, + OnFailureCallback_56); } - void OnFailureResponse_55(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_56(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_55(int16_t int16s) + void OnSuccessResponse_56(int16_t int16s) { VerifyOrReturn(CheckConstraintNotValue("int16s", int16s, readAttributeInt16sDefaultValue)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt16sDefaultValue_56() + CHIP_ERROR TestWriteAttributeInt16sDefaultValue_57() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42594,45 +43230,45 @@ class TestSaveAs : public TestCommand int16sArgument = readAttributeInt16sDefaultValue; return cluster.WriteAttribute( - int16sArgument, this, OnSuccessCallback_56, OnFailureCallback_56); + int16sArgument, this, OnSuccessCallback_57, OnFailureCallback_57); } - void OnFailureResponse_56(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_57(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_56() { NextTest(); } + void OnSuccessResponse_57() { NextTest(); } - CHIP_ERROR TestReadAttributeInt16sDefaultValue_57() + CHIP_ERROR TestReadAttributeInt16sDefaultValue_58() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_57, - OnFailureCallback_57); + return cluster.ReadAttribute(this, OnSuccessCallback_58, + OnFailureCallback_58); } - void OnFailureResponse_57(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_58(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_57(int16_t int16s) + void OnSuccessResponse_58(int16_t int16s) { VerifyOrReturn(CheckValue("int16s", int16s, readAttributeInt16sDefaultValue)); NextTest(); } - CHIP_ERROR TestReadAttributeInt32sDefaultValue_58() + CHIP_ERROR TestReadAttributeInt32sDefaultValue_59() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_58, - OnFailureCallback_58); + return cluster.ReadAttribute(this, OnSuccessCallback_59, + OnFailureCallback_59); } - void OnFailureResponse_58(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_59(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_58(int32_t int32s) + void OnSuccessResponse_59(int32_t int32s) { VerifyOrReturn(CheckValue("int32s", int32s, 0L)); @@ -42640,7 +43276,7 @@ class TestSaveAs : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeInt32sNotDefaultValue_59() + CHIP_ERROR TestWriteAttributeInt32sNotDefaultValue_60() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42650,33 +43286,33 @@ class TestSaveAs : public TestCommand int32sArgument = 1L; return cluster.WriteAttribute( - int32sArgument, this, OnSuccessCallback_59, OnFailureCallback_59); + int32sArgument, this, OnSuccessCallback_60, OnFailureCallback_60); } - void OnFailureResponse_59(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_60(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_59() { NextTest(); } + void OnSuccessResponse_60() { NextTest(); } - CHIP_ERROR TestReadAttributeInt32sNotDefaultValue_60() + CHIP_ERROR TestReadAttributeInt32sNotDefaultValue_61() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_60, - OnFailureCallback_60); + return cluster.ReadAttribute(this, OnSuccessCallback_61, + OnFailureCallback_61); } - void OnFailureResponse_60(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_61(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_60(int32_t int32s) + void OnSuccessResponse_61(int32_t int32s) { VerifyOrReturn(CheckConstraintNotValue("int32s", int32s, readAttributeInt32sDefaultValue)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt32sDefaultValue_61() + CHIP_ERROR TestWriteAttributeInt32sDefaultValue_62() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42686,45 +43322,45 @@ class TestSaveAs : public TestCommand int32sArgument = readAttributeInt32sDefaultValue; return cluster.WriteAttribute( - int32sArgument, this, OnSuccessCallback_61, OnFailureCallback_61); + int32sArgument, this, OnSuccessCallback_62, OnFailureCallback_62); } - void OnFailureResponse_61(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_62(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_61() { NextTest(); } + void OnSuccessResponse_62() { NextTest(); } - CHIP_ERROR TestReadAttributeInt32sDefaultValue_62() + CHIP_ERROR TestReadAttributeInt32sDefaultValue_63() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_62, - OnFailureCallback_62); + return cluster.ReadAttribute(this, OnSuccessCallback_63, + OnFailureCallback_63); } - void OnFailureResponse_62(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_63(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_62(int32_t int32s) + void OnSuccessResponse_63(int32_t int32s) { VerifyOrReturn(CheckValue("int32s", int32s, readAttributeInt32sDefaultValue)); NextTest(); } - CHIP_ERROR TestReadAttributeInt64sDefaultValue_63() + CHIP_ERROR TestReadAttributeInt64sDefaultValue_64() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_63, - OnFailureCallback_63); + return cluster.ReadAttribute(this, OnSuccessCallback_64, + OnFailureCallback_64); } - void OnFailureResponse_63(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_64(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_63(int64_t int64s) + void OnSuccessResponse_64(int64_t int64s) { VerifyOrReturn(CheckValue("int64s", int64s, 0LL)); @@ -42732,7 +43368,7 @@ class TestSaveAs : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeIntsNotDefaultValue_64() + CHIP_ERROR TestWriteAttributeIntsNotDefaultValue_65() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42742,33 +43378,33 @@ class TestSaveAs : public TestCommand int64sArgument = 1LL; return cluster.WriteAttribute( - int64sArgument, this, OnSuccessCallback_64, OnFailureCallback_64); + int64sArgument, this, OnSuccessCallback_65, OnFailureCallback_65); } - void OnFailureResponse_64(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_65(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_64() { NextTest(); } + void OnSuccessResponse_65() { NextTest(); } - CHIP_ERROR TestReadAttributeInt64sNotDefaultValue_65() + CHIP_ERROR TestReadAttributeInt64sNotDefaultValue_66() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_65, - OnFailureCallback_65); + return cluster.ReadAttribute(this, OnSuccessCallback_66, + OnFailureCallback_66); } - void OnFailureResponse_65(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_66(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_65(int64_t int64s) + void OnSuccessResponse_66(int64_t int64s) { VerifyOrReturn(CheckConstraintNotValue("int64s", int64s, readAttributeInt64sDefaultValue)); NextTest(); } - CHIP_ERROR TestWriteAttributeInt64sDefaultValue_66() + CHIP_ERROR TestWriteAttributeInt64sDefaultValue_67() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42778,45 +43414,45 @@ class TestSaveAs : public TestCommand int64sArgument = readAttributeInt64sDefaultValue; return cluster.WriteAttribute( - int64sArgument, this, OnSuccessCallback_66, OnFailureCallback_66); + int64sArgument, this, OnSuccessCallback_67, OnFailureCallback_67); } - void OnFailureResponse_66(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_67(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_66() { NextTest(); } + void OnSuccessResponse_67() { NextTest(); } - CHIP_ERROR TestReadAttributeInt64sDefaultValue_67() + CHIP_ERROR TestReadAttributeInt64sDefaultValue_68() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_67, - OnFailureCallback_67); + return cluster.ReadAttribute(this, OnSuccessCallback_68, + OnFailureCallback_68); } - void OnFailureResponse_67(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_68(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_67(int64_t int64s) + void OnSuccessResponse_68(int64_t int64s) { VerifyOrReturn(CheckValue("int64s", int64s, readAttributeInt64sDefaultValue)); NextTest(); } - CHIP_ERROR TestReadAttributeEnum8DefaultValue_68() + CHIP_ERROR TestReadAttributeEnum8DefaultValue_69() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_68, - OnFailureCallback_68); + return cluster.ReadAttribute(this, OnSuccessCallback_69, + OnFailureCallback_69); } - void OnFailureResponse_68(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_69(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_68(uint8_t enum8) + void OnSuccessResponse_69(uint8_t enum8) { VerifyOrReturn(CheckValue("enum8", enum8, 0)); @@ -42824,7 +43460,7 @@ class TestSaveAs : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeEnum8NotDefaultValue_69() + CHIP_ERROR TestWriteAttributeEnum8NotDefaultValue_70() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42834,33 +43470,33 @@ class TestSaveAs : public TestCommand enum8Argument = static_cast(1); return cluster.WriteAttribute( - enum8Argument, this, OnSuccessCallback_69, OnFailureCallback_69); + enum8Argument, this, OnSuccessCallback_70, OnFailureCallback_70); } - void OnFailureResponse_69(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_70(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_69() { NextTest(); } + void OnSuccessResponse_70() { NextTest(); } - CHIP_ERROR TestReadAttributeEnum8NotDefaultValue_70() + CHIP_ERROR TestReadAttributeEnum8NotDefaultValue_71() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_70, - OnFailureCallback_70); + return cluster.ReadAttribute(this, OnSuccessCallback_71, + OnFailureCallback_71); } - void OnFailureResponse_70(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_71(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_70(uint8_t enum8) + void OnSuccessResponse_71(uint8_t enum8) { VerifyOrReturn(CheckConstraintNotValue("enum8", enum8, readAttributeEnum8DefaultValue)); NextTest(); } - CHIP_ERROR TestWriteAttributeEnum8DefaultValue_71() + CHIP_ERROR TestWriteAttributeEnum8DefaultValue_72() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42870,45 +43506,45 @@ class TestSaveAs : public TestCommand enum8Argument = static_cast(readAttributeEnum8DefaultValue); return cluster.WriteAttribute( - enum8Argument, this, OnSuccessCallback_71, OnFailureCallback_71); + enum8Argument, this, OnSuccessCallback_72, OnFailureCallback_72); } - void OnFailureResponse_71(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_72(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_71() { NextTest(); } + void OnSuccessResponse_72() { NextTest(); } - CHIP_ERROR TestReadAttributeEnum8DefaultValue_72() + CHIP_ERROR TestReadAttributeEnum8DefaultValue_73() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_72, - OnFailureCallback_72); + return cluster.ReadAttribute(this, OnSuccessCallback_73, + OnFailureCallback_73); } - void OnFailureResponse_72(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_73(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_72(uint8_t enum8) + void OnSuccessResponse_73(uint8_t enum8) { VerifyOrReturn(CheckValue("enum8", enum8, readAttributeEnum8DefaultValue)); NextTest(); } - CHIP_ERROR TestReadAttributeEnum16DefaultValue_73() + CHIP_ERROR TestReadAttributeEnum16DefaultValue_74() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_73, - OnFailureCallback_73); + return cluster.ReadAttribute(this, OnSuccessCallback_74, + OnFailureCallback_74); } - void OnFailureResponse_73(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_74(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_73(uint16_t enum16) + void OnSuccessResponse_74(uint16_t enum16) { VerifyOrReturn(CheckValue("enum16", enum16, 0U)); @@ -42916,7 +43552,7 @@ class TestSaveAs : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeEnum16NotDefaultValue_74() + CHIP_ERROR TestWriteAttributeEnum16NotDefaultValue_75() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42926,33 +43562,33 @@ class TestSaveAs : public TestCommand enum16Argument = static_cast(1); return cluster.WriteAttribute( - enum16Argument, this, OnSuccessCallback_74, OnFailureCallback_74); + enum16Argument, this, OnSuccessCallback_75, OnFailureCallback_75); } - void OnFailureResponse_74(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_75(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_74() { NextTest(); } + void OnSuccessResponse_75() { NextTest(); } - CHIP_ERROR TestReadAttributeEnum16NotDefaultValue_75() + CHIP_ERROR TestReadAttributeEnum16NotDefaultValue_76() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_75, - OnFailureCallback_75); + return cluster.ReadAttribute(this, OnSuccessCallback_76, + OnFailureCallback_76); } - void OnFailureResponse_75(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_76(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_75(uint16_t enum16) + void OnSuccessResponse_76(uint16_t enum16) { VerifyOrReturn(CheckConstraintNotValue("enum16", enum16, readAttributeEnum16DefaultValue)); NextTest(); } - CHIP_ERROR TestWriteAttributeEnum16DefaultValue_76() + CHIP_ERROR TestWriteAttributeEnum16DefaultValue_77() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -42962,45 +43598,45 @@ class TestSaveAs : public TestCommand enum16Argument = static_cast(readAttributeEnum16DefaultValue); return cluster.WriteAttribute( - enum16Argument, this, OnSuccessCallback_76, OnFailureCallback_76); + enum16Argument, this, OnSuccessCallback_77, OnFailureCallback_77); } - void OnFailureResponse_76(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_77(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_76() { NextTest(); } + void OnSuccessResponse_77() { NextTest(); } - CHIP_ERROR TestReadAttributeEnum16DefaultValue_77() + CHIP_ERROR TestReadAttributeEnum16DefaultValue_78() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_77, - OnFailureCallback_77); + return cluster.ReadAttribute(this, OnSuccessCallback_78, + OnFailureCallback_78); } - void OnFailureResponse_77(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_78(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_77(uint16_t enum16) + void OnSuccessResponse_78(uint16_t enum16) { VerifyOrReturn(CheckValue("enum16", enum16, readAttributeEnum16DefaultValue)); NextTest(); } - CHIP_ERROR TestReadAttributeEpochUsDefaultValue_78() + CHIP_ERROR TestReadAttributeEpochUsDefaultValue_79() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_78, - OnFailureCallback_78); + return cluster.ReadAttribute(this, OnSuccessCallback_79, + OnFailureCallback_79); } - void OnFailureResponse_78(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_79(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_78(uint64_t epochUs) + void OnSuccessResponse_79(uint64_t epochUs) { VerifyOrReturn(CheckValue("epochUs", epochUs, 0ULL)); @@ -43008,7 +43644,7 @@ class TestSaveAs : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeEpochUsNotDefaultValue_79() + CHIP_ERROR TestWriteAttributeEpochUsNotDefaultValue_80() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -43018,33 +43654,33 @@ class TestSaveAs : public TestCommand epochUsArgument = 1ULL; return cluster.WriteAttribute( - epochUsArgument, this, OnSuccessCallback_79, OnFailureCallback_79); + epochUsArgument, this, OnSuccessCallback_80, OnFailureCallback_80); } - void OnFailureResponse_79(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_80(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_79() { NextTest(); } + void OnSuccessResponse_80() { NextTest(); } - CHIP_ERROR TestReadAttributeEpochUsNotDefaultValue_80() + CHIP_ERROR TestReadAttributeEpochUsNotDefaultValue_81() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_80, - OnFailureCallback_80); + return cluster.ReadAttribute(this, OnSuccessCallback_81, + OnFailureCallback_81); } - void OnFailureResponse_80(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_81(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_80(uint64_t epochUs) + void OnSuccessResponse_81(uint64_t epochUs) { VerifyOrReturn(CheckConstraintNotValue("epochUs", epochUs, readAttributeEpochUSDefaultValue)); NextTest(); } - CHIP_ERROR TestWriteAttributeEpochUsDefaultValue_81() + CHIP_ERROR TestWriteAttributeEpochUsDefaultValue_82() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -43054,45 +43690,45 @@ class TestSaveAs : public TestCommand epochUsArgument = readAttributeEpochUSDefaultValue; return cluster.WriteAttribute( - epochUsArgument, this, OnSuccessCallback_81, OnFailureCallback_81); + epochUsArgument, this, OnSuccessCallback_82, OnFailureCallback_82); } - void OnFailureResponse_81(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_82(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_81() { NextTest(); } + void OnSuccessResponse_82() { NextTest(); } - CHIP_ERROR TestReadAttributeEpochUsDefaultValue_82() + CHIP_ERROR TestReadAttributeEpochUsDefaultValue_83() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_82, - OnFailureCallback_82); + return cluster.ReadAttribute(this, OnSuccessCallback_83, + OnFailureCallback_83); } - void OnFailureResponse_82(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_83(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_82(uint64_t epochUs) + void OnSuccessResponse_83(uint64_t epochUs) { VerifyOrReturn(CheckValue("epochUs", epochUs, readAttributeEpochUSDefaultValue)); NextTest(); } - CHIP_ERROR TestReadAttributeEpochSDefaultValue_83() + CHIP_ERROR TestReadAttributeEpochSDefaultValue_84() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_83, - OnFailureCallback_83); + return cluster.ReadAttribute(this, OnSuccessCallback_84, + OnFailureCallback_84); } - void OnFailureResponse_83(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_84(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_83(uint32_t epochS) + void OnSuccessResponse_84(uint32_t epochS) { VerifyOrReturn(CheckValue("epochS", epochS, 0UL)); @@ -43100,7 +43736,7 @@ class TestSaveAs : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeEpochSNotDefaultValue_84() + CHIP_ERROR TestWriteAttributeEpochSNotDefaultValue_85() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -43110,33 +43746,33 @@ class TestSaveAs : public TestCommand epochSArgument = 1UL; return cluster.WriteAttribute( - epochSArgument, this, OnSuccessCallback_84, OnFailureCallback_84); + epochSArgument, this, OnSuccessCallback_85, OnFailureCallback_85); } - void OnFailureResponse_84(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_85(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_84() { NextTest(); } + void OnSuccessResponse_85() { NextTest(); } - CHIP_ERROR TestReadAttributeEpochSNotDefaultValue_85() + CHIP_ERROR TestReadAttributeEpochSNotDefaultValue_86() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_85, - OnFailureCallback_85); + return cluster.ReadAttribute(this, OnSuccessCallback_86, + OnFailureCallback_86); } - void OnFailureResponse_85(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_86(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_85(uint32_t epochS) + void OnSuccessResponse_86(uint32_t epochS) { VerifyOrReturn(CheckConstraintNotValue("epochS", epochS, readAttributeEpochSDefaultValue)); NextTest(); } - CHIP_ERROR TestWriteAttributeEpochSDefaultValue_86() + CHIP_ERROR TestWriteAttributeEpochSDefaultValue_87() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -43146,45 +43782,45 @@ class TestSaveAs : public TestCommand epochSArgument = readAttributeEpochSDefaultValue; return cluster.WriteAttribute( - epochSArgument, this, OnSuccessCallback_86, OnFailureCallback_86); + epochSArgument, this, OnSuccessCallback_87, OnFailureCallback_87); } - void OnFailureResponse_86(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_87(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_86() { NextTest(); } + void OnSuccessResponse_87() { NextTest(); } - CHIP_ERROR TestReadAttributeEpochSDefaultValue_87() + CHIP_ERROR TestReadAttributeEpochSDefaultValue_88() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_87, - OnFailureCallback_87); + return cluster.ReadAttribute(this, OnSuccessCallback_88, + OnFailureCallback_88); } - void OnFailureResponse_87(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_88(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_87(uint32_t epochS) + void OnSuccessResponse_88(uint32_t epochS) { VerifyOrReturn(CheckValue("epochS", epochS, readAttributeEpochSDefaultValue)); NextTest(); } - CHIP_ERROR TestReadAttributeVendorIdDefaultValue_88() + CHIP_ERROR TestReadAttributeVendorIdDefaultValue_89() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_88, - OnFailureCallback_88); + return cluster.ReadAttribute(this, OnSuccessCallback_89, + OnFailureCallback_89); } - void OnFailureResponse_88(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_89(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_88(chip::VendorId vendorId) + void OnSuccessResponse_89(chip::VendorId vendorId) { VerifyOrReturn(CheckValue("vendorId", vendorId, 0U)); @@ -43192,7 +43828,7 @@ class TestSaveAs : public TestCommand NextTest(); } - CHIP_ERROR TestWriteAttributeVendorIdNotDefaultValue_89() + CHIP_ERROR TestWriteAttributeVendorIdNotDefaultValue_90() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -43202,33 +43838,33 @@ class TestSaveAs : public TestCommand vendorIdArgument = static_cast(1); return cluster.WriteAttribute( - vendorIdArgument, this, OnSuccessCallback_89, OnFailureCallback_89); + vendorIdArgument, this, OnSuccessCallback_90, OnFailureCallback_90); } - void OnFailureResponse_89(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_90(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_89() { NextTest(); } + void OnSuccessResponse_90() { NextTest(); } - CHIP_ERROR TestReadAttributeVendorIdNotDefaultValue_90() + CHIP_ERROR TestReadAttributeVendorIdNotDefaultValue_91() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_90, - OnFailureCallback_90); + return cluster.ReadAttribute(this, OnSuccessCallback_91, + OnFailureCallback_91); } - void OnFailureResponse_90(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_91(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_90(chip::VendorId vendorId) + void OnSuccessResponse_91(chip::VendorId vendorId) { VerifyOrReturn(CheckConstraintNotValue("vendorId", vendorId, readAttributeVendorIdDefaultValue)); NextTest(); } - CHIP_ERROR TestWriteAttributeVendorIdDefaultValue_91() + CHIP_ERROR TestWriteAttributeVendorIdDefaultValue_92() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; @@ -43238,26 +43874,26 @@ class TestSaveAs : public TestCommand vendorIdArgument = static_cast(readAttributeVendorIdDefaultValue); return cluster.WriteAttribute( - vendorIdArgument, this, OnSuccessCallback_91, OnFailureCallback_91); + vendorIdArgument, this, OnSuccessCallback_92, OnFailureCallback_92); } - void OnFailureResponse_91(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_92(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_91() { NextTest(); } + void OnSuccessResponse_92() { NextTest(); } - CHIP_ERROR TestReadAttributeVendorIdDefaultValue_92() + CHIP_ERROR TestReadAttributeVendorIdDefaultValue_93() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_92, - OnFailureCallback_92); + return cluster.ReadAttribute(this, OnSuccessCallback_93, + OnFailureCallback_93); } - void OnFailureResponse_92(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_93(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_92(chip::VendorId vendorId) + void OnSuccessResponse_93(chip::VendorId vendorId) { VerifyOrReturn(CheckValue("vendorId", vendorId, readAttributeVendorIdDefaultValue)); @@ -43296,20 +43932,24 @@ class TestDescriptorCluster : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Read attribute Device list\n"); - err = TestReadAttributeDeviceList_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 : Read attribute Server list\n"); - err = TestReadAttributeServerList_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Read attribute Device list\n"); + err = TestReadAttributeDeviceList_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Read attribute Client list\n"); - err = TestReadAttributeClientList_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Read attribute Server list\n"); + err = TestReadAttributeServerList_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Read attribute Parts list\n"); - err = TestReadAttributePartsList_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Read attribute Client list\n"); + err = TestReadAttributeClientList_3(); + break; + case 4: + ChipLogProgress(chipTool, " ***** Test Step 4 : Read attribute Parts list\n"); + err = TestReadAttributePartsList_4(); break; } @@ -43322,67 +43962,69 @@ class TestDescriptorCluster : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 4; + const uint16_t mTestCount = 5; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0( + static void OnSuccessCallback_1( void * context, const chip::app::DataModel::DecodableList & deviceList) { - (static_cast(context))->OnSuccessResponse_0(deviceList); + (static_cast(context))->OnSuccessResponse_1(deviceList); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, const chip::app::DataModel::DecodableList & serverList) + static void OnSuccessCallback_2(void * context, const chip::app::DataModel::DecodableList & serverList) { - (static_cast(context))->OnSuccessResponse_1(serverList); + (static_cast(context))->OnSuccessResponse_2(serverList); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, const chip::app::DataModel::DecodableList & clientList) + static void OnSuccessCallback_3(void * context, const chip::app::DataModel::DecodableList & clientList) { - (static_cast(context))->OnSuccessResponse_2(clientList); + (static_cast(context))->OnSuccessResponse_3(clientList); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, const chip::app::DataModel::DecodableList & partsList) + static void OnSuccessCallback_4(void * context, const chip::app::DataModel::DecodableList & partsList) { - (static_cast(context))->OnSuccessResponse_3(partsList); + (static_cast(context))->OnSuccessResponse_4(partsList); } // // Tests methods // - CHIP_ERROR TestReadAttributeDeviceList_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadAttributeDeviceList_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::DescriptorClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_0, - OnFailureCallback_0); + return cluster.ReadAttribute(this, OnSuccessCallback_1, + OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0( + void OnSuccessResponse_1( const chip::app::DataModel::DecodableList & deviceList) { auto iter = deviceList.begin(); @@ -43394,19 +44036,19 @@ class TestDescriptorCluster : public TestCommand NextTest(); } - CHIP_ERROR TestReadAttributeServerList_1() + CHIP_ERROR TestReadAttributeServerList_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::DescriptorClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(const chip::app::DataModel::DecodableList & serverList) + void OnSuccessResponse_2(const chip::app::DataModel::DecodableList & serverList) { auto iter = serverList.begin(); VerifyOrReturn(CheckNextListItemDecodes("serverList", iter, 0)); @@ -43450,19 +44092,19 @@ class TestDescriptorCluster : public TestCommand NextTest(); } - CHIP_ERROR TestReadAttributeClientList_2() + CHIP_ERROR TestReadAttributeClientList_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::DescriptorClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_2, - OnFailureCallback_2); + return cluster.ReadAttribute(this, OnSuccessCallback_3, + OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(const chip::app::DataModel::DecodableList & clientList) + void OnSuccessResponse_3(const chip::app::DataModel::DecodableList & clientList) { auto iter = clientList.begin(); VerifyOrReturn(CheckNoMoreListItems("clientList", iter, 0)); @@ -43470,19 +44112,19 @@ class TestDescriptorCluster : public TestCommand NextTest(); } - CHIP_ERROR TestReadAttributePartsList_3() + CHIP_ERROR TestReadAttributePartsList_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::DescriptorClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_3, - OnFailureCallback_3); + return cluster.ReadAttribute(this, OnSuccessCallback_4, + OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(const chip::app::DataModel::DecodableList & partsList) + void OnSuccessResponse_4(const chip::app::DataModel::DecodableList & partsList) { auto iter = partsList.begin(); VerifyOrReturn(CheckNextListItemDecodes("partsList", iter, 0)); @@ -43526,20 +44168,24 @@ class TestBasicInformation : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Read location\n"); - err = TestReadLocation_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 : Write location\n"); - err = TestWriteLocation_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Read location\n"); + err = TestReadLocation_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Read back location\n"); - err = TestReadBackLocation_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Write location\n"); + err = TestWriteLocation_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Restore initial location value\n"); - err = TestRestoreInitialLocationValue_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Read back location\n"); + err = TestReadBackLocation_3(); + break; + case 4: + ChipLogProgress(chipTool, " ***** Test Step 4 : Restore initial location value\n"); + err = TestRestoreInitialLocationValue_4(); break; } @@ -43552,66 +44198,68 @@ class TestBasicInformation : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 4; + const uint16_t mTestCount = 5; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, chip::CharSpan location) + static void OnSuccessCallback_1(void * context, chip::CharSpan location) { - (static_cast(context))->OnSuccessResponse_0(location); + (static_cast(context))->OnSuccessResponse_1(location); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } + static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, chip::CharSpan location) + static void OnSuccessCallback_3(void * context, chip::CharSpan location) { - (static_cast(context))->OnSuccessResponse_2(location); + (static_cast(context))->OnSuccessResponse_3(location); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } + static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } // // Tests methods // - CHIP_ERROR TestReadLocation_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadLocation_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_0, - OnFailureCallback_0); + return cluster.ReadAttribute(this, OnSuccessCallback_1, + OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(chip::CharSpan location) + void OnSuccessResponse_1(chip::CharSpan location) { VerifyOrReturn(CheckValueAsString("location", location, chip::CharSpan("", 0))); NextTest(); } - CHIP_ERROR TestWriteLocation_1() + CHIP_ERROR TestWriteLocation_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; @@ -43621,33 +44269,33 @@ class TestBasicInformation : public TestCommand locationArgument = chip::Span("usgarbage: not in length on purpose", 2); return cluster.WriteAttribute( - locationArgument, this, OnSuccessCallback_1, OnFailureCallback_1); + locationArgument, this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1() { NextTest(); } + void OnSuccessResponse_2() { NextTest(); } - CHIP_ERROR TestReadBackLocation_2() + CHIP_ERROR TestReadBackLocation_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_2, - OnFailureCallback_2); + return cluster.ReadAttribute(this, OnSuccessCallback_3, + OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(chip::CharSpan location) + void OnSuccessResponse_3(chip::CharSpan location) { VerifyOrReturn(CheckValueAsString("location", location, chip::CharSpan("us", 2))); NextTest(); } - CHIP_ERROR TestRestoreInitialLocationValue_3() + CHIP_ERROR TestRestoreInitialLocationValue_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; @@ -43657,12 +44305,12 @@ class TestBasicInformation : public TestCommand locationArgument = chip::Span("garbage: not in length on purpose", 0); return cluster.WriteAttribute( - locationArgument, this, OnSuccessCallback_3, OnFailureCallback_3); + locationArgument, this, OnSuccessCallback_4, OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3() { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } }; class TestIdentifyCluster : public TestCommand @@ -43696,8 +44344,12 @@ class TestIdentifyCluster : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Send Identify command and expect success response\n"); - err = TestSendIdentifyCommandAndExpectSuccessResponse_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 Identify command and expect success response\n"); + err = TestSendIdentifyCommandAndExpectSuccessResponse_1(); break; } @@ -43710,13 +44362,15 @@ class TestIdentifyCluster : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 1; + const uint16_t mTestCount = 2; // // Tests methods // - CHIP_ERROR TestSendIdentifyCommandAndExpectSuccessResponse_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestSendIdentifyCommandAndExpectSuccessResponse_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; using RequestType = chip::app::Clusters::Identify::Commands::Identify::Type; @@ -43725,20 +44379,20 @@ class TestIdentifyCluster : public TestCommand request.identifyTime = 0U; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } }; class TestGroupsCluster : public TestCommand @@ -43772,64 +44426,68 @@ class TestGroupsCluster : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : View Group 0 (invalid)\n"); - err = TestViewGroup0Invalid_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 : View Group 1 (not found)\n"); - err = TestViewGroup1NotFound_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : View Group 0 (invalid)\n"); + err = TestViewGroup0Invalid_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Add Group 1 (new)\n"); - err = TestAddGroup1New_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : View Group 1 (not found)\n"); + err = TestViewGroup1NotFound_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : View Group 1 (new)\n"); - err = TestViewGroup1New_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Add Group 1 (new)\n"); + err = TestAddGroup1New_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : View Group 2 (not found)\n"); - err = TestViewGroup2NotFound_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : View Group 1 (new)\n"); + err = TestViewGroup1New_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : View Group 3 (not found)\n"); - err = TestViewGroup3NotFound_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : View Group 2 (not found)\n"); + err = TestViewGroup2NotFound_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : View Group 1 (existing)\n"); - err = TestViewGroup1Existing_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : View Group 3 (not found)\n"); + err = TestViewGroup3NotFound_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Remove Group 0 (invalid)\n"); - err = TestRemoveGroup0Invalid_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : View Group 1 (existing)\n"); + err = TestViewGroup1Existing_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : Remove Group 4 (not found)\n"); - err = TestRemoveGroup4NotFound_8(); + ChipLogProgress(chipTool, " ***** Test Step 8 : Remove Group 0 (invalid)\n"); + err = TestRemoveGroup0Invalid_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : View Group 1 (not removed)\n"); - err = TestViewGroup1NotRemoved_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : Remove Group 4 (not found)\n"); + err = TestRemoveGroup4NotFound_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : View Group 2 (removed)\n"); - err = TestViewGroup2Removed_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : View Group 1 (not removed)\n"); + err = TestViewGroup1NotRemoved_10(); break; case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : Remove All\n"); - err = TestRemoveAll_11(); + ChipLogProgress(chipTool, " ***** Test Step 11 : View Group 2 (removed)\n"); + err = TestViewGroup2Removed_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : View Group 1 (removed)\n"); - err = TestViewGroup1Removed_12(); + ChipLogProgress(chipTool, " ***** Test Step 12 : Remove All\n"); + err = TestRemoveAll_12(); break; case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : View Group 2 (still removed)\n"); - err = TestViewGroup2StillRemoved_13(); + ChipLogProgress(chipTool, " ***** Test Step 13 : View Group 1 (removed)\n"); + err = TestViewGroup1Removed_13(); break; case 14: - ChipLogProgress(chipTool, " ***** Test Step 14 : View Group 3 (removed)\n"); - err = TestViewGroup3Removed_14(); + ChipLogProgress(chipTool, " ***** Test Step 14 : View Group 2 (still removed)\n"); + err = TestViewGroup2StillRemoved_14(); + break; + case 15: + ChipLogProgress(chipTool, " ***** Test Step 15 : View Group 3 (removed)\n"); + err = TestViewGroup3Removed_15(); break; } @@ -43842,13 +44500,15 @@ class TestGroupsCluster : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 15; + const uint16_t mTestCount = 16; // // Tests methods // - CHIP_ERROR TestViewGroup0Invalid_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestViewGroup0Invalid_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; @@ -43857,20 +44517,20 @@ class TestGroupsCluster : public TestCommand request.groupId = 0U; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(data.status, data.groupId, data.groupName); + (static_cast(context))->OnSuccessResponse_1(data.status, data.groupId, data.groupName); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint8_t status, uint16_t groupId, chip::CharSpan groupName) + void OnSuccessResponse_1(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { VerifyOrReturn(CheckValue("status", status, 135)); @@ -43879,7 +44539,7 @@ class TestGroupsCluster : public TestCommand NextTest(); } - CHIP_ERROR TestViewGroup1NotFound_1() + CHIP_ERROR TestViewGroup1NotFound_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; @@ -43888,20 +44548,20 @@ class TestGroupsCluster : public TestCommand request.groupId = 1U; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_1(data.status, data.groupId, data.groupName); + (static_cast(context))->OnSuccessResponse_2(data.status, data.groupId, data.groupName); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_2(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(uint8_t status, uint16_t groupId, chip::CharSpan groupName) + void OnSuccessResponse_2(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { VerifyOrReturn(CheckValue("status", status, 139)); @@ -43910,7 +44570,7 @@ class TestGroupsCluster : public TestCommand NextTest(); } - CHIP_ERROR TestAddGroup1New_2() + CHIP_ERROR TestAddGroup1New_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::AddGroup::Type; @@ -43920,20 +44580,20 @@ class TestGroupsCluster : public TestCommand request.groupName = chip::Span("Group #1garbage: not in length on purpose", 8); auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_2(data.status, data.groupId); + (static_cast(context))->OnSuccessResponse_3(data.status, data.groupId); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint8_t status, uint16_t groupId) + void OnSuccessResponse_3(uint8_t status, uint16_t groupId) { VerifyOrReturn(CheckValue("status", status, 0)); @@ -43942,7 +44602,7 @@ class TestGroupsCluster : public TestCommand NextTest(); } - CHIP_ERROR TestViewGroup1New_3() + CHIP_ERROR TestViewGroup1New_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; @@ -43951,20 +44611,20 @@ class TestGroupsCluster : public TestCommand request.groupId = 1U; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_3(data.status, data.groupId, data.groupName); + (static_cast(context))->OnSuccessResponse_4(data.status, data.groupId, data.groupName); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_4(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(uint8_t status, uint16_t groupId, chip::CharSpan groupName) + void OnSuccessResponse_4(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { VerifyOrReturn(CheckValue("status", status, 0)); @@ -43975,7 +44635,7 @@ class TestGroupsCluster : public TestCommand NextTest(); } - CHIP_ERROR TestViewGroup2NotFound_4() + CHIP_ERROR TestViewGroup2NotFound_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; @@ -43984,20 +44644,20 @@ class TestGroupsCluster : public TestCommand request.groupId = 4369U; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_4(data.status, data.groupId, data.groupName); + (static_cast(context))->OnSuccessResponse_5(data.status, data.groupId, data.groupName); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_5(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(uint8_t status, uint16_t groupId, chip::CharSpan groupName) + void OnSuccessResponse_5(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { VerifyOrReturn(CheckValue("status", status, 139)); @@ -44006,7 +44666,7 @@ class TestGroupsCluster : public TestCommand NextTest(); } - CHIP_ERROR TestViewGroup3NotFound_5() + CHIP_ERROR TestViewGroup3NotFound_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; @@ -44015,20 +44675,20 @@ class TestGroupsCluster : public TestCommand request.groupId = 32767U; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_5(data.status, data.groupId, data.groupName); + (static_cast(context))->OnSuccessResponse_6(data.status, data.groupId, data.groupName); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_6(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5(uint8_t status, uint16_t groupId, chip::CharSpan groupName) + void OnSuccessResponse_6(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { VerifyOrReturn(CheckValue("status", status, 139)); @@ -44037,7 +44697,7 @@ class TestGroupsCluster : public TestCommand NextTest(); } - CHIP_ERROR TestViewGroup1Existing_6() + CHIP_ERROR TestViewGroup1Existing_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; @@ -44046,20 +44706,20 @@ class TestGroupsCluster : public TestCommand request.groupId = 1U; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_6(data.status, data.groupId, data.groupName); + (static_cast(context))->OnSuccessResponse_7(data.status, data.groupId, data.groupName); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_7(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(uint8_t status, uint16_t groupId, chip::CharSpan groupName) + void OnSuccessResponse_7(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { VerifyOrReturn(CheckValue("status", status, 0)); @@ -44070,7 +44730,7 @@ class TestGroupsCluster : public TestCommand NextTest(); } - CHIP_ERROR TestRemoveGroup0Invalid_7() + CHIP_ERROR TestRemoveGroup0Invalid_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::RemoveGroup::Type; @@ -44079,20 +44739,20 @@ class TestGroupsCluster : public TestCommand request.groupId = 0U; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_7(data.status, data.groupId); + (static_cast(context))->OnSuccessResponse_8(data.status, data.groupId); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_8(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_7(uint8_t status, uint16_t groupId) + void OnSuccessResponse_8(uint8_t status, uint16_t groupId) { VerifyOrReturn(CheckValue("status", status, 135)); @@ -44101,7 +44761,7 @@ class TestGroupsCluster : public TestCommand NextTest(); } - CHIP_ERROR TestRemoveGroup4NotFound_8() + CHIP_ERROR TestRemoveGroup4NotFound_9() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::RemoveGroup::Type; @@ -44110,20 +44770,20 @@ class TestGroupsCluster : public TestCommand request.groupId = 4U; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_8(data.status, data.groupId); + (static_cast(context))->OnSuccessResponse_9(data.status, data.groupId); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_9(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_8(uint8_t status, uint16_t groupId) + void OnSuccessResponse_9(uint8_t status, uint16_t groupId) { VerifyOrReturn(CheckValue("status", status, 139)); @@ -44132,7 +44792,7 @@ class TestGroupsCluster : public TestCommand NextTest(); } - CHIP_ERROR TestViewGroup1NotRemoved_9() + CHIP_ERROR TestViewGroup1NotRemoved_10() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; @@ -44141,20 +44801,20 @@ class TestGroupsCluster : public TestCommand request.groupId = 1U; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_9(data.status, data.groupId, data.groupName); + (static_cast(context))->OnSuccessResponse_10(data.status, data.groupId, data.groupName); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_10(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_9(uint8_t status, uint16_t groupId, chip::CharSpan groupName) + void OnSuccessResponse_10(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { VerifyOrReturn(CheckValue("status", status, 0)); @@ -44165,7 +44825,7 @@ class TestGroupsCluster : public TestCommand NextTest(); } - CHIP_ERROR TestViewGroup2Removed_10() + CHIP_ERROR TestViewGroup2Removed_11() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; @@ -44174,20 +44834,20 @@ class TestGroupsCluster : public TestCommand request.groupId = 4369U; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_10(data.status, data.groupId, data.groupName); + (static_cast(context))->OnSuccessResponse_11(data.status, data.groupId, data.groupName); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_11(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_10(uint8_t status, uint16_t groupId, chip::CharSpan groupName) + void OnSuccessResponse_11(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { VerifyOrReturn(CheckValue("status", status, 139)); @@ -44196,7 +44856,7 @@ class TestGroupsCluster : public TestCommand NextTest(); } - CHIP_ERROR TestRemoveAll_11() + CHIP_ERROR TestRemoveAll_12() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::RemoveAllGroups::Type; @@ -44204,22 +44864,22 @@ class TestGroupsCluster : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_11(); + (static_cast(context))->OnSuccessResponse_12(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_12(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_11() { NextTest(); } + void OnSuccessResponse_12() { NextTest(); } - CHIP_ERROR TestViewGroup1Removed_12() + CHIP_ERROR TestViewGroup1Removed_13() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; @@ -44228,20 +44888,20 @@ class TestGroupsCluster : public TestCommand request.groupId = 1U; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_12(data.status, data.groupId, data.groupName); + (static_cast(context))->OnSuccessResponse_13(data.status, data.groupId, data.groupName); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_13(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_12(uint8_t status, uint16_t groupId, chip::CharSpan groupName) + void OnSuccessResponse_13(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { VerifyOrReturn(CheckValue("status", status, 139)); @@ -44250,7 +44910,7 @@ class TestGroupsCluster : public TestCommand NextTest(); } - CHIP_ERROR TestViewGroup2StillRemoved_13() + CHIP_ERROR TestViewGroup2StillRemoved_14() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; @@ -44259,20 +44919,20 @@ class TestGroupsCluster : public TestCommand request.groupId = 4369U; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_13(data.status, data.groupId, data.groupName); + (static_cast(context))->OnSuccessResponse_14(data.status, data.groupId, data.groupName); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_14(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_13(uint8_t status, uint16_t groupId, chip::CharSpan groupName) + void OnSuccessResponse_14(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { VerifyOrReturn(CheckValue("status", status, 139)); @@ -44281,7 +44941,7 @@ class TestGroupsCluster : public TestCommand NextTest(); } - CHIP_ERROR TestViewGroup3Removed_14() + CHIP_ERROR TestViewGroup3Removed_15() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::Groups::Commands::ViewGroup::Type; @@ -44290,20 +44950,20 @@ class TestGroupsCluster : public TestCommand request.groupId = 32767U; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_14(data.status, data.groupId, data.groupName); + (static_cast(context))->OnSuccessResponse_15(data.status, data.groupId, data.groupName); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_15(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_15(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_14(uint8_t status, uint16_t groupId, chip::CharSpan groupName) + void OnSuccessResponse_15(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { VerifyOrReturn(CheckValue("status", status, 139)); @@ -44344,16 +45004,20 @@ class TestOperationalCredentialsCluster : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Read number of supported fabrics\n"); - err = TestReadNumberOfSupportedFabrics_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 : Read number of commissioned fabrics\n"); - err = TestReadNumberOfCommissionedFabrics_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Read number of supported fabrics\n"); + err = TestReadNumberOfSupportedFabrics_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Read current fabric index\n"); - err = TestReadCurrentFabricIndex_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Read number of commissioned fabrics\n"); + err = TestReadNumberOfCommissionedFabrics_2(); + break; + case 3: + ChipLogProgress(chipTool, " ***** Test Step 3 : Read current fabric index\n"); + err = TestReadCurrentFabricIndex_3(); break; } @@ -44366,55 +45030,57 @@ class TestOperationalCredentialsCluster : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 3; + const uint16_t mTestCount = 4; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint8_t supportedFabrics) + static void OnSuccessCallback_1(void * context, uint8_t supportedFabrics) { - (static_cast(context))->OnSuccessResponse_0(supportedFabrics); + (static_cast(context))->OnSuccessResponse_1(supportedFabrics); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint8_t commissionedFabrics) + static void OnSuccessCallback_2(void * context, uint8_t commissionedFabrics) { - (static_cast(context))->OnSuccessResponse_1(commissionedFabrics); + (static_cast(context))->OnSuccessResponse_2(commissionedFabrics); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, chip::FabricIndex currentFabricIndex) + static void OnSuccessCallback_3(void * context, chip::FabricIndex currentFabricIndex) { - (static_cast(context))->OnSuccessResponse_2(currentFabricIndex); + (static_cast(context))->OnSuccessResponse_3(currentFabricIndex); } // // Tests methods // - CHIP_ERROR TestReadNumberOfSupportedFabrics_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadNumberOfSupportedFabrics_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::OperationalCredentialsClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint8_t supportedFabrics) + void OnSuccessResponse_1(uint8_t supportedFabrics) { VerifyOrReturn(CheckConstraintType("supportedFabrics", "", "uint8")); VerifyOrReturn(CheckConstraintMinValue("supportedFabrics", supportedFabrics, 4)); @@ -44422,19 +45088,19 @@ class TestOperationalCredentialsCluster : public TestCommand NextTest(); } - CHIP_ERROR TestReadNumberOfCommissionedFabrics_1() + CHIP_ERROR TestReadNumberOfCommissionedFabrics_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::OperationalCredentialsClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_1, OnFailureCallback_1); + this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(uint8_t commissionedFabrics) + void OnSuccessResponse_2(uint8_t commissionedFabrics) { VerifyOrReturn(CheckConstraintType("commissionedFabrics", "", "uint8")); VerifyOrReturn(CheckConstraintMinValue("commissionedFabrics", commissionedFabrics, 1)); @@ -44442,19 +45108,19 @@ class TestOperationalCredentialsCluster : public TestCommand NextTest(); } - CHIP_ERROR TestReadCurrentFabricIndex_2() + CHIP_ERROR TestReadCurrentFabricIndex_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::OperationalCredentialsClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(chip::FabricIndex currentFabricIndex) + void OnSuccessResponse_3(chip::FabricIndex currentFabricIndex) { VerifyOrReturn(CheckConstraintType("currentFabricIndex", "", "uint8")); VerifyOrReturn(CheckConstraintMinValue("currentFabricIndex", currentFabricIndex, 1)); @@ -44494,36 +45160,40 @@ class TestModeSelectCluster : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Read CurrentMode\n"); - err = TestReadCurrentMode_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 : Read OnMode\n"); - err = TestReadOnMode_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Read CurrentMode\n"); + err = TestReadCurrentMode_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Read StartUpMode\n"); - err = TestReadStartUpMode_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Read OnMode\n"); + err = TestReadOnMode_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Read Description\n"); - err = TestReadDescription_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Read StartUpMode\n"); + err = TestReadStartUpMode_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Read SupportedModes\n"); - err = TestReadSupportedModes_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Read Description\n"); + err = TestReadDescription_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Change to Supported Mode\n"); - err = TestChangeToSupportedMode_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Read SupportedModes\n"); + err = TestReadSupportedModes_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Verify Current Mode Change\n"); - err = TestVerifyCurrentModeChange_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Change to Supported Mode\n"); + err = TestChangeToSupportedMode_6(); break; case 7: - ChipLogProgress(chipTool, " ***** Test Step 7 : Change to Unsupported Mode\n"); - err = TestChangeToUnsupportedMode_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : Verify Current Mode Change\n"); + err = TestVerifyCurrentModeChange_7(); + break; + case 8: + ChipLogProgress(chipTool, " ***** Test Step 8 : Change to Unsupported Mode\n"); + err = TestChangeToUnsupportedMode_8(); break; } @@ -44536,26 +45206,16 @@ class TestModeSelectCluster : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 8; - - static void OnFailureCallback_0(void * context, EmberAfStatus status) - { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); - } - - static void OnSuccessCallback_0(void * context, uint8_t currentMode) - { - (static_cast(context))->OnSuccessResponse_0(currentMode); - } + const uint16_t mTestCount = 9; static void OnFailureCallback_1(void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint8_t onMode) + static void OnSuccessCallback_1(void * context, uint8_t currentMode) { - (static_cast(context))->OnSuccessResponse_1(onMode); + (static_cast(context))->OnSuccessResponse_1(currentMode); } static void OnFailureCallback_2(void * context, EmberAfStatus status) @@ -44563,9 +45223,9 @@ class TestModeSelectCluster : public TestCommand (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint8_t startUpMode) + static void OnSuccessCallback_2(void * context, uint8_t onMode) { - (static_cast(context))->OnSuccessResponse_2(startUpMode); + (static_cast(context))->OnSuccessResponse_2(onMode); } static void OnFailureCallback_3(void * context, EmberAfStatus status) @@ -44573,9 +45233,9 @@ class TestModeSelectCluster : public TestCommand (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, chip::CharSpan description) + static void OnSuccessCallback_3(void * context, uint8_t startUpMode) { - (static_cast(context))->OnSuccessResponse_3(description); + (static_cast(context))->OnSuccessResponse_3(startUpMode); } static void OnFailureCallback_4(void * context, EmberAfStatus status) @@ -44583,117 +45243,129 @@ class TestModeSelectCluster : public TestCommand (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_4( + static void OnSuccessCallback_4(void * context, chip::CharSpan description) + { + (static_cast(context))->OnSuccessResponse_4(description); + } + + static void OnFailureCallback_5(void * context, EmberAfStatus status) + { + (static_cast(context))->OnFailureResponse_5(chip::to_underlying(status)); + } + + static void OnSuccessCallback_5( void * context, const chip::app::DataModel::DecodableList & supportedModes) { - (static_cast(context))->OnSuccessResponse_4(supportedModes); + (static_cast(context))->OnSuccessResponse_5(supportedModes); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_7(chip::to_underlying(status)); } - static void OnSuccessCallback_6(void * context, uint8_t currentMode) + static void OnSuccessCallback_7(void * context, uint8_t currentMode) { - (static_cast(context))->OnSuccessResponse_6(currentMode); + (static_cast(context))->OnSuccessResponse_7(currentMode); } // // Tests methods // - CHIP_ERROR TestReadCurrentMode_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadCurrentMode_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ModeSelectClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_0, - OnFailureCallback_0); + return cluster.ReadAttribute(this, OnSuccessCallback_1, + OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0(uint8_t currentMode) + void OnSuccessResponse_1(uint8_t currentMode) { VerifyOrReturn(CheckValue("currentMode", currentMode, 0)); NextTest(); } - CHIP_ERROR TestReadOnMode_1() + CHIP_ERROR TestReadOnMode_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ModeSelectClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(uint8_t onMode) + void OnSuccessResponse_2(uint8_t onMode) { VerifyOrReturn(CheckValue("onMode", onMode, 0)); NextTest(); } - CHIP_ERROR TestReadStartUpMode_2() + CHIP_ERROR TestReadStartUpMode_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ModeSelectClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_2, - OnFailureCallback_2); + return cluster.ReadAttribute(this, OnSuccessCallback_3, + OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(uint8_t startUpMode) + void OnSuccessResponse_3(uint8_t startUpMode) { VerifyOrReturn(CheckValue("startUpMode", startUpMode, 0)); NextTest(); } - CHIP_ERROR TestReadDescription_3() + CHIP_ERROR TestReadDescription_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ModeSelectClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_3, - OnFailureCallback_3); + return cluster.ReadAttribute(this, OnSuccessCallback_4, + OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(chip::CharSpan description) + void OnSuccessResponse_4(chip::CharSpan description) { VerifyOrReturn(CheckValueAsString("description", description, chip::CharSpan("Coffee", 6))); NextTest(); } - CHIP_ERROR TestReadSupportedModes_4() + CHIP_ERROR TestReadSupportedModes_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ModeSelectClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_4, OnFailureCallback_4); + this, OnSuccessCallback_5, OnFailureCallback_5); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4( + void OnSuccessResponse_5( const chip::app::DataModel::DecodableList & supportedModes) { @@ -44715,7 +45387,7 @@ class TestModeSelectCluster : public TestCommand NextTest(); } - CHIP_ERROR TestChangeToSupportedMode_5() + CHIP_ERROR TestChangeToSupportedMode_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ModeSelect::Commands::ChangeToMode::Type; @@ -44724,41 +45396,41 @@ class TestModeSelectCluster : public TestCommand request.newMode = 4; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_5(); + (static_cast(context))->OnSuccessResponse_6(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_6(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5() { NextTest(); } + void OnSuccessResponse_6() { NextTest(); } - CHIP_ERROR TestVerifyCurrentModeChange_6() + CHIP_ERROR TestVerifyCurrentModeChange_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::ModeSelectClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_6, - OnFailureCallback_6); + return cluster.ReadAttribute(this, OnSuccessCallback_7, + OnFailureCallback_7); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(uint8_t currentMode) + void OnSuccessResponse_7(uint8_t currentMode) { VerifyOrReturn(CheckValue("currentMode", currentMode, 4)); NextTest(); } - CHIP_ERROR TestChangeToUnsupportedMode_7() + CHIP_ERROR TestChangeToUnsupportedMode_8() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::ModeSelect::Commands::ChangeToMode::Type; @@ -44767,24 +45439,24 @@ class TestModeSelectCluster : public TestCommand request.newMode = 2; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_7(); + (static_cast(context))->OnSuccessResponse_8(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_8(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_7(uint8_t status) + void OnFailureResponse_8(uint8_t status) { VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } - void OnSuccessResponse_7() { ThrowSuccessResponse(); } + void OnSuccessResponse_8() { ThrowSuccessResponse(); } }; class TestGroupMessaging : public TestCommand @@ -44818,20 +45490,24 @@ class TestGroupMessaging : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Group Write Attribute\n"); - err = TestGroupWriteAttribute_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 : Read back Attribute\n"); - err = TestReadBackAttribute_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Group Write Attribute\n"); + err = TestGroupWriteAttribute_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Restore initial location value\n"); - err = TestRestoreInitialLocationValue_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Read back Attribute\n"); + err = TestReadBackAttribute_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Read back Attribute\n"); - err = TestReadBackAttribute_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Restore initial location value\n"); + err = TestRestoreInitialLocationValue_3(); + break; + case 4: + ChipLogProgress(chipTool, " ***** Test Step 4 : Read back Attribute\n"); + err = TestReadBackAttribute_4(); break; } @@ -44844,51 +45520,53 @@ class TestGroupMessaging : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 4; + const uint16_t mTestCount = 5; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnDoneCallback_0(void * context) { (static_cast(context))->OnDoneResponse_0(); } + static void OnDoneCallback_1(void * context) { (static_cast(context))->OnDoneResponse_1(); } - static void OnSuccessCallback_0(void * context) { (static_cast(context))->OnSuccessResponse_0(); } + static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, chip::CharSpan location) + static void OnSuccessCallback_2(void * context, chip::CharSpan location) { - (static_cast(context))->OnSuccessResponse_1(location); + (static_cast(context))->OnSuccessResponse_2(location); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnDoneCallback_2(void * context) { (static_cast(context))->OnDoneResponse_2(); } + static void OnDoneCallback_3(void * context) { (static_cast(context))->OnDoneResponse_3(); } - static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } + static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_4(chip::to_underlying(status)); } - static void OnSuccessCallback_3(void * context, chip::CharSpan location) + static void OnSuccessCallback_4(void * context, chip::CharSpan location) { - (static_cast(context))->OnSuccessResponse_3(location); + (static_cast(context))->OnSuccessResponse_4(location); } // // Tests methods // - CHIP_ERROR TestGroupWriteAttribute_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestGroupWriteAttribute_1() { const chip::GroupId groupId = 1234; chip::Controller::BasicClusterTest cluster; @@ -44898,35 +45576,35 @@ class TestGroupMessaging : public TestCommand locationArgument = chip::Span("usgarbage: not in length on purpose", 2); return cluster.WriteAttribute( - locationArgument, this, OnSuccessCallback_0, OnFailureCallback_0, OnDoneCallback_0); + locationArgument, this, OnSuccessCallback_1, OnFailureCallback_1, OnDoneCallback_1); } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - void OnDoneResponse_0() { NextTest(); } + void OnDoneResponse_1() { NextTest(); } - CHIP_ERROR TestReadBackAttribute_1() + CHIP_ERROR TestReadBackAttribute_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_1, - OnFailureCallback_1); + return cluster.ReadAttribute(this, OnSuccessCallback_2, + OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(chip::CharSpan location) + void OnSuccessResponse_2(chip::CharSpan location) { VerifyOrReturn(CheckValueAsString("location", location, chip::CharSpan("us", 2))); NextTest(); } - CHIP_ERROR TestRestoreInitialLocationValue_2() + CHIP_ERROR TestRestoreInitialLocationValue_3() { const chip::GroupId groupId = 1234; chip::Controller::BasicClusterTest cluster; @@ -44936,28 +45614,28 @@ class TestGroupMessaging : public TestCommand locationArgument = chip::Span("garbage: not in length on purpose", 0); return cluster.WriteAttribute( - locationArgument, this, OnSuccessCallback_2, OnFailureCallback_2, OnDoneCallback_2); + locationArgument, this, OnSuccessCallback_3, OnFailureCallback_3, OnDoneCallback_3); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2() { NextTest(); } + void OnSuccessResponse_3() { NextTest(); } - void OnDoneResponse_2() { NextTest(); } + void OnDoneResponse_3() { NextTest(); } - CHIP_ERROR TestReadBackAttribute_3() + CHIP_ERROR TestReadBackAttribute_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 0; chip::Controller::BasicClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReadAttribute(this, OnSuccessCallback_3, - OnFailureCallback_3); + return cluster.ReadAttribute(this, OnSuccessCallback_4, + OnFailureCallback_4); } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3(chip::CharSpan location) + void OnSuccessResponse_4(chip::CharSpan location) { VerifyOrReturn(CheckValueAsString("location", location, chip::CharSpan("", 0))); @@ -44996,16 +45674,20 @@ class Test_TC_DIAGSW_1_1 : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Reads CurrentHeapFree non-global attribute value from DUT\n"); - err = TestReadsCurrentHeapFreeNonGlobalAttributeValueFromDut_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 : Reads CurrentHeapUsed non-global attribute value from DUT\n"); - err = TestReadsCurrentHeapUsedNonGlobalAttributeValueFromDut_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Reads CurrentHeapFree non-global attribute value from DUT\n"); + err = TestReadsCurrentHeapFreeNonGlobalAttributeValueFromDut_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Reads CurrentHeapHighWaterMark non-global attribute value from DUT\n"); - err = TestReadsCurrentHeapHighWaterMarkNonGlobalAttributeValueFromDut_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Reads CurrentHeapUsed non-global attribute value from DUT\n"); + err = TestReadsCurrentHeapUsedNonGlobalAttributeValueFromDut_2(); + break; + case 3: + ChipLogProgress(chipTool, " ***** Test Step 3 : Reads CurrentHeapHighWaterMark non-global attribute value from DUT\n"); + err = TestReadsCurrentHeapHighWaterMarkNonGlobalAttributeValueFromDut_3(); break; } @@ -45018,102 +45700,104 @@ class Test_TC_DIAGSW_1_1 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 3; + const uint16_t mTestCount = 4; - static void OnFailureCallback_0(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); } - static void OnSuccessCallback_0(void * context, uint64_t currentHeapFree) + static void OnSuccessCallback_1(void * context, uint64_t currentHeapFree) { - (static_cast(context))->OnSuccessResponse_0(currentHeapFree); + (static_cast(context))->OnSuccessResponse_1(currentHeapFree); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); } - static void OnSuccessCallback_1(void * context, uint64_t currentHeapUsed) + static void OnSuccessCallback_2(void * context, uint64_t currentHeapUsed) { - (static_cast(context))->OnSuccessResponse_1(currentHeapUsed); + (static_cast(context))->OnSuccessResponse_2(currentHeapUsed); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(chip::to_underlying(status)); + (static_cast(context))->OnFailureResponse_3(chip::to_underlying(status)); } - static void OnSuccessCallback_2(void * context, uint64_t currentHeapHighWatermark) + static void OnSuccessCallback_3(void * context, uint64_t currentHeapHighWatermark) { - (static_cast(context))->OnSuccessResponse_2(currentHeapHighWatermark); + (static_cast(context))->OnSuccessResponse_3(currentHeapHighWatermark); } // // Tests methods // - CHIP_ERROR TestReadsCurrentHeapFreeNonGlobalAttributeValueFromDut_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestReadsCurrentHeapFreeNonGlobalAttributeValueFromDut_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::SoftwareDiagnosticsClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_0, OnFailureCallback_0); + this, OnSuccessCallback_1, OnFailureCallback_1); } - void OnFailureResponse_0(uint8_t status) + void OnFailureResponse_1(uint8_t status) { (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); } - void OnSuccessResponse_0(uint64_t currentHeapFree) + void OnSuccessResponse_1(uint64_t currentHeapFree) { VerifyOrReturn(CheckConstraintType("currentHeapFree", "", "uint64")); NextTest(); } - CHIP_ERROR TestReadsCurrentHeapUsedNonGlobalAttributeValueFromDut_1() + CHIP_ERROR TestReadsCurrentHeapUsedNonGlobalAttributeValueFromDut_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::SoftwareDiagnosticsClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_1, OnFailureCallback_1); + this, OnSuccessCallback_2, OnFailureCallback_2); } - void OnFailureResponse_1(uint8_t status) + void OnFailureResponse_2(uint8_t status) { (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); } - void OnSuccessResponse_1(uint64_t currentHeapUsed) + void OnSuccessResponse_2(uint64_t currentHeapUsed) { VerifyOrReturn(CheckConstraintType("currentHeapUsed", "", "uint64")); NextTest(); } - CHIP_ERROR TestReadsCurrentHeapHighWaterMarkNonGlobalAttributeValueFromDut_2() + CHIP_ERROR TestReadsCurrentHeapHighWaterMarkNonGlobalAttributeValueFromDut_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::SoftwareDiagnosticsClusterTest cluster; cluster.Associate(mDevice, endpoint); return cluster.ReadAttribute( - this, OnSuccessCallback_2, OnFailureCallback_2); + this, OnSuccessCallback_3, OnFailureCallback_3); } - void OnFailureResponse_2(uint8_t status) + void OnFailureResponse_3(uint8_t status) { (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); } - void OnSuccessResponse_2(uint64_t currentHeapHighWatermark) + void OnSuccessResponse_3(uint64_t currentHeapHighWatermark) { VerifyOrReturn(CheckConstraintType("currentHeapHighWatermark", "", "uint64")); @@ -45199,6 +45883,10 @@ class Test_TC_DIAGSW_3_2 : public TestCommand // 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; } if (CHIP_NO_ERROR != err) @@ -45210,11 +45898,13 @@ class Test_TC_DIAGSW_3_2 : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 0; + const uint16_t mTestCount = 1; // // Tests methods // + + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } }; class TestSubscribe_OnOff : public TestCommand @@ -45248,32 +45938,36 @@ class TestSubscribe_OnOff : public TestCommand switch (mTestIndex++) { case 0: - ChipLogProgress(chipTool, " ***** Test Step 0 : Set OnOff Attribute to false\n"); - err = TestSetOnOffAttributeToFalse_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 : Report: Subscribe OnOff Attribute\n"); - err = TestReportSubscribeOnOffAttribute_1(); + ChipLogProgress(chipTool, " ***** Test Step 1 : Set OnOff Attribute to false\n"); + err = TestSetOnOffAttributeToFalse_1(); break; case 2: - ChipLogProgress(chipTool, " ***** Test Step 2 : Subscribe OnOff Attribute\n"); - err = TestSubscribeOnOffAttribute_2(); + ChipLogProgress(chipTool, " ***** Test Step 2 : Report: Subscribe OnOff Attribute\n"); + err = TestReportSubscribeOnOffAttribute_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : Turn On the light to see attribute change\n"); - err = TestTurnOnTheLightToSeeAttributeChange_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : Subscribe OnOff Attribute\n"); + err = TestSubscribeOnOffAttribute_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : Check for attribute report\n"); - err = TestCheckForAttributeReport_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : Turn On the light to see attribute change\n"); + err = TestTurnOnTheLightToSeeAttributeChange_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : Turn Off the light to see attribute change\n"); - err = TestTurnOffTheLightToSeeAttributeChange_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : Check for attribute report\n"); + err = TestCheckForAttributeReport_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : Check for attribute report\n"); - err = TestCheckForAttributeReport_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : Turn Off the light to see attribute change\n"); + err = TestTurnOffTheLightToSeeAttributeChange_6(); + break; + case 7: + ChipLogProgress(chipTool, " ***** Test Step 7 : Check for attribute report\n"); + err = TestCheckForAttributeReport_7(); break; } @@ -45286,68 +45980,70 @@ class TestSubscribe_OnOff : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 7; + const uint16_t mTestCount = 8; - chip::Callback::Callback mOnFailureCallback_1{ OnFailureCallback_1, this }; - chip::Callback::Callback mOnSuccessCallback_1{ OnSuccessCallback_1, this }; chip::Callback::Callback mOnFailureCallback_2{ OnFailureCallback_2, this }; chip::Callback::Callback mOnSuccessCallback_2{ OnSuccessCallback_2, this }; - chip::Callback::Callback mOnFailureCallback_4{ OnFailureCallback_4, this }; - chip::Callback::Callback mOnSuccessCallback_4{ OnSuccessCallback_4, this }; - chip::Callback::Callback mOnFailureCallback_6{ OnFailureCallback_6, this }; - chip::Callback::Callback mOnSuccessCallback_6{ OnSuccessCallback_6, this }; + chip::Callback::Callback mOnFailureCallback_3{ OnFailureCallback_3, this }; + chip::Callback::Callback mOnSuccessCallback_3{ OnSuccessCallback_3, this }; + chip::Callback::Callback mOnFailureCallback_5{ OnFailureCallback_5, this }; + chip::Callback::Callback mOnSuccessCallback_5{ OnSuccessCallback_5, this }; + chip::Callback::Callback mOnFailureCallback_7{ OnFailureCallback_7, this }; + chip::Callback::Callback mOnSuccessCallback_7{ OnSuccessCallback_7, this }; - static void OnFailureCallback_1(void * context, uint8_t status) + static void OnFailureCallback_2(void * context, uint8_t status) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_2(status); } - static void OnSuccessCallback_1(void * context, bool onOff) + static void OnSuccessCallback_2(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_1(onOff); + (static_cast(context))->OnSuccessResponse_2(onOff); } - bool mReceivedReport_1 = false; + bool mReceivedReport_2 = false; - static void OnFailureCallback_2(void * context, uint8_t status) + static void OnFailureCallback_3(void * context, uint8_t status) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_3(status); } - static void OnSuccessCallback_2(void * context, bool onOff) + static void OnSuccessCallback_3(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_2(onOff); + (static_cast(context))->OnSuccessResponse_3(onOff); } - static void OnFailureCallback_4(void * context, uint8_t status) + static void OnFailureCallback_5(void * context, uint8_t status) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_5(status); } - static void OnSuccessCallback_4(void * context, bool onOff) + static void OnSuccessCallback_5(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_4(onOff); + (static_cast(context))->OnSuccessResponse_5(onOff); } - bool mReceivedReport_4 = false; + bool mReceivedReport_5 = false; - static void OnFailureCallback_6(void * context, uint8_t status) + static void OnFailureCallback_7(void * context, uint8_t status) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_7(status); } - static void OnSuccessCallback_6(void * context, bool onOff) + static void OnSuccessCallback_7(void * context, bool onOff) { - (static_cast(context))->OnSuccessResponse_6(onOff); + (static_cast(context))->OnSuccessResponse_7(onOff); } - bool mReceivedReport_6 = false; + bool mReceivedReport_7 = false; // // Tests methods // - CHIP_ERROR TestSetOnOffAttributeToFalse_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() { return WaitForCommissionee(); } + + CHIP_ERROR TestSetOnOffAttributeToFalse_1() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -45355,43 +46051,43 @@ class TestSubscribe_OnOff : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_0(); + (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_0(status); + (static_cast(context))->OnFailureResponse_1(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_0() { NextTest(); } + void OnSuccessResponse_1() { NextTest(); } - CHIP_ERROR TestReportSubscribeOnOffAttribute_1() + CHIP_ERROR TestReportSubscribeOnOffAttribute_2() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - ReturnErrorOnFailure(cluster.ReportAttributeOnOff(mOnSuccessCallback_1.Cancel())); + ReturnErrorOnFailure(cluster.ReportAttributeOnOff(mOnSuccessCallback_2.Cancel())); return WaitForMs(0); } - void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_1(bool onOff) + void OnSuccessResponse_2(bool onOff) { - VerifyOrReturn(mReceivedReport_1 == false, ChipLogError(chipTool, "Not Fatal: on report called more than once.")); - mReceivedReport_1 = true; + VerifyOrReturn(mReceivedReport_2 == false, ChipLogError(chipTool, "Not Fatal: on report called more than once.")); + mReceivedReport_2 = true; VerifyOrReturn(CheckValue("onOff", onOff, false)); } - CHIP_ERROR TestSubscribeOnOffAttribute_2() + CHIP_ERROR TestSubscribeOnOffAttribute_3() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; @@ -45402,20 +46098,20 @@ class TestSubscribe_OnOff : public TestCommand uint16_t maxIntervalArgument; maxIntervalArgument = 10U; - return cluster.SubscribeAttributeOnOff(mOnSuccessCallback_2.Cancel(), mOnFailureCallback_2.Cancel(), minIntervalArgument, + return cluster.SubscribeAttributeOnOff(mOnSuccessCallback_3.Cancel(), mOnFailureCallback_3.Cancel(), minIntervalArgument, maxIntervalArgument); } - void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_2(bool onOff) + void OnSuccessResponse_3(bool onOff) { - VerifyOrReturn(mReceivedReport_1, Exit("Initial report not received!")); + VerifyOrReturn(mReceivedReport_2, Exit("Initial report not received!")); NextTest(); } - CHIP_ERROR TestTurnOnTheLightToSeeAttributeChange_3() + CHIP_ERROR TestTurnOnTheLightToSeeAttributeChange_4() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; @@ -45423,43 +46119,43 @@ class TestSubscribe_OnOff : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_3(); + (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_4(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_3() { NextTest(); } + void OnSuccessResponse_4() { NextTest(); } - CHIP_ERROR TestCheckForAttributeReport_4() + CHIP_ERROR TestCheckForAttributeReport_5() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReportAttributeOnOff(mOnSuccessCallback_4.Cancel()); + return cluster.ReportAttributeOnOff(mOnSuccessCallback_5.Cancel()); } - void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_4(bool onOff) + void OnSuccessResponse_5(bool onOff) { - VerifyOrReturn(mReceivedReport_4 == false, ChipLogError(chipTool, "Not Fatal: on report called more than once.")); - mReceivedReport_4 = true; + VerifyOrReturn(mReceivedReport_5 == false, ChipLogError(chipTool, "Not Fatal: on report called more than once.")); + mReceivedReport_5 = true; VerifyOrReturn(CheckValue("onOff", onOff, true)); NextTest(); } - CHIP_ERROR TestTurnOffTheLightToSeeAttributeChange_5() + CHIP_ERROR TestTurnOffTheLightToSeeAttributeChange_6() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; @@ -45467,36 +46163,36 @@ class TestSubscribe_OnOff : public TestCommand RequestType request; auto success = [](void * context, const typename RequestType::ResponseType & data) { - (static_cast(context))->OnSuccessResponse_5(); + (static_cast(context))->OnSuccessResponse_6(); }; auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_6(status); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevice, this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_5() { NextTest(); } + void OnSuccessResponse_6() { NextTest(); } - CHIP_ERROR TestCheckForAttributeReport_6() + CHIP_ERROR TestCheckForAttributeReport_7() { const chip::EndpointId endpoint = mEndpointId.HasValue() ? mEndpointId.Value() : 1; chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, endpoint); - return cluster.ReportAttributeOnOff(mOnSuccessCallback_6.Cancel()); + return cluster.ReportAttributeOnOff(mOnSuccessCallback_7.Cancel()); } - void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } + void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } - void OnSuccessResponse_6(bool onOff) + void OnSuccessResponse_7(bool onOff) { - VerifyOrReturn(mReceivedReport_6 == false, ChipLogError(chipTool, "Not Fatal: on report called more than once.")); - mReceivedReport_6 = true; + VerifyOrReturn(mReceivedReport_7 == false, ChipLogError(chipTool, "Not Fatal: on report called more than once.")); + mReceivedReport_7 = true; VerifyOrReturn(CheckValue("onOff", onOff, false));