#include "fxjs/cfxjs_engine.h"
#include "testing/external_engine_embedder_test.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "v8/include/v8-context.h"
#include "v8/include/v8-isolate.h"
#include "v8/include/v8-local-handle.h"
#include "v8/include/v8-object.h"
#include "v8/include/v8-value.h"
namespace {
const double kExpected0 = …;
const double kExpected1 = …;
const double kExpected2 = …;
const wchar_t kScript0[] = …;
const wchar_t kScript1[] = …;
const wchar_t kScript2[] = …;
}
class CFXJSEngineEmbedderTest : public ExternalEngineEmbedderTest { … };
void CheckAssignmentInEngineContext(CFXJS_Engine* current_engine,
double expected) { … }
TEST_F(CFXJSEngineEmbedderTest, Getters) { … }
TEST_F(CFXJSEngineEmbedderTest, MultipleEngines) { … }
TEST_F(CFXJSEngineEmbedderTest, JSCompileError) { … }
TEST_F(CFXJSEngineEmbedderTest, JSRuntimeError) { … }