20 lines
446 B
C++
20 lines
446 B
C++
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
// Licensed under the MIT License.
|
||
|
|
||
|
#include <k4a/k4a.h>
|
||
|
#include <gtest/gtest.h>
|
||
|
|
||
|
TEST(k4a, example)
|
||
|
{
|
||
|
k4a_device_t device = nullptr;
|
||
|
ASSERT_EQ(K4A_RESULT_SUCCEEDED, k4a_device_open(K4A_DEVICE_DEFAULT, &device));
|
||
|
k4a_device_close(device);
|
||
|
device = nullptr;
|
||
|
}
|
||
|
|
||
|
int main(int argc, char **argv)
|
||
|
{
|
||
|
::testing::InitGoogleTest(&argc, argv);
|
||
|
return RUN_ALL_TESTS();
|
||
|
}
|