owlps/owlps-positioning/tests/testutil.hh

30 lines
780 B
C++
Raw Normal View History

#ifndef _OWLPS_POSITIONING_TESTS_TESTUTIL_HH_
#define _OWLPS_POSITIONING_TESTS_TESTUTIL_HH_
#include "accesspoint.hh"
#include "mobile.hh"
#include "request.hh"
#include <string>
#include <vector>
class TestUtil
{
public:
static std::vector<AccessPoint> aps ;
static std::vector<Mobile> mobiles ;
static std::vector<Request> requests ;
static void set_up(void) ;
static void tear_down(void) ;
static void fill_file(const std::string &output_file_name,
const std::vector<std::string> output_lines) ;
static void remove_file(const std::string &file_name) ;
static void create_test_csv_file(const std::string &file_name,
bool with_spaces = false) ;
} ;
#endif // _OWLPS_POSITIONING_TESTS_TESTUTIL_HH_