/external/sfntly/cpp/src/test/ |
D | memory_io_test.cc | 37 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/ |
D | buffer_comparator.cc | 125 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()
|
D | buffer_comparator.h | 49 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/ |
D | wpd_tree_unittest.cc | 30 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/ |
D | video_capture_unittest.cc | 486 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/ |
D | scpi_unittest.py | 69 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/ |
D | video_metrics.cc | 115 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/ |
D | tensor_reference.h | 65 explicit TensorReference(TensorBuffer* test_buffer) : buf_(test_buffer) { in TensorReference() argument
|
/external/webrtc/webrtc/tools/frame_editing/ |
D | frame_editing_unittest.cc | 60 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/ |
D | test_buffers.py | 7 def test_buffer(self): member in StringBufferTestCase
|
/external/python/cpython2/Lib/ctypes/test/ |
D | test_buffers.py | 7 def test_buffer(self): member in StringBufferTestCase
|
/external/flatbuffers/tests/ |
D | phpTest.php | 23 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/ |
D | test_repr.py | 174 def test_buffer(self): member in ReprTests
|
D | test_py3kwarn.py | 238 def test_buffer(self): member in TestPy3KWarnings
|
D | test_marshal.py | 134 def test_buffer(self): member in StringTestCase
|
D | test_array.py | 785 def test_buffer(self): member in BaseTest
|
/external/linux-kselftest/tools/testing/selftests/x86/ |
D | mpx-mini-test.c | 176 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/ |
D | test_array.py | 989 def test_buffer(self): member in BaseTest
|
/external/python/cpython2/Lib/lib2to3/tests/ |
D | test_fixers.py | 3537 def test_buffer(self): member in Test_buffer
|
/external/python/cpython3/Lib/lib2to3/tests/ |
D | test_fixers.py | 3633 def test_buffer(self): member in Test_buffer
|