summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/eye.svg
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcam/assets/feathericons/eye.svg')
0 files changed, 0 insertions, 0 deletions
device_acquire.cpp?h=jmondi/android/ndk/pinephonepro&id=fac471e812a988905aa2c6a0914f5fc9a72ee111'>plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);