#include <folly/Memory.h>
#include <folly/Arena.h>
#include <folly/String.h>
+#include <folly/portability/GTest.h>
#include <glog/logging.h>
-#include <gtest/gtest.h>
#include <type_traits>
make_unique<string>("hello, world");
}
+TEST(allocate_sys_buffer, compiles) {
+ auto buf = allocate_sys_buffer(256);
+ // Freed at the end of the scope.
+}
+
template <std::size_t> struct T {};
template <std::size_t> struct S {};
template <std::size_t> struct P {};
s.reset();
ASSERT_EQ(nullptr, s.get());
}
-
-int main(int argc, char **argv) {
- FLAGS_logtostderr = true;
- google::InitGoogleLogging(argv[0]);
- testing::InitGoogleTest(&argc, argv);
-
- return RUN_ALL_TESTS();
-}