aboutsummaryrefslogtreecommitdiffstats
path: root/documentapi/src/tests/messages/messages52test.h
blob: 6b019d77bde9a5c0e275f6e26e4b73881f9537a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
// @author Vegard Sjonfjell
#pragma once

#include "testbase.h"

class Messages52Test : public TestBase {
protected:
    const vespalib::Version getVersion() const override { return vespalib::Version(5, 115); }
    bool shouldTestCoverage() const override { return true; }
    bool tryDocumentReply(const string &filename, uint32_t type);
    bool tryVisitorReply(const string &filename, uint32_t type);

    static size_t serializedLength(const string & str) { return sizeof(int32_t) + str.size(); }

public:
    Messages52Test();

    bool testCreateVisitorMessage();
    bool testCreateVisitorReply();
    bool testDestroyVisitorMessage();
    bool testDestroyVisitorReply();
    bool testDocumentIgnoredReply();
    bool testDocumentListMessage();
    bool testDocumentListReply();
    bool testDocumentSummaryMessage();
    bool testDocumentSummaryReply();
    bool testEmptyBucketsMessage();
    bool testEmptyBucketsReply();
    bool testGetBucketListMessage();
    bool testGetBucketListReply();
    bool testGetBucketStateMessage();
    bool testGetBucketStateReply();
    bool testGetDocumentMessage();
    bool testGetDocumentReply();
    bool testMapVisitorMessage();
    bool testMapVisitorReply();
    bool testPutDocumentMessage();
    bool testPutDocumentReply();
    bool testQueryResultMessage();
    bool testQueryResultReply();
    bool testRemoveDocumentMessage();
    bool testRemoveDocumentReply();
    bool testRemoveLocationMessage();
    bool testRemoveLocationReply();
    bool testSearchResultMessage();
    bool testSearchResultReply();
    bool testStatBucketMessage();
    bool testStatBucketReply();
    bool testUpdateDocumentMessage();
    bool testUpdateDocumentReply();
    bool testVisitorInfoMessage();
    bool testVisitorInfoReply();
    bool testWrongDistributionReply();
};