microprogress

This commit is contained in:
rusefi 2019-01-17 22:59:17 -05:00
parent bdd0478652
commit 82131d590c
3 changed files with 24 additions and 10 deletions

View File

@ -7,6 +7,7 @@
#include "unit_test_framework.h"
#include "hip9011_lookup.h"
#include "HIP9011_logic.h"
#include "test_parameters.h"
using ::testing::_;
TEST(hip9011, lookup) {

View File

@ -2,19 +2,11 @@
* @file test_on_demand_parameters.cpp
*
* Created on: Jan 16, 2019
* @author Andrey Belomutskiy, (c) 2012-2018
* @author Andrey Belomutskiy, (c) 2012-2019
*/
#include <unordered_map>
#include "unit_test_framework.h"
using namespace std;
class TestParameters {
public:
unordered_map<string, float> values;
TestParameters* put(string key, float value);
float get(string key) const;
};
#include "test_parameters.h"
TestParameters* TestParameters::put(string key, float value) {
values[key] = value;

View File

@ -0,0 +1,21 @@
/*
* test_parameters.h
*
* Created on: Jan 17, 2019
* @author Andrey Belomutskiy, (c) 2012-2019
*/
#ifndef TESTS_TEST_PARAMETERS_H_
#define TESTS_TEST_PARAMETERS_H_
#include <unordered_map>
using namespace std;
class TestParameters {
public:
unordered_map<string, float> values;
TestParameters* put(string key, float value);
float get(string key) const;
};
#endif /* TESTS_TEST_PARAMETERS_H_ */