| 1401 | } |
| 1402 | |
| 1403 | OPENDDS_END_VERSIONED_NAMESPACE_DECL |
| 1404 | |
| 1405 | TEST(dds_DCPS_MemoryPool, maintest) |
| 1406 | { |
| 1407 | { |
| 1408 | OpenDDS::Test::MemoryPoolTest test; |
| 1409 | |
| 1410 | // FUTURE: Each of these should be a TEST or TEST_F. |
| 1411 | test.test_pool_alloc(); |
| 1412 | test.test_pool_allocs(); |
| 1413 | test.test_pool_alloc_odd_size(); |
| 1414 | |
| 1415 | test.test_pool_alloc_last_avail(); |
| 1416 | test.test_pool_alloc_free(); |
| 1417 | test.test_pool_alloc_free_join_largest(); |
| 1418 | test.test_pool_alloc_free_smallest(); |
| 1419 | test.test_pool_alloc_free_larger_than_max_index(); |
| 1420 | |
| 1421 | test.test_pool_alloc_move_ahead(); |
| 1422 | test.test_pool_alloc_free_repeated(); |
| 1423 | test.test_pool_alloc_non_first_free_block(); |
| 1424 | test.test_pool_realloc(); |
| 1425 | |
| 1426 | test.test_pool_free_join_right(); |
| 1427 | test.test_pool_free_join_left(); |
| 1428 | test.test_pool_free_join_both(); |
| 1429 | |
| 1430 | test.test_pool_free_join_first_both(); |
| 1431 | test.test_pool_free_join_largest_right(); |
| 1432 | test.test_pool_free_join_largest_left(); |
| 1433 | test.test_pool_free_join_second_largest_right(); |
| 1434 | test.test_pool_free_join_second_largest_left(); |
| 1435 | test.test_pool_free_join_largest_both_right(); |
| 1436 | test.test_pool_free_join_largest_both_left(); |
| 1437 | |
| 1438 | test.test_pool_free_join_smallest_right(); |
| 1439 | test.test_pool_free_join_smallest_left(); |
| 1440 | test.test_pool_free_join_smallest_both_right(); |
| 1441 | test.test_pool_free_join_smallest_both_left(); |
| 1442 | |
| 1443 | test.test_pool_free_in_order(); |
| 1444 | test.test_pool_free_in_reverse_order(); |
| 1445 | test.test_pool_free_out_of_order(); |
| 1446 | test.test_pool_free_join_without_moving(); |
| 1447 | test.test_pool_alloc_split_without_moving(); |
| 1448 | test.test_pool_alloc_shift_free(); |
| 1449 | test.test_pool_alloc_shift_first_free(); |
| 1450 | test.test_pool_move_forward_prev_shifted(); |
| 1451 | test.test_pool_move_forward_prev_shifted2(); |
| 1452 | |
| 1453 | test.test_alloc_null_once_out_of_memory(); |
| 1454 | test.test_alloc_too_large_returns_null(); |
| 1455 | test.test_free_null_should_ignore(); |
| 1456 | |
| 1457 | test.test_pool_align_other_size(); |
| 1458 | test.test_pool_align_configure_too_small(); |
| 1459 | } |
| 1460 |
nothing calls this directly
no test coverage detected