From 622c2c7884fd656b5140245c4695a5a145dc04fd Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 20 Aug 2019 10:59:04 -0400 Subject: hs-v3: Rename validation function in hs_intropoint.c Signed-off-by: David Goulet --- src/test/test_hs_dos.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/test/test_hs_dos.c') diff --git a/src/test/test_hs_dos.c b/src/test/test_hs_dos.c index 03c755acb1..f68639e24a 100644 --- a/src/test/test_hs_dos.c +++ b/src/test/test_hs_dos.c @@ -135,23 +135,23 @@ test_validate_dos_extension_params(void *arg) (void) arg; /* Validate the default values. */ - ret = validate_cell_dos_extension_parameters( - get_intro2_rate_consensus_param(NULL), - get_intro2_burst_consensus_param(NULL)); + ret = cell_dos_extension_parameters_are_valid( + get_intro2_rate_consensus_param(NULL), + get_intro2_burst_consensus_param(NULL)); tt_assert(ret); /* Valid custom rate/burst. */ - ret = validate_cell_dos_extension_parameters(17, 42); + ret = cell_dos_extension_parameters_are_valid(17, 42); tt_assert(ret); ret = cell_dos_extension_parameters_are_valid(INT32_MAX, INT32_MAX); tt_assert(ret); /* Invalid rate. */ - ret = validate_cell_dos_extension_parameters(UINT64_MAX, 42); + ret = cell_dos_extension_parameters_are_valid(UINT64_MAX, 42); tt_assert(!ret); /* Invalid burst. */ - ret = validate_cell_dos_extension_parameters(42, UINT64_MAX); + ret = cell_dos_extension_parameters_are_valid(42, UINT64_MAX); tt_assert(!ret); /* Value of 0 is valid (but should disable defenses) */ @@ -159,7 +159,7 @@ test_validate_dos_extension_params(void *arg) tt_assert(ret); /* Can't have burst smaller than rate. */ - ret = validate_cell_dos_extension_parameters(42, 40); + ret = cell_dos_extension_parameters_are_valid(42, 40); tt_assert(!ret); done: -- cgit v1.2.3-54-g00ecf