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
fxv8_unittest.h
Go to the documentation of this file.
1// Copyright 2020 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_FXV8_UNITTEST_H_
6#define TESTING_FXV8_UNITTEST_H_
7
8#include <memory>
9
10#include "testing/gtest/include/gtest/gtest.h"
11
12class CFX_V8;
13class CFX_V8ArrayBufferAllocator;
14
15namespace v8 {
16class Isolate;
17} // namespace v8
18
19class FXV8UnitTest : public ::testing::Test {
20 public:
22 void operator()(v8::Isolate* ptr) const;
23 };
24
27
28 void SetUp() override;
29
30 v8::Isolate* isolate() const { return isolate_.get(); }
31
32 protected:
34 std::unique_ptr<v8::Isolate, V8IsolateDeleter> isolate_;
35};
36
37#endif // TESTING_FXV8_UNITTEST_H_
TEST_F(CFXV8UnitTest, EmptyLocal)
~CFXV8UnitTest() override=default
CFXV8UnitTest()=default
CFX_V8 * cfx_v8() const
std::unique_ptr< CFX_V8 > cfx_v8_
void SetUp() override
v8::Isolate * isolate() const
void SetUp() override
std::unique_ptr< v8::Isolate, V8IsolateDeleter > isolate_
std::unique_ptr< CFX_V8ArrayBufferAllocator > array_buffer_allocator_
~FXV8UnitTest() override
void operator()(v8::Isolate *ptr) const