libtasks Documentation
1.6
Main Page
Namespaces
Classes
Files
File List
File Members
test_exec.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2013-2014 ADTECH GmbH
3
* Licensed under MIT (https://github.com/adtechlabs/libtasks/blob/master/COPYING)
4
*
5
* Author: Andreas Pohl
6
*/
7
8
#include <cppunit/TestCase.h>
9
#include <cppunit/TestFixture.h>
10
#include <cppunit/extensions/HelperMacros.h>
11
12
namespace
tasks {
13
14
class
test_exec
:
public
CppUnit::TestFixture {
15
CPPUNIT_TEST_SUITE
(
test_exec
);
16
CPPUNIT_TEST
(
run
);
17
CPPUNIT_TEST_SUITE_END
();
18
19
public
:
20
void
setUp
() {}
21
void
tearDown
() {}
22
23
protected
:
24
void
run
();
25
26
bool
check_state
(std::atomic<int>& state,
int
expected);
27
};
28
}
tasks::test_exec::CPPUNIT_TEST_SUITE
CPPUNIT_TEST_SUITE(test_exec)
tasks::test_exec::run
void run()
Definition:
test_exec.cpp:23
tasks::test_exec
Definition:
test_exec.h:14
tasks::test_exec::CPPUNIT_TEST
CPPUNIT_TEST(run)
tasks::test_exec::setUp
void setUp()
Definition:
test_exec.h:20
tasks::test_exec::CPPUNIT_TEST_SUITE_END
CPPUNIT_TEST_SUITE_END()
tasks::test_exec::tearDown
void tearDown()
Definition:
test_exec.h:21
tasks::test_exec::check_state
bool check_state(std::atomic< int > &state, int expected)
Definition:
test_exec.cpp:93
tests
test_exec.h
Generated by
1.8.6