#ident "Copyright (c) 2007-2012 Tokutek Inc. All rights reserved."
#ident "The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University of New Jersey, and the Research Foundation of State University of New York at Stony Brook under United States of America Serial No. 11/760379 and to the patents and/or patent applications resulting from it."
#include"test.h"
#include<concurrent_tree.h>
namespacetoku{
classconcurrent_tree_unit_test{
public:
// creating a concurrent tree should initialize it to a valid,
// empty state. the root node should be properly marked, have
// no children, and the correct comparator.
voidtest_create_destroy(void);
// acquiring a locked keyrange should lock and "root" itself at
// the proper subtree node. releasing it should unlock that node.
voidtest_lkr_acquire_release(void);
// remove_all on a locked keyrange should properly remove everything
// from the tree and account correctly for the amount of memory released.
voidtest_lkr_remove_all(void);
// test that insert/remove work properly together, confirming