summaryrefslogtreecommitdiff
path: root/extractor/mocks/mock_rule_extractor_helper.h
diff options
context:
space:
mode:
authorPaul Baltescu <pauldb89@gmail.com>2013-04-01 17:23:25 +0100
committerPaul Baltescu <pauldb89@gmail.com>2013-04-01 17:23:25 +0100
commitfa96a3665d7d8f8aafd1c8cb46a10ef5aeb4b54e (patch)
treeba81926ad20d1e4d2e8cf8c2f9537eb32c69ece1 /extractor/mocks/mock_rule_extractor_helper.h
parenta0579f2ceee63beef15ddb14adec1c4cfbe20c66 (diff)
Minor speedup: pass sentence_id around.
Diffstat (limited to 'extractor/mocks/mock_rule_extractor_helper.h')
-rw-r--r--extractor/mocks/mock_rule_extractor_helper.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/extractor/mocks/mock_rule_extractor_helper.h b/extractor/mocks/mock_rule_extractor_helper.h
index cf196ab5..468468f6 100644
--- a/extractor/mocks/mock_rule_extractor_helper.h
+++ b/extractor/mocks/mock_rule_extractor_helper.h
@@ -14,13 +14,13 @@ class MockRuleExtractorHelper : public RuleExtractorHelper {
public:
MOCK_CONST_METHOD5(GetLinksSpans, void(vector<int>&, vector<int>&,
vector<int>&, vector<int>&, int));
- MOCK_CONST_METHOD3(CheckAlignedTerminals, bool(const vector<int>&,
- const vector<int>&, const vector<int>&));
- MOCK_CONST_METHOD3(CheckTightPhrases, bool(const vector<int>&,
- const vector<int>&, const vector<int>&));
+ MOCK_CONST_METHOD4(CheckAlignedTerminals, bool(const vector<int>&,
+ const vector<int>&, const vector<int>&, int));
+ MOCK_CONST_METHOD4(CheckTightPhrases, bool(const vector<int>&,
+ const vector<int>&, const vector<int>&, int));
MOCK_CONST_METHOD1(GetGapOrder, vector<int>(const vector<pair<int, int> >&));
- MOCK_CONST_METHOD3(GetSourceIndexes, Indexes(const vector<int>&,
- const vector<int>&, int));
+ MOCK_CONST_METHOD4(GetSourceIndexes, Indexes(const vector<int>&,
+ const vector<int>&, int, int));
// We need to implement these methods, because Google Mock doesn't support
// methods with more than 10 arguments.
@@ -40,7 +40,7 @@ class MockRuleExtractorHelper : public RuleExtractorHelper {
vector<pair<int, int> >& target_gaps,
const vector<int>&, const vector<int>&, const vector<int>&,
const vector<int>&, const vector<int>&, const vector<int>&,
- int, int, int, int, int& num_symbols,
+ int, int, int, int, int, int, int& num_symbols,
bool& met_constraints) const {
source_gaps = this->source_gaps;
target_gaps = this->target_gaps;