Mozilla/mozilla/tools/testy/sample/SimpleTest.cpp
dougt%netscape.com 3b2287436c testy - first cut
git-svn-id: svn://10.0.0.236/trunk@140995 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 19:51:25 +00:00

40 lines
624 B
C++

#include "nspr.h"
#include "TestySupport.h"
PR_BEGIN_EXTERN_C
PR_EXPORT(int) Testy_Init();
PR_EXPORT(int) Testy_RunTest();
PR_EXPORT(int) Testy_Shutdown();
PR_END_EXTERN_C
int Testy_Init()
{
return 0;
}
int Testy_RunTest()
{
const char* testCaseName1 = "Simple Test 1";
Testy_LogStart(testCaseName1);
Testy_LogComment(testCaseName1, "Comment 1");
Testy_LogEnd(testCaseName1, true);
const char* testCaseName2 = "Simple Test 2";
Testy_LogStart(testCaseName2);
Testy_LogComment(testCaseName2, "Comment 2");
Testy_LogEnd(testCaseName2, false);
return 0;
}
int Testy_Shutdown()
{
return 0;
}