2020-12-26 14:12:05 -08:00
|
|
|
// 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
|
|
|
|
2023-08-28 15:13:34 -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:
|
2020-12-28 00:37:33 -08:00
|
|
|
CameraSourceTest() = default;
|
2016-08-14 12:38:13 -07:00
|
|
|
};
|
|
|
|
|
|
2016-09-10 13:01:16 -07:00
|
|
|
TEST_F(CameraSourceTest, HTTPCamera) {
|
2017-08-18 17:52:08 -07:00
|
|
|
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
|