mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
* Stop trying to be compatible with the old format, and just bump the version number. * Add uint64_t support to serializer * A bit improved debug output from serializer * Add lastAdvance() function to ask the serializer how much data was added/read in the last operation.
33 lines
752 B
C++
33 lines
752 B
C++
//
|
|
// ResourceTests.h
|
|
//
|
|
// Copyright 2015 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef overte_SerializerTests_h
|
|
#define overte_SerializerTests_h
|
|
|
|
#include <QtTest/QtTest>
|
|
#include <QtCore/QTemporaryDir>
|
|
|
|
class SerializerTests : public QObject {
|
|
Q_OBJECT
|
|
private slots:
|
|
void initTestCase();
|
|
void testCreate();
|
|
void testAdd();
|
|
void testAddAndRead();
|
|
void testReadPastEnd();
|
|
void testWritePastEnd();
|
|
void benchmarkEncodingDynamicAlloc();
|
|
void benchmarkEncodingStaticAlloc();
|
|
void benchmarkDecoding();
|
|
void cleanupTestCase();
|
|
private:
|
|
|
|
};
|
|
|
|
#endif // overte_SerializerTests_h
|