Skip to content

Commit

Permalink
convert from nl_unit_test to pw_unit_test: setup_payload (project-chi…
Browse files Browse the repository at this point in the history
…p#33079)

* converting 3 minimal mDNS unit tests from NL_unit to pw_unit

* convert from nl_unit_test to pw_unit_test: setup_payload

* Revert "converting 3 minimal mDNS unit tests from NL_unit to pw_unit"

This reverts commit 4271f3f.

* Restyle

---------

Co-authored-by: Andrei Litvin <[email protected]>
  • Loading branch information
Alami-Amine and andreilitvin authored Apr 22, 2024
1 parent 479d243 commit f084d65
Show file tree
Hide file tree
Showing 6 changed files with 287 additions and 392 deletions.
1 change: 1 addition & 0 deletions src/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ if (chip_build_tests) {
chip_device_platform != "efr32") {
tests += [
"${chip_root}/src/setup_payload/tests",
"${chip_root}/src/setup_payload/tests:tests_nltest",
"${chip_root}/src/transport/raw/tests",
]
}
Expand Down
21 changes: 19 additions & 2 deletions src/setup_payload/tests/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,33 @@
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")

chip_test_suite_using_nltest("tests") {
chip_test_suite("tests") {
output_name = "libSetupPayloadTests"

test_sources = [
"TestAdditionalDataPayload.cpp",
"TestManualCode.cpp",
"TestQRCode.cpp",
]

sources = [ "TestHelpers.h" ]

cflags = [ "-Wconversion" ]

public_deps = [
"${chip_root}/src/platform",
"${chip_root}/src/setup_payload",
]
}

chip_test_suite_using_nltest("tests_nltest") {
output_name = "libSetupPayloadTestsNL"

test_sources = [
"TestAdditionalDataPayload.cpp",
"TestQRCodeTLV.cpp",
]

Expand Down
Loading

0 comments on commit f084d65

Please sign in to comment.