/*
This file is a part of libcds - Concurrent Data Structures library
- (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2016
+ (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2017
Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
-
+
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef CDSUNIT_SET_TEST_INTRUSIVE_STRIPED_SET_H
TYPED_TEST_P( IntrusiveStripedSet, striped_basehook_compare )
{
- typedef ci::StripedSet<
+ typedef ci::StripedSet<
typename TestFixture::base_hook_container,
ci::opt::hash< typename TestFixture::hash1 >,
ci::opt::compare< typename TestFixture::template cmp< typename TestFixture::base_item >>
> set_type;
- set_type s;
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, striped_basehook_less )
ci::opt::less< typename TestFixture::template less< typename TestFixture::base_item >>
> set_type;
- set_type s( 32 );
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, striped_basehook_cmpmix )
ci::opt::resizing_policy< ci::striped_set::load_factor_resizing< 8 >>
> set_type;
- set_type s( 64 );
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 64 );
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, striped_basehook_resizing_threshold )
ci::opt::resizing_policy< ci::striped_set::single_bucket_size_threshold<8>>
> set_type;
- set_type s;
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, striped_basehook_resizing_threshold_rt )
ci::opt::resizing_policy< ci::striped_set::single_bucket_size_threshold<0>>
> set_type;
- set_type s( 64, ci::striped_set::single_bucket_size_threshold<0>( 4 ));
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 64, ci::striped_set::single_bucket_size_threshold<0>( 4 ));
+ this->test( s, data );
+ }
}
// ****************************************************************
ci::opt::compare< typename TestFixture::template cmp< typename TestFixture::member_item >>
> set_type;
- set_type s;
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, striped_memberhook_less )
ci::opt::less< typename TestFixture::template less< typename TestFixture::member_item >>
> set_type;
- set_type s( 32 );
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 32 );
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, striped_memberhook_cmpmix )
ci::opt::resizing_policy< ci::striped_set::load_factor_resizing< 8 >>
> set_type;
- set_type s( 64 );
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 64 );
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, striped_memberhook_resizing_threshold )
ci::opt::resizing_policy< ci::striped_set::single_bucket_size_threshold<8>>
> set_type;
- set_type s;
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, striped_memberhook_resizing_threshold_rt )
ci::opt::resizing_policy< ci::striped_set::single_bucket_size_threshold<0>>
> set_type;
- set_type s( 64, ci::striped_set::single_bucket_size_threshold<0>( 4 ) );
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 64, ci::striped_set::single_bucket_size_threshold<0>( 4 ));
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, refinable_basehook_compare )
{
- typedef ci::StripedSet<
+ typedef ci::StripedSet<
typename TestFixture::base_hook_container,
ci::opt::hash< typename TestFixture::hash1 >,
ci::opt::compare< typename TestFixture::template cmp< typename TestFixture::base_item >>
> set_type;
- set_type s;
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, refinable_basehook_less )
ci::opt::less< typename TestFixture::template less< typename TestFixture::base_item >>
> set_type;
- set_type s( 32 );
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 32 );
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, refinable_basehook_cmpmix )
ci::opt::resizing_policy< ci::striped_set::load_factor_resizing< 8 >>
> set_type;
- set_type s( 64 );
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 64 );
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, refinable_basehook_resizing_threshold )
ci::opt::resizing_policy< ci::striped_set::single_bucket_size_threshold<8>>
> set_type;
- set_type s;
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, refinable_basehook_resizing_threshold_rt )
ci::opt::resizing_policy< ci::striped_set::single_bucket_size_threshold<0>>
> set_type;
- set_type s( 64, ci::striped_set::single_bucket_size_threshold<0>( 4 ));
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 64, ci::striped_set::single_bucket_size_threshold<0>( 4 ));
+ this->test( s, data );
+ }
}
// ****************************************************************
ci::opt::compare< typename TestFixture::template cmp< typename TestFixture::member_item >>
> set_type;
- set_type s;
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, refinable_memberhook_less )
ci::opt::less< typename TestFixture::template less< typename TestFixture::member_item >>
> set_type;
- set_type s( 32 );
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 32 );
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, refinable_memberhook_cmpmix )
ci::opt::resizing_policy< ci::striped_set::load_factor_resizing< 8 >>
> set_type;
- set_type s( 64 );
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 64 );
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, refinable_memberhook_resizing_threshold )
ci::opt::resizing_policy< ci::striped_set::single_bucket_size_threshold<8>>
> set_type;
- set_type s;
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, refinable_memberhook_resizing_threshold_rt )
ci::opt::resizing_policy< ci::striped_set::single_bucket_size_threshold<0>>
> set_type;
- set_type s( 64, ci::striped_set::single_bucket_size_threshold<0>( 4 ) );
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 64, ci::striped_set::single_bucket_size_threshold<0>( 4 ));
+ this->test( s, data );
+ }
}
REGISTER_TYPED_TEST_CASE_P( IntrusiveStripedSet,