summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/command.svg
AgeCommit message (Collapse)Author
2020-02-14qcam: assets: Provide initial icon setKieran Bingham
Provide simple clean icons from https://feathericons.com/ (https://github.com/feathericons/feather) These are provided under the MIT license. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright (C) 2019, Google Inc.
 *
 *  media_device_acquire.cpp- Test acquire/release of a MediaDevice
 */

#include "media_device_test.h"

using namespace libcamera;

class MediaDeviceAcquire : public MediaDeviceTest
{
	int run()
	{
		if (!media_->acquire())
			return TestFail;

		if (media_->acquire())
			return TestFail;

		media_->release();

		if (!media_->acquire())
			return TestFail;

		media_->release();

		return TestPass;
	}
};

TEST_REGISTER(MediaDeviceAcquire)