libcryfs/test/cpp-utils/system/GetTotalMemoryTest.cpp
Sebastian Messmer 1126d7bd10 - Make get_total_memory work for windows
- Add test cases for it
2018-05-16 22:22:42 -07:00

14 lines
295 B
C++

#include <gtest/gtest.h>
#include <cpp-utils/system/get_total_memory.h>
using cpputils::system::get_total_memory;
TEST(GetTotalMemoryTest, DoesntCrash) {
get_total_memory();
}
TEST(GetTotalMemoryTest, IsNotZero) {
uint64_t mem = get_total_memory();
EXPECT_LT(UINT64_C(0), mem);
}