Home
last modified time | relevance | path

Searched refs:test_buffer (Results 1 – 20 of 20) 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/tensorflow/tensorflow/compiler/xla/service/gpu/
Dbuffer_comparator.cc125 se::DeviceMemory<Eigen::half> test_buffer) { in CompareEqualImpl() argument
126 if (ref_buffer_.root_buffer().size() != test_buffer.size()) { in CompareEqualImpl()
128 ref_buffer_.root_buffer().size(), test_buffer.size()); in CompareEqualImpl()
131 int64 num_elements = test_buffer.ElementCount(); in CompareEqualImpl()
140 shaped_test_buffer.set_buffer(test_buffer, {}); in CompareEqualImpl()
158 se::DeviceMemory<Eigen::half> test_buffer) { in CompareEqual() argument
159 TF_ASSIGN_OR_RETURN(auto result, CompareEqualImpl(test_buffer)); in CompareEqual()
165 int64 n = test_buffer.ElementCount(); in CompareEqual()
169 stream_->ThenMemcpy(host_test_buffer.data(), test_buffer, test_buffer.size()); in CompareEqual()
Dbuffer_comparator.h49 StatusOr<bool> CompareEqual(se::DeviceMemory<Eigen::half> test_buffer);
60 StatusOr<bool> CompareEqualImpl(se::DeviceMemory<Eigen::half> test_buffer);
/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/tensorflow/tensorflow/core/framework/
Dtensor_reference.h65 explicit TensorReference(TensorBuffer* test_buffer) : buf_(test_buffer) { in TensorReference() argument
/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/cpython3/Lib/ctypes/test/
Dtest_buffers.py7 def test_buffer(self): member in StringBufferTestCase
/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/cpython3/Lib/test/
Dtest_array.py989 def test_buffer(self): member in BaseTest
/external/python/cpython2/Lib/lib2to3/tests/
Dtest_fixers.py3537 def test_buffer(self): member in Test_buffer
/external/python/cpython3/Lib/lib2to3/tests/
Dtest_fixers.py3633 def test_buffer(self): member in Test_buffer