|
12 | 12 | #See the License for the specific language governing permissions and
|
13 | 13 | #limitations under the License.
|
14 | 14 |
|
15 |
| -import("//build_overrides/build.gni") import("//build_overrides/chip.gni") import("//build_overrides/nlunit_test.gni") |
| 15 | +import("//build_overrides/build.gni") |
| 16 | +import("//build_overrides/chip.gni") |
| 17 | +import("//build_overrides/nlunit_test.gni") |
16 | 18 |
|
17 |
| - import("${chip_root}/build/chip/chip_test_suite.gni") |
| 19 | +import("${chip_root}/build/chip/chip_test_suite.gni") |
| 20 | +source_set("helpers") { |
| 21 | + sources = [ |
| 22 | + "LoopbackTransportManager.cpp", |
| 23 | + "LoopbackTransportManager.h", |
| 24 | + "UDPTransportManager.cpp", |
| 25 | + "UDPTransportManager.h", |
| 26 | + ] |
18 | 27 |
|
19 |
| - source_set("helpers"){ sources = |
20 |
| - [ |
21 |
| - "LoopbackTransportManager.cpp", |
22 |
| - "LoopbackTransportManager.h", |
23 |
| - "UDPTransportManager.cpp", |
24 |
| - "UDPTransportManager.h", |
25 |
| - ] |
| 28 | + public_deps = [ |
| 29 | + "${chip_root}/src/transport:transport", |
| 30 | + "${chip_root}/src/transport/raw", |
| 31 | + "${chip_root}/src/transport/raw/tests:helpers", |
| 32 | + ] |
| 33 | +} |
26 | 34 |
|
27 |
| - public_deps = |
28 |
| - [ |
29 |
| - "${chip_root}/src/transport:transport", |
30 |
| - "${chip_root}/src/transport/raw", |
31 |
| - "${chip_root}/src/transport/raw/tests:helpers", |
32 |
| - ] } |
| 35 | +chip_test_suite_using_nltest("tests") { |
| 36 | + output_name = "libTransportLayerTests" |
33 | 37 |
|
34 |
| -chip_test_suite_using_nltest("tests"){ output_name = "libTransportLayerTests" |
| 38 | + test_sources = [ |
| 39 | + "TestCryptoContext.cpp", |
| 40 | + "TestGroupMessageCounter.cpp", |
| 41 | + "TestPeerConnections.cpp", |
| 42 | + "TestPeerMessageCounter.cpp", |
| 43 | + "TestSecureSession.cpp", |
| 44 | + "TestSessionManager.cpp", |
| 45 | + "TestSessionManagerDispatch.cpp", |
| 46 | + ] |
35 | 47 |
|
36 |
| - test_sources = |
37 |
| - [ |
38 |
| - "TestCryptoContext.cpp", |
39 |
| - "TestGroupMessageCounter.cpp", |
40 |
| - "TestPeerConnections.cpp", |
41 |
| - "TestPeerMessageCounter.cpp", |
42 |
| - "TestSecureSession.cpp", |
43 |
| - "TestSessionManager.cpp", |
44 |
| - "TestSessionManagerDispatch.cpp", |
45 |
| - ] |
| 48 | + if (chip_device_platform != "mbed" && chip_device_platform != "efr32" && |
| 49 | + chip_device_platform != "esp32" && chip_device_platform != "nrfconnect" && |
| 50 | + chip_device_platform != "nxp") { |
| 51 | + test_sources += [ "TestSecureSessionTable.cpp" ] |
| 52 | + } |
46 | 53 |
|
47 |
| - if (chip_device_platform != "mbed" && chip_device_platform != "efr32" && |
48 |
| - chip_device_platform != "esp32" && chip_device_platform != "nrfconnect" && |
49 |
| - chip_device_platform != "nxp"){ test_sources += ["TestSecureSessionTable.cpp"] } |
| 54 | + cflags = [ "-Wconversion" ] |
50 | 55 |
|
51 |
| - cflags = ["-Wconversion"] |
52 |
| - |
53 |
| - public_deps = [ |
54 |
| - "${chip_root}/src/credentials", |
55 |
| - "${chip_root}/src/credentials/tests:cert_test_vectors", |
56 |
| - "${chip_root}/src/inet/tests:helpers", |
57 |
| - "${chip_root}/src/lib/core", |
58 |
| - "${chip_root}/src/lib/support", |
59 |
| - "${chip_root}/src/lib/support:testing", |
60 |
| - "${chip_root}/src/lib/support:testing_nlunit", |
61 |
| - "${chip_root}/src/protocols", |
62 |
| - "${chip_root}/src/transport", |
63 |
| - "${chip_root}/src/transport/tests:helpers", |
64 |
| - "${nlunit_test_root}:nlunit-test", |
65 |
| - ] } |
| 56 | + public_deps = [ |
| 57 | + "${chip_root}/src/credentials", |
| 58 | + "${chip_root}/src/credentials/tests:cert_test_vectors", |
| 59 | + "${chip_root}/src/inet/tests:helpers", |
| 60 | + "${chip_root}/src/lib/core", |
| 61 | + "${chip_root}/src/lib/support", |
| 62 | + "${chip_root}/src/lib/support:testing", |
| 63 | + "${chip_root}/src/lib/support:testing_nlunit", |
| 64 | + "${chip_root}/src/protocols", |
| 65 | + "${chip_root}/src/transport", |
| 66 | + "${chip_root}/src/transport/tests:helpers", |
| 67 | + "${nlunit_test_root}:nlunit-test", |
| 68 | + ] |
| 69 | +} |
0 commit comments