summaryrefslogtreecommitdiff
path: root/extractor/mocks/mock_data_array.h
blob: cda8f7a6950befbc6af576645b028ad87f864c07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <gmock/gmock.h>

#include "../data_array.h"

class MockDataArray : public DataArray {
 public:
  MOCK_CONST_METHOD0(GetData, const vector<int>&());
  MOCK_CONST_METHOD1(AtIndex, int(int index));
  MOCK_CONST_METHOD0(GetSize, int());
  MOCK_CONST_METHOD0(GetVocabularySize, int());
  MOCK_CONST_METHOD1(HasWord, bool(const string& word));
  MOCK_CONST_METHOD1(GetWordId, int(const string& word));
  MOCK_CONST_METHOD1(GetSentenceId, int(int position));
};