ReactOS 0.4.15-dev-7961-gdcf9eb0
foreach_test.cpp File Reference
#include <vector>
#include <algorithm>
#include "fadapter.h"
#include "cppunit/cppunit_proxy.h"
Include dependency graph for foreach_test.cpp:

Go to the source code of this file.

Classes

class  ForeachTest
 

Functions

 CPPUNIT_TEST_SUITE_REGISTRATION (ForeachTest)
 
static void increase (int &a_)
 
static void sqr (int &a_)
 

Function Documentation

◆ CPPUNIT_TEST_SUITE_REGISTRATION()

CPPUNIT_TEST_SUITE_REGISTRATION ( ForeachTest  )

◆ increase()

static void increase ( int a_)
static

Definition at line 31 of file foreach_test.cpp.

32{
33 a_ += 1;
34}

Referenced by ForeachTest::foreach0(), and send_discover().

◆ sqr()

static void sqr ( int a_)
static

Definition at line 52 of file foreach_test.cpp.

53{
54 a_ = a_ * a_;
55}

Referenced by ForeachTest::foreach1(), and stat_sum2().