blob: 0defa88a1bb1b78b9aa4c244ac835faa7d386615 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <gmock/gmock.h>
#include <vector>
#include "linear_merger.h"
#include "phrase.h"
using namespace std;
class MockLinearMerger: public LinearMerger {
public:
MockLinearMerger(shared_ptr<Vocabulary> vocabulary,
shared_ptr<DataArray> data_array,
shared_ptr<MatchingComparator> comparator) :
LinearMerger(vocabulary, data_array, comparator) {}
MOCK_CONST_METHOD9(Merge, void(vector<int>&, const Phrase&, const Phrase&,
vector<int>::iterator, vector<int>::iterator, vector<int>::iterator,
vector<int>::iterator, int, int));
};
|