Back to index

unity  6.0.0
Functions
TestMain.cpp File Reference
#include "config.h"
#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include "Nux/Nux.h"
#include "Nux/WindowThread.h"

Go to the source code of this file.

Functions

void TestPanelServiceCreateSuite ()
void TestUBusCreateSuite ()
void TestQuicklistMenuitemsCreateSuite ()
void TestStaticCairoTextCreateSuite ()
nux::WindowThread * createThread ()
void runThread (nux::WindowThread *thread)
void stopThread (nux::WindowThread *thread)
int main (int argc, char **argv)

Function Documentation

nux::WindowThread* createThread ( void  )

Definition at line 34 of file TestMain.cpp.

{
  nux::WindowThread* thread = NULL;

  nux::NuxInitialize(0);
  thread = nux::CreateGUIThread(TEXT("Unit-Test Dummy Window"),
                                320,
                                240,
                                0,
                                NULL,
                                0);
  return thread;
}

Here is the caller graph for this function:

int main ( int  argc,
char **  argv 
)

Definition at line 62 of file TestMain.cpp.

{
  g_setenv("GSETTINGS_SCHEMA_DIR", BUILDDIR"/settings/", TRUE);

  g_type_init();
  
  gtk_init(&argc, &argv);

  g_test_init(&argc, &argv, NULL);

  //Keep alphabetical please
  TestPanelServiceCreateSuite();
  TestQuicklistMenuitemsCreateSuite();
  TestStaticCairoTextCreateSuite();
  TestUBusCreateSuite();

  nux::WindowThread* thread = createThread();

  int ret = g_test_run();

  stopThread(thread);

  return ret;
}

Here is the call graph for this function:

void runThread ( nux::WindowThread *  thread)

Definition at line 49 of file TestMain.cpp.

{
  thread->Run(NULL);
}
void stopThread ( nux::WindowThread *  thread)

Definition at line 55 of file TestMain.cpp.

{
  thread->ExitMainLoop();
  delete thread;
}

Here is the caller graph for this function:

Definition at line 263 of file TestPanelService.cpp.

{
#define _DOMAIN "/Unit/PanelService"

  g_test_add_func(_DOMAIN"/Allocation", TestAllocation);
  g_test_add_func(_DOMAIN"/IndicatorLoading", TestIndicatorLoading);
  g_test_add_func(_DOMAIN"/EmptyIndicatorObject", TestEmptyIndicatorObject);
  g_test_add_func(_DOMAIN"/EntryAddition", TestEntryAddition);
  g_test_add_func(_DOMAIN"/EntryActivateRequest", TestEntryActivateRequest);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 55 of file TestQuicklistMenuitems.cpp.

{
#define _DOMAIN "/Unit/QuicklistMenuitems"

  g_test_add_func(_DOMAIN"/MenuItemCheckmark", TestMenuItemCheckmark);
  g_test_add_func(_DOMAIN"/MenuItemLabel",     TestMenuItemLabel);
  g_test_add_func(_DOMAIN"/MenuItemRadio",     TestMenuItemRadio);
  g_test_add_func(_DOMAIN"/MenuItemSeparator", TestMenuItemSeparator);
  g_test_add_func(_DOMAIN"/QuicklistMenuItem", TestQuicklistMenuItem);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 99 of file TestStaticCairoText.cpp.

{
#define _DOMAIN "/Unit/StaticCairoText"

  g_test_add_func(_DOMAIN"/TextLeftToRightExtentIncreasesWithLength", TestLeftToRightExtentIncreasesWithLength);
  g_test_add_func(_DOMAIN"/TestRightToLeftExtentIncreasesWithLength", TestRightToLeftExtentIncreasesWithLength);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 33 of file TestUBus.cpp.

{
#define _DOMAIN "/Unit/UBus"
  g_test_add_func(_DOMAIN"/Allocation", TestAllocation);
  g_test_add_func(_DOMAIN"/Propagation", TestPropagation);
  g_test_add_func(_DOMAIN"/MainLoop", TestMainLoop);
}

Here is the call graph for this function:

Here is the caller graph for this function: