void MgrTest::SetUp() { Base::SetUp(); m_omm = gd_om_mgr_create(t_allocrator(), 256, 1024); ASSERT_TRUE(m_omm); gd_om_mgr_set_backend_memory(m_omm, t_allocrator()); }
void SearchDirTest::do_search(int maxLevel) { struct dir_visitor visitor; visitor.on_dir_enter = on_dir_enter; visitor.on_dir_leave = on_dir_leave; visitor.on_file = on_file; dir_search(&visitor, this, t_dir_base(), maxLevel, t_em(), t_allocrator()); }
void with_dr_store::SetUp() { Base::SetUp(); m_dr_store_mgr = dr_store_manage_create( envOf<gd::app::testenv::with_app>().t_app(), NULL, t_allocrator(), NULL); }
void with_evt::SetUp() { gd_evt_mgr_t evt_mgr = gd_evt_mgr_create( envOf<gd::app::testenv::with_app>().t_app(), NULL, t_allocrator(), NULL); EXPECT_TRUE(evt_mgr) << "crate default gd_evt_mgr fail!"; gd_evt_mgr_set_metalib(evt_mgr, "default-evt-mgr-meta-lib"); }
void with_dp::SetUp() { m_dp = dp_mgr_create(t_allocrator()); }
void BufferTest::SetUp() { Base::SetUp(); mem_buffer_init(&m_buffer, t_allocrator()); }