2000-01-15 02:00:06 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2012-09-28 16:43:12 +00:00
|
|
|
* Copyright (c) 1997-2012, International Business Machines Corporation and
|
2000-01-15 02:00:06 +00:00
|
|
|
* others. All Rights Reserved.
|
|
|
|
********************************************************************/
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2001-08-31 18:02:09 +00:00
|
|
|
#ifndef MULTITHREADTEST_H
|
|
|
|
#define MULTITHREADTEST_H
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
#include "intltest.h"
|
|
|
|
#include "mutex.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Tests actual threading
|
|
|
|
**/
|
|
|
|
class MultithreadTest : public IntlTest
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
MultithreadTest();
|
2000-12-09 03:17:45 +00:00
|
|
|
virtual ~MultithreadTest();
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2000-08-14 21:42:36 +00:00
|
|
|
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* test that threads even work
|
|
|
|
**/
|
|
|
|
void TestThreads(void);
|
2012-09-28 16:43:12 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* test that arabic shaping can work in threads
|
|
|
|
**/
|
|
|
|
void TestArabicShapingThreads(void);
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
/**
|
|
|
|
* test that mutexes work
|
|
|
|
**/
|
|
|
|
void TestMutex(void);
|
2002-09-21 00:43:14 +00:00
|
|
|
#if !UCONFIG_NO_FORMATTING
|
1999-08-16 21:50:52 +00:00
|
|
|
/**
|
|
|
|
* test that intl functions work in a multithreaded context
|
|
|
|
**/
|
|
|
|
void TestThreadedIntl(void);
|
2002-09-21 00:43:14 +00:00
|
|
|
#endif
|
2003-03-27 18:24:28 +00:00
|
|
|
void TestCollators(void);
|
2004-02-23 04:36:02 +00:00
|
|
|
void TestString();
|
1999-08-16 21:50:52 +00:00
|
|
|
};
|
|
|
|
|
2001-08-31 18:02:09 +00:00
|
|
|
#endif
|
1999-08-16 21:50:52 +00:00
|
|
|
|