diff options
Diffstat (limited to 'tests/libsample')
-rw-r--r-- | tests/libsample/listuser.h | 6 | ||||
-rw-r--r-- | tests/libsample/pairuser.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/libsample/listuser.h b/tests/libsample/listuser.h index c1ea7091e..f2bfe13b4 100644 --- a/tests/libsample/listuser.h +++ b/tests/libsample/listuser.h @@ -17,6 +17,12 @@ public: double sumList(std::list<int> vallist); double sumList(std::list<double> vallist); + + void setList(std::list<int> lst) { m_lst = lst; } + std::list<int> getList() { return m_lst; } + +private: + std::list<int> m_lst; }; #endif // LISTUSER_H diff --git a/tests/libsample/pairuser.h b/tests/libsample/pairuser.h index 27cf76681..109d72189 100644 --- a/tests/libsample/pairuser.h +++ b/tests/libsample/pairuser.h @@ -14,6 +14,12 @@ public: std::pair<int, int> callCreatePair(); static std::pair<Complex, Complex> createComplexPair(Complex cpx0, Complex cpx1); double sumPair(std::pair<int, double> pair); + + void setPair(std::pair<int, int> pair) { m_pair = pair; } + std::pair<int, int> getPair() { return m_pair; } + +private: + std::pair<int, int> m_pair; }; #endif // PAIRUSER_H |