summaryrefslogtreecommitdiff
path: root/extractor/mocks/mock_target_phrase_extractor.h
diff options
context:
space:
mode:
Diffstat (limited to 'extractor/mocks/mock_target_phrase_extractor.h')
-rw-r--r--extractor/mocks/mock_target_phrase_extractor.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/extractor/mocks/mock_target_phrase_extractor.h b/extractor/mocks/mock_target_phrase_extractor.h
new file mode 100644
index 00000000..6dc6bba6
--- /dev/null
+++ b/extractor/mocks/mock_target_phrase_extractor.h
@@ -0,0 +1,12 @@
+#include <gmock/gmock.h>
+
+#include "../target_phrase_extractor.h"
+
+typedef pair<Phrase, PhraseAlignment> PhraseExtract;
+
+class MockTargetPhraseExtractor : public TargetPhraseExtractor {
+ public:
+ MOCK_CONST_METHOD6(ExtractPhrases, vector<PhraseExtract>(
+ const vector<pair<int, int> > &, const vector<int>&, int, int,
+ const unordered_map<int, int>&, int));
+};