MCPcopy Create free account
hub / github.com/Snapchat/Valdi / SetUp

Method SetUp

snap_drawing/test/src/VideoLayer_tests.cpp:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14class VideoLayerTests : public ::testing::Test {
15protected:
16 void SetUp() override {
17 auto resources = makeShared<Resources>(nullptr, 1.0f, ConsoleLogger::getLogger());
18
19 _layerRoot = makeLayer<LayerRoot>(resources);
20 _videoLayer = makeLayer<VideoLayer>(resources);
21 _layerRoot->setContentLayer(_videoLayer, ContentLayerSizingModeMatchSize);
22 _layerRoot->setSize(Size(1.0f, 1.0f), 1.0f);
23 }
24
25 void TearDown() override {
26 _videoLayer = nullptr;

Callers

nothing calls this directly

Calls 3

setContentLayerMethod · 0.80
SizeClass · 0.50
setSizeMethod · 0.45

Tested by

no test coverage detected