mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-03 16:59:04 +00:00
24 lines
665 B
C++
24 lines
665 B
C++
#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);
|
|
};
|