mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[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:
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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> {
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user