Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SmirnovLM committed Apr 7, 2024
1 parent 52b196a commit d5432b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/TimeDoor.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright 2024 Smirnov Leonid

#include <stdexcept>
#include <thread>
#include <chrono>
#include <thread> // NOLINT [build/c++11]
#include <chrono> // NOLINT [build/c++11]

#include "TimedDoor.h"

Expand Down Expand Up @@ -50,4 +50,4 @@ void Timer::tregister(int time_, TimerClient* client_) {
this->client = client_;
sleep(time_);
client_->Timeout();
}
}
8 changes: 4 additions & 4 deletions test/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
#include <gmock/gmock.h>
#include <cstdint>

#include <chrono>
#include <thread>
#include <chrono> // NOLINT [build/c++11]
#include <thread> // NOLINT [build/c++11]

#include "TimedDoor.h"

class MockTimerClient : public TimerClient {
public:
public:
MOCK_METHOD(void, Timeout, (), (override));
};

class TimedDoorTest : public ::testing::Test {
protected:
protected:
TimedDoor door;
MockTimerClient mockClient;
Timer timer;
Expand Down

0 comments on commit d5432b5

Please sign in to comment.