File: time_mock.h

package info (click to toggle)
cxxtest 4.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,892 kB
  • sloc: cpp: 8,220; python: 7,036; xml: 435; ruby: 229; sh: 169; ansic: 68; makefile: 64; perl: 16
file content (8 lines) | stat: -rw-r--r-- 315 bytes parent folder | download
1
2
3
4
5
6
7
8
// time_mock.h
#include <time.h>
#include <cxxtest/Mock.h>

CXXTEST_MOCK_GLOBAL( time_t,        /* Return type          */
                     time,          /* Name of the function */
                     ( time_t *t ), /* Prototype            */
                     ( t )          /* Argument list        */ );