mirror of
https://pdfium.googlesource.com/pdfium
synced 2026-08-03 11:00:54 +08:00
Updates old-style copyright headers to the new style, by removing "All rights reserved." Also inserts "The" before "PDFium Authors", which is required by both styles. Mechanically generated by this command: PATTERN='Copyright \([0-9]\+\) \(The \)\?PDFium Authors. All rights reserved.' git grep -l "$PATTERN" \ | xargs sed "s/$PATTERN/Copyright \1 The PDFium Authors/" -i'' Fixed: pdfium:1884 Change-Id: I6f781d811df8839e2e21b85f716529b813828bcd Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/100371 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: K. Moon <kmoon@chromium.org>
36 lines
1017 B
C++
36 lines
1017 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 m_Engine.get(); }
|
|
v8::Local<v8::Context> GetV8Context();
|
|
|
|
private:
|
|
std::unique_ptr<CFXJS_Engine> m_Engine;
|
|
};
|
|
|
|
#endif // TESTING_EXTERNAL_ENGINE_EMBEDDER_TEST_H_
|