icu/icu4c/source/test/intltest/tzfmttst.h
Frank Tang abcb80fd53 ICU-22615 Test TimeZoneNames API will not assert with non ASCII.
Add tests and return error when the ID is non ASCII
2024-02-08 23:37:14 -08:00

44 lines
1.3 KiB
C++

// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
*******************************************************************************
* Copyright (C) 2007-2015, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
#ifndef _TIMEZONEFORMATTEST_
#define _TIMEZONEFORMATTEST_
#include "unicode/utypes.h"
#if !UCONFIG_NO_FORMATTING
#include "intltest.h"
class TimeZoneFormatTest : public IntlTest {
public:
// IntlTest override
void runIndexedTest(int32_t index, UBool exec, const char*& name, char* par) override;
void TestTimeZoneRoundTrip();
void TestTimeRoundTrip();
void TestParse();
void TestISOFormat();
void TestFormat();
void TestFormatTZDBNames();
void TestFormatCustomZone();
void TestFormatTZDBNamesAllZoneCoverage();
void TestAdoptDefaultThreadSafe();
void TestCentralTime();
void TestBogusLocale();
void Test22614GetMetaZoneNamesNotCrash();
void Test22615NonASCIIID();
void RunTimeRoundTripTests(int32_t threadNumber);
void RunAdoptDefaultThreadSafeTests(int32_t threadNumber);
};
#endif /* #if !UCONFIG_NO_FORMATTING */
#endif // _TIMEZONEFORMATTEST_