From: Maxim Mamontov Date: Wed, 31 Aug 2011 10:15:06 +0000 (+0300) Subject: Fix test tariffs and users interface X-Git-Tag: 2.408-alpha~13 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/d3994fde00a92cffd43c79668802108d3056413b?hp=e19060886ea59cbcb0c97e1712a954f729ef47b3 Fix test tariffs and users interface --- 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; }