mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-03 16:59:04 +00:00
25 lines
782 B
C++
25 lines
782 B
C++
#pragma once
|
|
#include "ITestClass.h"
|
|
|
|
#include <tc/io/ISink.h>
|
|
#include "SinkTestUtil.h"
|
|
|
|
class io_SubSink_TestClass : public ITestClass
|
|
{
|
|
public:
|
|
void runAllTests();
|
|
private:
|
|
void testDefaultConstructor();
|
|
void testCreateConstructor();
|
|
void testCreateFromNullBase();
|
|
void testCreateWithNegativeSubSinkOffset();
|
|
void testCreateWithNegativeSubSinkLength();
|
|
void testCreateWithExcessiveSubSink();
|
|
void testCreateThenSetLength();
|
|
void testSetLengthOnDisposedBase();
|
|
void testPushDataOnDisposedBase();
|
|
void testPushDataOutsideOfBaseRange();
|
|
|
|
void pushDataTestHelper(tc::io::ISink& sub_sink, const std::shared_ptr<SinkTestUtil::DummySinkTestablePushData>& base_sink, int64_t sub_base_offset, int64_t sub_push_offset, tc::ByteData& push_data, tc::ByteData& expected_data);
|
|
};
|