diff options
author | Paul Baltescu <pauldb89@gmail.com> | 2013-04-01 17:23:25 +0100 |
---|---|---|
committer | Paul Baltescu <pauldb89@gmail.com> | 2013-04-01 17:23:25 +0100 |
commit | 581ecdbad3c691e4e749098bd8568d9cdc48323c (patch) | |
tree | aec320efba6c2f02898f30634c534467652d0a2e /extractor/mocks | |
parent | 992e84500abeec31341e8220718ca29d126d93df (diff) |
Minor speedup: pass sentence_id around.
Diffstat (limited to 'extractor/mocks')
-rw-r--r-- | extractor/mocks/mock_rule_extractor_helper.h | 14 |
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; |