-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathCommon.h
34 lines (28 loc) · 819 Bytes
/
Common.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
// This file and the associated implementation has been placed in the public domain, waiving all copyright. No restrictions are placed on its use.
#include <string>
namespace tests_cryptoTools
{
//
void InitDebugPrinting(std::string file = "../../testout.txt");
//
extern std::string SolutionDir;
class UnitTestFail : public std::exception
{
std::string mWhat;
public:
explicit UnitTestFail(std::string reason)
:std::exception(),
mWhat(reason)
{}
explicit UnitTestFail()
:std::exception(),
mWhat("UnitTestFailed exception")
{
}
virtual const char* what() const throw()
{
return mWhat.c_str();
}
};
}