Home
last modified time | relevance | path

Searched refs:bytesToRead (Results 1 – 10 of 10) sorted by relevance

/external/chromium_org/android_webview/browser/net/
Dinput_stream_reader_unittest.cc53 int ReadRawData(scoped_refptr<net::IOBuffer> buffer, int bytesToRead) { in ReadRawData() argument
54 return input_stream_reader_.ReadRawData(buffer.get(), bytesToRead); in ReadRawData()
145 const int bytesToRead = 128; in TEST_F() local
146 scoped_refptr<net::IOBuffer> buffer = new net::IOBuffer(bytesToRead); in TEST_F()
147 EXPECT_CALL(input_stream_, Read(buffer.get(), bytesToRead, NotNull())) in TEST_F()
150 ASSERT_GT(0, ReadRawData(buffer, bytesToRead)); in TEST_F()
154 const int bytesToRead = 0; in TEST_F() local
157 EXPECT_CALL(input_stream_, Read(buffer.get(), bytesToRead, NotNull())) in TEST_F()
160 ASSERT_EQ(0, ReadRawData(buffer, bytesToRead)); in TEST_F()
164 const int bytesToRead = 128; in TEST_F() local
[all …]
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DDigestInputStream2Test.java111 int bytesToRead = inStream.available(); in test_read$BII() local
112 byte buf1[] = new byte[bytesToRead + 5]; in test_read$BII()
113 byte buf2[] = new byte[bytesToRead + 5]; in test_read$BII()
115 assertTrue("No data to read for this test", bytesToRead > 0); in test_read$BII()
118 int bytesRead1 = dis.read(buf1, 5, bytesToRead); in test_read$BII()
119 int bytesRead2 = inStream1.read(buf2, 5, bytesToRead); in test_read$BII()
122 assertEquals("Didn't read the entire", bytesRead1, bytesToRead); in test_read$BII()
125 for (int i = 0; i < bytesToRead + 5; i++) { in test_read$BII()
/external/chromium_org/third_party/WebKit/Source/core/xml/parser/
DSharedBufferReaderTest.cpp111 const int bytesToRead = testData.size() / 2; in TEST() local
112 EXPECT_EQ(bytesToRead, reader.readData(&destinationVector[0], bytesToRead)); in TEST()
116 EXPECT_EQ(0, reader.readData(&destinationVector[0], bytesToRead)); in TEST()
/external/chromium_org/tools/win/ChromeDebug/ChromeDebug/
DUtility.cs52 int bytesToRead = Marshal.SizeOf(typeof(T)); in ReadUnmanagedStructFromProcess()
53 IntPtr buffer = Marshal.AllocHGlobal(bytesToRead); in ReadUnmanagedStructFromProcess()
54 if (!NativeMethods.ReadProcessMemory(processHandle, addressInProcess, buffer, bytesToRead, in ReadUnmanagedStructFromProcess()
/external/skia/tests/
DFrontBufferedStreamTest.cpp15 const void* expectations, size_t bytesToRead) { in test_read() argument
17 SkAutoMalloc storage(bytesToRead); in test_read()
19 const size_t bytesRead = bufferedStream->read(storage.get(), bytesToRead); in test_read()
20 REPORTER_ASSERT(reporter, bytesRead == bytesToRead || bufferedStream->isAtEnd()); in test_read()
/external/chromium_org/third_party/skia/tests/
DFrontBufferedStreamTest.cpp15 const void* expectations, size_t bytesToRead) { in test_read() argument
17 SkAutoMalloc storage(bytesToRead); in test_read()
19 const size_t bytesRead = bufferedStream->read(storage.get(), bytesToRead); in test_read()
20 REPORTER_ASSERT(reporter, bytesRead == bytesToRead || bufferedStream->isAtEnd()); in test_read()
/external/skia/src/images/
DSkImageDecoder_libwebp.cpp56 size_t bytesToRead = WEBP_VP8_HEADER_SIZE; in webp_parse_header() local
60 const size_t bytesRead = stream->read(dst, bytesToRead); in webp_parse_header()
67 bytesToRead -= bytesRead; in webp_parse_header()
69 SkASSERT(bytesToRead + totalBytesRead == WEBP_VP8_HEADER_SIZE); in webp_parse_header()
70 } while (!stream->isAtEnd() && bytesToRead > 0); in webp_parse_header()
/external/chromium_org/third_party/skia/src/images/
DSkImageDecoder_libwebp.cpp56 size_t bytesToRead = WEBP_VP8_HEADER_SIZE; in webp_parse_header() local
60 const size_t bytesRead = stream->read(dst, bytesToRead); in webp_parse_header()
67 bytesToRead -= bytesRead; in webp_parse_header()
69 SkASSERT(bytesToRead + totalBytesRead == WEBP_VP8_HEADER_SIZE); in webp_parse_header()
70 } while (!stream->isAtEnd() && bytesToRead > 0); in webp_parse_header()
/external/chromium_org/tools/win/split_link/viz.js/
Dviz.js2736 var bytesToRead = nitems * size;
2737 if (bytesToRead == 0) return 0;
2738 var bytesRead = _read(stream, ptr, bytesToRead);
2744 if (bytesRead < bytesToRead) streamObj.eof = true;
/external/chromium_org/v8/tools/profviz/
Dgnuplot-4.6.3-emscripten.js2173 var bytesToRead = nitems * size;
2174 if (bytesToRead == 0) return 0;
2175 var bytesRead = _read(stream, ptr, bytesToRead);
2181 if (bytesRead < bytesToRead) streamObj.eof = true;