From d3994fde00a92cffd43c79668802108d3056413b Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Wed, 31 Aug 2011 13:15:06 +0300 Subject: [PATCH] Fix test tariffs and users interface --- tests/testtariffs.h | 3 ++- tests/testusers.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/testtariffs.h b/tests/testtariffs.h index e2651814..2e4dd5f0 100644 --- a/tests/testtariffs.h +++ b/tests/testtariffs.h @@ -12,13 +12,14 @@ class TEST_TARIFFS : public TARIFFS { int ReadTariffs () { return 0; } const TARIFF * FindByName(const std::string & /*name*/) const { return &testTariff; } const TARIFF * GetNoTariff() const { return NULL; } - int GetTariffsNum() const { return 0; } int Del(const std::string & /*name*/, const ADMIN * /*admin*/) { return 0; } int Add(const std::string & /*name*/, const ADMIN * /*admin*/) { return 0; } int Chg(const TARIFF_DATA & /*td*/, const ADMIN * /*admin*/) { return 0; } void GetTariffsData(std::list * /*tdl*/) {} + size_t Count() const { return 0; } + const std::string & GetStrError() const { return strError; } void SetFee(double fee); diff --git a/tests/testusers.h b/tests/testusers.h index bbf48063..780d0dd9 100644 --- a/tests/testusers.h +++ b/tests/testusers.h @@ -22,7 +22,7 @@ class TEST_USERS : public USERS { void Del(const std::string & /*login*/, const ADMIN * /*admin*/) {} int ReadUsers() { return 0; } - int GetUserNum() const { return 0; } + virtual size_t Count() const { return 0; }; int FindByIPIdx(uint32_t /*ip*/, USER_PTR * /*user*/) const { return -1; } -- 2.44.2