blob: f703b48a184fc2a7f215f9cfcb6c4aae02545841 [file] [log] [blame]
/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/
package org.eclipse.cdt.debug.edc.tests;
import java.nio.ByteOrder;
import org.eclipse.cdt.debug.edc.IStreamBuffer;
import org.eclipse.cdt.debug.edc.internal.MemoryStreamBuffer;
import org.junit.Test;
/**
* Test the MemoryStreamBuffer class
*/
public class TestMemoryStreamBuffer extends BaseTestStreamBuffer {
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.edc.tests.BaseTestStreamBuffer#createBuffer(byte[], java.nio.ByteOrder)
*/
@Override
protected IStreamBuffer createBuffer(byte[] content, ByteOrder order) throws Exception {
return new MemoryStreamBuffer(content, order);
}
@Test
public void testMemoryStreamLimits() throws Exception {
doTestStreamLimits();
}
@Test
public void testMemoryStreamBE() throws Exception {
doTestStreamBE();
}
@Test
public void testMemoryStreamLE() throws Exception {
doTestStreamLE();
}
@Test
public void testMemoryStreamPaging() throws Exception {
doTestStreamPaging();
}
@Test
public void testSubStream1() throws Exception {
doTestSubStream1();
}
@Test
public void testSubStream2() throws Exception {
doTestSubStream2();
}
}