tools/testy/sample/SimpleTest.cpp
author Lucas Rocha <lucasr@mozilla.com>
Thu, 10 Nov 2011 11:22:08 +0000
changeset 83433 c5f8e6042fb8e63088dfb7e5dcfa940423906c3f
parent 1 9b2a99adc05e53cd4010de512f50118594756650
child 98529 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
Bug 696833 - Implement dynamically coloured tabs in AwesomeBar (r=mfinkle)


#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;
}