Skip to content

Commit

Permalink
Converted unit tests in src/controller/tests/data_model from NL to PW. (
Browse files Browse the repository at this point in the history
#33371)

* Converted src/controller/tests/data_model from NL to PW.

* Updated to accomodate the fact that AppContext and LoopbackMessagingContext now have SetUp/SetUpTestSuite returning void.

* Comment cleanup.

* Reordered tests to fix dependency.

* Formatting

* Formatting

* Added comment warning of order dependence.

* Formatting

* Removed unneeded conditions from SetUpTestSuite/TearDownTestSuite.
  • Loading branch information
feasel0 authored and pull[bot] committed Aug 18, 2024
1 parent ceb5dcb commit cd79b27
Show file tree
Hide file tree
Showing 6 changed files with 1,423 additions and 1,630 deletions.
6 changes: 2 additions & 4 deletions src/controller/tests/data_model/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@

import("//build_overrides/build.gni")
import("//build_overrides/chip.gni")
import("//build_overrides/nlunit_test.gni")
import("//build_overrides/pigweed.gni")

import("${chip_root}/build/chip/chip_test_suite.gni")
import("${chip_root}/src/platform/device.gni")

chip_test_suite_using_nltest("data_model") {
chip_test_suite("data_model") {
output_name = "libDataModelTests"

if (chip_device_platform != "mbed" && chip_device_platform != "efr32" &&
Expand All @@ -35,9 +35,7 @@ chip_test_suite_using_nltest("data_model") {
"${chip_root}/src/app/tests:helpers",
"${chip_root}/src/app/util/mock:mock_ember",
"${chip_root}/src/controller",
"${chip_root}/src/lib/support:testing_nlunit",
"${chip_root}/src/messaging/tests:helpers",
"${chip_root}/src/transport/raw/tests:helpers",
"${nlunit_test_root}:nlunit-test",
]
}
Loading

0 comments on commit cd79b27

Please sign in to comment.