-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to set up CASE session over all discovered ips instead of only th… (
#23969) * Try to set up CASE session over all discovered ips instead of only the 'best' one that has been discovered * Add a macro to configure of many resolve results to store * Add the necessary build system changes to add some tests for AddressResolve_DefaultImpl * Add some tests
- Loading branch information
1 parent
f97f2a1
commit 2612372
Showing
11 changed files
with
423 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright (c) 2022 Project CHIP Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
declare_args() { | ||
# Define as "default" to include the built in resolution strategy in | ||
# CHIP (i.e. sources within this directory). | ||
# | ||
# Define as "custom" to only have relevant type definitions included | ||
# in which case the application is expected to provide a | ||
# CHIP_ADDRESS_RESOLVE_IMPL_INCLUDE_HEADER | ||
# include to use | ||
chip_address_resolve_strategy = "default" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Copyright (c) 2022 Project CHIP Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import("//build_overrides/build.gni") | ||
import("//build_overrides/chip.gni") | ||
import("//build_overrides/nlunit_test.gni") | ||
|
||
import("${chip_root}/src/lib/address_resolve/address_resolve.gni") | ||
|
||
import("${chip_root}/build/chip/chip_test_suite.gni") | ||
|
||
chip_test_suite("tests") { | ||
output_name = "libAddressResolveTests" | ||
|
||
if (chip_address_resolve_strategy == "default") { | ||
test_sources = [ "TestAddressResolve_DefaultImpl.cpp" ] | ||
} | ||
|
||
public_deps = [ | ||
"${chip_root}/src/lib/address_resolve", | ||
"${chip_root}/src/lib/support:testing", | ||
"${chip_root}/src/protocols", | ||
"${nlunit_test_root}:nlunit-test", | ||
] | ||
} |
Oops, something went wrong.