@Test public void isValidTagValue() throws Exception { assertFalse(processor.isValidTagValue(-1)); assertFalse(processor.isValidTagValue(0)); assertFalse(processor.isValidTagValue(19000)); assertFalse(processor.isValidTagValue(19999)); assertFalse(processor.isValidTagValue(Field.MAX_TAG_VALUE+1)); assertTrue(processor.isValidTagValue(1)); assertTrue(processor.isValidTagValue(100)); assertTrue(processor.isValidTagValue(18999)); assertTrue(processor.isValidTagValue(20000)); assertTrue(processor.isValidTagValue(Field.MAX_TAG_VALUE-1)); assertTrue(processor.isValidTagValue(Field.MAX_TAG_VALUE)); }
@VisibleForTesting boolean isValidTagValue(int tag) { return tag >= MIN_TAG && tag <= MAX_TAG && !(tag >= SYS_RESERVED_START && tag <= SYS_RESERVED_END); }
UserTypeValidationPostProcessor implements ProtoContextPostProcessor { @VisibleForTesting boolean isValidTagValue(int tag) { return tag >= MIN_TAG && tag <= MAX_TAG && !(tag >= SYS_RESERVED_START && tag <= SYS_RESERVED_END); } }
UserTypeValidationPostProcessor implements ProtoContextPostProcessor { @VisibleForTesting boolean isValidTagValue(int tag) { return tag >= MIN_TAG && tag <= MAX_TAG && !(tag >= SYS_RESERVED_START && tag <= SYS_RESERVED_END); }  }
UserTypeValidationPostProcessor implements ProtoContextPostProcessor { @VisibleForTesting boolean isValidTagValue(int tag) { return tag >= MIN_TAG && tag <= MAX_TAG && !(tag >= SYS_RESERVED_START && tag <= SYS_RESERVED_END); }  @Override void process(ProtoContext context); }
UserTypeValidationPostProcessor implements ProtoContextPostProcessor { @VisibleForTesting boolean isValidTagValue(int tag) { return tag >= MIN_TAG && tag <= MAX_TAG && !(tag >= SYS_RESERVED_START && tag <= SYS_RESERVED_END); }  @Override void process(ProtoContext context);  }