Age | Commit message (Collapse) | Author |
|
PiperOrigin-RevId: 546784430
|
|
PiperOrigin-RevId: 544037037
|
|
This option excludes the target from being defined when TINK_BUILD_TESTS=OFF.
PiperOrigin-RevId: 527197212
|
|
Also remove Kokoro test scripts that used `--//config:tink_use_absl_statusor=True`.
PiperOrigin-RevId: 515018353
|
|
When running tests with CMake, test files are created in /tmp. As a consequence, running tests in parallel is not possible due to the risk of tests using the same name for test files. This change adds a utility that generates unique test file name prefixes of the form `<test suite name>_<test name>_<random 32 bytes HEX>`.
PiperOrigin-RevId: 514344312
|
|
file_output_stream_test
Both tests write files with the same name to /tmp when running with CMake, and thus cannot run in parallel.
PiperOrigin-RevId: 513521067
|
|
PiperOrigin-RevId: 509597381
|
|
PiperOrigin-RevId: 508006914
|
|
This is needed because these targets include a header not available on MSVC.
PiperOrigin-RevId: 507409068
|
|
These env variables are set on Windows.
PiperOrigin-RevId: 506306582
|
|
building on Windows w/ CMake
These file utility targets define InputStream and OutputStream implementations based on file POSIX APIs. They use `unistd.h` which MSVC doesn't provide. Rather than porting these targets on Windows, we decided to simply exclude file stream utility classes when building on Windows, leaving their implementation to the user of the library.
PiperOrigin-RevId: 506283706
|
|
- Add an internal utility function to create a test file that uses the C++ STD streams-based APIs
- Limit the use of `unistd.h` to util/file_*stream_test.cc
#tinkApiChange
PiperOrigin-RevId: 504491234
|
|
DummyDecryptingRandomAccessStream behaves incorrectly when reading all the content from the stream returns an EOF, and > 0 bytes are added to the buffer.
PiperOrigin-RevId: 503585078
|
|
PiperOrigin-RevId: 502860107
|
|
- Add test cases for null `data` in `Next` and invalid file descriptor
- Make tests parametrised on buffer size or stream size
- Use more descriptive names for test cases
- Split `testBackupAndPosition` into more focused test cases
- Minor readability changes
PiperOrigin-RevId: 502842017
|
|
PiperOrigin-RevId: 502841856
|
|
* Add check for `data` being nullptr and unit test for it
* Default initialise class members
* Use a std::vector<uint8_t> instead of a heap allocated array; remove buffer_size_ as no longer needed
PiperOrigin-RevId: 502824318
|
|
Use std libraries to read the file content. This should be a portable way to read test files.
PiperOrigin-RevId: 501792823
|
|
PiperOrigin-RevId: 496635734
|
|
All `StatusIs` matcher usages in Tink have been migrated to `absl::StatusCode`.
Hopefully no user depends on this; if so we recommend users to migrate by replacing the call to "StatusIs" with the Tink error code with the corresponding absl::StatusCode.
#tinkApiChange
PiperOrigin-RevId: 495854000
|
|
PiperOrigin-RevId: 495849973
|
|
PiperOrigin-RevId: 495839092
|
|
PiperOrigin-RevId: 495813578
|
|
PiperOrigin-RevId: 495603765
|
|
While it doesn't really matter, this reduces the number of warnings compiling Tink produces. (We could also deprecate the functions, but it doesn't matter...)
PiperOrigin-RevId: 495037904
|
|
PiperOrigin-RevId: 490913444
|
|
an alias for absl::Status.
PiperOrigin-RevId: 490870998
|
|
here.
PiperOrigin-RevId: 472919487
|
|
Since the IsOk() matcher can handle StatusOr now, we don't need to call .status() anymore.
NOKEYCHECK
NOKEYCHECK=True
PiperOrigin-RevId: 456467311
|
|
This allows to use this matcher with a StatusOr. At the moment one needs to write:
EXPECT_THAT(result.status(), IsOk()) and with this change this simplifies to EXPECT_THAT(result, IsOk());
PiperOrigin-RevId: 456207273
|
|
PiperOrigin-RevId: 448006786
|
|
PiperOrigin-RevId: 447963946
|
|
PiperOrigin-RevId: 446937072
|
|
PiperOrigin-RevId: 446655008
|
|
PiperOrigin-RevId: 445347877
|
|
PiperOrigin-RevId: 438516329
|
|
`//prf:aes_cmac_prf_key_manager` and `//prf:hmac_prf_key_manager`.
PiperOrigin-RevId: 437737651
|
|
corresponding option to the Bazel files, and use it in the kokoro test preventing slide-backs. Also, rename the test in order to reflect its updated functionality. Do not enable TINK_USE_ABSL_STATUSOR internally yet.
This CL is a part of Tink migration to using absl::Status{,Or} and absl::StatusCode.
PiperOrigin-RevId: 437234791
|
|
Part of the Tink migration towards using absl::Status{,Or}.
PiperOrigin-RevId: 436431372
|
|
Part of Tink migration to absl::Status{,Or}.
PiperOrigin-RevId: 436163579
|
|
matchers. Part of Tink migration to absl::Status{,Or}.
PiperOrigin-RevId: 435624054
|
|
allow usages of the const versions of value(). Part of the Tink migration towards absl::Status{,Or}.
PiperOrigin-RevId: 435610472
|
|
compatible with absl::StatusOr. Part of the Tink migration towards absl::Status{,Or}.
PiperOrigin-RevId: 435321035
|
|
This CL is a part of Tink migration to using absl::Status{,Or} and absl::StatusCode.
NOKEYCHECK=True
PiperOrigin-RevId: 430184794
|
|
This CL is a part of Tink migration to using absl::Status{,Or} and absl::StatusCode.
NOKEYCHECK=True
PiperOrigin-RevId: 430084269
|
|
This CL is a part of Tink migration to using absl::Status{,Or} and absl::StatusCode.
NOKEYCHECK=True
PiperOrigin-RevId: 430060593
|
|
tink/cc/util/.
PiperOrigin-RevId: 430051924
|
|
PiperOrigin-RevId: 427450320
|
|
PiperOrigin-RevId: 427162077
|
|
PiperOrigin-RevId: 427158594
|