diff options
Diffstat (limited to 'test/serialization')
-rw-r--r-- | test/serialization/ipa_data_serializer_test.cpp | 12 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2018, Google Inc.
*
* utils.h - Miscellaneous utility functions
*/
#ifndef __LIBCAMERA_UTILS_H__
#define __LIBCAMERA_UTILS_H__
#include <algorithm>
#include <chrono>
#include <memory>
#include <ostream>
#include <string>
#include <string.h>
#include <sys/time.h>
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
#ifndef __DOXYGEN__
/* uClibc and uClibc-ng don't provide O_TMPFILE */
#ifndef O_TMPFILE
#define O_TMPFILE (020000000 | O_DIRECTORY)
#endif
#endif
namespace libcamera {
namespace utils {
const char *basename(const char *path);
char *secure_getenv(const char *name);
template<class InputIt1, class InputIt2>
unsigned int set_overlap(InputIt1 first1, InputIt1 last1,
InputIt2 first2, InputIt2 last2)
{
unsigned int count = 0;
while (first1 != last1 && first2 != last2) {
if (*first1 < *first2) {
++first1;
} else {
if (!(*first2 < *first1))
count fds;
+ std::vector<FileDescriptor> fds;
if (testMapSerdes(mapUintStr) != TestPass)
return TestFail;
@@ -359,7 +359,7 @@ private:
std::string strEmpty = "";
std::vector<uint8_t> buf;
- std::vector<int32_t> fds;
+ std::vector<FileDescriptor> fds;
if (testPodSerdes(u32min) != TestPass)
return TestFail;