X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fvchar.hpp;h=2340586120c88a87994eae7deb37b6487be47a32;hb=983523c4536f12781533124cb8a00a4291b8cf79;hp=7bdb5481de5908aa7e6b5f4346bcc95b2de23294;hpb=3dcd41c50068eec906a1a11a178e9b3f08ef2326;p=m6w6%2Flibmemcached diff --git a/libtest/vchar.hpp b/libtest/vchar.hpp index 7bdb5481..23405861 100644 --- a/libtest/vchar.hpp +++ b/libtest/vchar.hpp @@ -35,6 +35,16 @@ typedef std::vector vchar_t; void make_vector(libtest::vchar_t& arg, const char *str, size_t length); +namespace vchar { + +int compare(libtest::vchar_t& arg, const char *str, size_t length); +void make(libtest::vchar_t& arg); +void make(libtest::vchar_t& arg, size_t length); + +} // namespace vchar + +#define vchar_param(__arg) (&__arg[0]), (__arg.size()) + std::ostream& operator<<(std::ostream& output, const libtest::vchar_t& arg); } // namespace libtest