Remove REGISTER_TESTS define.

This commit is contained in:
levlam 2021-05-26 00:41:15 +03:00
parent 5c11d7de36
commit 90e253d90c
16 changed files with 0 additions and 36 deletions

View File

@ -22,8 +22,6 @@
using namespace td;
REGISTER_TESTS(actors_main);
namespace {
template <class ContainerT>

View File

@ -28,8 +28,6 @@
#include <memory>
#include <tuple>
REGISTER_TESTS(actors_simple)
namespace {
using namespace td;

View File

@ -11,8 +11,6 @@
#include "td/utils/SliceBuilder.h"
REGISTER_TESTS(actors_workers);
namespace {
using namespace td;

View File

@ -18,12 +18,6 @@
#include <functional>
#include <utility>
#define REGISTER_TESTS(x) \
void TD_CONCAT(register_tests_, x)() { \
}
#define DESC_TESTS(x) void TD_CONCAT(register_tests_, x)()
#define LOAD_TESTS(x) TD_CONCAT(register_tests_, x)()
namespace td {
class RandomSteps {

View File

@ -15,8 +15,6 @@
#include <set>
#include <utility>
REGISTER_TESTS(heap)
TEST(Heap, sort_random_perm) {
int n = 1000000;

View File

@ -12,8 +12,6 @@
#include <utility>
REGISTER_TESTS(json)
using namespace td;
static void decode_encode(string str, string result = "") {

View File

@ -18,8 +18,6 @@
#include <limits>
#include <utility>
REGISTER_TESTS(pq)
using namespace td;
#if TD_HAVE_OPENSSL

View File

@ -9,8 +9,6 @@
#include "td/utils/tests.h"
#include "td/utils/Variant.h"
REGISTER_TESTS(variant);
static const size_t BUF_SIZE = 1024 * 1024;
static char buf[BUF_SIZE], buf2[BUF_SIZE];
static td::StringBuilder sb(td::MutableSlice(buf, BUF_SIZE - 1));

View File

@ -35,8 +35,6 @@
#include <map>
#include <memory>
REGISTER_TESTS(db);
using namespace td;
template <class ContainerT>

View File

@ -46,8 +46,6 @@
#include <condition_variable>
#include <mutex>
REGISTER_TESTS(http)
using namespace td;
static string make_chunked(string str) {

View File

@ -18,8 +18,6 @@
#include <algorithm>
REGISTER_TESTS(message_entities);
static void check_mention(const td::string &str, const td::vector<td::string> &expected) {
auto result_slice = td::find_mentions(str);
td::vector<td::string> result;

View File

@ -43,8 +43,6 @@
#include "td/utils/tests.h"
#include "td/utils/Time.h"
REGISTER_TESTS(mtproto);
using namespace td;
TEST(Mtproto, GetHostByNameActor) {

View File

@ -9,8 +9,6 @@
#include "td/utils/logging.h"
#include "td/utils/tests.h"
REGISTER_TESTS(poll);
static void check_vote_percentage(std::vector<td::int32> voter_counts, td::int32 total_count,
std::vector<td::int32> expected) {
auto result = td::PollManager::get_vote_percentage(voter_counts, total_count);

View File

@ -53,8 +53,6 @@
#include <map>
#include <memory>
REGISTER_TESTS(secret);
namespace my_api {
using namespace td;

View File

@ -9,8 +9,6 @@
#include "td/utils/Slice.h"
#include "td/utils/tests.h"
REGISTER_TESTS(string_cleaning);
using namespace td;
TEST(StringCleaning, clean_name) {

View File

@ -41,8 +41,6 @@
#include <set>
#include <utility>
REGISTER_TESTS(tdclient);
template <class T>
static void check_td_error(T &result) {
LOG_CHECK(result->get_id() != td::td_api::error::ID) << to_string(result);