Browse Source

Tests: Framework - Add funcs logH1 / logH2

LIB-12
heck 4 years ago
parent
commit
d79fb50070
  1. 21
      test/framework/utils.cc
  2. 4
      test/framework/utils.hh

21
test/framework/utils.cc

@ -3,6 +3,8 @@
#include "utils.hh"
#include <iostream>
#include <pEp/identity_list.h>
#include "../../src/Adapter.hh"
@ -13,6 +15,25 @@ using namespace pEp;
namespace pEp {
namespace Test {
namespace Log {
void logH1(string msg)
{
char decoration{ '=' };
cout << endl
<< endl
<< std::string(30, decoration) << ' ' << msg << ' '
<< std::string(30, decoration) << endl;
}
void logH2(string msg)
{
char decoration{ '-' };
cout << endl
<< std::string(10, decoration) << ' ' << msg << ' '
<< std::string(10, decoration) << endl;
}
} // namespace Log
namespace Utils {
string identity_to_string(::pEp_identity* ident, bool full, int indent)
{

4
test/framework/utils.hh

@ -11,6 +11,10 @@
namespace pEp {
namespace Test {
namespace Log {
void logH1(std::string msg);
void logH2(std::string msg);
}
namespace Utils {
std::string identity_to_string(::pEp_identity* ident, bool full = true, int indent = 0);
std::string identitylist_to_string(::identity_list * idl, bool full = true, int indent = 0);

Loading…
Cancel
Save