From fa96a3665d7d8f8aafd1c8cb46a10ef5aeb4b54e Mon Sep 17 00:00:00 2001 From: Paul Baltescu Date: Mon, 1 Apr 2013 17:23:25 +0100 Subject: Minor speedup: pass sentence_id around. --- extractor/mocks/mock_rule_extractor_helper.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'extractor/mocks') 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&, vector&, vector&, vector&, int)); - MOCK_CONST_METHOD3(CheckAlignedTerminals, bool(const vector&, - const vector&, const vector&)); - MOCK_CONST_METHOD3(CheckTightPhrases, bool(const vector&, - const vector&, const vector&)); + MOCK_CONST_METHOD4(CheckAlignedTerminals, bool(const vector&, + const vector&, const vector&, int)); + MOCK_CONST_METHOD4(CheckTightPhrases, bool(const vector&, + const vector&, const vector&, int)); MOCK_CONST_METHOD1(GetGapOrder, vector(const vector >&)); - MOCK_CONST_METHOD3(GetSourceIndexes, Indexes(const vector&, - const vector&, int)); + MOCK_CONST_METHOD4(GetSourceIndexes, Indexes(const vector&, + const vector&, 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 >& target_gaps, const vector&, const vector&, const vector&, const vector&, const vector&, const vector&, - 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; -- cgit v1.2.3