| 42 | class BufferAllocatorTest : public ::testing::Test { |
| 43 | public: |
| 44 | virtual void SetUp() { |
| 45 | test_env_.reset(new TestEnv); |
| 46 | test_env_->DisableBufferPool(); |
| 47 | ASSERT_OK(test_env_->Init()); |
| 48 | MetricGroup* dummy_metrics = obj_pool_.Add(new MetricGroup("test")); |
| 49 | dummy_pool_ = obj_pool_.Add(new BufferPool(dummy_metrics, 1, 0, 0)); |
| 50 | dummy_reservation_.InitRootTracker(nullptr, 0); |
| 51 | ASSERT_OK(dummy_pool_->RegisterClient("", nullptr, &dummy_reservation_, nullptr, 0, |
| 52 | RuntimeProfile::Create(&obj_pool_, ""), &dummy_client_)); |
| 53 | } |
| 54 | |
| 55 | virtual void TearDown() { |
| 56 | dummy_pool_->DeregisterClient(&dummy_client_); |
nothing calls this directly
no test coverage detected