diff options
Diffstat (limited to 'cpp/test/IceUtil/sha1/Client.cpp')
-rw-r--r-- | cpp/test/IceUtil/sha1/Client.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/cpp/test/IceUtil/sha1/Client.cpp b/cpp/test/IceUtil/sha1/Client.cpp index d3c4b62e4f5..6e47a29045a 100644 --- a/cpp/test/IceUtil/sha1/Client.cpp +++ b/cpp/test/IceUtil/sha1/Client.cpp @@ -8,7 +8,7 @@ // ********************************************************************** #include <Ice/SHA1.h> -#include <TestCommon.h> +#include <TestHelper.h> using namespace std; @@ -75,7 +75,15 @@ string toHex(const string& data) } -int main(int argc, char* argv[]) +class Client : public Test::TestHelper +{ +public: + + virtual void run(int argc, char* argv[]); +}; + +void +Client::run(int argc, char* argv[]) { cout << "Testing sha1 hash computation... "; for(int i = 0; i < itemsSize; ++i) @@ -110,5 +118,6 @@ int main(int argc, char* argv[]) test(item->digest == digest); } cout << "ok" << endl; - return EXIT_SUCCESS; } + +DEFINE_TEST(Client) |