Internal change

PiperOrigin-RevId: 502401179
This commit is contained in:
Brotli 2023-01-16 18:04:35 +00:00 committed by Evgenii Kliuchnikov
parent 71fe6cac06
commit 36533a866e
11 changed files with 16 additions and 9 deletions

0
bootstrap Executable file → Normal file
View File

View File

@ -453,7 +453,7 @@ BROTLI_ENC_API BROTLI_BOOL BrotliEncoderHasMoreOutput(
*
* This method is used to make language bindings easier and more efficient:
* -# push data to ::BrotliEncoderCompressStream,
* until ::BrotliEncoderHasMoreOutput returns BROTL_TRUE
* until ::BrotliEncoderHasMoreOutput returns BROTLI_TRUE
* -# use ::BrotliEncoderTakeOutput to peek bytes and copy to language-specific
* entity
*

0
configure-cmake Executable file → Normal file
View File

View File

@ -587,7 +587,7 @@ invalid values might be accepted in case they would not break encoding process\&
.PP
Acquires pointer to internal output buffer\&. This method is used to make language bindings easier and more efficient:
.IP "1." 4
push data to \fBBrotliEncoderCompressStream\fP, until \fBBrotliEncoderHasMoreOutput\fP returns BROTL_TRUE
push data to \fBBrotliEncoderCompressStream\fP, until \fBBrotliEncoderHasMoreOutput\fP returns BROTLI_TRUE
.IP "2." 4
use \fBBrotliEncoderTakeOutput\fP to peek bytes and copy to language-specific entity
.PP

View File

@ -10,4 +10,4 @@ public class BrotliJniTestBase {
System.load(new java.io.File(jniLibrary).getAbsolutePath());
}
}
}
}

View File

@ -111,4 +111,4 @@ public class UseCompoundDictionaryTest extends BrotliJniTestBase {
decoder.close();
}
}
}
}

View File

@ -22,7 +22,7 @@ following command from this directory:
You may run the following commands from this directory:
$ make # Build the module in-place
$ make test # Test the module
$ make clean # Remove all temporary files and build output

2
python/bro.py Normal file → Executable file
View File

@ -51,7 +51,7 @@ def main(args=None):
parser = argparse.ArgumentParser(
prog=os.path.basename(__file__), description=__doc__)
parser.add_argument(
'--version', action='version', version=brotli.__version__)
'--version', action='version', version=brotli.version)
parser.add_argument(
'-i',
'--input',

View File

@ -8,7 +8,7 @@
import _brotli
# The library version.
__version__ = _brotli.__version__
version = __version__ = _brotli.__version__
# The compression mode.
MODE_GENERIC = _brotli.MODE_GENERIC

View File

@ -44,9 +44,17 @@ TESTDATA_FILES = [
'alice29.txt', # Large text
'random_org_10k.bin', # Small data
'mapsdatazrh', # Large data
'ukkonooa', # Poem
]
TESTDATA_PATHS = [os.path.join(TESTDATA_DIR, f) for f in TESTDATA_FILES]
# Some files might be missing in a lightweight sources pack.
TESTDATA_PATH_CANDIDATES = [
os.path.join(TESTDATA_DIR, f) for f in TESTDATA_FILES
]
TESTDATA_PATHS = [
path for path in TESTDATA_PATH_CANDIDATES if os.path.isfile(path)
]
TESTDATA_PATHS_FOR_DECOMPRESSION = glob.glob(
os.path.join(TESTDATA_DIR, '*.compressed'))

View File

@ -7,7 +7,6 @@ import subprocess
import unittest
from . import _test_utils
import brotli
BRO_ARGS = _test_utils.BRO_ARGS
TEST_ENV = _test_utils.TEST_ENV