Home
last modified time | relevance | path

Searched refs:test_buffer (Results 1 – 5 of 5) sorted by relevance

/external/sfntly/cpp/src/test/
Dmemory_io_test.cc37 ByteVector test_buffer; in TestMemoryInputStream() local
38 test_buffer.resize(kTestBufferLen); in TestMemoryInputStream()
39 std::copy(kTestData, kTestData + kTestBufferLen, test_buffer.begin()); in TestMemoryInputStream()
42 is.Attach(&(test_buffer[0]), kTestBufferLen); in TestMemoryInputStream()
54 EXPECT_EQ(memcmp(&(b[0]), &(test_buffer[0]) + 3, 7), 0); in TestMemoryInputStream()
58 EXPECT_EQ(memcmp(&(b[0]), &(test_buffer[0]) + 3, 17), 0); in TestMemoryInputStream()
65 EXPECT_EQ(memcmp(&(b[0]), &(test_buffer[0]) + 50, 10), 0); in TestMemoryInputStream()
70 EXPECT_EQ(memcmp(&(b[0]), &(test_buffer[0]) + 40, 10), 0); in TestMemoryInputStream()
79 EXPECT_EQ(memcmp(&(b[0]), &(test_buffer[0]) + kTestBufferLen - 10, 10), 0); in TestMemoryInputStream()
85 ByteVector test_buffer; in TestMemoryOutputStream() local
[all …]
/external/webrtc/webrtc/modules/audio_processing/transient/
Dwpd_tree_unittest.cc30 float test_buffer[kTestBufferSize]; in TEST() local
31 memset(test_buffer, 0.f, kTestBufferSize * sizeof(*test_buffer)); in TEST()
60 EXPECT_EQ(0, tree.Update(test_buffer, kTestBufferSize)); in TEST()
62 EXPECT_EQ(-1, tree.Update(test_buffer, kTestBufferSize - 1)); in TEST()
136 float test_buffer[kTestBufferSize]; in TEST() local
148 test_buffer); in TEST()
155 test_buffer[i] = 0.0; in TEST()
158 tree.Update(test_buffer, kTestBufferSize); in TEST()
190 test_buffer); in TEST()
/external/webrtc/webrtc/modules/video_capture/test/
Dvideo_capture_unittest.cc486 scoped_ptr<uint8_t[]> test_buffer(new uint8_t[length]); in TEST_F() local
487 webrtc::ExtractBuffer(test_frame_, length, test_buffer.get()); in TEST_F()
488 EXPECT_EQ(0, capture_input_interface_->IncomingFrame(test_buffer.get(), in TEST_F()
508 scoped_ptr<uint8_t[]> test_buffer(new uint8_t[length]); in TEST_F() local
509 webrtc::ExtractBuffer(test_frame_, length, test_buffer.get()); in TEST_F()
510 EXPECT_EQ(0, capture_input_interface_->IncomingFrame(test_buffer.get(), in TEST_F()
524 scoped_ptr<uint8_t[]> test_buffer(new uint8_t[length]); in TEST_F() local
525 webrtc::ExtractBuffer(test_frame_, length, test_buffer.get()); in TEST_F()
526 EXPECT_EQ(0, capture_input_interface_->IncomingFrame(test_buffer.get(), in TEST_F()
542 scoped_ptr<uint8_t[]> test_buffer(new uint8_t[length]); in TEST_F() local
[all …]
/external/webrtc/webrtc/test/testsupport/metrics/
Dvideo_metrics.cc115 rtc::scoped_ptr<uint8_t[]> test_buffer(new uint8_t[frame_length]); in CalculateMetrics() local
123 size_t test_bytes = fread(test_buffer.get(), 1, frame_length, test_fp); in CalculateMetrics()
128 ConvertToI420(kI420, test_buffer.get(), 0, 0, width, height, 0, in CalculateMetrics()
148 test_bytes = fread(test_buffer.get(), 1, frame_length, test_fp); in CalculateMetrics()
/external/webrtc/webrtc/tools/frame_editing/
Dframe_editing_unittest.cc60 rtc::scoped_ptr<int[]>* test_buffer) { in CompareToTheEnd() argument
66 num_bytes_read_ = fread(test_buffer->get(), 1, kFrameSize, in CompareToTheEnd()
72 EXPECT_EQ(0, memcmp(ref_buffer->get(), test_buffer->get(), in CompareToTheEnd()