pdfium/testing/external_engine_embedder_test.h
Tom Sepez 309d5e9238 Convert remaining code to google_style_ members
Bug: 42271580
Change-Id: I59f78f0cb432c49e9b2ab5169215d6fbb4d8cf87
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/130830
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
2025-04-21 11:30:15 -07:00

36 lines
1015 B
C++

// Copyright 2020 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef TESTING_EXTERNAL_ENGINE_EMBEDDER_TEST_H_
#define TESTING_EXTERNAL_ENGINE_EMBEDDER_TEST_H_
#include <memory>
#include "testing/js_embedder_test.h"
#include "v8/include/v8-context.h"
#include "v8/include/v8-local-handle.h"
class CFXJS_Engine;
// Test class that allows creating a FXJS javascript engine without
// first having to load a document and instantiate a form filler
// against it. Generally, most tests will want to do the latter.
class ExternalEngineEmbedderTest : public JSEmbedderTest {
public:
ExternalEngineEmbedderTest();
~ExternalEngineEmbedderTest() override;
// EmbedderTest:
void SetUp() override;
void TearDown() override;
CFXJS_Engine* engine() const { return engine_.get(); }
v8::Local<v8::Context> GetV8Context();
private:
std::unique_ptr<CFXJS_Engine> engine_;
};
#endif // TESTING_EXTERNAL_ENGINE_EMBEDDER_TEST_H_