Testing

Utilities for tests based on Google Test.

Header file: sneaker/testing/testing.h

Fixture Based Test

Base class of test suite that allows one or more fixtures of the same type, and automatically manages their teardowns.

Header file: sneaker/testing/fixture_based_test.h

class sneaker::testing::fixture_based_test<T>

type T

Type of the fixture managed by this class.

typedef void(*FixtureTeardownHandler)(T)

Type of fixture teardown handler.

fixture_based_test(FixtureTeardownHandler)

Constructor that takes a fixture teardown handler.

void add_fixture(T)

Adds a fixture to be managed by this class.

virtual void TearDown()

Handles teardown of fixtures managed by the class.