Home
last modified time | relevance | path

Searched refs:kRawBytes (Results 1 – 2 of 2) sorted by relevance

/external/protobuf/src/google/protobuf/io/
Dcoded_stream_unittest.cc608 const char kRawBytes[] = "Some bytes which will be written and read raw."; variable
611 memcpy(buffer_, kRawBytes, sizeof(kRawBytes)); in TEST_1D()
613 char read_buffer[sizeof(kRawBytes)]; in TEST_1D()
618 EXPECT_TRUE(coded_input.ReadRaw(read_buffer, sizeof(kRawBytes))); in TEST_1D()
619 EXPECT_EQ(0, memcmp(kRawBytes, read_buffer, sizeof(kRawBytes))); in TEST_1D()
622 EXPECT_EQ(sizeof(kRawBytes), input.ByteCount()); in TEST_1D()
631 coded_output.WriteRaw(kRawBytes, sizeof(kRawBytes)); in TEST_1D()
634 EXPECT_EQ(sizeof(kRawBytes), coded_output.ByteCount()); in TEST_1D()
637 EXPECT_EQ(sizeof(kRawBytes), output.ByteCount()); in TEST_1D()
638 EXPECT_EQ(0, memcmp(buffer_, kRawBytes, sizeof(kRawBytes))); in TEST_1D()
[all …]
/external/v8/test/cctest/heap/
Dtest-heap.cc714 static const uint8_t kRawBytes[] = {0xc3, 0x7e, 0xa5, 0x5a}; in TEST() local
715 static const int kRawBytesSize = sizeof(kRawBytes); in TEST()
735 kRawBytesSize, kRawBytes, kFrameSize, kParameterCount, constant_pool); in TEST()
738 CHECK_EQ(array->length(), (int)sizeof(kRawBytes)); in TEST()
746 CHECK_EQ(array->GetFirstBytecodeAddress()[i], kRawBytes[i]); in TEST()
747 CHECK_EQ(array->get(i), kRawBytes[i]); in TEST()
762 CHECK_EQ(array->get(i), kRawBytes[i]); in TEST()
763 CHECK_EQ(array->GetFirstBytecodeAddress()[i], kRawBytes[i]); in TEST()