mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Set up wpiformat
This commit is contained in:
committed by
Peter Johnson
parent
4514ff8071
commit
19f7a5f108
@@ -5,24 +5,23 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef NT_TEST_MESSAGEMATCHER_H_
|
||||
#define NT_TEST_MESSAGEMATCHER_H_
|
||||
#ifndef NTCORE_MESSAGEMATCHER_H_
|
||||
#define NTCORE_MESSAGEMATCHER_H_
|
||||
|
||||
#include <memory>
|
||||
#include <ostream>
|
||||
|
||||
#include "gmock/gmock.h"
|
||||
|
||||
#include "TestPrinters.h"
|
||||
|
||||
#include "Message.h"
|
||||
#include "TestPrinters.h"
|
||||
#include "gmock/gmock.h"
|
||||
|
||||
namespace nt {
|
||||
|
||||
class MessageMatcher
|
||||
: public ::testing::MatcherInterface<std::shared_ptr<Message>> {
|
||||
public:
|
||||
MessageMatcher(std::shared_ptr<Message> goodmsg_) : goodmsg(goodmsg_) {}
|
||||
explicit MessageMatcher(std::shared_ptr<Message> goodmsg_)
|
||||
: goodmsg(goodmsg_) {}
|
||||
|
||||
bool MatchAndExplain(std::shared_ptr<Message> msg,
|
||||
::testing::MatchResultListener* listener) const override;
|
||||
@@ -40,4 +39,4 @@ inline ::testing::Matcher<std::shared_ptr<Message>> MessageEq(
|
||||
|
||||
} // namespace nt
|
||||
|
||||
#endif // NT_TEST_MESSAGEMATCHER_H_
|
||||
#endif // NTCORE_MESSAGEMATCHER_H_
|
||||
|
||||
Reference in New Issue
Block a user