1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <gmock/gmock.h> #include "alignment.h" namespace extractor { typedef vector<pair<int, int>> SentenceLinks; class MockAlignment : public Alignment { public: MOCK_CONST_METHOD1(GetLinks, SentenceLinks(int sentence_id)); }; } // namespace extractor