5#ifndef TESTING_SCOPED_SET_TZ_H_
6#define TESTING_SCOPED_SET_TZ_H_
11#include "core/fxcrt/fx_memory.h"
23 std::optional<
std::string> old_tz_;
fxcrt::ByteString ByteString
TEST_F(CFXJSEFormCalcContextEmbedderTest, TranslateEmpty)
void ExecuteExpectNaN(ByteStringView input)
void ExecuteExpectError(ByteStringView input)
void ExecuteExpectInt32(ByteStringView input, int32_t expected)
void ExecuteExpectFloat(ByteStringView input, float expected)
CFXJSE_Context * GetJseContext()
CFXJSEFormCalcContextEmbedderTest()=default
~CFXJSEFormCalcContextEmbedderTest() override=default
void ExecuteExpectBool(ByteStringView input, bool expected)
void ExecuteExpectString(ByteStringView input, const char *expected)
void ExecuteExpectFloatNear(ByteStringView input, float expected)
void ExecuteExpectNull(ByteStringView input)
EventParamScope(CFXJSE_Engine *pEngine, CXFA_Node *pTarget, CXFA_EventParam *pEventParam)
friend class EventParamScope
CFXJSE_ScopeUtil_IsolateHandleContext(CFXJSE_Context *pContext)
WideString GetNewText() const
CXFA_EventParam(XFA_EVENTTYPE type)
v8::Isolate * isolate() const
ScopedSetTZ(const std::string &tz)
ScopedSetTZ & operator=(const ScopedSetTZ &)=delete
ScopedSetTZ(const ScopedSetTZ &)=delete
bool Execute(ByteStringView input)
CFXJSE_Engine * GetScriptContext() const
bool FXSYS_IsHexDigit(char c)
bool IsBoolean(v8::Local< v8::Value > value)
double ReentrantToDoubleHelper(v8::Isolate *pIsolate, v8::Local< v8::Value > pValue)
bool IsInteger(v8::Local< v8::Value > value)
bool IsNumber(v8::Local< v8::Value > value)
bool IsString(v8::Local< v8::Value > value)
ByteString ReentrantToByteStringHelper(v8::Isolate *pIsolate, v8::Local< v8::Value > pValue)
ByteString ToByteString(v8::Isolate *pIsolate, v8::Local< v8::String > pValue)
bool ReentrantToBooleanHelper(v8::Isolate *pIsolate, v8::Local< v8::Value > pValue)
bool IsNull(v8::Local< v8::Value > value)
float ReentrantToFloatHelper(v8::Isolate *pIsolate, v8::Local< v8::Value > pValue)
int32_t ReentrantToInt32Helper(v8::Isolate *pIsolate, v8::Local< v8::Value > pValue)
fxcrt::ByteStringView ByteStringView