Ninja
Classes | Functions | Variables
ninja_test.cc File Reference
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include "test.h"
#include "line_printer.h"
Include dependency graph for ninja_test.cc:

Go to the source code of this file.

Classes

struct  RegisteredTest
 

Functions

int main (int argc, char **argv)
 
void RegisterTest (testing::Test *(*factory)(), const char *name)
 

Variables

testing::Testg_current_test
 
static int ntests
 
static LinePrinter printer
 
static RegisteredTest tests [10000]
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

◆ RegisterTest()

void RegisterTest ( testing::Test *(*)()  factory,
const char *  name 
)

Definition at line 47 of file ninja_test.cc.

References RegisteredTest::factory, RegisteredTest::name, ntests, and tests.

Variable Documentation

◆ g_current_test

testing::Test* g_current_test

Definition at line 43 of file ninja_test.cc.

◆ ntests

int ntests
static

Definition at line 44 of file ninja_test.cc.

Referenced by main(), and RegisterTest().

◆ printer

LinePrinter printer
static

Definition at line 45 of file ninja_test.cc.

Referenced by testing::Test::Check(), and main().

◆ tests

RegisteredTest tests[10000]
static

Definition at line 42 of file ninja_test.cc.

Referenced by main(), and RegisterTest().