// 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. #pragma once #include #include "gmock/gmock.h" namespace wpi { class MockLogger : public Logger, public ::testing::MockFunction { public: MockLogger() { SetLogger([this](unsigned int level, const char* file, unsigned int line, const char* msg) { Call(level, file, line, msg); }); } }; } // namespace wpi