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

18 lines
512 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 <catch2/catch_test_macros.hpp>
#include "wpi/cs/HttpCamera.hpp"
#include "wpi/cs/cscore_cpp.hpp"
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
TEST_CASE("CameraSourceTest HTTPCamera", "[cscore][camera-source]") {
auto source = HttpCamera("camera", "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