Home
last modified time | relevance | path

Searched refs:kDataSize (Results 1 – 9 of 9) sorted by relevance

/external/webrtc/webrtc/common_audio/
Dring_buffer_unittest.cc116 const size_t kDataSize = 2; in TEST() local
117 int write_data[kDataSize]; in TEST()
118 int read_data[kDataSize]; in TEST()
121 scoped_ring_buffer buffer(WebRtc_CreateBuffer(kDataSize, sizeof(int))); in TEST()
125 SetIncrementingData(write_data, kDataSize, 0); in TEST()
126 EXPECT_EQ(kDataSize, WebRtc_WriteBuffer(buffer.get(), write_data, kDataSize)); in TEST()
127 SetIncrementingData(read_data, kDataSize, kDataSize); in TEST()
128 EXPECT_EQ(kDataSize, WebRtc_ReadBuffer(buffer.get(), in TEST()
129 reinterpret_cast<void**>(&data_ptr), read_data, kDataSize)); in TEST()
131 CheckIncrementingData(data_ptr, kDataSize, 0); in TEST()
[all …]
/external/libchrome/base/files/
Dfile_unittest.cc397 const int kDataSize = sizeof(kData) - 1; local
398 EXPECT_EQ(kDataSize, file.Write(0, kData, kDataSize));
402 char buffer[kDataSize];
403 int first_chunk_size = kDataSize / 2;
405 EXPECT_EQ(kDataSize - first_chunk_size,
407 kDataSize - first_chunk_size));
408 EXPECT_EQ(std::string(buffer, buffer + kDataSize), std::string(kData));
421 const int kDataSize = sizeof(kData) - 1; local
423 int first_chunk_size = kDataSize / 2;
425 EXPECT_EQ(kDataSize - first_chunk_size,
[all …]
/external/webrtc/webrtc/common_audio/resampler/
Dresampler_unittest.cc35 const size_t kDataSize = static_cast<size_t> (kMaxChannels * kMaxRate / 100); variable
55 int16_t data_in_[kDataSize];
56 int16_t data_out_[kDataSize];
104 EXPECT_EQ(0, rs_.Push(data_in_, in_length, data_out_, kDataSize, in TEST_F()
127 EXPECT_EQ(0, rs_.Push(data_in_, in_length, data_out_, kDataSize, in TEST_F()
/external/v8/test/unittests/base/platform/
Dsemaphore-unittest.cc20 static const size_t kDataSize = kBufferSize * kAlphabetSize * 10; variable
32 for (size_t n = 0; n < kDataSize; ++n) { in Run()
56 for (size_t n = 0; n < kDataSize; ++n) { in Run()
/external/webrtc/webrtc/base/
Dvirtualsocket_unittest.cc502 const size_t kDataSize = 5000; in TcpSendTest() local
503 char send_buffer[kDataSize], recv_buffer[kDataSize]; in TcpSendTest()
504 for (size_t i = 0; i < kDataSize; ++i) in TcpSendTest()
510 int result = a->Send(send_buffer + send_pos, kDataSize - send_pos); in TcpSendTest()
519 result = a->Send(send_buffer + send_pos, kDataSize - send_pos); in TcpSendTest()
528 result = a->Send(send_buffer + send_pos, kDataSize - send_pos); in TcpSendTest()
542 result = a->Send(send_buffer + send_pos, kDataSize - send_pos); in TcpSendTest()
548 result = b->Recv(recv_buffer + recv_pos, kDataSize - recv_pos); in TcpSendTest()
562 result = b->Recv(recv_buffer + recv_pos, kDataSize - recv_pos); in TcpSendTest()
572 result = a->Send(send_buffer + send_pos, kDataSize - send_pos); in TcpSendTest()
[all …]
Dsocket_unittest.cc679 const size_t kDataSize = 1024 * 1024; in TcpInternal() local
680 scoped_ptr<char[]> send_buffer(new char[kDataSize]); in TcpInternal()
681 scoped_ptr<char[]> recv_buffer(new char[kDataSize]); in TcpInternal()
683 for (size_t i = 0; i < kDataSize; ++i) { in TcpInternal()
721 while (recv_pos < kDataSize) { in TcpInternal()
723 while (!send_waiting_for_writability && send_pos < kDataSize) { in TcpInternal()
724 int tosend = static_cast<int>(kDataSize - send_pos); in TcpInternal()
753 kDataSize - recv_pos); in TcpInternal()
783 EXPECT_EQ(kDataSize, send_pos); in TcpInternal()
784 EXPECT_EQ(kDataSize, recv_pos); in TcpInternal()
[all …]
/external/dng_sdk/source/
Ddng_misc_opcodes.cpp297 requiredSize = SafeUint32Add(requiredSize, dng_area_spec::kDataSize); in dng_opcode_MapTable()
364 stream.Put_uint32 (dng_area_spec::kDataSize + 4 + fCount * 2); in PutData()
495 if (dataSize != dng_area_spec::kDataSize + 4 + (fDegree + 1) * 8) in dng_opcode_MapPolynomial()
535 stream.Put_uint32 (dng_area_spec::kDataSize + 4 + (fDegree + 1) * 8); in PutData()
872 if (dataSize != dng_area_spec::kDataSize + 4 + deltas * 4) in dng_opcode_DeltaPerRow()
918 stream.Put_uint32 (dng_area_spec::kDataSize + 4 + deltas * 4); in PutData()
1078 if (dataSize != dng_area_spec::kDataSize + 4 + deltas * 4) in dng_opcode_DeltaPerColumn()
1124 stream.Put_uint32 (dng_area_spec::kDataSize + 4 + deltas * 4); in PutData()
1285 if (dataSize != dng_area_spec::kDataSize + 4 + scales * 4) in dng_opcode_ScalePerRow()
1331 stream.Put_uint32 (dng_area_spec::kDataSize + 4 + scales * 4); in PutData()
[all …]
Ddng_misc_opcodes.h68 kDataSize = 32 enumerator
Ddng_gain_map.cpp532 stream.Put_uint32 (dng_area_spec::kDataSize + in PutData()