Home
last modified time | relevance | path

Searched refs:test_buffer (Results 1 – 14 of 14) 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/autotest/server/cros/network/rf_switch/
Dscpi_unittest.py69 test_buffer = 'This is a response.'
73 self.mock_scpi.socket, 'recv', test_buffer)
78 self.assertEqual(test_buffer, response, 'Read response did not match')
83 test_buffer = 'This is a response.'
87 self.mock_scpi.socket, 'recv', test_buffer)
98 self.assertEqual(test_buffer, response, 'Read response did not match')
/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()
/external/python/cpython2/Lib/ctypes/test/
Dtest_buffers.py7 def test_buffer(self): member in StringBufferTestCase
/external/flatbuffers/tests/
DphpTest.php23 test_buffer($assert, $bb);
76 test_buffer($assert, $fbb->dataBuffer());
97 function test_buffer(Assert $assert, Google\FlatBuffers\ByteBuffer $bb) { function
/external/python/cpython2/Lib/test/
Dtest_repr.py174 def test_buffer(self): member in ReprTests
Dtest_py3kwarn.py238 def test_buffer(self): member in TestPy3KWarnings
Dtest_marshal.py134 def test_buffer(self): member in StringTestCase
Dtest_array.py785 def test_buffer(self): member in BaseTest
/external/linux-kselftest/tools/testing/selftests/x86/
Dmpx-mini-test.c176 uint8_t __attribute__((__aligned__(64))) test_buffer[4096]; variable
177 struct xsave_struct *xsave_test_buf = (struct xsave_struct *)test_buffer;
/external/python/cpython2/Lib/lib2to3/tests/
Dtest_fixers.py3537 def test_buffer(self): member in Test_buffer