summaryrefslogtreecommitdiff
path: root/test/ClientTest.h
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2012-02-23 12:55:02 +0000
committerPatrick Ohly <patrick.ohly@intel.com>2012-02-23 13:08:07 +0000
commitaa059b3bac1a2a145012c30fc8b4d4b7f46ecdf5 (patch)
treedb19becbc768b2f0d3bf467274bd67135df3bd9d /test/ClientTest.h
parent1e58798bb4b0b5a72abe8f39a7070f95bc6cf2e6 (diff)
client-test: better logging of item count errors
ASSERT_EQUAL of new/modified/deleted/total items in a source used to log only the raw numbers when the assertion failed. Now the comparison is done with an int as expected value and a full list on the other, and when the assertion fails, the list is included in the error. Makes debugging a lot easier. This is implemented by extending CppUnit's assertEqual to a custom type and defining the necessary traits for it. Would also be useful for "const char" == std::string comparisons.
Diffstat (limited to 'test/ClientTest.h')
-rw-r--r--test/ClientTest.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/ClientTest.h b/test/ClientTest.h
index 43e6728c..c3f8cfb7 100644
--- a/test/ClientTest.h
+++ b/test/ClientTest.h
@@ -615,7 +615,6 @@ public:
ClientTestConfig::LinkedItems_t getParentChildData();
};
-int countItemsOfType(TestingSyncSource *source, int state);
std::list<std::string> listItemsOfType(TestingSyncSource *source, int state);
/**