summaryrefslogtreecommitdiff
path: root/testing/random_testing.cc
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-07-16 22:46:02 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-07-21 20:44:26 +0000
commit7245ac11ef9be2420c8356c12acc79f93ea211bb (patch)
treee971c5c6e10c2310afe4b2cd80212feac9839f2a /testing/random_testing.cc
parent7c2b95ef5e4ccdae01bd104aa7400294c9ea391b (diff)
Avoid implementations in .h files or #including .c files.
Also, avoid the need for putting `_XOPEN_SOURCE` in every test file.
Diffstat (limited to 'testing/random_testing.cc')
-rw-r--r--testing/random_testing.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/testing/random_testing.cc b/testing/random_testing.cc
index f4175675..bcdb8e70 100644
--- a/testing/random_testing.cc
+++ b/testing/random_testing.cc
@@ -11,7 +11,7 @@
11#include <vector> 11#include <vector>
12 12
13#include "../toxcore/tox.h" 13#include "../toxcore/tox.h"
14#include "misc_tools.c" 14#include "misc_tools.h"
15 15
16namespace { 16namespace {
17 17
@@ -32,8 +32,6 @@ constexpr uint32_t MAX_ACTIONS = 10000;
32constexpr uint32_t MAX_ACTION_ATTEMPTS = 100; 32constexpr uint32_t MAX_ACTION_ATTEMPTS = 100;
33// Number of tox_iterate calls between each action. 33// Number of tox_iterate calls between each action.
34constexpr uint32_t ITERATIONS_PER_ACTION = 1; 34constexpr uint32_t ITERATIONS_PER_ACTION = 1;
35// Amount of time in milliseconds to wait between tox_iterate calls.
36constexpr uint32_t ITERATION_INTERVAL = 5;
37 35
38struct Tox_Options_Deleter { 36struct Tox_Options_Deleter {
39 void operator()(Tox_Options *options) const { tox_options_free(options); } 37 void operator()(Tox_Options *options) const { tox_options_free(options); }