Home | History | Annotate | Download | only in intltest
      1 // Copyright (C) 2016 and later: Unicode, Inc. and others.
      2 // License & terms of use: http://www.unicode.org/copyright.html
      3 /********************************************************************
      4  * COPYRIGHT:
      5  * Copyright (c) 1997-2015, International Business Machines Corporation and
      6  * others. All Rights Reserved.
      7  ********************************************************************/
      8 
      9 
     10 #ifndef MULTITHREADTEST_H
     11 #define MULTITHREADTEST_H
     12 
     13 #include "intltest.h"
     14 #include "mutex.h"
     15 
     16 
     17 
     18 /**
     19  * Tests actual threading
     20  **/
     21 class MultithreadTest : public IntlTest
     22 {
     23 public:
     24     MultithreadTest();
     25     virtual ~MultithreadTest();
     26 
     27     void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
     28 
     29     /**
     30      * test that threads even work
     31      **/
     32     void TestThreads(void);
     33 
     34 	/**
     35      * test that arabic shaping can work in threads
     36      **/
     37     void TestArabicShapingThreads(void);
     38 
     39     /**
     40      * test that mutexes work
     41      **/
     42     void TestMutex(void);
     43 #if !UCONFIG_NO_FORMATTING
     44     /**
     45      * test that intl functions work in a multithreaded context
     46      **/
     47     void TestThreadedIntl(void);
     48 #endif
     49     void TestCollators(void);
     50     void TestString();
     51     void TestAnyTranslit();
     52     void TestConditionVariables();
     53     void TestUnifiedCache();
     54     void TestBreakTranslit();
     55 
     56 };
     57 
     58 #endif
     59 
     60