Home
last modified time | relevance | path

Searched refs:kSegmentSize (Results 1 – 25 of 41) sorted by relevance

12

/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/modules/websockets/
H A Dwebsocket_message_chunk_accumulator_test.cc26 static constexpr auto kSegmentSize = member in blink::__anon85dc6e040111::WebSocketMessageChunkAccumulatorTest
27 WebSocketMessageChunkAccumulator::kSegmentSize;
62 Vector<char> chunk(kSegmentSize, 'y'); in TEST_F()
68 ASSERT_EQ(chunks.GetView()[0].size(), kSegmentSize); in TEST_F()
76 Vector<char> chunk(kSegmentSize * 2 + 2, 'y'); in TEST_F()
82 ASSERT_EQ(chunks.GetView()[0].size(), kSegmentSize); in TEST_F()
95 Vector<char> chunk4(kSegmentSize * 3 - 12, 'd'); in TEST_F()
97 Vector<char> chunk6(kSegmentSize - 5, 'f'); in TEST_F()
198 Vector<char> chunk1(kSegmentSize * 4, 'x'); in TEST_F()
199 Vector<char> chunk2(kSegmentSize * 3, 'x'); in TEST_F()
[all …]
H A Dwebsocket_message_chunk_accumulator.h55 static constexpr size_t kSegmentSize = 16 * 1024; variable
66 kSegmentSize, "blink::WebSocketMessageChunkAccumulator::Segment"))); in CreateSegment()
73 return size_ % kSegmentSize > 0 ? size_ % kSegmentSize : kSegmentSize; in GetLastSegmentSize()
H A Dwebsocket_message_chunk_accumulator.cc12 constexpr size_t WebSocketMessageChunkAccumulator::kSegmentSize; member in blink::WebSocketMessageChunkAccumulator
26 std::min(data.size(), kSegmentSize - GetLastSegmentSize()); in Append()
40 const size_t to_be_written = std::min(data.size(), kSegmentSize); in Append()
57 view.push_back(base::make_span(segments_[i].get(), kSegmentSize)); in GetView()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/modules/websockets/
H A Dwebsocket_message_chunk_accumulator_test.cc26 static constexpr auto kSegmentSize = member in blink::__anon08fdd3c90111::WebSocketMessageChunkAccumulatorTest
27 WebSocketMessageChunkAccumulator::kSegmentSize;
62 Vector<char> chunk(kSegmentSize, 'y'); in TEST_F()
68 ASSERT_EQ(chunks.GetView()[0].size(), kSegmentSize); in TEST_F()
76 Vector<char> chunk(kSegmentSize * 2 + 2, 'y'); in TEST_F()
82 ASSERT_EQ(chunks.GetView()[0].size(), kSegmentSize); in TEST_F()
95 Vector<char> chunk4(kSegmentSize * 3 - 12, 'd'); in TEST_F()
97 Vector<char> chunk6(kSegmentSize - 5, 'f'); in TEST_F()
198 Vector<char> chunk1(kSegmentSize * 4, 'x'); in TEST_F()
199 Vector<char> chunk2(kSegmentSize * 3, 'x'); in TEST_F()
[all …]
H A Dwebsocket_message_chunk_accumulator.h55 static constexpr size_t kSegmentSize = 16 * 1024; variable
66 kSegmentSize, "blink::WebSocketMessageChunkAccumulator::Segment"))); in CreateSegment()
73 return size_ % kSegmentSize > 0 ? size_ % kSegmentSize : kSegmentSize; in GetLastSegmentSize()
H A Dwebsocket_message_chunk_accumulator.cc12 constexpr size_t WebSocketMessageChunkAccumulator::kSegmentSize; member in blink::WebSocketMessageChunkAccumulator
26 std::min(data.size(), kSegmentSize - GetLastSegmentSize()); in Append()
40 const size_t to_be_written = std::min(data.size(), kSegmentSize); in Append()
57 view.push_back(base::make_span(segments_[i].get(), kSegmentSize)); in GetView()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/platform/image-decoders/
H A Dfast_shared_buffer_reader_test.cc139 const unsigned kDataSize = 2 * SharedBuffer::kSegmentSize; in TEST()
156 const unsigned kDataSize = 2 * SharedBuffer::kSegmentSize; in TEST()
169 EXPECT_LE(SharedBuffer::kSegmentSize, length); in TEST()
174 const unsigned kDataSize = 4 * SharedBuffer::kSegmentSize; in TEST()
197 const size_t kDataSize = 3.5 * SharedBuffer::kSegmentSize; in TEST()
211 rw_buffer.append(reference_data, SharedBuffer::kSegmentSize); in TEST()
212 rw_buffer.append(reference_data + SharedBuffer::kSegmentSize, in TEST()
213 2 * SharedBuffer::kSegmentSize); in TEST()
214 rw_buffer.append(reference_data + 3 * SharedBuffer::kSegmentSize, in TEST()
215 .5 * SharedBuffer::kSegmentSize); in TEST()
H A Dimage_decoder_test_helpers.h20 const unsigned kDefaultTestSize = 4 * SharedBuffer::kSegmentSize;
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/platform/image-decoders/
H A Dfast_shared_buffer_reader_test.cc139 const unsigned kDataSize = 2 * SharedBuffer::kSegmentSize; in TEST()
156 const unsigned kDataSize = 2 * SharedBuffer::kSegmentSize; in TEST()
169 EXPECT_LE(SharedBuffer::kSegmentSize, length); in TEST()
174 const unsigned kDataSize = 4 * SharedBuffer::kSegmentSize; in TEST()
197 const size_t kDataSize = 3.5 * SharedBuffer::kSegmentSize; in TEST()
211 rw_buffer.append(reference_data, SharedBuffer::kSegmentSize); in TEST()
212 rw_buffer.append(reference_data + SharedBuffer::kSegmentSize, in TEST()
213 2 * SharedBuffer::kSegmentSize); in TEST()
214 rw_buffer.append(reference_data + 3 * SharedBuffer::kSegmentSize, in TEST()
215 .5 * SharedBuffer::kSegmentSize); in TEST()
H A Dimage_decoder_test_helpers.h20 const unsigned kDefaultTestSize = 4 * SharedBuffer::kSegmentSize;
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/platform/wtf/
H A Dshared_buffer.cc38 constexpr unsigned SharedBuffer::kSegmentSize; member in WTF::SharedBuffer
41 return position / SharedBuffer::kSegmentSize; in SegmentIndex()
45 return position % SharedBuffer::kSegmentSize; in OffsetInSegment()
54 static_cast<char*>(WTF::Partitions::FastMalloc(SharedBuffer::kSegmentSize, in CreateSegment()
98 : kSegmentSize; in Init()
141 if (size_ <= kSegmentSize) { in AppendInternal()
151 size_t bytes_to_copy = std::min(length, kSegmentSize - position_in_segment); in AppendInternal()
178 wtf_size_t bytes_to_copy = std::min<wtf_size_t>(bytes_left, kSegmentSize); in MergeSegmentsIntoBuffer()
H A Dshared_buffer_test.cc204 Vector<char> data(SharedBuffer::kSegmentSize + 256); in TEST()
231 ASSERT_EQ(it127->size(), SharedBuffer::kSegmentSize); in TEST()
237 ASSERT_EQ(it128->size(), SharedBuffer::kSegmentSize - 1); in TEST()
333 Vector<char> data(SharedBuffer::kSegmentSize * 2 + 256); in TEST()
344 ASSERT_EQ(it->size(), SharedBuffer::kSegmentSize); in TEST()
349 ASSERT_EQ(it->size(), SharedBuffer::kSegmentSize); in TEST()
364 Vector<char> data(SharedBuffer::kSegmentSize * 2 + 256); in TEST()
381 ASSERT_EQ(it->size(), SharedBuffer::kSegmentSize); in TEST()
386 ASSERT_EQ(it->size(), SharedBuffer::kSegmentSize); in TEST()
387 EXPECT_EQ(0, memcmp(data.data() + 128 + SharedBuffer::kSegmentSize, in TEST()
[all …]
H A Dshared_buffer.h95 static constexpr unsigned kSegmentSize = 0x1000; variable
213 return (size_ - buffer_.size() + kSegmentSize - 1) % kSegmentSize + 1; in GetLastSegmentSize()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/platform/wtf/
H A Dshared_buffer.cc38 constexpr unsigned SharedBuffer::kSegmentSize; member in WTF::SharedBuffer
41 return position / SharedBuffer::kSegmentSize; in SegmentIndex()
45 return position % SharedBuffer::kSegmentSize; in OffsetInSegment()
54 static_cast<char*>(WTF::Partitions::FastMalloc(SharedBuffer::kSegmentSize, in CreateSegment()
98 : kSegmentSize; in Init()
141 if (size_ <= kSegmentSize) { in AppendInternal()
151 size_t bytes_to_copy = std::min(length, kSegmentSize - position_in_segment); in AppendInternal()
178 wtf_size_t bytes_to_copy = std::min<wtf_size_t>(bytes_left, kSegmentSize); in MergeSegmentsIntoBuffer()
H A Dshared_buffer_test.cc204 Vector<char> data(SharedBuffer::kSegmentSize + 256); in TEST()
231 ASSERT_EQ(it127->size(), SharedBuffer::kSegmentSize); in TEST()
237 ASSERT_EQ(it128->size(), SharedBuffer::kSegmentSize - 1); in TEST()
333 Vector<char> data(SharedBuffer::kSegmentSize * 2 + 256); in TEST()
344 ASSERT_EQ(it->size(), SharedBuffer::kSegmentSize); in TEST()
349 ASSERT_EQ(it->size(), SharedBuffer::kSegmentSize); in TEST()
364 Vector<char> data(SharedBuffer::kSegmentSize * 2 + 256); in TEST()
381 ASSERT_EQ(it->size(), SharedBuffer::kSegmentSize); in TEST()
386 ASSERT_EQ(it->size(), SharedBuffer::kSegmentSize); in TEST()
387 EXPECT_EQ(0, memcmp(data.data() + 128 + SharedBuffer::kSegmentSize, in TEST()
[all …]
H A Dshared_buffer.h95 static constexpr unsigned kSegmentSize = 0x1000; variable
213 return (size_ - buffer_.size() + kSegmentSize - 1) % kSegmentSize + 1; in GetLastSegmentSize()
/dports/lang/v8/v8-9.6.180.12/test/unittests/heap/base/
H A Dworklist-unittest.cc157 for (size_t i = 0; i < TestWorklist::kSegmentSize; i++) { in TEST()
176 for (size_t i = 0; i < TestWorklist::kSegmentSize; i++) { in TEST()
179 for (size_t i = 0; i < TestWorklist::kSegmentSize; i++) { in TEST()
191 for (size_t i = 0; i < TestWorklist::kSegmentSize; i++) { in TEST()
244 for (size_t i = 0; i < TestWorklist::kSegmentSize; i++) { in TEST()
254 for (size_t i = 0; i < TestWorklist::kSegmentSize; i++) { in TEST()
270 for (size_t i = 0; i < TestWorklist::kSegmentSize; i++) { in TEST()
273 for (size_t i = 0; i < TestWorklist::kSegmentSize; i++) { in TEST()
292 for (size_t i = 1; i < TestWorklist::kSegmentSize; i++) { in TEST()
297 for (size_t i = 1; i < TestWorklist::kSegmentSize; i++) { in TEST()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/media/blink/
H A Dsmoothness_helper.cc14 static constexpr base::TimeDelta kSegmentSize = variable
41 update_timer_.Start(FROM_HERE, kSegmentSize, in SmoothnessWindowMonitor()
236 return kSegmentSize; in SegmentSizeForTesting()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/media/blink/
H A Dsmoothness_helper.cc14 static constexpr base::TimeDelta kSegmentSize = variable
41 update_timer_.Start(FROM_HERE, kSegmentSize, in SmoothnessWindowMonitor()
236 return kSegmentSize; in SegmentSizeForTesting()
/dports/lang/spidermonkey60/firefox-60.9.0/xpcom/base/
H A DCycleCollectedJSRuntime.h331 static const size_t kSegmentSize = 512; variable
332 SegmentedVector<nsWrapperCache*, kSegmentSize, InfallibleAllocPolicy>
334 SegmentedVector<JS::PersistentRooted<JSObject*>, kSegmentSize,
/dports/lang/spidermonkey78/firefox-78.9.0/xpcom/base/
H A DCycleCollectedJSRuntime.h386 static const size_t kSegmentSize = 512; variable
387 SegmentedVector<nsWrapperCache*, kSegmentSize, InfallibleAllocPolicy>
389 SegmentedVector<JS::PersistentRooted<JSObject*>, kSegmentSize,
/dports/www/firefox-legacy/firefox-52.8.0esr/xpcom/base/
H A DCycleCollectedJSContext.h466 static const size_t kSegmentSize = 512;
467 SegmentedVector<nsWrapperCache*, kSegmentSize, InfallibleAllocPolicy>
469 SegmentedVector<JS::PersistentRooted<JSObject*>, kSegmentSize,
/dports/mail/thunderbird/thunderbird-91.8.0/xpcom/base/
H A DCycleCollectedJSRuntime.h385 static const size_t kSegmentSize = 512; variable
386 SegmentedVector<nsWrapperCache*, kSegmentSize, InfallibleAllocPolicy>
388 SegmentedVector<JS::PersistentRooted<JSObject*>, kSegmentSize,
/dports/www/firefox-esr/firefox-91.8.0/xpcom/base/
H A DCycleCollectedJSRuntime.h385 static const size_t kSegmentSize = 512; variable
386 SegmentedVector<nsWrapperCache*, kSegmentSize, InfallibleAllocPolicy>
388 SegmentedVector<JS::PersistentRooted<JSObject*>, kSegmentSize,
/dports/www/firefox/firefox-99.0/xpcom/base/
H A DCycleCollectedJSRuntime.h465 static const size_t kSegmentSize = 512; variable
466 SegmentedVector<nsWrapperCache*, kSegmentSize, InfallibleAllocPolicy>
468 SegmentedVector<JS::PersistentRooted<JSObject*>, kSegmentSize,

12