summaryrefslogtreecommitdiff
path: root/extractor/mocks/mock_suffix_array.h
diff options
context:
space:
mode:
authorPaul Baltescu <pauldb89@gmail.com>2013-02-01 16:11:10 +0000
committerPaul Baltescu <pauldb89@gmail.com>2013-02-01 16:11:10 +0000
commit0a53f7eca74c165b5ce1c238f1999ddf1febea55 (patch)
tree5a5231767bc2f92203711ab4aee75336b8bc2175 /extractor/mocks/mock_suffix_array.h
parent5530575ae0ad939e17f08d6bd49978acea388ab7 (diff)
Second working commit.
Diffstat (limited to 'extractor/mocks/mock_suffix_array.h')
-rw-r--r--extractor/mocks/mock_suffix_array.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/extractor/mocks/mock_suffix_array.h b/extractor/mocks/mock_suffix_array.h
index 38d8bad6..11a3a443 100644
--- a/extractor/mocks/mock_suffix_array.h
+++ b/extractor/mocks/mock_suffix_array.h
@@ -1,5 +1,6 @@
#include <gmock/gmock.h>
+#include <memory>
#include <string>
#include "../data_array.h"
@@ -10,8 +11,9 @@ using namespace std;
class MockSuffixArray : public SuffixArray {
public:
- MockSuffixArray() : SuffixArray(make_shared<DataArray>()) {}
-
MOCK_CONST_METHOD0(GetSize, int());
+ MOCK_CONST_METHOD0(GetData, shared_ptr<DataArray>());
+ MOCK_CONST_METHOD0(BuildLCPArray, vector<int>());
+ MOCK_CONST_METHOD1(GetSuffix, int(int));
MOCK_CONST_METHOD4(Lookup, PhraseLocation(int, int, const string& word, int));
};