| 269 | class ComponentManagerTest : public ::testing::Test { |
| 270 | protected: |
| 271 | void SetUp() override { |
| 272 | surfaceContext_ = std::make_unique<MockSurfaceContextCM>(); |
| 273 | vdom_ = std::make_unique<MockVirtualDOMForCM>(); |
| 274 | batchGuard_ = std::make_unique<BatchGuard>([](){}); |
| 275 | |
| 276 | ON_CALL(*vdom_, batchGuard()).WillByDefault(::testing::Return(batchGuard_.get())); |
| 277 | EXPECT_CALL(*vdom_, updateNode(::testing::_)).Times(::testing::AnyNumber()); |
| 278 | |
| 279 | cm_ = std::make_unique<ComponentManager>(surfaceContext_.get(), vdom_.get(), "default"); |
| 280 | } |
| 281 | |
| 282 | std::unique_ptr<MockSurfaceContextCM> surfaceContext_; |
| 283 | std::unique_ptr<MockVirtualDOMForCM> vdom_; |