SCRIPT namespace replacements

This commit is contained in:
PJ Reiniger
2025-11-07 20:00:05 -05:00
committed by Peter Johnson
parent ae6c043632
commit 9aca8e0fd6
2622 changed files with 22275 additions and 22275 deletions

View File

@@ -11,18 +11,18 @@
#include "wpi/commands2/button/NetworkButton.hpp"
#include "wpi/nt/NetworkTableInstance.hpp"
using namespace frc2;
using namespace wpi::cmd;
class NetworkButtonTest : public CommandTestBase {
public:
NetworkButtonTest() {
inst = nt::NetworkTableInstance::Create();
inst = wpi::nt::NetworkTableInstance::Create();
inst.StartLocal();
}
~NetworkButtonTest() override { nt::NetworkTableInstance::Destroy(inst); }
~NetworkButtonTest() override { wpi::nt::NetworkTableInstance::Destroy(inst); }
nt::NetworkTableInstance inst;
wpi::nt::NetworkTableInstance inst;
};
TEST_F(NetworkButtonTest, SetNetworkButton) {

View File

@@ -8,8 +8,8 @@
#include "wpi/driverstation/DriverStation.hpp"
#include "wpi/simulation/DriverStationSim.hpp"
using namespace frc2;
using namespace frc::sim;
using namespace wpi::cmd;
using namespace wpi::sim;
class RobotModeTriggersTest : public CommandTestBase {};
TEST(RobotModeTriggersTest, Autonomous) {

View File

@@ -15,7 +15,7 @@
#include "wpi/commands2/button/Trigger.hpp"
#include "wpi/simulation/SimHooks.hpp"
using namespace frc2;
using namespace wpi::cmd;
class TriggerTest : public CommandTestBase {};
TEST_F(TriggerTest, OnTrue) {
@@ -242,7 +242,7 @@ TEST_F(TriggerTest, Debounce) {
scheduler.Run();
EXPECT_FALSE(scheduler.IsScheduled(&command));
frc::sim::StepTiming(300_ms);
wpi::sim::StepTiming(300_ms);
scheduler.Run();
EXPECT_TRUE(scheduler.IsScheduled(&command));