v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CcTest Class Reference

#include <cctest.h>

Public Types

typedef void( TestFunction )()
 

Public Member Functions

 CcTest (TestFunction *callback, const char *file, const char *name, const char *dependency, bool enabled, bool initialize)
 
void Run ()
 
CcTestprev ()
 
const char * file ()
 
const char * name ()
 
const char * dependency ()
 
bool enabled ()
 

Static Public Member Functions

static CcTestlast ()
 
static v8::Isolateisolate ()
 
static i::Isolatei_isolate ()
 
static i::Heapheap ()
 
static v8::Local< v8::Objectglobal ()
 
static void InitializeVM ()
 
static void DisableAutomaticDispose ()
 
static v8::Local< v8::ContextNewContext (CcTestExtensionFlags extensions, v8::Isolate *isolate=CcTest::isolate())
 
static void TearDown ()
 

Friends

int main (int argc, char **argv)
 

Detailed Description

Definition at line 83 of file cctest.h.

Member Typedef Documentation

typedef void( TestFunction)()

Definition at line 85 of file cctest.h.

Constructor & Destructor Documentation

CcTest ( TestFunction callback,
const char *  file,
const char *  name,
const char *  dependency,
bool  enabled,
bool  initialize 
)

Definition at line 46 of file cctest.cc.

References v8::internal::StrDup().

Member Function Documentation

const char* dependency ( )
inline

Definition at line 93 of file cctest.h.

void DisableAutomaticDispose ( )
static

Definition at line 105 of file cctest.cc.

References CHECK_EQ, and kUnintialized.

Referenced by UNINITIALIZED_TEST().

bool enabled ( )
inline

Definition at line 94 of file cctest.h.

Referenced by main().

const char* file ( )
inline

Definition at line 91 of file cctest.h.

Referenced by main().

static v8::Local<v8::Object> global ( )
inlinestatic

Definition at line 110 of file cctest.h.

References Isolate::GetCurrentContext(), and isolate().

Referenced by TEST().

static void InitializeVM ( )
inlinestatic

Definition at line 116 of file cctest.h.

References CHECK, isolate(), and Context::New().

Referenced by TEST(), and TestStringCharacterStream().

static CcTest* last ( )
inlinestatic

Definition at line 89 of file cctest.h.

Referenced by main().

const char* name ( )
inline

Definition at line 92 of file cctest.h.

Referenced by main().

v8::Local< v8::Context > NewContext ( CcTestExtensionFlags  extensions,
v8::Isolate isolate = CcTest::isolate() 
)
static

Definition at line 90 of file cctest.cc.

References CHECK, CHECK_EXTENSION_FLAG, EXTENSION_LIST, Handle< T >::IsEmpty(), kMaxExtensions, and Context::New().

Referenced by TEST().

CcTest* prev ( )
inline

Definition at line 90 of file cctest.h.

Referenced by main().

void Run ( )

Definition at line 70 of file cctest.cc.

References CHECK, Isolate::Enter(), Isolate::Exit(), kInitialized, kUnintialized, Isolate::New(), and NULL.

Referenced by main().

static void TearDown ( )
inlinestatic

Definition at line 133 of file cctest.h.

References Isolate::Dispose(), and NULL.

Referenced by main().

Friends And Related Function Documentation

int main ( int  argc,
char **  argv 
)
friend

Definition at line 268 of file mksnapshot.cc.


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