Include thirdparty libraries with angle brackets (#5578)

This commit is contained in:
Tyler Veness
2023-08-28 15:13:34 -07:00
committed by GitHub
parent e322ab8e46
commit 8e2a7fd306
329 changed files with 559 additions and 435 deletions

View File

@@ -2,12 +2,12 @@
// 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.
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "frc/AnalogPotentiometer.h"
#include "frc/simulation/AnalogInputSim.h"
#include "frc/simulation/RoboRioSim.h"
#include "gtest/gtest.h"
namespace frc {
using namespace frc::sim;

View File

@@ -2,12 +2,12 @@
// 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.
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "frc/DoubleSolenoid.h"
#include "frc/PneumaticsControlModule.h"
#include "frc/Solenoid.h"
#include "gtest/gtest.h"
namespace frc {

View File

@@ -2,12 +2,12 @@
// 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.
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "frc/DoubleSolenoid.h"
#include "frc/PneumaticsControlModule.h"
#include "frc/Solenoid.h"
#include "gtest/gtest.h"
namespace frc {

View File

@@ -5,11 +5,12 @@
#include <string>
#include <tuple>
#include <gtest/gtest.h>
#include "frc/DriverStation.h"
#include "frc/Joystick.h"
#include "frc/simulation/DriverStationSim.h"
#include "frc/simulation/SimHooks.h"
#include "gtest/gtest.h"
class IsJoystickConnectedParametersTest
: public ::testing::TestWithParam<std::tuple<int, int, int, bool>> {};

View File

@@ -4,13 +4,13 @@
#include <atomic>
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "frc/AsynchronousInterrupt.h"
#include "frc/DigitalInput.h"
#include "frc/Timer.h"
#include "frc/simulation/DIOSim.h"
#include "gtest/gtest.h"
namespace frc {
using namespace frc::sim;

View File

@@ -4,9 +4,10 @@
#include "frc/Joystick.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include "JoystickTestMacros.h"
#include "frc/simulation/JoystickSim.h"
#include "gtest/gtest.h"
using namespace frc;

View File

@@ -4,9 +4,10 @@
#include <atomic>
#include <gtest/gtest.h>
#include "frc/Notifier.h"
#include "frc/simulation/SimHooks.h"
#include "gtest/gtest.h"
using namespace frc;

View File

@@ -4,9 +4,10 @@
#include "frc/PS4Controller.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include "JoystickTestMacros.h"
#include "frc/simulation/PS4ControllerSim.h"
#include "gtest/gtest.h"
using namespace frc;

View File

@@ -4,13 +4,13 @@
#include <string_view>
#include <gtest/gtest.h>
#include <wpi/SmallString.h>
#include <wpi/StringExtras.h>
#include <wpi/raw_ostream.h>
#include "frc/ScopedTracer.h"
#include "frc/simulation/SimHooks.h"
#include "gtest/gtest.h"
TEST(ScopedTracerTest, Timing) {
wpi::SmallString<128> buf;

View File

@@ -2,12 +2,12 @@
// 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.
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "frc/DoubleSolenoid.h"
#include "frc/PneumaticsControlModule.h"
#include "frc/Solenoid.h"
#include "gtest/gtest.h"
namespace frc {
TEST(SolenoidCTRETest, ValidInitialization) {

View File

@@ -2,12 +2,12 @@
// 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.
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "frc/DoubleSolenoid.h"
#include "frc/PneumaticsControlModule.h"
#include "frc/Solenoid.h"
#include "gtest/gtest.h"
namespace frc {
TEST(SolenoidREVTest, ValidInitialization) {

View File

@@ -9,10 +9,11 @@
#include <atomic>
#include <thread>
#include <gtest/gtest.h>
#include "frc/livewindow/LiveWindow.h"
#include "frc/simulation/DriverStationSim.h"
#include "frc/simulation/SimHooks.h"
#include "gtest/gtest.h"
using namespace frc;

View File

@@ -4,8 +4,9 @@
#include "frc/Timer.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include "frc/simulation/SimHooks.h"
#include "gtest/gtest.h"
using namespace frc;

View File

@@ -9,9 +9,10 @@
#include <atomic>
#include <thread>
#include <gtest/gtest.h>
#include "frc/simulation/DriverStationSim.h"
#include "frc/simulation/SimHooks.h"
#include "gtest/gtest.h"
using namespace frc;

View File

@@ -2,9 +2,10 @@
// 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.
#include <gtest/gtest.h>
#include "frc/Ultrasonic.h"
#include "frc/simulation/UltrasonicSim.h"
#include "gtest/gtest.h"
using namespace frc;

View File

@@ -2,13 +2,12 @@
// 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.
#include <gtest/gtest.h>
#include <networktables/DoubleTopic.h>
#include <networktables/NetworkTableInstance.h>
#include <networktables/UnitTopic.h>
#include <units/length.h>
#include "gtest/gtest.h"
class UnitNetworkTablesTest : public ::testing::Test {
public:
UnitNetworkTablesTest() : inst{nt::NetworkTableInstance::Create()} {}

View File

@@ -6,8 +6,9 @@
#include <stdint.h>
#include <gtest/gtest.h>
#include "frc/simulation/SimHooks.h"
#include "gtest/gtest.h"
using namespace frc;

View File

@@ -4,9 +4,10 @@
#include "frc/XboxController.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include "JoystickTestMacros.h"
#include "frc/simulation/XboxControllerSim.h"
#include "gtest/gtest.h"
using namespace frc;

View File

@@ -2,8 +2,9 @@
// 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.
#include <gtest/gtest.h>
#include "frc/drive/DifferentialDrive.h"
#include "gtest/gtest.h"
#include "motorcontrol/MockMotorController.h"
TEST(DifferentialDriveTest, ArcadeDriveIK) {

View File

@@ -2,8 +2,9 @@
// 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.
#include <gtest/gtest.h>
#include "frc/drive/MecanumDrive.h"
#include "gtest/gtest.h"
#include "motorcontrol/MockMotorController.h"
TEST(MecanumDriveTest, CartesianIK) {

View File

@@ -2,12 +2,12 @@
// 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.
#include <gtest/gtest.h>
#include <networktables/BooleanTopic.h>
#include <networktables/NetworkTableInstance.h>
#include "frc/event/EventLoop.h"
#include "frc/event/NetworkBooleanEvent.h"
#include "gtest/gtest.h"
using namespace frc;

View File

@@ -2,10 +2,9 @@
// 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.
#include <gtest/gtest.h>
#include <hal/HALBase.h>
#include "gtest/gtest.h"
#ifndef __FRC_ROBORIO__
namespace frc::impl {
void ResetMotorSafety();

View File

@@ -7,7 +7,8 @@
#include <memory>
#include <vector>
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include "motorcontrol/MockMotorController.h"
using namespace frc;

View File

@@ -6,12 +6,12 @@
#include <string_view>
#include <gtest/gtest.h>
#include <networktables/NetworkTableInstance.h>
#include <networktables/NetworkTableListener.h>
#include <networktables/StringTopic.h>
#include "frc/shuffleboard/ShuffleboardInstance.h"
#include "gtest/gtest.h"
#include "shuffleboard/MockActuatorSendable.h"
class NTWrapper {

View File

@@ -2,8 +2,9 @@
// 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.
#include <gtest/gtest.h>
#include "frc/shuffleboard/Shuffleboard.h"
#include "gtest/gtest.h"
TEST(ShuffleboardTest, TabObjectsCached) {
auto& tab1 = frc::Shuffleboard::GetTab("testTabObjectsCached");

View File

@@ -2,12 +2,12 @@
// 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.
#include <gtest/gtest.h>
#include <networktables/NetworkTableEntry.h>
#include <networktables/NetworkTableInstance.h>
#include "frc/shuffleboard/ShuffleboardInstance.h"
#include "frc/shuffleboard/ShuffleboardTab.h"
#include "gtest/gtest.h"
using namespace frc;

View File

@@ -4,11 +4,11 @@
#include "frc/simulation/ADXL345Sim.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "frc/ADXL345_I2C.h"
#include "frc/ADXL345_SPI.h"
#include "gtest/gtest.h"
namespace frc::sim {

View File

@@ -4,10 +4,10 @@
#include "frc/simulation/ADXL362Sim.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "frc/ADXL362.h"
#include "gtest/gtest.h"
namespace frc::sim {

View File

@@ -4,10 +4,10 @@
#include "frc/simulation/ADXRS450_GyroSim.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "frc/ADXRS450_Gyro.h"
#include "gtest/gtest.h"
namespace frc::sim {

View File

@@ -4,12 +4,12 @@
#include "frc/simulation/BuiltInAccelerometerSim.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/Accelerometer.h>
#include <hal/HAL.h>
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/BuiltInAccelerometer.h"
#include "gtest/gtest.h"
namespace frc::sim {

View File

@@ -6,11 +6,11 @@
#include <array>
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/AddressableLED.h"
#include "gtest/gtest.h"
namespace frc::sim {

View File

@@ -4,13 +4,13 @@
#include <numbers>
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include <units/math.h>
#include "frc/AnalogEncoder.h"
#include "frc/AnalogInput.h"
#include "frc/simulation/AnalogEncoderSim.h"
#include "gtest/gtest.h"
#define EXPECT_NEAR_UNITS(val1, val2, eps) \
EXPECT_LE(units::math::abs(val1 - val2), eps)

View File

@@ -4,12 +4,12 @@
#include "frc/simulation/AnalogGyroSim.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/AnalogGyro.h"
#include "frc/AnalogInput.h"
#include "gtest/gtest.h"
namespace frc::sim {

View File

@@ -4,11 +4,11 @@
#include "frc/simulation/AnalogInputSim.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/AnalogInput.h"
#include "gtest/gtest.h"
namespace frc::sim {

View File

@@ -4,11 +4,11 @@
#include "frc/simulation/AnalogOutputSim.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/AnalogOutput.h"
#include "gtest/gtest.h"
namespace frc::sim {

View File

@@ -4,11 +4,11 @@
#include "frc/simulation/AnalogTriggerSim.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/AnalogTrigger.h"
#include "gtest/gtest.h"
namespace frc::sim {

View File

@@ -4,12 +4,12 @@
#include "frc/simulation/CTREPCMSim.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/DoubleSolenoid.h"
#include "frc/PneumaticsControlModule.h"
#include "gtest/gtest.h"
namespace frc::sim {

View File

@@ -2,6 +2,8 @@
// 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.
#include <gtest/gtest.h>
#include "frc/Encoder.h"
#include "frc/RobotController.h"
#include "frc/controller/PIDController.h"
@@ -10,7 +12,6 @@
#include "frc/simulation/DCMotorSim.h"
#include "frc/simulation/EncoderSim.h"
#include "frc/simulation/RoboRioSim.h"
#include "gtest/gtest.h"
TEST(DCMotorSimTest, VoltageSteadyState) {
frc::DCMotor gearbox = frc::DCMotor::NEO(1);

View File

@@ -4,12 +4,12 @@
#include "frc/simulation/DIOSim.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/DigitalInput.h"
#include "frc/DigitalOutput.h"
#include "gtest/gtest.h"
namespace frc::sim {

View File

@@ -2,6 +2,7 @@
// 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.
#include <gtest/gtest.h>
#include <units/current.h>
#include <units/math.h>
#include <units/moment_of_inertia.h>
@@ -15,7 +16,6 @@
#include "frc/system/plant/LinearSystemId.h"
#include "frc/trajectory/TrajectoryGenerator.h"
#include "frc/trajectory/constraint/DifferentialDriveKinematicsConstraint.h"
#include "gtest/gtest.h"
TEST(DifferentialDrivetrainSimTest, Convergence) {
auto motor = frc::DCMotor::NEO(2);

View File

@@ -4,11 +4,11 @@
#include "frc/simulation/DigitalPWMSim.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/DigitalOutput.h"
#include "gtest/gtest.h"
namespace frc::sim {

View File

@@ -5,13 +5,14 @@
#include <string>
#include <tuple>
#include <gtest/gtest.h>
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/DriverStation.h"
#include "frc/Joystick.h"
#include "frc/RobotState.h"
#include "frc/simulation/DriverStationSim.h"
#include "frc/simulation/SimHooks.h"
#include "gtest/gtest.h"
using namespace frc;
using namespace frc::sim;

View File

@@ -4,11 +4,11 @@
#include "frc/simulation/DutyCycleEncoderSim.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/DutyCycleEncoder.h"
#include "gtest/gtest.h"
namespace frc::sim {

View File

@@ -4,12 +4,12 @@
#include "frc/simulation/DutyCycleSim.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/DigitalInput.h"
#include "frc/DutyCycle.h"
#include "gtest/gtest.h"
namespace frc::sim {

View File

@@ -2,6 +2,7 @@
// 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.
#include <gtest/gtest.h>
#include <units/math.h>
#include <units/time.h>
@@ -14,7 +15,6 @@
#include "frc/system/NumericalIntegration.h"
#include "frc/system/plant/DCMotor.h"
#include "frc/system/plant/LinearSystemId.h"
#include "gtest/gtest.h"
#define EXPECT_NEAR_UNITS(val1, val2, eps) \
EXPECT_LE(units::math::abs(val1 - val2), eps)

View File

@@ -4,12 +4,12 @@
#include "frc/simulation/EncoderSim.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include <wpi/deprecated.h>
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/Encoder.h"
#include "gtest/gtest.h"
namespace frc::sim {

View File

@@ -4,11 +4,11 @@
#include "frc/simulation/PowerDistributionSim.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/PowerDistribution.h"
#include "gtest/gtest.h"
namespace frc::sim {

View File

@@ -4,11 +4,11 @@
#include "frc/simulation/PWMSim.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/PWM.h"
#include "gtest/gtest.h"
namespace frc::sim {

View File

@@ -4,12 +4,12 @@
#include "frc/simulation/REVPHSim.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/DoubleSolenoid.h"
#include "frc/PneumaticHub.h"
#include "gtest/gtest.h"
namespace frc::sim {

View File

@@ -4,11 +4,11 @@
#include "frc/simulation/RelaySim.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/Relay.h"
#include "gtest/gtest.h"
namespace frc::sim {

View File

@@ -4,12 +4,12 @@
#include "frc/simulation/RoboRioSim.h" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include <hal/HALBase.h>
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/RobotController.h"
#include "gtest/gtest.h"
namespace frc::sim {

View File

@@ -4,10 +4,10 @@
#include <string_view>
#include <gtest/gtest.h>
#include <hal/SimDevice.h>
#include "frc/simulation/SimDeviceSim.h"
#include "gtest/gtest.h"
using namespace frc::sim;

View File

@@ -4,6 +4,7 @@
#include <exception>
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "frc/simulation/AddressableLEDSim.h"
@@ -23,7 +24,6 @@
#include "frc/simulation/RelaySim.h"
#include "frc/simulation/RoboRioSim.h"
#include "frc/simulation/SPIAccelerometerSim.h"
#include "gtest/gtest.h"
using namespace frc::sim;

View File

@@ -4,8 +4,9 @@
#include <numbers>
#include <gtest/gtest.h>
#include "frc/simulation/SingleJointedArmSim.h"
#include "gtest/gtest.h"
TEST(SingleJointedArmTest, Disabled) {
frc::sim::SingleJointedArmSim sim(frc::DCMotor::Vex775Pro(2), 300, 3_kg_sq_m,

View File

@@ -2,6 +2,7 @@
// 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.
#include <gtest/gtest.h>
#include <units/angular_acceleration.h>
#include <units/angular_velocity.h>
@@ -19,7 +20,6 @@
#include "frc/simulation/PWMSim.h"
#include "frc/simulation/RoboRioSim.h"
#include "frc/system/plant/LinearSystemId.h"
#include "gtest/gtest.h"
TEST(StateSpaceSimTest, FlywheelSim) {
const frc::LinearSystem<1, 1, 1> plant =

View File

@@ -7,10 +7,9 @@
#include <string>
#include <gtest/gtest.h>
#include <networktables/NetworkTableInstance.h>
#include "gtest/gtest.h"
class SendableChooserTest : public ::testing::TestWithParam<int> {};
TEST_P(SendableChooserTest, ReturnsSelected) {