/usr/include/measurement_kit/nettests/nettests.hpp is in libmeasurement-kit-dev 0.7.1-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | // Part of measurement-kit <https://measurement-kit.github.io/>.
// Measurement-kit is free software. See AUTHORS and LICENSE for more
// information on the copying conditions.
#ifndef MEASUREMENT_KIT_NETTESTS_NETTESTS_HPP
#define MEASUREMENT_KIT_NETTESTS_NETTESTS_HPP
#include <stdint.h>
#include <functional>
#include <string>
#include <measurement_kit/common/callback.hpp>
#include <measurement_kit/common/delegate.hpp>
#include <measurement_kit/common/lexical_cast.hpp>
#include <measurement_kit/common/settings.hpp>
#include <measurement_kit/common/var.hpp>
namespace mk {
namespace nettests {
class Runnable;
class BaseTest {
public:
BaseTest &on_logger_eof(Delegate<>);
BaseTest &on_log(Delegate<uint32_t, const char *>);
BaseTest &on_event(Delegate<const char *>);
BaseTest &on_progress(Delegate<double, const char *>);
BaseTest &set_verbosity(uint32_t);
BaseTest &increase_verbosity();
BaseTest();
virtual ~BaseTest();
BaseTest &add_input(std::string);
BaseTest &add_input_filepath(std::string);
BaseTest &set_input_filepath(std::string);
BaseTest &set_output_filepath(std::string);
BaseTest &set_error_filepath(std::string);
template <typename T,
typename = typename std::enable_if<
!std::is_same<std::string, T>::value>::type>
BaseTest &set_options(std::string key, T value) {
return set_options(key, lexical_cast<std::string>(value));
}
BaseTest &set_options(std::string key, std::string value);
BaseTest &on_entry(Delegate<std::string>);
BaseTest &on_begin(Delegate<>);
BaseTest &on_end(Delegate<> cb);
BaseTest &on_destroy(Delegate<> cb);
void run();
void start(Callback<> func);
Var<Runnable> runnable;
Settings settings;
};
#define MK_DECLARE_TEST(_name_) \
class _name_ : public BaseTest { \
public: \
_name_(); \
}
MK_DECLARE_TEST(DashTest);
MK_DECLARE_TEST(DnsInjectionTest);
MK_DECLARE_TEST(HttpHeaderFieldManipulationTest);
MK_DECLARE_TEST(HttpInvalidRequestLineTest);
MK_DECLARE_TEST(MeekFrontedRequestsTest);
MK_DECLARE_TEST(MultiNdtTest);
MK_DECLARE_TEST(NdtTest);
MK_DECLARE_TEST(TcpConnectTest);
MK_DECLARE_TEST(WebConnectivityTest);
} // namespace nettests
} // namespace mk
#endif
|