2010-02-11 11:15:57 +01:00
|
|
|
#ifndef _OWLPS_POSITIONING_TESTS_TESTUTIL_HH_
|
|
|
|
#define _OWLPS_POSITIONING_TESTS_TESTUTIL_HH_
|
|
|
|
|
2010-02-15 20:39:08 +01:00
|
|
|
#include "accesspoint.hh"
|
|
|
|
#include "mobile.hh"
|
|
|
|
#include "request.hh"
|
|
|
|
|
2010-02-11 11:15:57 +01:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class TestUtil
|
|
|
|
{
|
|
|
|
public:
|
2010-02-15 20:39:08 +01:00
|
|
|
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) ;
|
|
|
|
|
2010-02-11 11:15:57 +01:00
|
|
|
static void fill_file(const std::string &output_file_name,
|
2010-02-15 20:39:08 +01:00
|
|
|
const std::vector<std::string> output_lines) ;
|
2010-02-11 11:15:57 +01:00
|
|
|
static void remove_file(const std::string &file_name) ;
|
2010-02-12 16:45:04 +01:00
|
|
|
|
2010-02-15 20:39:08 +01:00
|
|
|
static void create_test_csv_file(const std::string &file_name,
|
|
|
|
bool with_spaces = false) ;
|
2010-02-11 11:15:57 +01:00
|
|
|
} ;
|
|
|
|
|
|
|
|
#endif // _OWLPS_POSITIONING_TESTS_TESTUTIL_HH_
|