aboutsummaryrefslogtreecommitdiff
path: root/test/cxxtest/sample/mock/T/stdlib.h
blob: 30306ba22b980684f8eafbf1f0e4f6cab40e078b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef __T__STDLIB_H
#define __T__STDLIB_H

#include <stdlib.h>
#include <time.h>

#include <cxxtest/Mock.h>

CXXTEST_MOCK_VOID_GLOBAL( srand, ( unsigned seed ), ( seed ) );
CXXTEST_MOCK_GLOBAL( int, rand, ( void ), () );
CXXTEST_MOCK_GLOBAL( time_t, time, ( time_t *t ), ( t ) );

#endif // __T__STDLIB_H