22 lines
453 B
C++
22 lines
453 B
C++
#define CODE_ERROR_LOCATIONS
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
#include <iostream>
|
|
#include "Processes.hpp"
|
|
#include <Windows.h>
|
|
|
|
TEST(ProcessesTest, GetPID) {
|
|
ASSERT_EQ(nb::GetPID(), GetCurrentProcessId());
|
|
}
|
|
|
|
/* int main() {
|
|
|
|
std::cout << "nb::GetPID() -> " << nb::GetPID() << std::endl;
|
|
|
|
#ifdef _TARGET_WINDOWS
|
|
std::cout << "GetCurrentProcessId() -> " << GetCurrentProcessId() << std::endl;
|
|
#endif // _TARGET_WINDOWS
|
|
|
|
return 0;
|
|
} */ |