/external/chromium_org/net/disk_cache/blockfile/ |
mapped_file_unittest.cc | 67 char buffer1[20]; local 69 CacheTestFillBuffer(buffer1, sizeof(buffer1), false); 70 base::strlcpy(buffer1, "the data", arraysize(buffer1)); 71 EXPECT_TRUE(file->Write(buffer1, sizeof(buffer1), 8192)); 73 EXPECT_STREQ(buffer1, buffer2); 86 char buffer1[20]; local 88 CacheTestFillBuffer(buffer1, sizeof(buffer1), false) [all...] |
disk_cache_perftest.cc | 45 scoped_refptr<net::IOBuffer> buffer1(new net::IOBuffer(kSize1)); 48 CacheTestFillBuffer(buffer1->data(), kSize1, false); 70 0, 0, buffer1.get(), kSize1, 97 scoped_refptr<net::IOBuffer> buffer1(new net::IOBuffer(kSize1)); 100 CacheTestFillBuffer(buffer1->data(), kSize1, false); 119 0, 0, buffer1.get(), kSize1,
|
/external/chromium_org/content/browser/renderer_host/media/ |
video_capture_buffer_pool_unittest.cc | 82 scoped_ptr<Buffer> buffer1 = ReserveI420Buffer(size_lo); local 83 ASSERT_TRUE(NULL != buffer1.get()); 85 buffer1->size()); 96 memset(buffer1->data(), 0x11, buffer1->size()); 104 buffer1.reset(); 131 buffer1 = ReserveI420Buffer(size_lo); 132 ASSERT_TRUE(NULL != buffer1.get()); 147 // Now deliver & consume buffer1, but don't release the buffer. 148 int buffer_id1 = buffer1->id() [all...] |
/external/nanopb-c/tests/encode_unittests/ |
encode_unittests.c | 53 uint8_t buffer1[] = "foobartest1234"; local 54 uint8_t buffer2[sizeof(buffer1)]; 55 pb_ostream_t stream = pb_ostream_from_buffer(buffer2, sizeof(buffer1)); 58 TEST(pb_write(&stream, buffer1, sizeof(buffer1))); 59 TEST(memcmp(buffer1, buffer2, sizeof(buffer1)) == 0); 60 TEST(!pb_write(&stream, buffer1, 1)); 61 TEST(stream.bytes_written == sizeof(buffer1)); 65 uint8_t buffer1[] = "xxxxxxx" local [all...] |
/external/chromium_org/gpu/command_buffer/service/ |
vertex_attrib_manager_unittest.cc | 188 Buffer* buffer1 = buffer_manager.GetBuffer(1); local 190 ASSERT_TRUE(buffer1 != NULL); 197 manager_->SetAttribInfo(1, buffer1, 3, GL_SHORT, GL_TRUE, 32, 32, 4); 198 manager_->SetAttribInfo(3, buffer1, 3, GL_SHORT, GL_TRUE, 32, 32, 4); 200 EXPECT_EQ(buffer1, attrib1->buffer()); 201 EXPECT_EQ(buffer1, attrib3->buffer()); 205 EXPECT_EQ(buffer1, attrib1->buffer()); 206 EXPECT_EQ(buffer1, attrib3->buffer()); 208 manager_->Unbind(buffer1);
|
buffer_manager_unittest.cc | 121 Buffer* buffer1 = manager_->GetBuffer(kClientBuffer1Id); local 122 ASSERT_TRUE(buffer1 != NULL); 123 EXPECT_EQ(0u, GetTarget(buffer1)); 124 EXPECT_EQ(0, buffer1->size()); 125 EXPECT_EQ(static_cast<GLenum>(GL_STATIC_DRAW), buffer1->usage()); 126 EXPECT_FALSE(buffer1->IsDeleted()); 127 EXPECT_FALSE(buffer1->IsClientSideArray()); 128 EXPECT_EQ(kServiceBuffer1Id, buffer1->service_id()); 130 EXPECT_TRUE(manager_->GetClientId(buffer1->service_id(), &client_id)); 132 manager_->SetTarget(buffer1, GL_ELEMENT_ARRAY_BUFFER) 160 Buffer* buffer1 = manager_->GetBuffer(kClientBuffer1Id); local 179 Buffer* buffer1 = manager_->GetBuffer(kClient1Id); local [all...] |
/external/chromium_org/third_party/webrtc/common_video/ |
plane_unittest.cc | 73 uint8_t buffer1[100]; local 75 memset(&buffer1, 0, size1); 76 plane2.Copy(size1, stride1, buffer1); 78 EXPECT_EQ(0, memcmp(buffer1, plane2.buffer(), size1));
|
/external/chromium_org/net/disk_cache/ |
entry_unittest.cc | 75 scoped_refptr<net::IOBuffer> buffer1(new net::IOBuffer(kSize1)); 76 CacheTestFillBuffer(buffer1->data(), kSize1, false); 79 entry->ReadData(0, 0, buffer1.get(), kSize1, net::CompletionCallback())); 80 base::strlcpy(buffer1->data(), "the data", kSize1); 83 0, 0, buffer1.get(), kSize1, net::CompletionCallback(), false)); 84 memset(buffer1->data(), 0, kSize1); 87 entry->ReadData(0, 0, buffer1.get(), kSize1, net::CompletionCallback())); 88 EXPECT_STREQ("the data", buffer1->data()); 201 scoped_refptr<net::IOBuffer> buffer1(new net::IOBuffer(kSize1)); 204 CacheTestFillBuffer(buffer1->data(), kSize1, false) [all...] |
backend_unittest.cc | 483 scoped_refptr<net::IOBuffer> buffer1(new net::IOBuffer(kSize)); 484 CacheTestFillBuffer(buffer1->data(), kSize, false); 485 ASSERT_EQ(kSize, base::WriteFile(filename, buffer1->data(), kSize)); 490 ASSERT_EQ(0, WriteData(entry, 0, 20000, buffer1.get(), 0, false)); 496 EXPECT_EQ(0, memcmp(buffer1->data(), buffer2->data(), kSize)); 916 scoped_refptr<net::IOBuffer> buffer1(new net::IOBuffer(kSize)); 917 memset(buffer1->data(), 0, kSize); 918 base::strlcpy(buffer1->data(), "And the data to save", kSize); 919 EXPECT_EQ(kSize, WriteData(entry, 0, 0, buffer1.get(), kSize, false)); 929 EXPECT_STREQ(buffer1->data(), buffer2->data()) 3091 char buffer1[kSize]; local [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
ThreadSafeDataTransportTest.cpp | 61 RefPtr<SharedBuffer> buffer1 = SharedBuffer::create(testString1, sizeof(testString1) - 1); local 67 transport.setData(buffer1.get(), false);
|
/external/chromium_org/mojo/public/cpp/system/tests/ |
core_unittest.cc | 390 ScopedSharedBufferHandle buffer1; local 391 EXPECT_EQ(MOJO_RESULT_OK, CreateSharedBuffer(NULL, 1024, &buffer1)); 392 EXPECT_TRUE(buffer1.is_valid()); 398 // If this fails to close buffer1, ScopedHandleBase::CloseIfNecessary() will 400 buffer1 = buffer2.Pass(); 402 EXPECT_TRUE(buffer1.is_valid()); 407 ScopedSharedBufferHandle buffer1; local 408 EXPECT_EQ(MOJO_RESULT_OK, CreateSharedBuffer(NULL, 1024, &buffer1)); 409 EXPECT_TRUE(buffer1.is_valid()); 411 buffer1 = buffer1.Pass() [all...] |
/cts/suite/audio_quality/test/ |
TaskCaseTest.cpp | 40 android::sp<Buffer> buffer1(new Buffer(4, 4, true)); 45 const android::String8 BUFFER1("buffer1"); 49 ASSERT_TRUE(mTaskCase->registerBuffer(BUFFER1, buffer1)); 54 android::sp<Buffer> buffer1f = mTaskCase->findBuffer(BUFFER1); 55 //LOGI("buffer1 %x, buffer1f %x", &buffer1, buffer1f); 56 ASSERT_TRUE(buffer1.get() == buffer1f.get()); 63 ASSERT_TRUE(((list->front().second.get() == buffer1.get()) & [all...] |
/external/chromium_org/v8/test/mjsunit/regress/ |
regress-353004.js | 7 var buffer1 = new ArrayBuffer(100 * 1024); 9 var array1 = new Uint8Array(buffer1, {valueOf : function() { 10 %ArrayBufferNeuter(buffer1);
|
/external/chromium_org/third_party/libsrtp/srtp/crypto/test/ |
cipher_driver.c | 292 uint8_t buffer0[buflen], buffer1[buflen], *current, *end; local 306 buffer0[j] = buffer1[j] = 0; 323 /* now loop over short lengths until buffer1 is encrypted */ 324 current = buffer1; 325 end = buffer1 + buflen; 339 /* advance pointer into buffer1 to reflect encryption */ 342 /* if buffer1 is all encrypted, break out of loop */ 349 if (buffer0[j] != buffer1[j]) { 352 printf("computed: %s\n", octet_string_hex_string(buffer1, buflen));
|
/external/mdnsresponder/mDNSPosix/ |
ProxyResponder.c | 121 char buffer1[MAX_ESCAPED_DOMAIN_NAME], buffer2[MAX_ESCAPED_DOMAIN_NAME]; local 122 ConvertDomainNameToCString(sr->RR_SRV.resrec.name, buffer1); 125 printf("Name Conflict! %s renamed as %s\n", buffer1, buffer2); 197 char buffer1[MAX_ESCAPED_DOMAIN_NAME], buffer2[MAX_ESCAPED_DOMAIN_NAME]; local 198 ConvertDomainNameToCString(rr->resrec.name, buffer1); 203 printf("Name Conflict! %s renamed as %s\n", buffer1, buffer2);
|
/external/chromium_org/third_party/smhasher/src/ |
KeysetTest.cpp | 88 uint8_t * buffer1 = new uint8_t[buflen]; local 104 uint8_t * key1 = &buffer1[pad]; 107 r.rand_p(buffer1,buflen); 149 delete [] buffer1;
|
/external/nanopb-c/tests/decode_unittests/ |
decode_unittests.c | 45 uint8_t buffer1[] = "foobartest1234"; local 46 uint8_t buffer2[sizeof(buffer1)]; 47 pb_istream_t stream = pb_istream_from_buffer(buffer1, sizeof(buffer1)); 52 TEST(stream.bytes_left == sizeof(buffer1) - 6) 54 TEST(memcmp(buffer1, buffer2, sizeof(buffer1)) == 0)
|
/external/chromium_org/tools/android/forwarder/ |
forwarder.cc | 202 Buffer buffer1; local 207 if (buffer1.CanRead()) 213 if (buffer1.CanWrite()) 226 int bytes = buffer1.Read(socket1); 243 if (buffer1.Write(socket2) <= 0)
|
/external/chromium_org/base/files/ |
file_util.cc | 71 char buffer1[BUFFER_SIZE], buffer2[BUFFER_SIZE]; local 73 file1.read(buffer1, BUFFER_SIZE); 78 (memcmp(buffer1, buffer2, file1.gcount()))) {
|
/external/chromium_org/media/base/ |
container_names_unittest.cc | 29 char buffer1[] = local 37 VERIFY(buffer1, CONTAINER_SRT);
|
/external/chromium_org/net/quic/ |
quic_data_stream_test.cc | 265 char buffer1[1]; local 268 vec[0].iov_base = buffer1; 269 vec[0].iov_len = arraysize(buffer1); 276 ASSERT_EQ(data.data()[i], buffer1[0]) << i;
|
/external/chromium_org/third_party/icu/source/common/ |
cmemory.h | 63 #define uprv_memcmp(buffer1, buffer2, size) U_STANDARD_CPP_NAMESPACE memcmp(buffer1, buffer2,size)
|
/external/icu/icu4c/source/common/ |
cmemory.h | 63 #define uprv_memcmp(buffer1, buffer2, size) U_STANDARD_CPP_NAMESPACE memcmp(buffer1, buffer2,size)
|
/external/chromium_org/mojo/system/ |
raw_channel.cc | 139 Buffer buffer1 = { local 142 buffers->push_back(buffer1);
|
/external/chromium_org/mojo/android/javatests/src/org/chromium/mojo/system/impl/ |
CoreImplTest.java | 153 ByteBuffer buffer1 = in.map(0, 8, SharedBufferHandle.MapFlags.NONE); local 154 assertEquals(8, buffer1.capacity()); 160 buffer1.put(bytes); 167 in.unmap(buffer1);
|