diff --git a/src/testharness.h b/src/testharness.h index 9879b06e..4e2fa883 100644 --- a/src/testharness.h +++ b/src/testharness.h @@ -192,12 +192,12 @@ std::vector ValuesIn(const std::vector &v) { std::vector TCONCAT(base, _get_params_, base)(); \ class TCONCAT(base, _Test_p_, name) : public base { \ public: \ - const std::vector GetParams() const { \ + std::vector GetParams() const { \ return TCONCAT(base, _get_params_, base)(); \ } \ ParamType param_; \ void SetParam(const ParamType ¶m) { param_ = param; } \ - const ParamType GetParam() { return param_; } \ + ParamType GetParam() const { return param_; } \ void _Run(); \ static void _RunIt() { \ TCONCAT(base, _Test_p_, name) t; \