- changed creation of iterator
- chanded all clone calls
This commit is contained in:
@@ -105,7 +105,7 @@ void test_linked_list_iterator(tester_t *tester)
|
||||
iterator_t * iterator2;
|
||||
|
||||
|
||||
linked_list->create_iterator(linked_list,&iterator,TRUE);
|
||||
iterator = linked_list->create_iterator(linked_list,TRUE);
|
||||
|
||||
tester->assert_true(tester,iterator->has_next(iterator), "it 1 has_next value check");
|
||||
iterator->current(iterator,&value);
|
||||
@@ -115,7 +115,7 @@ void test_linked_list_iterator(tester_t *tester)
|
||||
iterator->current(iterator,&value);
|
||||
tester->assert_true(tester,(strcmp((char *) value,"four") == 0), "it 1 current value check");
|
||||
|
||||
linked_list->create_iterator(linked_list,&iterator2,FALSE);
|
||||
iterator2 = linked_list->create_iterator(linked_list,FALSE);
|
||||
|
||||
tester->assert_true(tester,iterator2->has_next(iterator2), "it 2 has_next value check");
|
||||
iterator2->current(iterator2,&value);
|
||||
@@ -170,7 +170,7 @@ void test_linked_list_insert_and_remove(tester_t *tester)
|
||||
|
||||
|
||||
|
||||
linked_list->create_iterator(linked_list,&iterator,TRUE);
|
||||
iterator = linked_list->create_iterator(linked_list,TRUE);
|
||||
|
||||
iterator->has_next(iterator);
|
||||
iterator->has_next(iterator);
|
||||
|
||||
@@ -129,7 +129,7 @@ void test_parser_with_sa_payload(tester_t *tester)
|
||||
}
|
||||
|
||||
|
||||
sa_payload->create_proposal_substructure_iterator(sa_payload, &proposals, TRUE);
|
||||
proposals = sa_payload->create_proposal_substructure_iterator(sa_payload, TRUE);
|
||||
while (proposals->has_next(proposals))
|
||||
{
|
||||
proposal_substructure_t *proposal;
|
||||
@@ -142,7 +142,7 @@ void test_parser_with_sa_payload(tester_t *tester)
|
||||
spi = proposal->get_spi(proposal);
|
||||
tester->assert_false(tester,(memcmp(&spi_should, spi.ptr, spi.len)),"proposal spi");
|
||||
|
||||
proposal->create_transform_substructure_iterator(proposal, &transforms, TRUE);
|
||||
transforms = proposal->create_transform_substructure_iterator(proposal, TRUE);
|
||||
while(transforms->has_next(transforms))
|
||||
{
|
||||
transform_substructure_t *transform;
|
||||
@@ -150,7 +150,7 @@ void test_parser_with_sa_payload(tester_t *tester)
|
||||
transforms->current(transforms, (void**)&transform);
|
||||
tester->assert_true(tester,(transform->get_transform_type(transform) == 7),"transform type");
|
||||
tester->assert_true(tester,(transform->get_transform_id(transform) == 3),"transform id");
|
||||
transform->create_transform_attribute_iterator(transform, &attributes, TRUE);
|
||||
attributes = transform->create_transform_attribute_iterator(transform, TRUE);
|
||||
loopi = 0;
|
||||
while (attributes->has_next(attributes))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user