OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:testBytes
(Results
1 - 9
of
9
) sorted by null
/external/guava/guava-tests/benchmark/com/google/common/hash/
ChecksumBenchmark.java
43
private byte[]
testBytes
;
47
testBytes
= new byte[size];
48
new Random(RANDOM_SEED).nextBytes(
testBytes
);
61
checksum.update(
testBytes
);
77
checksum.update(
testBytes
);
91
result ^= hashFunction.hashBytes(
testBytes
).asBytes()[0];
HashFunctionBenchmark.java
47
private byte[]
testBytes
;
50
testBytes
= new byte[size];
51
random.nextBytes(
testBytes
);
58
result ^= hashFunction.hashBytes(
testBytes
).asBytes()[0];
MessageDigestAlgorithmBenchmark.java
90
private byte[]
testBytes
;
93
testBytes
= new byte[size];
94
new Random(RANDOM_SEED).nextBytes(
testBytes
);
102
result ^= hashMethod.hash(algorithm,
testBytes
)[0];
/external/guava/guava-tests/test/com/google/common/hash/
AbstractByteHasherTest.java
33
public void
testBytes
() {
HashingInputStreamTest.java
36
private static final byte[]
testBytes
= new byte[] {'y', 'a', 'm', 's'};
43
buffer = new ByteArrayInputStream(
testBytes
);
62
EasyMock.expect(hasher.putBytes(aryEq(
testBytes
), eq(0), eq(
testBytes
.length)))
70
for (int i = 0; i <
testBytes
.length; i++) {
71
assertEquals(
testBytes
[i], buf[i]);
88
assertEquals(
testBytes
[i], buf[i]);
98
System.arraycopy(
testBytes
, 0, expectedBytes, 0,
testBytes
.length);
108
assertEquals(
testBytes
[i], buf[i])
[
all
...]
AbstractStreamingHasherTest.java
44
public void
testBytes
() {
/external/guava/guava-tests/test/com/google/common/base/
Utf8Test.java
167
testBytes
(1, EXPECTED_ONE_BYTE_ROUNDTRIPPABLE_COUNT);
173
testBytes
(2, EXPECTED_TWO_BYTE_ROUNDTRIPPABLE_COUNT);
179
testBytes
(3, EXPECTED_THREE_BYTE_ROUNDTRIPPABLE_COUNT);
282
private static void
testBytes
(int numBytes, long expectedCount) {
283
testBytes
(numBytes, expectedCount, 0, -1);
298
private static void
testBytes
(int numBytes, long expectedCount, long start,
/libcore/luni/src/test/java/libcore/java/nio/charset/
OldCharset_AbstractTest.java
44
static byte[]
testBytes
;
105
if (
testBytes
!= null) return;
132
decode(
testBytes
, testChars);
142
// Arrays.equals(
testBytes
, outputBB.array()));
143
assertEqualBytes("Encoded bytes must match!",
testBytes
, outputBB);
/external/icu/icu4c/source/test/cintltst/
nucnvtst.c
[
all
...]
Completed in 752 milliseconds