MB-21029: ep_test_apis: make wait_for_stat_XXX functions templated 42/67942/6
authorDave Rigby <daver@couchbase.com>
Fri, 23 Sep 2016 10:12:36 +0000 (11:12 +0100)
committerDave Rigby <daver@couchbase.com>
Tue, 27 Sep 2016 14:11:32 +0000 (14:11 +0000)
commit2da91b00e4de2417b7408fa8fd3a4434cc582055
treefd203bf8e82ffdc6295271e96b16fbd85c36f2fe
parent5ec4bb1760ae638880e50e04b220c9414b5cc0eb
MB-21029: ep_test_apis: make wait_for_stat_XXX functions templated

There is a range of helper functions to wait for a stat to meet some
criteria (equal, not equal, greater, ...), and currently these are
duplicated for each type (int, string, ...) required.

As the subsequent fix for MB-21029 needs a wait_for_stat_to_change for
the std::string type, genericize the current wait_for_stat function so
it can be used with any type.

Change-Id: I681218d31c4dcd1ef8b34de225efd13e99bbf8db
Reviewed-on: http://review.couchbase.org/67942
Reviewed-by: Manu Dhundi <manu@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
tests/ep_test_apis.cc
tests/ep_test_apis.h
tests/ep_testsuite.cc
tests/ep_testsuite_dcp.cc