// Copyright 2004-present Facebook. All Rights Reserved. #include #include #include #include "osquery/core/conversions.h" namespace osquery { class ConversionsTests : public testing::Test {}; class Foobar {}; TEST_F(ConversionsTests, test_conversion) { boost::shared_ptr b1 = boost::make_shared(); std::shared_ptr s1 = boost_to_std_shared_ptr(b1); EXPECT_EQ(s1.get(), b1.get()); std::shared_ptr s2 = std::make_shared(); boost::shared_ptr b2 = std_to_boost_shared_ptr(s2); EXPECT_EQ(s2.get(), b2.get()); } } int main(int argc, char* argv[]) { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }