t - Laurent Pinchart's clone of libcamera
summaryrefslogtreecommitdiff
path: root/test/public-api.cpp
blob: a1cebcf99b9b27489800fd2c3b0eb119c5f76767 (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
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright (C) 2021, Google Inc.
 *
 * public-api.cpp - Public API validation
 */

#include <libcamera/libcamera.h>

#include "test.h"

class PublicAPITest : public Test
{
	int run()
	{
#ifdef LIBCAMERA_BASE_PRIVATE
#error "Public interfaces should not be exposed to LIBCAMERA_BASE_PRIVATE"
		return TestFail;
#else
		return TestPass;
#endif
	}
};

TEST_REGISTER(PublicAPITest)