Skip to content

Commit b4fb757

Browse files
committed
include review comments, will be squashed
1 parent 74421b7 commit b4fb757

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

auto_tests/toxav_mt_test.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
// Make lines shorter
1818
using Clock = std::chrono::high_resolution_clock;
19-
using TimePoint = std::chrono::time_point<Clock>;
19+
using Time_Point = std::chrono::time_point<Clock>;
2020

2121
namespace {
2222
// Maximum amount of time in iterations to wait for bootstrapping and friend
@@ -222,9 +222,9 @@ class AV_State {
222222
ck_assert(state != TOXAV_FRIEND_CALL_STATE_ERROR);
223223
std::cout << "[" << me->name_ << "] State changed to: " << std::to_string(state) << std::endl;
224224
me->call_state_.store(state);
225-
TimePoint tp = me->call_start_.load();
225+
Time_Point tp = me->call_start_.load();
226226

227-
if (state != TOXAV_FRIEND_CALL_STATE_NONE && tp == TimePoint()) {
227+
if (state != TOXAV_FRIEND_CALL_STATE_NONE && tp == Time_Point()) {
228228
me->call_start_.store(Clock::now());
229229
me->in_call_.store(true);
230230
}
@@ -287,14 +287,14 @@ class AV_State {
287287

288288
if (in_call_.load()) {
289289
uint32_t state = call_state_.load();
290-
TimePoint tp = call_start_.load();
290+
Time_Point tp = call_start_.load();
291291
std::chrono::duration<double> call_time = Clock::now() - tp;
292292

293293
if (state == TOXAV_FRIEND_CALL_STATE_FINISHED) {
294294
std::cout << "[" << name_ << "] Call ended by other side after: " << call_time.count()
295295
<< "s" << std::endl;
296296
in_call_.store(false);
297-
} else if (tp > TimePoint() && call_time > AV_State::AUTO_HANGUP_TIME) {
297+
} else if (tp > Time_Point() && call_time > AV_State::AUTO_HANGUP_TIME) {
298298
std::cout << "[" << name_ << "] Ending call after: " << call_time.count() << "s"
299299
<< std::endl;
300300
Toxav_Err_Call_Control cc_err;
@@ -355,7 +355,7 @@ class AV_State {
355355
std::atomic_bool incomming_;
356356
std::atomic_uint32_t call_state_;
357357

358-
std::atomic<TimePoint> call_start_;
358+
std::atomic<Time_Point> call_start_;
359359
std::atomic_bool in_call_;
360360

361361
std::atomic_bool video_received_;

0 commit comments

Comments
 (0)