V8 Project
v8::TestWithContext Class Reference

#include <test-utils.h>

+ Inheritance diagram for v8::TestWithContext:
+ Collaboration diagram for v8::TestWithContext:

Public Member Functions

 TestWithContext ()
 
virtual ~TestWithContext ()
 
const Local< Context > & context () const
 
- Public Member Functions inherited from v8::TestWithIsolate
 TestWithIsolate ()
 
virtual ~TestWithIsolate ()
 
Isolateisolate () const
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (TestWithContext)
 

Private Attributes

Local< Contextcontext_
 
Context::Scope context_scope_
 

Additional Inherited Members

- Static Public Member Functions inherited from v8::TestWithIsolate
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 

Detailed Description

Definition at line 34 of file test-utils.h.

Constructor & Destructor Documentation

◆ TestWithContext()

v8::TestWithContext::TestWithContext ( )

Definition at line 40 of file test-utils.cc.

static Local< Context > New(Isolate *isolate, ExtensionConfiguration *extensions=NULL, Handle< ObjectTemplate > global_template=Handle< ObjectTemplate >(), Handle< Value > global_object=Handle< Value >())
Creates a new context and returns a handle to the newly allocated context.
Definition: api.cc:5217
Context::Scope context_scope_
Definition: test-utils.h:43
Local< Context > context_
Definition: test-utils.h:42
Isolate * isolate() const
Definition: test-utils.h:20

◆ ~TestWithContext()

v8::TestWithContext::~TestWithContext ( )
virtual

Definition at line 44 of file test-utils.cc.

44 {}

Member Function Documentation

◆ context()

const Local<Context>& v8::TestWithContext::context ( ) const
inline

Definition at line 39 of file test-utils.h.

39 { return context_; }

References context_.

◆ DISALLOW_COPY_AND_ASSIGN()

v8::TestWithContext::DISALLOW_COPY_AND_ASSIGN ( TestWithContext  )
private

Member Data Documentation

◆ context_

Local<Context> v8::TestWithContext::context_
private

Definition at line 42 of file test-utils.h.

Referenced by context().

◆ context_scope_

Context::Scope v8::TestWithContext::context_scope_
private

Definition at line 43 of file test-utils.h.


The documentation for this class was generated from the following files: