Skip to content
Snippets Groups Projects
Commit 4ca000a8 authored by Olivier Dion's avatar Olivier Dion Committed by Sébastien Blin
Browse files

unitTest/common: Fix missing includes

Change-Id: I08d78c5a243adf1ab78e24528f5798c8a49d3350
parent 302c04d0
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
#include <yaml-cpp/yaml.h> #include <yaml-cpp/yaml.h>
#include "common.h"
/* Jami */ /* Jami */
#include "account_const.h" #include "account_const.h"
#include "dring.h" #include "dring.h"
...@@ -36,7 +38,7 @@ ...@@ -36,7 +38,7 @@
void void
wait_for_announcement_of(const std::vector<std::string> accountIDs, wait_for_announcement_of(const std::vector<std::string> accountIDs,
std::chrono::seconds timeout = std::chrono::seconds(30)) std::chrono::seconds timeout)
{ {
std::map<std::string, std::shared_ptr<DRing::CallbackWrapperBase>> confHandlers; std::map<std::string, std::shared_ptr<DRing::CallbackWrapperBase>> confHandlers;
std::mutex mtx; std::mutex mtx;
...@@ -91,14 +93,14 @@ wait_for_announcement_of(const std::vector<std::string> accountIDs, ...@@ -91,14 +93,14 @@ wait_for_announcement_of(const std::vector<std::string> accountIDs,
void void
wait_for_announcement_of(const std::string& accountId, wait_for_announcement_of(const std::string& accountId,
std::chrono::seconds timeout = std::chrono::seconds(30)) std::chrono::seconds timeout)
{ {
wait_for_announcement_of(std::vector<std::string> {accountId}, timeout); wait_for_announcement_of(std::vector<std::string> {accountId}, timeout);
} }
void void
wait_for_removal_of(const std::vector<std::string> accounts, wait_for_removal_of(const std::vector<std::string> accounts,
std::chrono::seconds timeout = std::chrono::seconds(30)) std::chrono::seconds timeout)
{ {
JAMI_INFO("Removing %zu accounts...", accounts.size()); JAMI_INFO("Removing %zu accounts...", accounts.size());
...@@ -137,7 +139,7 @@ wait_for_removal_of(const std::vector<std::string> accounts, ...@@ -137,7 +139,7 @@ wait_for_removal_of(const std::vector<std::string> accounts,
void void
wait_for_removal_of(const std::string& account, wait_for_removal_of(const std::string& account,
std::chrono::seconds timeout = std::chrono::seconds(30)) std::chrono::seconds timeout)
{ {
wait_for_removal_of(std::vector<std::string>{account}, timeout); wait_for_removal_of(std::vector<std::string>{account}, timeout);
} }
......
...@@ -20,6 +20,11 @@ ...@@ -20,6 +20,11 @@
#pragma once #pragma once
#include <chrono>
#include <cstdint>
#include <map>
#include <string>
constexpr size_t WAIT_FOR_ANNOUNCEMENT_TIMEOUT = 30; constexpr size_t WAIT_FOR_ANNOUNCEMENT_TIMEOUT = 30;
constexpr size_t WAIT_FOR_REMOVAL_TIMEOUT = 30; constexpr size_t WAIT_FOR_REMOVAL_TIMEOUT = 30;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment