Skip to content

Conversation

@LyudmilaKostanyan
Copy link
Contributor

@LyudmilaKostanyan LyudmilaKostanyan commented Dec 5, 2025

Summary

Refactored the chip::app::Testing namespace to chip::Testing across the codebase to simplify the namespace hierarchy and improve code organization. Additionally, updated remaining chip::Test references to chip::Testing for consistency.

Note: These are minimal changes required to make the code compile successfully.

The refactoring involved:

  • Moving namespace declarations from chip::app::Testing to chip::Testing in all testing utility files
  • Updating all references from chip::app::Testing to chip::Testing throughout the codebase
  • Replacing remaining chip::Test namespace references with chip::Testing where found

Related issues

#42186

Testing

  • Verified compilation succeeds
  • No functional changes, only namespace refactoring

LyudmilaKostanyan and others added 30 commits November 27, 2025 13:36
…e files for consistency in test context usage.
…ip::Testing` for improved consistency and clarity in test context usage.
…ip::Testing` for improved consistency and clarity in test context usage.
…hancing clarity and uniformity in test context usage across multiple test files.
…tently use `chip::Testing` namespace, enhancing clarity and uniformity in test context usage.
…ncing clarity and uniformity in test context usage across various components.
…proving clarity and uniformity in test context usage across DataModelFixtures, TestRead, and TestCodeDrivenDataModelProvider components.
…ip::Testing`, ensuring consistency and clarity in test context usage across various components.
…space chip::Testing`, ensuring consistency in test context usage across the file.
…ispatchPath` functions, enhancing clarity and uniformity in test context usage across TestServerClusterShim and TestICDManager components.
…ctly, enhancing consistency in test context usage.
…ontext`, improving consistency in test context usage.
…::Status` directly, improving consistency in status handling within tests.
@LyudmilaKostanyan
Copy link
Contributor Author

/gemini review

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the testing namespace hierarchy across the codebase, consolidating chip::app::Testing and chip::Test namespaces into a unified chip::Testing namespace. This simplification improves code organization and consistency across the SDK's testing infrastructure.

Key Changes:

  • Moved namespace declarations from chip::app::Testing to chip::Testing in testing utility files
  • Updated all chip::Test references to chip::Testing for consistency
  • Added explicit app:: prefixes to app-specific types in testing utilities that moved out of the chip::app namespace

Reviewed changes

Copilot reviewed 30 out of 30 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/messaging/tests/java/MessagingContext-JNI.cpp Updated namespace from chip::Test to chip::Testing
src/data-model-providers/codegen/tests/TestCodegenModelViaMocks.cpp Replaced chip::app::Testing with chip::Testing; introduced duplicate using statement
src/data-model-providers/codedriven/tests/TestCodeDrivenDataModelProvider.cpp Updated namespace and added :: prefix to disambiguate global TestProviderChangeListener class
src/credentials/tests/jcm/TestVendorIdVerificationClient.cpp Migrated from chip::Test to chip::Testing; removed redundant local using statements
src/credentials/tests/jcm/TestTrustVerification.cpp Updated AppContext base class reference to chip::Testing::AppContext
src/controller/tests/jcm/TestJCMCommissioner.cpp Updated namespace from chip::Test to chip::Testing throughout
src/controller/tests/TestAutoCommissioner.cpp Changed namespace from chip::Test to chip::Testing
src/controller/tests/AutoCommissionerTestAccess.h Renamed namespace from chip::Test to chip::Testing
src/controller/java/AndroidCallbacks-ForTestJNI.cpp Updated namespace from chip::Test to chip::Testing
src/controller/AutoCommissioner.h Updated friend class and namespace declarations to use chip::Testing
src/ble/tests/TestBleLayer.cpp Updated BleLayerTestAccess references; removed redundant chip:: prefixes within chip namespace
src/ble/tests/BleLayerTestAccess.h Renamed namespace from chip::Test to chip::Testing
src/ble/BleLayer.h Updated friend class and namespace declarations to use chip::Testing
src/app/server-cluster/tests/TestDefaultServerCluster.cpp Replaced chip::app::Testing with chip::Testing
src/app/persistence/tests/TestAttributePersistence.cpp Updated namespace from chip::app::Testing to chip::Testing
src/app/data-model-provider/tests/WriteTesting.h Moved namespace from chip::app::Testing to chip::Testing; added app:: prefixes to types; exposes pre-existing missing return statement bug
src/app/data-model-provider/tests/TestConstants.h Moved namespace from chip::app::Testing to chip::Testing
src/app/data-model-provider/tests/ReadTesting.h Moved namespace from chip::app::Testing to chip::Testing; added app:: prefixes
src/app/data-model-provider/tests/ReadTesting.cpp Updated namespace and added app:: prefixes throughout
src/app/clusters/zone-management-server/tests/TestZonePolygon.cpp Updated namespace from chip::Test to chip::Testing
src/app/clusters/testing/MockCommandHandler.h Moved from chip::app::Testing to chip::Testing; added app:: prefixes
src/app/clusters/testing/MockCommandHandler.cpp Updated namespace and added app:: prefixes
src/app/clusters/testing/ClusterTester.h Updated testing utility references from app::Testing to chip::Testing
src/app/clusters/network-commissioning/tests/TestNetworkCommissioningClusterEthernet.cpp Updated using statements from chip::app::Testing to chip::Testing
src/app/clusters/network-commissioning/tests/TestNetworkCommissioningCluster.cpp Updated using statements from chip::app::Testing to chip::Testing
src/app/clusters/groupcast/tests/TestGroupcastCluster.cpp Updated MockCommandHandler reference to chip::Testing
src/app/clusters/general-diagnostics-server/tests/TestGeneralDiagnosticsCluster.cpp Removed obsolete chip::Test namespace, kept chip::Testing
src/app/clusters/electrical-energy-measurement-server/tests/TestElectricalEnergyMeasurementCluster.cpp Updated ReadOperation references from chip::app::Testing to chip::Testing
examples/common/server-cluster-shim/tests/TestServerClusterShim.cpp Replaced chip::app::Testing with chip::Testing
docs/testing/unit_testing.md Updated documentation to reflect new chip::Testing namespace for TestAccess classes

@github-actions
Copy link

github-actions bot commented Dec 5, 2025

PR #42303: Size comparison from 3ced690 to 71cb499

Full report (35 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section 3ced690 71cb499 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1105860 1105860 0 0.0
RAM 178954 178954 0 0.0
bl702 lighting-app bl702+eth FLASH 660680 660680 0 0.0
RAM 135025 135025 0 0.0
bl702+wifi FLASH 836530 836530 0 0.0
RAM 124485 124485 0 0.0
bl706+mfd+rpc+littlefs FLASH 1070174 1070174 0 0.0
RAM 117341 117341 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 902384 902384 0 0.0
RAM 105932 105932 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 982920 982920 0 0.0
RAM 109844 109844 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 770776 770776 0 0.0
RAM 103392 103392 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 783588 783588 0 0.0
RAM 108712 108712 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 728616 728616 0 0.0
RAM 97452 97452 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 713064 713064 0 0.0
RAM 97660 97660 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 554588 554588 0 0.0
RAM 205472 205472 0 0.0
lock CC3235SF_LAUNCHXL FLASH 588528 588528 0 0.0
RAM 205720 205720 0 0.0
efr32 lock-app BRD4187C FLASH 964748 964748 0 0.0
RAM 123776 123776 0 0.0
BRD4338a FLASH 759072 759072 0 0.0
RAM 254388 254388 0 0.0
window-app BRD4187C FLASH 1059888 1059888 0 0.0
RAM 120004 120004 0 0.0
esp32 all-clusters-app c3devkit DRAM 102804 102804 0 0.0
FLASH 1831066 1831066 0 0.0
IRAM 93540 93540 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 936404 936404 0 0.0
RAM 161720 161720 0 0.0
nxp contact mcxw71+release FLASH 695104 695104 0 0.0
RAM 61744 61744 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1681196 1681196 0 0.0
RAM 214188 214188 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1595692 1595692 0 0.0
RAM 211356 211356 0 0.0
light cy8ckit_062s2_43012 FLASH 1460060 1460060 0 0.0
RAM 197800 197800 0 0.0
lock cy8ckit_062s2_43012 FLASH 1494004 1494004 0 0.0
RAM 225672 225672 0 0.0
qpg lighting-app qpg6200+debug FLASH 838376 838376 0 0.0
RAM 127976 127976 0 0.0
lock-app qpg6200+debug FLASH 775984 775984 0 0.0
RAM 118920 118920 0 0.0
realtek light-switch-app rtl8777g FLASH 708688 708688 0 0.0
RAM 107188 107188 0 0.0
lighting-app rtl8777g FLASH 757392 757392 0 0.0
RAM 127320 127320 0 0.0
stm32 light STM32WB5MM-DK FLASH 470244 470244 0 0.0
RAM 141392 141392 0 0.0
telink bridge-app tl7218x FLASH 703898 703898 0 0.0
RAM 90760 90760 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 790246 790246 0 0.0
RAM 41176 41176 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 781558 781558 0 0.0
RAM 93860 93860 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 710042 710042 0 0.0
RAM 52232 52232 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 745874 745874 0 0.0
RAM 71256 71256 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 720554 720554 0 0.0
RAM 34956 34956 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 602362 602362 0 0.0
RAM 117736 117736 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 815066 815070 4 0.0
RAM 92248 92248 0 0.0

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the chip::app::Testing and chip::Test namespaces to a unified chip::Testing namespace across the codebase. The changes are extensive, touching documentation, test files, and core testing utilities. My review confirms that the refactoring has been applied consistently and correctly. The code is now more organized with a simplified namespace structure. I have no further comments and approve of these changes.

@github-actions
Copy link

github-actions bot commented Dec 8, 2025

PR #42303: Size comparison from efdf99d to f4d8e99

Full report (35 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section efdf99d f4d8e99 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1105860 1105860 0 0.0
RAM 178954 178954 0 0.0
bl702 lighting-app bl702+eth FLASH 660680 660680 0 0.0
RAM 135025 135025 0 0.0
bl702+wifi FLASH 836530 836530 0 0.0
RAM 124485 124485 0 0.0
bl706+mfd+rpc+littlefs FLASH 1070174 1070174 0 0.0
RAM 117341 117341 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 902384 902384 0 0.0
RAM 105932 105932 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 982920 982920 0 0.0
RAM 109844 109844 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 770776 770776 0 0.0
RAM 103392 103392 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 783588 783588 0 0.0
RAM 108712 108712 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 728616 728616 0 0.0
RAM 97452 97452 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 713064 713064 0 0.0
RAM 97660 97660 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 554588 554588 0 0.0
RAM 205472 205472 0 0.0
lock CC3235SF_LAUNCHXL FLASH 588528 588528 0 0.0
RAM 205720 205720 0 0.0
efr32 lock-app BRD4187C FLASH 964748 964748 0 0.0
RAM 123776 123776 0 0.0
BRD4338a FLASH 759072 759072 0 0.0
RAM 254388 254388 0 0.0
window-app BRD4187C FLASH 1059888 1059888 0 0.0
RAM 120004 120004 0 0.0
esp32 all-clusters-app c3devkit DRAM 102812 102812 0 0.0
FLASH 1830854 1830854 0 0.0
IRAM 93540 93540 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 936264 936264 0 0.0
RAM 161724 161724 0 0.0
nxp contact mcxw71+release FLASH 695104 695104 0 0.0
RAM 61744 61744 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1680956 1680956 0 0.0
RAM 214188 214188 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1595436 1595436 0 0.0
RAM 211364 211364 0 0.0
light cy8ckit_062s2_43012 FLASH 1460060 1460060 0 0.0
RAM 197800 197800 0 0.0
lock cy8ckit_062s2_43012 FLASH 1494004 1494004 0 0.0
RAM 225672 225672 0 0.0
qpg lighting-app qpg6200+debug FLASH 838248 838248 0 0.0
RAM 127984 127984 0 0.0
lock-app qpg6200+debug FLASH 775984 775984 0 0.0
RAM 118920 118920 0 0.0
realtek light-switch-app rtl8777g FLASH 708688 708688 0 0.0
RAM 107188 107188 0 0.0
lighting-app rtl8777g FLASH 757392 757392 0 0.0
RAM 127320 127320 0 0.0
stm32 light STM32WB5MM-DK FLASH 470244 470244 0 0.0
RAM 141392 141392 0 0.0
telink bridge-app tl7218x FLASH 703898 703898 0 0.0
RAM 90760 90760 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 790246 790246 0 0.0
RAM 41176 41176 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 781558 781558 0 0.0
RAM 93860 93860 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 710042 710042 0 0.0
RAM 52232 52232 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 745874 745874 0 0.0
RAM 71256 71256 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 720554 720554 0 0.0
RAM 34956 34956 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 602362 602362 0 0.0
RAM 117736 117736 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 815066 815070 4 0.0
RAM 92248 92248 0 0.0

Copilot AI review requested due to automatic review settings December 8, 2025 17:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 30 out of 30 changed files in this pull request and generated no new comments.

@github-actions
Copy link

github-actions bot commented Dec 8, 2025

PR #42303: Size comparison from f1e7db6 to e741d79

Full report (35 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section f1e7db6 e741d79 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1106542 1106542 0 0.0
RAM 178970 178970 0 0.0
bl702 lighting-app bl702+eth FLASH 661368 661368 0 0.0
RAM 135041 135041 0 0.0
bl702+wifi FLASH 837212 837212 0 0.0
RAM 124501 124501 0 0.0
bl706+mfd+rpc+littlefs FLASH 1070858 1070858 0 0.0
RAM 117357 117357 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 903068 903068 0 0.0
RAM 105948 105948 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 983604 983604 0 0.0
RAM 109860 109860 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 771384 771384 0 0.0
RAM 103400 103400 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 784188 784188 0 0.0
RAM 108728 108728 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 729192 729192 0 0.0
RAM 97468 97468 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 713688 713688 0 0.0
RAM 97676 97676 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 555176 555176 0 0.0
RAM 205480 205480 0 0.0
lock CC3235SF_LAUNCHXL FLASH 589108 589108 0 0.0
RAM 205736 205736 0 0.0
efr32 lock-app BRD4187C FLASH 965388 965388 0 0.0
RAM 123808 123808 0 0.0
BRD4338a FLASH 759944 759944 0 0.0
RAM 254404 254404 0 0.0
window-app BRD4187C FLASH 1060744 1060744 0 0.0
RAM 120004 120004 0 0.0
esp32 all-clusters-app c3devkit DRAM 102820 102820 0 0.0
FLASH 1831564 1831564 0 0.0
IRAM 93540 93540 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 936888 936888 0 0.0
RAM 161736 161736 0 0.0
nxp contact mcxw71+release FLASH 695776 695776 0 0.0
RAM 61776 61776 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1681812 1681812 0 0.0
RAM 214204 214204 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1596292 1596292 0 0.0
RAM 211372 211372 0 0.0
light cy8ckit_062s2_43012 FLASH 1460900 1460900 0 0.0
RAM 197808 197808 0 0.0
lock cy8ckit_062s2_43012 FLASH 1494844 1494844 0 0.0
RAM 225688 225688 0 0.0
qpg lighting-app qpg6200+debug FLASH 838840 838840 0 0.0
RAM 127992 127992 0 0.0
lock-app qpg6200+debug FLASH 776608 776608 0 0.0
RAM 118944 118944 0 0.0
realtek light-switch-app rtl8777g FLASH 709488 709488 0 0.0
RAM 107204 107204 0 0.0
lighting-app rtl8777g FLASH 758168 758168 0 0.0
RAM 127336 127336 0 0.0
stm32 light STM32WB5MM-DK FLASH 470800 470800 0 0.0
RAM 141400 141400 0 0.0
telink bridge-app tl7218x FLASH 704552 704552 0 0.0
RAM 90772 90772 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 790846 790846 0 0.0
RAM 41200 41200 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 782212 782212 0 0.0
RAM 93872 93872 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 710664 710664 0 0.0
RAM 52244 52244 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 746496 746496 0 0.0
RAM 71268 71268 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 721148 721148 0 0.0
RAM 34972 34972 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 602962 602962 0 0.0
RAM 117760 117760 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 815720 815724 4 0.0
RAM 92260 92260 0 0.0

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

PR #42303: Size comparison from 9a96230 to afa05ac

Full report (35 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section 9a96230 afa05ac change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1105616 1105616 0 0.0
RAM 178970 178970 0 0.0
bl702 lighting-app bl702+eth FLASH 660708 660708 0 0.0
RAM 135041 135041 0 0.0
bl702+wifi FLASH 836292 836292 0 0.0
RAM 124501 124501 0 0.0
bl706+mfd+rpc+littlefs FLASH 1070018 1070018 0 0.0
RAM 117373 117373 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 902642 902642 0 0.0
RAM 105948 105948 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 983020 983020 0 0.0
RAM 109876 109876 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 770680 770680 0 0.0
RAM 103400 103400 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 783692 783692 0 0.0
RAM 108728 108728 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 728708 728708 0 0.0
RAM 97468 97468 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 713284 713284 0 0.0
RAM 97676 97676 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 554540 554540 0 0.0
RAM 205480 205480 0 0.0
lock CC3235SF_LAUNCHXL FLASH 588416 588416 0 0.0
RAM 205736 205736 0 0.0
efr32 lock-app BRD4187C FLASH 964880 964880 0 0.0
RAM 123808 123808 0 0.0
BRD4338a FLASH 759312 759312 0 0.0
RAM 254404 254404 0 0.0
window-app BRD4187C FLASH 1060292 1060284 -8 -0.0
RAM 120004 120004 0 0.0
esp32 all-clusters-app c3devkit DRAM 102820 102820 0 0.0
FLASH 1830466 1830466 0 0.0
IRAM 93540 93540 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 936020 936020 0 0.0
RAM 161736 161736 0 0.0
nxp contact mcxw71+release FLASH 695416 695416 0 0.0
RAM 61776 61776 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1680884 1680884 0 0.0
RAM 214204 214204 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1595388 1595388 0 0.0
RAM 211372 211372 0 0.0
light cy8ckit_062s2_43012 FLASH 1460060 1460060 0 0.0
RAM 197808 197808 0 0.0
lock cy8ckit_062s2_43012 FLASH 1494140 1494140 0 0.0
RAM 225688 225688 0 0.0
qpg lighting-app qpg6200+debug FLASH 837996 837996 0 0.0
RAM 127992 127992 0 0.0
lock-app qpg6200+debug FLASH 775980 775980 0 0.0
RAM 118944 118944 0 0.0
realtek light-switch-app rtl8777g FLASH 709000 709000 0 0.0
RAM 107204 107204 0 0.0
lighting-app rtl8777g FLASH 757408 757408 0 0.0
RAM 127336 127336 0 0.0
stm32 light STM32WB5MM-DK FLASH 470048 470048 0 0.0
RAM 141400 141400 0 0.0
telink bridge-app tl7218x FLASH 704336 704336 0 0.0
RAM 90772 90772 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 790494 790494 0 0.0
RAM 41208 41208 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 781858 781858 0 0.0
RAM 93872 93872 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 710474 710474 0 0.0
RAM 52244 52244 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 746306 746306 0 0.0
RAM 71268 71268 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 720960 720960 0 0.0
RAM 34972 34972 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 602602 602602 0 0.0
RAM 117768 117768 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 815376 815380 4 0.0
RAM 92260 92260 0 0.0

Copilot AI review requested due to automatic review settings December 9, 2025 15:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 30 out of 30 changed files in this pull request and generated no new comments.

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

PR #42303: Size comparison from 9809743 to e7891c7

Full report (35 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section 9809743 e7891c7 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1105616 1105616 0 0.0
RAM 178970 178970 0 0.0
bl702 lighting-app bl702+eth FLASH 660708 660708 0 0.0
RAM 135041 135041 0 0.0
bl702+wifi FLASH 836292 836292 0 0.0
RAM 124501 124501 0 0.0
bl706+mfd+rpc+littlefs FLASH 1070018 1070018 0 0.0
RAM 117373 117373 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 902642 902642 0 0.0
RAM 105948 105948 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 983020 983020 0 0.0
RAM 109876 109876 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 770680 770680 0 0.0
RAM 103400 103400 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 783692 783692 0 0.0
RAM 108728 108728 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 728708 728708 0 0.0
RAM 97468 97468 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 713284 713284 0 0.0
RAM 97676 97676 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 554540 554540 0 0.0
RAM 205480 205480 0 0.0
lock CC3235SF_LAUNCHXL FLASH 588416 588416 0 0.0
RAM 205736 205736 0 0.0
efr32 lock-app BRD4187C FLASH 964880 964880 0 0.0
RAM 123808 123808 0 0.0
BRD4338a FLASH 759312 759312 0 0.0
RAM 254404 254404 0 0.0
window-app BRD4187C FLASH 1060292 1060284 -8 -0.0
RAM 120004 120004 0 0.0
esp32 all-clusters-app c3devkit DRAM 102820 102820 0 0.0
FLASH 1830466 1830466 0 0.0
IRAM 93540 93540 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 936020 936020 0 0.0
RAM 161736 161736 0 0.0
nxp contact mcxw71+release FLASH 695416 695416 0 0.0
RAM 61776 61776 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1680884 1680884 0 0.0
RAM 214204 214204 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1595388 1595388 0 0.0
RAM 211372 211372 0 0.0
light cy8ckit_062s2_43012 FLASH 1460060 1460060 0 0.0
RAM 197808 197808 0 0.0
lock cy8ckit_062s2_43012 FLASH 1494140 1494140 0 0.0
RAM 225688 225688 0 0.0
qpg lighting-app qpg6200+debug FLASH 837996 837996 0 0.0
RAM 127992 127992 0 0.0
lock-app qpg6200+debug FLASH 775980 775980 0 0.0
RAM 118944 118944 0 0.0
realtek light-switch-app rtl8777g FLASH 709000 709000 0 0.0
RAM 107204 107204 0 0.0
lighting-app rtl8777g FLASH 757408 757408 0 0.0
RAM 127336 127336 0 0.0
stm32 light STM32WB5MM-DK FLASH 470048 470048 0 0.0
RAM 141400 141400 0 0.0
telink bridge-app tl7218x FLASH 704336 704336 0 0.0
RAM 90772 90772 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 790494 790494 0 0.0
RAM 41208 41208 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 781858 781858 0 0.0
RAM 93872 93872 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 710474 710474 0 0.0
RAM 52244 52244 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 746306 746306 0 0.0
RAM 71268 71268 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 720960 720960 0 0.0
RAM 34972 34972 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 602602 602602 0 0.0
RAM 117768 117768 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 815376 815380 4 0.0
RAM 92260 92260 0 0.0

@andy31415 andy31415 added the sdk-maintainer-approved PR marked by `matter-sdk-maintainers` as suitable for MERGE - meets guideline & sufficient reviews. label Dec 9, 2025
@mergify mergify bot merged commit e1411f0 into project-chip:master Dec 9, 2025
84 of 85 checks passed
juandediosg pushed a commit to juandediosg/connectedhomeip that referenced this pull request Dec 9, 2025
…hip#42303)

* Initial commit

* Refactor test context usage in various cluster tests to use `chip::Testing` namespace instead of `chip::Test`.

* Refactor test cases to use `SetMockNodeConfig` directly from the `Testing` namespace

* Refactor ClusterTester.h

* Update test files to consistently use `chip::Testing` namespace for test context and cluster tester instances.

* Update references from `chip::Test` to `chip::Testing` across multiple files for consistency in test context usage.

* Refactor test files to replace all instances of `chip::Test` with `chip::Testing` for improved consistency and clarity in test context usage.

* Refactor AppTestContext.h

* Refactor test-interaction-model-api.h for improved readability and consistency in formatting.

* Refactor MessagingContext.h to improve code readability

* Refactor test files to replace all instances of `chip::Test` with `chip::Testing` for improved consistency and clarity in test context usage.

* Refactor LoopbackTransport and IOContext classes for improved readability

* Refactor test files to consistently use `chip::Testing` namespace, enhancing clarity and uniformity in test context usage across multiple test files.

* Refactor ICDConfigurationData and related test access class to consistently use `chip::Testing` namespace, enhancing clarity and uniformity in test context usage.

* Update test files to consistently use `chip::Testing` namespace, enhancing clarity and uniformity in test context usage across various components.

* Refactor test files to consistently use `chip::Testing` namespace, improving clarity and uniformity in test context usage across DataModelFixtures, TestRead, and TestCodeDrivenDataModelProvider components.

* Refactor test files to replace all instances of `chip::Test` with `chip::Testing`, ensuring consistency and clarity in test context usage across various components.

* Refactor attribute-storage.cpp to replace `namespace Test` with `namespace chip::Testing`, ensuring consistency in test context usage across the file.

* Restyled by whitespace

* Restyled by clang-format

* Remove unnecessary `using namespace chip::Testing;` from TestRead.cpp, improving clarity in the test context.

* Update TestMessagingLayer to use `chip::Testing` namespace for consistency in test context usage.

* Restyled by clang-format

* Refactor test files to consistently use `DispatchCount` and `GetLastDispatchPath` functions, enhancing clarity and uniformity in test context usage across TestServerClusterShim and TestICDManager components.

* Refactor test-ember-api.h to improve namespace formatting and enhance clarity in the test context usage.

* Refactor TestExchange to use `Testing::LoopbackMessagingContext` directly, enhancing consistency in test context usage.

* Update src/app/util/mock/attribute-storage.cpp

Co-authored-by: Elen777300 <[email protected]>

* Restyled by clang-format

* Refactor TestPASESession to directly use `Testing::LoopbackMessagingContext`, improving consistency in test context usage.

* Refactor TestCodegenModelViaMocks to use `Protocols::InteractionModel::Status` directly, improving consistency in status handling within tests.

* Refactor MockNodeConfig to improve code consistency by replacing `internal::kDefaultStringSize` with `kDefaultStringSize` and streamline constructor initializations in MockClusterConfig and MockEndpointConfig.

* Refactor DataModelFixtures to use `Testing::MockClusterId` and `Testing::MockAttributeId` directly, enhancing consistency in test fixture definitions.

* Refactor TestAclEvent to improve namespace usage and enhance consistency by removing redundant `chip::` prefixes, streamlining access to types and functions within the app namespace.

* Restyled by clang-format

* Remove redundant namespace declaration in attribute-storage.cpp to improve code clarity and maintain consistency in namespace usage.

* Refactor test namespaces for consistency across network commissioning and occupancy sensing clusters.

Update usage of TestServerClusterContext and ClusterTester to the Testing namespace in relevant test files.

* Refactor `DataModelFixtures.h `

* Restyled by clang-format

* Remove unused includes in `TestResourceMonitoringCluster.cpp`

* Refactor namespace usage in `Group Key Management Cluster` tests

* Refactor namespace, initial commit

* Refactor: Move `chip::app::Testing` to `chip::Testing`

Move Testing namespace from chip::app::Testing to chip::Testing across
the codebase.

* Restyled by clang-format

* Refactor: Remove redundant `using namespace chip::Testing;` from `TestCodegenModelViaMocks.cpp`

---------

Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Elen777300 <[email protected]>
Co-authored-by: Andrei Litvin <[email protected]>
@LyudmilaKostanyan LyudmilaKostanyan deleted the Namespaces branch December 10, 2025 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app ble controller documentation Improvements or additions to documentation examples messaging review - pending sdk-maintainer-approved PR marked by `matter-sdk-maintainers` as suitable for MERGE - meets guideline & sufficient reviews. tests

Development

Successfully merging this pull request may close these issues.

Refactor testing namespaces to be consistent

4 participants