[cscore, wpilibcExamples] Use double-quote includes for wpi/ (#8346)

Use ERR and WARN in cscore to avoid conflict with Windows headers.
This commit is contained in:
Peter Johnson
2025-11-08 16:58:51 -08:00
committed by GitHub
parent fc4e922206
commit 5c9c45fadb
226 changed files with 868 additions and 951 deletions

View File

@@ -6,17 +6,17 @@
#include <thread>
#include <gtest/gtest.h>
#include <wpi/hal/simulation/MockHooks.h>
#include <wpi/simulation/DriverStationSim.hpp>
#include <wpi/simulation/JoystickSim.hpp>
#include <wpi/simulation/PWMMotorControllerSim.hpp>
#include <wpi/simulation/SimHooks.hpp>
#include <wpi/units/length.hpp>
#include <wpi/units/time.hpp>
#include <wpi/util/Preferences.hpp>
#include "Constants.hpp"
#include "Robot.hpp"
#include "wpi/hal/simulation/MockHooks.h"
#include "wpi/simulation/DriverStationSim.hpp"
#include "wpi/simulation/JoystickSim.hpp"
#include "wpi/simulation/PWMMotorControllerSim.hpp"
#include "wpi/simulation/SimHooks.hpp"
#include "wpi/units/length.hpp"
#include "wpi/units/time.hpp"
#include "wpi/util/Preferences.hpp"
class ArmSimulationTest : public testing::TestWithParam<wpi::units::degree_t> {
Robot m_robot;

View File

@@ -3,7 +3,8 @@
// the WPILib BSD license file in the root directory of this project.
#include <gtest/gtest.h>
#include <wpi/hal/HALBase.h>
#include "wpi/hal/HALBase.h"
/**
* Runs all unit tests.

View File

@@ -6,12 +6,12 @@
#include <thread>
#include <gtest/gtest.h>
#include <wpi/simulation/DIOSim.hpp>
#include <wpi/simulation/DriverStationSim.hpp>
#include <wpi/simulation/SimHooks.hpp>
#include <wpi/units/time.hpp>
#include "Robot.hpp"
#include "wpi/simulation/DIOSim.hpp"
#include "wpi/simulation/DriverStationSim.hpp"
#include "wpi/simulation/SimHooks.hpp"
#include "wpi/units/time.hpp"
template <typename T>
class DigitalCommunicationTest : public testing::TestWithParam<T> {

View File

@@ -3,7 +3,8 @@
// the WPILib BSD license file in the root directory of this project.
#include <gtest/gtest.h>
#include <wpi/hal/HALBase.h>
#include "wpi/hal/HALBase.h"
/**
* Runs all unit tests.

View File

@@ -6,17 +6,17 @@
#include <thread>
#include <gtest/gtest.h>
#include <wpi/hal/simulation/MockHooks.h>
#include <wpi/simulation/DriverStationSim.hpp>
#include <wpi/simulation/JoystickSim.hpp>
#include <wpi/simulation/PWMMotorControllerSim.hpp>
#include <wpi/simulation/SimHooks.hpp>
#include <wpi/units/length.hpp>
#include <wpi/units/mass.hpp>
#include <wpi/units/time.hpp>
#include "Constants.hpp"
#include "Robot.hpp"
#include "wpi/hal/simulation/MockHooks.h"
#include "wpi/simulation/DriverStationSim.hpp"
#include "wpi/simulation/JoystickSim.hpp"
#include "wpi/simulation/PWMMotorControllerSim.hpp"
#include "wpi/simulation/SimHooks.hpp"
#include "wpi/units/length.hpp"
#include "wpi/units/mass.hpp"
#include "wpi/units/time.hpp"
using namespace Constants;

View File

@@ -3,7 +3,8 @@
// the WPILib BSD license file in the root directory of this project.
#include <gtest/gtest.h>
#include <wpi/hal/HALBase.h>
#include "wpi/hal/HALBase.h"
/**
* Runs all unit tests.

View File

@@ -6,12 +6,12 @@
#include <thread>
#include <gtest/gtest.h>
#include <wpi/hal/simulation/I2CData.h>
#include <wpi/simulation/DriverStationSim.hpp>
#include <wpi/simulation/SimHooks.hpp>
#include <wpi/units/time.hpp>
#include "Robot.hpp"
#include "wpi/hal/simulation/I2CData.h"
#include "wpi/simulation/DriverStationSim.hpp"
#include "wpi/simulation/SimHooks.hpp"
#include "wpi/units/time.hpp"
static std::string gString;

View File

@@ -3,7 +3,8 @@
// the WPILib BSD license file in the root directory of this project.
#include <gtest/gtest.h>
#include <wpi/hal/HALBase.h>
#include "wpi/hal/HALBase.h"
/**
* Runs all unit tests.

View File

@@ -6,20 +6,20 @@
#include <thread>
#include <gtest/gtest.h>
#include <wpi/hal/simulation/MockHooks.h>
#include <wpi/math/system/plant/DCMotor.hpp>
#include <wpi/simulation/AnalogInputSim.hpp>
#include <wpi/simulation/DriverStationSim.hpp>
#include <wpi/simulation/ElevatorSim.hpp>
#include <wpi/simulation/JoystickSim.hpp>
#include <wpi/simulation/PWMMotorControllerSim.hpp>
#include <wpi/simulation/SimHooks.hpp>
#include <wpi/system/RobotController.hpp>
#include <wpi/units/length.hpp>
#include <wpi/units/mass.hpp>
#include <wpi/units/time.hpp>
#include "Robot.hpp"
#include "wpi/hal/simulation/MockHooks.h"
#include "wpi/math/system/plant/DCMotor.hpp"
#include "wpi/simulation/AnalogInputSim.hpp"
#include "wpi/simulation/DriverStationSim.hpp"
#include "wpi/simulation/ElevatorSim.hpp"
#include "wpi/simulation/JoystickSim.hpp"
#include "wpi/simulation/PWMMotorControllerSim.hpp"
#include "wpi/simulation/SimHooks.hpp"
#include "wpi/system/RobotController.hpp"
#include "wpi/units/length.hpp"
#include "wpi/units/mass.hpp"
#include "wpi/units/time.hpp"
class PotentiometerPIDTest : public testing::Test {
wpi::math::DCMotor m_elevatorGearbox = wpi::math::DCMotor::Vex775Pro(4);

View File

@@ -3,7 +3,8 @@
// the WPILib BSD license file in the root directory of this project.
#include <gtest/gtest.h>
#include <wpi/hal/HALBase.h>
#include "wpi/hal/HALBase.h"
/**
* Runs all unit tests.

View File

@@ -3,7 +3,8 @@
// the WPILib BSD license file in the root directory of this project.
#include <gtest/gtest.h>
#include <wpi/hal/HALBase.h>
#include "wpi/hal/HALBase.h"
/**
* Runs all unit tests.

View File

@@ -3,12 +3,12 @@
// the WPILib BSD license file in the root directory of this project.
#include <gtest/gtest.h>
#include <wpi/hardware/pneumatic/DoubleSolenoid.hpp>
#include <wpi/simulation/DoubleSolenoidSim.hpp>
#include <wpi/simulation/PWMMotorControllerSim.hpp>
#include "Constants.hpp"
#include "subsystems/Intake.hpp"
#include "wpi/hardware/pneumatic/DoubleSolenoid.hpp"
#include "wpi/simulation/DoubleSolenoidSim.hpp"
#include "wpi/simulation/PWMMotorControllerSim.hpp"
class IntakeTest : public testing::Test {
protected: