summaryrefslogtreecommitdiff
path: root/extractor/mocks/mock_suffix_array_sampler.h
diff options
context:
space:
mode:
Diffstat (limited to 'extractor/mocks/mock_suffix_array_sampler.h')
-rw-r--r--extractor/mocks/mock_suffix_array_sampler.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/extractor/mocks/mock_suffix_array_sampler.h b/extractor/mocks/mock_suffix_array_sampler.h
new file mode 100644
index 00000000..d799b969
--- /dev/null
+++ b/extractor/mocks/mock_suffix_array_sampler.h
@@ -0,0 +1,15 @@
+#include <gmock/gmock.h>
+
+#include "phrase_location.h"
+#include "suffix_array_sampler.h"
+
+namespace extractor {
+
+class MockSuffixArraySampler : public SuffixArrayRangeSampler {
+ public:
+ MOCK_CONST_METHOD2(Sample, PhraseLocation(
+ const PhraseLocation& location,
+ const unordered_set<int>& blacklisted_sentence_ids));
+};
+
+} // namespace extractor