Add source code for ctrtool

This commit is contained in:
jakcron
2022-03-12 16:00:33 +08:00
parent 6ad2f13c50
commit 800f5776bc
681 changed files with 219734 additions and 0 deletions
@@ -0,0 +1,23 @@
#pragma once
#include "ITestClass.h"
#include <tc/io/ISink.h>
#include <tc/io/IStream.h>
class io_StreamSink_TestClass : public ITestClass
{
public:
void runAllTests();
private:
void testDefaultConstructor();
void testCreateConstructor();
void testCreateFromNullStream();
void testCreateFromStreamWithoutSeek();
void testCreateFromStreamWithoutRead();
void testCreateFromStreamWithoutWrite();
void testSetLengthOnDisposedBase();
void testPushDataOnDisposedBase();
void testPushDataOutsideOfBaseRange();
void pushTestHelper(tc::io::ISink& sink, const std::shared_ptr<tc::io::IStream>& base_stream, tc::ByteData& expected_data, int64_t push_offset);
};