Skip to content

Commit 0a552d0

Browse files
committed
Fix unit tests (All pass)
1 parent 8438327 commit 0a552d0

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CMakeLists.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,16 @@ add_executable(command_tests
110110
tests/command_tests.cpp
111111
server/server.h
112112
server/server.cpp
113+
server/ServerAuthenticator.h
114+
server/ServerAuthenticator.cpp
113115
client/client.h
114116
client/client.cpp
117+
client/assist/clientAuth.h
118+
client/assist/clientAuth.cpp
119+
client/user/user.h
120+
client/user/user.cpp
121+
client/user/userCred.h
122+
client/user/userCred.cpp
115123

116124
client/emojis.h
117125
client/client_command_handler.h
@@ -133,5 +141,5 @@ TARGET_COMPILE_DEFINITIONS(baseline_test_run PRIVATE gtest_disable_pthreads=ON)
133141
TARGET_LINK_LIBRARIES(server_shut_off_test gtest)
134142
TARGET_COMPILE_DEFINITIONS(baseline_test_run PRIVATE gtest_disable_pthreads=ON)
135143

136-
TARGET_LINK_LIBRARIES(command_tests gtest)
144+
TARGET_LINK_LIBRARIES(command_tests gtest gtest_main)
137145
TARGET_COMPILE_DEFINITIONS(baseline_test_run PRIVATE gtest_disable_pthreads=ON)

client/client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void Client::Start() {
5757
receiveThread.join();
5858
}
5959

60-
void Client::SendLoop() { //possibly add an outstream thing or print function so we can use it for unit tests as well
60+
void Client::SendLoop(std::string username) { //possibly add an outstream thing or print function so we can use it for unit tests as well
6161
while (isRunning) {
6262
char buffer[MAXBYTES];
6363
// Prompt the user for input and read it into the buffer

command_tests

1.53 MB
Binary file not shown.

0 commit comments

Comments
 (0)