forked from I2P_Developers/i2p.i2p
Fix unit tests I broke
This commit is contained in:
@@ -30,14 +30,28 @@ class HopProcessor {
|
||||
*/
|
||||
//static final boolean USE_DOUBLE_IV_ENCRYPTION = true;
|
||||
static final int IV_LENGTH = 16;
|
||||
|
||||
|
||||
/**
|
||||
* @deprecated used only by unit tests
|
||||
*/
|
||||
HopProcessor(I2PAppContext ctx, HopConfig config) {
|
||||
this(ctx, config, createValidator());
|
||||
}
|
||||
|
||||
public HopProcessor(I2PAppContext ctx, HopConfig config, IVValidator validator) {
|
||||
_context = ctx;
|
||||
_log = ctx.logManager().getLog(HopProcessor.class);
|
||||
_config = config;
|
||||
_validator = validator;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated used only by unit test constructor
|
||||
*/
|
||||
private static IVValidator createValidator() {
|
||||
// yeah, we'll use an O(1) validator later (e.g. bloom filter)
|
||||
return new HashSetIVValidator();
|
||||
}
|
||||
|
||||
/**
|
||||
* Process the data for the current hop, overwriting the original data with
|
||||
|
||||
@@ -21,8 +21,10 @@ class InboundEndpointProcessor {
|
||||
|
||||
//static final boolean USE_ENCRYPTION = HopProcessor.USE_ENCRYPTION;
|
||||
|
||||
/** @deprecated unused */
|
||||
public InboundEndpointProcessor(RouterContext ctx, TunnelCreatorConfig cfg) {
|
||||
/**
|
||||
* @deprecated used only by unit tests
|
||||
*/
|
||||
InboundEndpointProcessor(RouterContext ctx, TunnelCreatorConfig cfg) {
|
||||
this(ctx, cfg, DummyValidator.getInstance());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user