You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
975 B

2 months ago
  1. #include "yaml-cpp/emitterstyle.h"
  2. #include "yaml-cpp/eventhandler.h"
  3. #include "yaml-cpp/mark.h"
  4. #include "gmock/gmock.h"
  5. #include <string>
  6. namespace YAML {
  7. class MockEventHandler : public EventHandler {
  8. public:
  9. MOCK_METHOD1(OnDocumentStart, void(const Mark&));
  10. MOCK_METHOD0(OnDocumentEnd, void());
  11. MOCK_METHOD2(OnNull, void(const Mark&, anchor_t));
  12. MOCK_METHOD2(OnAlias, void(const Mark&, anchor_t));
  13. MOCK_METHOD4(OnScalar, void(const Mark&, const std::string&, anchor_t,
  14. const std::string&));
  15. MOCK_METHOD4(OnSequenceStart, void(const Mark&, const std::string&, anchor_t,
  16. EmitterStyle::value));
  17. MOCK_METHOD0(OnSequenceEnd, void());
  18. MOCK_METHOD4(OnMapStart, void(const Mark&, const std::string&, anchor_t,
  19. EmitterStyle::value));
  20. MOCK_METHOD0(OnMapEnd, void());
  21. MOCK_METHOD2(OnAnchor, void(const Mark&, const std::string&));
  22. };
  23. } // namespace YAML