44 lines
957 B
C++
44 lines
957 B
C++
#if GTEST
|
|
|
|
// #include <gmock/gmock.h>
|
|
// not supported using Visual Studio 2022 compiler...
|
|
#include <gtest/gtest.h>
|
|
|
|
#include <chrono>
|
|
|
|
#include "Participant.h"
|
|
#include "Thing.h"
|
|
|
|
using namespace RoboidControl;
|
|
|
|
class ControlCoreSuite2 : public ::testing::Test {
|
|
protected:
|
|
// SetUp and TearDown can be used to set up and clean up before/after each
|
|
// test
|
|
void SetUp() override {
|
|
// Initialize test data here
|
|
}
|
|
|
|
void TearDown() override {
|
|
// Clean up test data here
|
|
}
|
|
};
|
|
|
|
TEST_F(ControlCoreSuite2, Dummytest2) {
|
|
LocalParticipant participant = LocalParticipant("127.0.0.1", 7681);
|
|
ASSERT_EQ(1, 1);
|
|
}
|
|
|
|
TEST_F(ControlCoreSuite2, Basic2) {
|
|
// Thing t = Thing();
|
|
|
|
// unsigned long milliseconds = (unsigned long)std::chrono::steady_clock::now()
|
|
// .time_since_epoch()
|
|
// .count();
|
|
|
|
// // Thing::UpdateAll(milliseconds);
|
|
// t.Update(milliseconds);
|
|
}
|
|
|
|
#endif
|