2017-01-20 00:20:31 +00:00
|
|
|
// © 2016 and later: Unicode, Inc. and others.
|
2016-06-15 18:58:17 +00:00
|
|
|
// License & terms of use: http://www.unicode.org/copyright.html
|
2000-01-15 02:00:06 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2016-05-31 21:45:07 +00:00
|
|
|
* Copyright (c) 1997-2015, International Business Machines Corporation and
|
|
|
|
* others. All Rights Reserved.
|
2000-01-15 02:00:06 +00:00
|
|
|
********************************************************************/
|
|
|
|
|
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
|
2014-02-27 18:45:32 +00:00
|
|
|
void TestCollators(void);
|
|
|
|
void TestString();
|
|
|
|
void TestAnyTranslit();
|
2014-07-29 23:18:47 +00:00
|
|
|
void TestConditionVariables();
|
2014-08-20 21:46:02 +00:00
|
|
|
void TestUnifiedCache();
|
2015-04-15 22:43:15 +00:00
|
|
|
void TestBreakTranslit();
|
2014-02-27 18:45:32 +00:00
|
|
|
|
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
|
|
|
|