Skip to content

Commit f084d65

Browse files
convert from nl_unit_test to pw_unit_test: setup_payload (#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 <andreilitvin@google.com>
1 parent 479d243 commit f084d65

File tree

6 files changed

+287
-392
lines changed

6 files changed

+287
-392
lines changed

src/BUILD.gn

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ if (chip_build_tests) {
8686
chip_device_platform != "efr32") {
8787
tests += [
8888
"${chip_root}/src/setup_payload/tests",
89+
"${chip_root}/src/setup_payload/tests:tests_nltest",
8990
"${chip_root}/src/transport/raw/tests",
9091
]
9192
}

src/setup_payload/tests/BUILD.gn

+19-2
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,33 @@
1515
import("//build_overrides/build.gni")
1616
import("//build_overrides/chip.gni")
1717
import("//build_overrides/nlunit_test.gni")
18+
import("//build_overrides/pigweed.gni")
1819

1920
import("${chip_root}/build/chip/chip_test_suite.gni")
2021

21-
chip_test_suite_using_nltest("tests") {
22+
chip_test_suite("tests") {
2223
output_name = "libSetupPayloadTests"
2324

2425
test_sources = [
25-
"TestAdditionalDataPayload.cpp",
2626
"TestManualCode.cpp",
2727
"TestQRCode.cpp",
28+
]
29+
30+
sources = [ "TestHelpers.h" ]
31+
32+
cflags = [ "-Wconversion" ]
33+
34+
public_deps = [
35+
"${chip_root}/src/platform",
36+
"${chip_root}/src/setup_payload",
37+
]
38+
}
39+
40+
chip_test_suite_using_nltest("tests_nltest") {
41+
output_name = "libSetupPayloadTestsNL"
42+
43+
test_sources = [
44+
"TestAdditionalDataPayload.cpp",
2845
"TestQRCodeTLV.cpp",
2946
]
3047

0 commit comments

Comments
 (0)