frysk.sys.ptrace
Class TestAddressSpace
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
frysk.junit.TestCase
frysk.sys.ptrace.TestAddressSpace
- All Implemented Interfaces:
- Test
public class TestAddressSpace
- extends TestCase
Trace a process.
Method Summary |
void |
tearDown()
Rip down everything related to PID. |
void |
testDataFuncPeek()
|
void |
testDataFuncPeekBytes()
|
void |
testDataFuncPoke()
|
void |
testDataFuncPokeBytes()
|
void |
testDataStackPeek()
|
void |
testDataStackPeekBytes()
|
void |
testDataStackPoke()
|
void |
testDataStackPokeBytes()
|
void |
testDataValPeek()
|
void |
testDataValPeekBytes()
|
void |
testDataValPoke()
|
void |
testDataValPokeBytes()
|
void |
testLengthOnBound()
|
void |
testLengthOverBound()
|
void |
testLengthUnderBound()
|
void |
testOffsetOnBound()
|
void |
testOffsetOverBound()
|
void |
testOffsetUnderBound()
|
void |
testTextFuncPeek()
|
void |
testTextFuncPeekBytes()
|
void |
testTextFuncPoke()
|
void |
testTextFuncPokeBytes()
|
void |
testTextStackPeek()
|
void |
testTextStackPeekBytes()
|
void |
testTextStackPoke()
|
void |
testTextStackPokeBytes()
|
void |
testTextValPeek()
|
void |
testTextValPeekBytes()
|
void |
testTextValPoke()
|
void |
testTextValPokeBytes()
|
private void |
verifyBytes(String what,
ProcessIdentifier pid,
AddressSpace space,
byte[] bytes,
long addr)
|
private void |
verifyOutOfBounds(String why,
boolean expected,
int length,
byte[] bytes,
int offset)
|
private void |
verifyPeek(String what,
AddressSpace space,
byte[] bytes,
long addr)
|
private void |
verifyPeekBytes(String why,
AddressSpace space,
byte[] startBytes,
long startAddr)
|
void |
verifyPoke(String what,
AddressSpace space,
byte[] bytes,
long addr)
|
private void |
verifyPokeBytes(String why,
AddressSpace space,
byte[] startBytes,
long startAddr)
|
Methods inherited from class frysk.junit.TestCase |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, getTimeoutMilliseconds, getTimeoutSeconds, missing32or64, unresolved, unresolvedOffUtrace, unresolvedOn32On64, unresolvedOnIA32, unresolvedOnPPC, unresolvedOnUtrace, unresolvedOnx8664, unsupported |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
TestAddressSpace
public TestAddressSpace()
tearDown
public void tearDown()
- Rip down everything related to PID.
- Overrides:
tearDown
in class TestCase
verifyBytes
private void verifyBytes(String what,
ProcessIdentifier pid,
AddressSpace space,
byte[] bytes,
long addr)
verifyPeek
private void verifyPeek(String what,
AddressSpace space,
byte[] bytes,
long addr)
testTextValPeek
public void testTextValPeek()
testDataValPeek
public void testDataValPeek()
testTextFuncPeek
public void testTextFuncPeek()
testDataFuncPeek
public void testDataFuncPeek()
testDataStackPeek
public void testDataStackPeek()
testTextStackPeek
public void testTextStackPeek()
verifyPoke
public void verifyPoke(String what,
AddressSpace space,
byte[] bytes,
long addr)
testTextValPoke
public void testTextValPoke()
testDataValPoke
public void testDataValPoke()
testTextFuncPoke
public void testTextFuncPoke()
testDataFuncPoke
public void testDataFuncPoke()
testDataStackPoke
public void testDataStackPoke()
testTextStackPoke
public void testTextStackPoke()
verifyPeekBytes
private void verifyPeekBytes(String why,
AddressSpace space,
byte[] startBytes,
long startAddr)
testTextValPeekBytes
public void testTextValPeekBytes()
testDataValPeekBytes
public void testDataValPeekBytes()
testTextFuncPeekBytes
public void testTextFuncPeekBytes()
testDataFuncPeekBytes
public void testDataFuncPeekBytes()
testDataStackPeekBytes
public void testDataStackPeekBytes()
testTextStackPeekBytes
public void testTextStackPeekBytes()
verifyPokeBytes
private void verifyPokeBytes(String why,
AddressSpace space,
byte[] startBytes,
long startAddr)
testTextValPokeBytes
public void testTextValPokeBytes()
testDataValPokeBytes
public void testDataValPokeBytes()
testTextFuncPokeBytes
public void testTextFuncPokeBytes()
testDataFuncPokeBytes
public void testDataFuncPokeBytes()
testDataStackPokeBytes
public void testDataStackPokeBytes()
testTextStackPokeBytes
public void testTextStackPokeBytes()
verifyOutOfBounds
private void verifyOutOfBounds(String why,
boolean expected,
int length,
byte[] bytes,
int offset)
testLengthUnderBound
public void testLengthUnderBound()
testOffsetUnderBound
public void testOffsetUnderBound()
testLengthOverBound
public void testLengthOverBound()
testOffsetOverBound
public void testOffsetOverBound()
testLengthOnBound
public void testLengthOnBound()
testOffsetOnBound
public void testOffsetOnBound()