HomeSort by relevance Sort by last modified time
    Searched defs:kDataSize (Results 1 - 23 of 23) sorted by null

  /external/chromium_org/media/base/
decoder_buffer_unittest.cc 30 const int kDataSize = arraysize(kData);
32 reinterpret_cast<const uint8*>(&kData), kDataSize));
35 EXPECT_EQ(buffer2->data_size(), kDataSize);
36 EXPECT_EQ(0, memcmp(buffer2->data(), kData, kDataSize));
39 reinterpret_cast<const uint8*>(&kData), kDataSize,
40 reinterpret_cast<const uint8*>(&kData), kDataSize));
43 EXPECT_EQ(buffer3->data_size(), kDataSize);
44 EXPECT_EQ(0, memcmp(buffer3->data(), kData, kDataSize));
46 EXPECT_EQ(buffer3->side_data_size(), kDataSize);
47 EXPECT_EQ(0, memcmp(buffer3->side_data(), kData, kDataSize));
    [all...]
data_buffer_unittest.cc 96 const int kDataSize = arraysize(kData);
101 scoped_refptr<DataBuffer> buffer(new DataBuffer(kDataSize));
106 memcpy(data, kData, kDataSize);
107 buffer->set_data_size(kDataSize);
110 ASSERT_EQ(0, memcmp(read_only_data, kData, kDataSize));
seekable_buffer_unittest.cc 20 static const int kDataSize = 409600;
31 for (int i = 0; i < kDataSize; i++)
40 uint8 data_[kDataSize];
41 uint8 write_buffer_[kDataSize];
47 while (read_position < kDataSize) {
50 write_size = std::min(write_size, kDataSize - write_position);
248 while (read_position < kDataSize) {
249 for (int i = 0; i < 10 && write_position < kDataSize; ++i) {
252 write_size = std::min(write_size, kDataSize - write_position);
  /external/chromium_org/net/spdy/
spdy_buffer_unittest.cc 24 const size_t kDataSize = arraysize(kData);
38 new SpdyFrame(const_cast<char*>(kData), kDataSize,
42 EXPECT_EQ(kDataSize, buffer.GetRemainingSize());
48 std::string data(kData, kDataSize);
54 EXPECT_EQ(kDataSize, buffer.GetRemainingSize());
55 EXPECT_EQ(std::string(kData, kDataSize), BufferToString(buffer));
70 SpdyBuffer buffer(kData, kDataSize);
79 EXPECT_EQ(std::string(kData, kDataSize), BufferToString(buffer));
82 EXPECT_EQ(std::string(kData + 5, kDataSize - 5), BufferToString(buffer));
86 buffer.Consume(kDataSize - 5)
    [all...]
spdy_read_queue_unittest.cc 21 const size_t kDataSize = arraysize(kData);
79 std::string data(kData, kDataSize);
92 RunEnqueueDequeueTest(2 * kDataSize, 2 * kDataSize);
spdy_framer_test.cc     [all...]
  /external/webrtc/src/common_audio/resampler/
resampler_unittest.cc 40 const size_t kDataSize = static_cast<size_t> (kMaxChannels * kMaxRate / 100);
60 int16_t data_in_[kDataSize];
61 int16_t data_out_[kDataSize];
108 EXPECT_EQ(0, rs_.Push(data_in_, in_length, data_out_, kDataSize,
132 EXPECT_EQ(0, rs_.Push(data_in_, in_length, data_out_, kDataSize,
  /external/chromium_org/base/files/
file_unittest.cc 347 const int kDataSize = arraysize(kData) - 1;
348 EXPECT_EQ(kDataSize, file.Write(0, kData, kDataSize));
352 char buffer[kDataSize];
353 int first_chunk_size = kDataSize / 2;
355 EXPECT_EQ(kDataSize - first_chunk_size,
357 kDataSize - first_chunk_size));
358 EXPECT_EQ(std::string(buffer, buffer + kDataSize),
  /external/chromium_org/v8/test/cctest/
test-semaphore.cc 111 static const int kDataSize = kBufferSize * kAlphabetSize * 10;
123 for (int n = 0; n < kDataSize; ++n) {
138 for (int n = 0; n < kDataSize; ++n) {
  /external/chromium/webkit/glue/media/
buffered_resource_loader_unittest.cc 49 static const int kDataSize = 1024;
71 for (int i = 0; i < kDataSize; ++i)
236 uint8 data_[kDataSize];
simple_data_source_unittest.cc 37 static const int kDataSize = 1024;
53 for (int i = 0; i < kDataSize; ++i) {
81 response.setExpectedContentLength(kDataSize);
86 EXPECT_EQ(kDataSize, size);
88 for (int i = 0; i < kDataSize; ++i) {
95 EXPECT_CALL(host_, SetTotalBytes(kDataSize));
96 EXPECT_CALL(host_, SetBufferedBytes(kDataSize));
133 for (int i = 0; i < kDataSize; ++i) {
154 char data_[kDataSize];
buffered_data_source_unittest.cc 37 static const int kDataSize = 1024;
  /external/chromium_org/base/
platform_file_unittest.cc 414 const int kDataSize = arraysize(kData) - 1;
415 EXPECT_EQ(kDataSize, WriteFully(file, 0, kData, kDataSize));
419 char buffer[kDataSize];
420 int first_chunk_size = kDataSize / 2;
424 EXPECT_EQ(kDataSize - first_chunk_size,
427 kDataSize - first_chunk_size));
428 EXPECT_EQ(std::string(buffer, buffer + kDataSize),
  /external/chromium_org/remoting/base/
compound_buffer_unittest.cc 19 const int kDataSize = 1024;
22 const int kChunkSizes0[] = {kDataSize, -1};
46 target_.Prepend(data_.get(), data_->data() + kDataSize - pos - size, size);
50 target_.PrependCopyOf(data_->data() + (kDataSize - pos - size), size);
77 data_ = new IOBuffer(kDataSize);
78 for (int i = 0; i < kDataSize; ++i) {
84 // interval [0..kDataSize]. |function| is called for each chunk.
91 while (pos < kDataSize) {
92 int size = std::min(sizes[index], kDataSize - pos);
184 EXPECT_TRUE(CompareData(target_, data_->data(), kDataSize));
    [all...]
  /external/chromium/base/
shared_memory_unittest.cc 38 const uint32 kDataSize = 1024;
40 bool rv = memory.CreateNamed(s_test_name_, true, kDataSize);
42 rv = memory.Map(kDataSize);
82 const uint32 kDataSize = sizeof(int);
87 true, kDataSize));
95 EXPECT_TRUE(memory2.Map(kDataSize));
120 const uint32 kDataSize = 1024;
132 rv = memory1.CreateNamed(test_name, false, kDataSize);
134 rv = memory1.Map(kDataSize);
139 rv = memory2.Map(kDataSize);
    [all...]
  /external/chromium_org/base/memory/
shared_memory_unittest.cc 62 const uint32 kDataSize = 1024;
64 bool rv = memory.CreateNamed(s_test_name_, true, kDataSize);
66 rv = memory.Map(kDataSize);
108 const uint32 kDataSize = sizeof(int);
113 true, kDataSize));
121 EXPECT_TRUE(memory2.Map(kDataSize));
149 const uint32 kDataSize = 1024;
161 rv = memory1.CreateNamed(test_name, false, kDataSize);
163 rv = memory1.Map(kDataSize);
168 rv = memory2.Map(kDataSize);
    [all...]
  /external/chromium_org/content/browser/fileapi/
file_writer_delegate_unittest.cc 37 const int kDataSize = ARRAYSIZE_UNSAFE(kData) - 1;
246 ASSERT_EQ(kDataSize, usage());
248 EXPECT_EQ(kDataSize, result.bytes_written());
255 const int64 kAllowedGrowth = kDataSize;
275 const int64 kAllowedGrowth = kDataSize - 1;
347 ASSERT_EQ(kDataSize * 2, usage());
350 EXPECT_EQ(kDataSize, result.bytes_written());
352 EXPECT_EQ(kDataSize, result2.bytes_written());
360 // Writing kDataSize (=45) bytes data while allowed_growth is 100.
363 ASSERT_LT(kDataSize, allowed_growth)
    [all...]
  /external/chromium_org/content/renderer/media/
buffered_data_source_unittest.cc 86 static const int kDataSize = 1024;
183 data_source_->Read(position, kDataSize, buffer_,
217 uint8 buffer_[kDataSize];
360 EXPECT_CALL(*this, ReadCallback(kDataSize));
361 EXPECT_CALL(host_, AddBufferedByteRange(0, kDataSize - 1));
363 ReceiveData(kDataSize);
366 ReadAt(kDataSize);
369 Respond(response_generator_->Generate206(kDataSize));
372 EXPECT_CALL(*this, ReadCallback(kDataSize));
373 EXPECT_CALL(host_, AddBufferedByteRange(kDataSize, (kDataSize * 2) - 1))
    [all...]
buffered_resource_loader_unittest.cc 45 static const int kDataSize = 1024;
69 for (int i = 0; i < kDataSize; ++i) {
301 uint8 data_[kDataSize];
    [all...]
  /external/chromium_org/media/filters/
audio_renderer_impl_unittest.cc 43 static const int kDataSize = 1024;
490 EXPECT_FALSE(ConsumeBufferedData(kDataSize, NULL));
497 EXPECT_FALSE(ConsumeBufferedData(kDataSize, &muted));
505 EXPECT_TRUE(ConsumeBufferedData(kDataSize, &muted));
524 EXPECT_FALSE(ConsumeBufferedData(kDataSize, NULL));
558 EXPECT_FALSE(ConsumeBufferedData(kDataSize, NULL));
561 SatisfyPendingRead(kDataSize);
566 EXPECT_EQ(kDataSize, frames_buffered());
567 EXPECT_FALSE(ConsumeBufferedData(kDataSize, &muted));
572 EXPECT_EQ(kDataSize, frames_buffered())
    [all...]
source_buffer_stream_unittest.cc 24 static const int kDataSize = 1;
35 stream_->set_memory_limit_for_testing(buffers_of_data * kDataSize);
46 base::TimeDelta(), true, &kDataA, kDataSize);
52 base::TimeDelta(), true, data, kDataSize);
59 first_buffer_offset, true, &kDataA, kDataSize);
65 base::TimeDelta(), false, &kDataA, kDataSize);
70 base::TimeDelta(), true, &kDataA, kDataSize);
76 base::TimeDelta(), true, data, kDataSize);
176 kDataSize);
183 data, kDataSize);
    [all...]
  /external/chromium_org/third_party/libjingle/source/talk/base/
socket_unittest.cc 695 const size_t kDataSize = 1024 * 1024;
696 scoped_ptr<char[]> send_buffer(new char[kDataSize]);
697 scoped_ptr<char[]> recv_buffer(new char[kDataSize]);
699 for (size_t i = 0; i < kDataSize; ++i) {
737 while (recv_pos < kDataSize) {
739 while (!send_waiting_for_writability && send_pos < kDataSize) {
740 int tosend = static_cast<int>(kDataSize - send_pos);
769 kDataSize - recv_pos);
799 EXPECT_EQ(kDataSize, send_pos);
800 EXPECT_EQ(kDataSize, recv_pos)
    [all...]
virtualsocket_unittest.cc 473 const size_t kDataSize = 5000;
474 char send_buffer[kDataSize], recv_buffer[kDataSize];
475 for (size_t i = 0; i < kDataSize; ++i)
481 int result = a->Send(send_buffer + send_pos, kDataSize - send_pos);
490 result = a->Send(send_buffer + send_pos, kDataSize - send_pos);
499 result = a->Send(send_buffer + send_pos, kDataSize - send_pos);
513 result = a->Send(send_buffer + send_pos, kDataSize - send_pos);
519 result = b->Recv(recv_buffer + recv_pos, kDataSize - recv_pos);
533 result = b->Recv(recv_buffer + recv_pos, kDataSize - recv_pos)
    [all...]

Completed in 3276 milliseconds