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
scoped_set_tz.h
Go to the documentation of this file.
1// Copyright 2021 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef TESTING_SCOPED_SET_TZ_H_
6#define TESTING_SCOPED_SET_TZ_H_
7
8#include <string>
9
10#include "core/fxcrt/fx_memory.h"
11#include "third_party/abseil-cpp/absl/types/optional.h"
12
14 public:
15 FX_STACK_ALLOCATED();
16
17 explicit ScopedSetTZ(const std::string& tz);
18 ScopedSetTZ(const ScopedSetTZ&) = delete;
19 ScopedSetTZ& operator=(const ScopedSetTZ&) = delete;
20 ~ScopedSetTZ();
21
22 private:
23 absl::optional<std::string> old_tz_;
24};
25
26#endif // TESTING_SCOPED_SET_TZ_H_
TEST_F(CFXJSE_FormCalcContextEmbedderTest, TranslateEmpty)
EventParamScope(CFXJSE_Engine *pEngine, CXFA_Node *pTarget, CXFA_EventParam *pEventParam)
friend class EventParamScope
void ExecuteExpectBool(ByteStringView input, bool expected)
~CFXJSE_FormCalcContextEmbedderTest() override=default
void ExecuteExpectFloat(ByteStringView input, float expected)
void ExecuteExpectInt32(ByteStringView input, int32_t expected)
void ExecuteExpectString(ByteStringView input, const char *expected)
void ExecuteExpectFloatNear(ByteStringView input, float expected)
CFXJSE_ScopeUtil_IsolateHandleContext(CFXJSE_Context *pContext)
WideString GetNewText() const
CXFA_EventParam(XFA_EVENTTYPE type)
ScopedSetTZ(const std::string &tz)
ScopedSetTZ & operator=(const ScopedSetTZ &)=delete
ScopedSetTZ(const ScopedSetTZ &)=delete
bool Execute(ByteStringView input)
CFXJSE_Engine * GetScriptContext() const
@ XFA_EVENT_Unknown