summaryrefslogtreecommitdiff
path: root/src/apps/qcam/assets/feathericons/play-circle.svg
blob: 8766dc7bfbc42ab611c3b5be50fd27c6cc9c196a (plain)
1
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-play-circle"><circle cx="12" cy="12" r="10"></circle><polygon points="10 8 16 12 10 16 10 8"></polygon></svg>
">: public Test { protected: int init() { cm_ = new CameraManager(); if (cm_->start()) { std::cout << "Failed to start camera" << std::endl; return TestFail; } return 0; } int run() { unsigned int count = 0; for (const std::shared_ptr<Camera> &camera : cm_->cameras()) { cout << "- " << camera->name() << endl; count++; } return count ? 0 : -ENODEV; } void cleanup() { cm_->stop(); delete cm_; } private: CameraManager *cm_; }; TEST_REGISTER(ListTest)