#include #include #define private public #include #undef private class TestApp : public testing::Test { protected: void createUut() { uut_ = std::make_unique(); } std::unique_ptr uut_; }; TEST_F(TestApp, TestApp_run_nominal) { createUut(); uut_->run(); // no expect here } TEST_F(TestApp, TestApp_foo_nominal) { createUut(); EXPECT_EQ(uut_->foo(), 12); }