Files
allwpilib/cscore/src/test/native/cpp/CameraSourceTest.cpp

22 lines
523 B
C++
Raw Normal View History

// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
2016-08-14 12:38:13 -07:00
#include <gtest/gtest.h>
2025-11-07 19:56:21 -05:00
#include "wpi/cs/cscore.h"
2016-09-10 13:01:16 -07:00
2025-11-07 20:00:05 -05:00
namespace wpi::cs {
2016-08-14 12:38:13 -07:00
class CameraSourceTest : public ::testing::Test {
protected:
CameraSourceTest() = default;
2016-08-14 12:38:13 -07:00
};
2016-09-10 13:01:16 -07:00
TEST_F(CameraSourceTest, HTTPCamera) {
auto source = HttpCamera("axis", "http://localhost:8000");
2025-11-07 20:00:05 -05:00
wpi::cs::Shutdown();
2016-08-14 12:38:13 -07:00
}
2025-11-07 20:00:05 -05:00
} // namespace wpi::cs