summaryrefslogtreecommitdiffstats
path: root/documentapi/src/tests/messages/messages52test.h
blob: 71e3d54902c3ebaa810b836d87d702d7fbb71185 (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
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
// @author Vegard Sjonfjell
#pragma once

#include "messages51test.h"

class Messages52Test : public Messages51Test {
protected:
    const vespalib::Version getVersion() const override { return vespalib::Version(5, 115, 0); }

public:
    Messages52Test();

    bool testPutDocumentMessage();
    bool testUpdateDocumentMessage();
    bool testRemoveDocumentMessage();

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