OpenVPN 3 Core Library
Loading...
Searching...
No Matches
core_tests.cpp
Go to the documentation of this file.
1
// OpenVPN -- An application to securely tunnel IP networks
2
// over a single port, with support for SSL/TLS-based
3
// session authentication and key exchange,
4
// packet encryption, packet authentication, and
5
// packet compression.
6
//
7
// Copyright (C) 2012- OpenVPN Inc.
8
//
9
// SPDX-License-Identifier: MPL-2.0 OR AGPL-3.0-only WITH openvpn3-openssl-exception
10
//
11
12
13
#include <gtest/gtest.h>
14
15
16
// We also need to import here all header files that
17
// define globals so that consumers that use them despite
18
// requesting them not to be declared with OPENVPN_EXTERN
19
20
#include <
asio.hpp
>
21
#include "
test_helper.hpp
"
22
#include <
openvpn/ssl/sslchoose.hpp
>
23
#include <
openvpn/init/initprocess.hpp
>
24
25
openvpn::LogOutputCollector
*
testLog
;
26
27
int
main
(
int
argc,
char
**argv)
28
{
29
testLog
=
new
openvpn::LogOutputCollector
();
30
::testing::InitGoogleTest(&argc, argv);
31
openvpn::InitProcess::Init
init;
32
auto
ret
= RUN_ALL_TESTS();
33
34
delete
testLog
;
35
return
ret
;
36
}
asio.hpp
openvpn::InitProcess::Init
Definition
initprocess.hpp:28
openvpn::LogOutputCollector
Definition
test_helper.hpp:29
main
int main(int argc, char **argv)
Definition
core_tests.cpp:27
testLog
openvpn::LogOutputCollector * testLog
Definition
core_tests.cpp:25
initprocess.hpp
sslchoose.hpp
ret
std::string ret
Definition
test_capture.cpp:267
test_helper.hpp
test
unittests
core_tests.cpp
Generated by
1.9.8