Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cfgas_stringformatter_unittest.cpp File Reference

(e4657a741c23c8f48e0e97ae2091dc2d99f4f27d)

#include "xfa/fgas/crt/cfgas_stringformatter.h"
#include <iterator>
#include "build/build_config.h"
#include "core/fpdfapi/page/cpdf_pagemodule.h"
#include "core/fxcrt/cfx_datetime.h"
#include "testing/fx_string_testhelpers.h"
#include "testing/fxgc_unittest.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/scoped_set_tz.h"
#include "v8/include/cppgc/persistent.h"
#include "xfa/fxfa/parser/cxfa_localemgr.h"
Include dependency graph for cfgas_stringformatter_unittest.cpp:

Go to the source code of this file.

Classes

class  CFGAS_StringFormatterTest

Functions

 TEST_F (CFGAS_StringFormatterTest, DateFormat)
 TEST_F (CFGAS_StringFormatterTest, TimeFormat)
 TEST_F (CFGAS_StringFormatterTest, DateTimeFormat)
 TEST_F (CFGAS_StringFormatterTest, TimeDateFormat)
 TEST_F (CFGAS_StringFormatterTest, DateParse)
 TEST_F (CFGAS_StringFormatterTest, SplitFormatString)
 TEST_F (CFGAS_StringFormatterTest, NumParse)
 TEST_F (CFGAS_StringFormatterTest, NumFormat)
 TEST_F (CFGAS_StringFormatterTest, TextParse)
 TEST_F (CFGAS_StringFormatterTest, InvalidTextParse)
 TEST_F (CFGAS_StringFormatterTest, TextFormat)
 TEST_F (CFGAS_StringFormatterTest, NullParse)
 TEST_F (CFGAS_StringFormatterTest, NullFormat)
 TEST_F (CFGAS_StringFormatterTest, ZeroParse)
 TEST_F (CFGAS_StringFormatterTest, ZeroFormat)
 TEST_F (CFGAS_StringFormatterTest, GetCategory)

Function Documentation

◆ TEST_F() [1/16]

TEST_F ( CFGAS_StringFormatterTest ,
DateFormat  )

Definition at line 41 of file cfgas_stringformatter_unittest.cpp.

References CFGAS_StringFormatter::CFGAS_StringFormatter(), CFGAS_StringFormatter::FormatDateTime(), and CFGAS_StringFormatter::kDate.

Here is the call graph for this function:

◆ TEST_F() [2/16]

TEST_F ( CFGAS_StringFormatterTest ,
DateParse  )

Definition at line 226 of file cfgas_stringformatter_unittest.cpp.

References CFGAS_StringFormatter::CFGAS_StringFormatter(), CFX_DateTime::CFX_DateTime(), CFGAS_StringFormatter::kDate, and CFGAS_StringFormatter::ParseDateTime().

Here is the call graph for this function:

◆ TEST_F() [3/16]

TEST_F ( CFGAS_StringFormatterTest ,
DateTimeFormat  )

Definition at line 162 of file cfgas_stringformatter_unittest.cpp.

References CFGAS_StringFormatter::CFGAS_StringFormatter(), CFGAS_StringFormatter::FormatDateTime(), and CFGAS_StringFormatter::kDateTime.

Here is the call graph for this function:

◆ TEST_F() [4/16]

◆ TEST_F() [5/16]

TEST_F ( CFGAS_StringFormatterTest ,
InvalidTextParse  )

Definition at line 639 of file cfgas_stringformatter_unittest.cpp.

References CFGAS_StringFormatter::CFGAS_StringFormatter(), and CFGAS_StringFormatter::ParseText().

Here is the call graph for this function:

◆ TEST_F() [6/16]

TEST_F ( CFGAS_StringFormatterTest ,
NullFormat  )

Definition at line 688 of file cfgas_stringformatter_unittest.cpp.

References CFGAS_StringFormatter::CFGAS_StringFormatter(), and CFGAS_StringFormatter::FormatNull().

Here is the call graph for this function:

◆ TEST_F() [7/16]

TEST_F ( CFGAS_StringFormatterTest ,
NullParse  )

Definition at line 672 of file cfgas_stringformatter_unittest.cpp.

References CFGAS_StringFormatter::CFGAS_StringFormatter(), and CFGAS_StringFormatter::ParseNull().

Here is the call graph for this function:

◆ TEST_F() [8/16]

TEST_F ( CFGAS_StringFormatterTest ,
NumFormat  )

Definition at line 483 of file cfgas_stringformatter_unittest.cpp.

References CFGAS_StringFormatter::CFGAS_StringFormatter(), and CFGAS_StringFormatter::FormatNum().

Here is the call graph for this function:

◆ TEST_F() [9/16]

TEST_F ( CFGAS_StringFormatterTest ,
NumParse  )

Definition at line 335 of file cfgas_stringformatter_unittest.cpp.

References CFGAS_StringFormatter::CFGAS_StringFormatter(), and CFGAS_StringFormatter::ParseNum().

Here is the call graph for this function:

◆ TEST_F() [10/16]

TEST_F ( CFGAS_StringFormatterTest ,
SplitFormatString  )

Definition at line 318 of file cfgas_stringformatter_unittest.cpp.

◆ TEST_F() [11/16]

TEST_F ( CFGAS_StringFormatterTest ,
TextFormat  )

Definition at line 646 of file cfgas_stringformatter_unittest.cpp.

References CFGAS_StringFormatter::CFGAS_StringFormatter(), and CFGAS_StringFormatter::FormatText().

Here is the call graph for this function:

◆ TEST_F() [12/16]

TEST_F ( CFGAS_StringFormatterTest ,
TextParse  )

Definition at line 614 of file cfgas_stringformatter_unittest.cpp.

References CFGAS_StringFormatter::CFGAS_StringFormatter(), and CFGAS_StringFormatter::ParseText().

Here is the call graph for this function:

◆ TEST_F() [13/16]

TEST_F ( CFGAS_StringFormatterTest ,
TimeDateFormat  )

Definition at line 195 of file cfgas_stringformatter_unittest.cpp.

References CFGAS_StringFormatter::CFGAS_StringFormatter(), CFGAS_StringFormatter::FormatDateTime(), and CFGAS_StringFormatter::kTimeDate.

Here is the call graph for this function:

◆ TEST_F() [14/16]

TEST_F ( CFGAS_StringFormatterTest ,
TimeFormat  )

Definition at line 108 of file cfgas_stringformatter_unittest.cpp.

References CFGAS_StringFormatter::CFGAS_StringFormatter(), CFGAS_StringFormatter::FormatDateTime(), and CFGAS_StringFormatter::kTime.

Here is the call graph for this function:

◆ TEST_F() [15/16]

TEST_F ( CFGAS_StringFormatterTest ,
ZeroFormat  )

Definition at line 718 of file cfgas_stringformatter_unittest.cpp.

References CFGAS_StringFormatter::CFGAS_StringFormatter(), and CFGAS_StringFormatter::FormatZero().

Here is the call graph for this function:

◆ TEST_F() [16/16]

TEST_F ( CFGAS_StringFormatterTest ,
ZeroParse  )

Definition at line 704 of file cfgas_stringformatter_unittest.cpp.

References CFGAS_StringFormatter::CFGAS_StringFormatter(), and CFGAS_StringFormatter::ParseZero().

Here is the call graph for this function: