summaryrefslogtreecommitdiff
path: root/test/public-api.cpp
blob: b1336f7560a82ef9864060e6d28915e141aaa74f (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 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)