Home
last modified time | relevance | path

Searched refs:ValueOrDie (Results 1 - 25 of 26) sorted by relevance

12

/third_party/protobuf/src/google/protobuf/stubs/
H A Dstatusor_test.cc87 EXPECT_EQ(kI, thing.ValueOrDie()); in TEST()
95 EXPECT_EQ(original.ValueOrDie(), copy.ValueOrDie()); in TEST()
109 EXPECT_EQ(original.ValueOrDie(), copy.ValueOrDie()); in TEST()
124 EXPECT_EQ(source.ValueOrDie(), target.ValueOrDie()); in TEST()
140 EXPECT_DOUBLE_EQ(source.ValueOrDie(), target.ValueOrDie()); in TEST()
161 EXPECT_EQ(kI, thing.ValueOrDie()); in TEST()
[all...]
H A Dstatusor.h45 // float answer = result.ValueOrDie();
55 // std::unique_ptr<Foo> foo(result.ValueOrDie());
107 // this constructor, calls to ValueOrDie() will CHECK-fail.
120 // ValueOrDie() will succeed, and calls to status() will return OK.
155 const T& ValueOrDie() const;
252 inline const T& StatusOr<T>::ValueOrDie() const { in ValueOrDie() function in google::protobuf::util::StatusOr
H A Dstatus_macros.h63 lhs = result.ValueOrDie(); in DoAssignOrReturn()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A DBinaryStream.h121 mOffset = checkedOffset.ValueOrDie(); in readString()
142 mOffset = checkedOffset.ValueOrDie(); in skip()
180 if (!checkedOffset.IsValid() || checkedOffset.ValueOrDie() > mLength) in read()
186 memcpy(v, mData + mOffset, checkedLength.ValueOrDie()); in read()
187 mOffset = checkedOffset.ValueOrDie(); in read()
H A DTransformFeedback.cpp216 return vertices.IsValid() && vertices.ValueOrDie() <= mState.mVertexCapacity; in checkBufferSpaceForDraw()
222 // All draws should be validated with checkBufferSpaceForDraw so ValueOrDie should never fail. in onVerticesDrawn()
225 .ValueOrDie(); in onVerticesDrawn()
H A Dangletypes.cpp658 MinMax(source.x, sourceX2.ValueOrDie(), &minSourceX, &maxSourceX);
659 MinMax(source.y, sourceY2.ValueOrDie(), &minSourceY, &maxSourceY);
675 MinMax(clip.x, clipX2.ValueOrDie(), &minClipX, &maxClipX);
676 MinMax(clip.y, clipY2.ValueOrDie(), &minClipY, &maxClipY);
H A DVertexAttribute.cpp110 mCachedElementLimit = elementLimit.ValueOrDie(); in updateCachedElementLimit()
H A DShader.cpp500 if (checked_local_size_product.ValueOrDie() > in resolveCompile()
H A DvalidationES31.cpp530 checkedSum.ValueOrDie() > static_cast<size_t>(drawIndirectBuffer->getSize())) in ValidateDrawArraysIndirect()
568 checkedSum.ValueOrDie() > static_cast<size_t>(drawIndirectBuffer->getSize())) in ValidateDrawElementsIndirect()
1548 checkedSum.ValueOrDie() > static_cast<GLuint64>(dispatchIndirectBuffer->getSize())) in ValidateDispatchComputeIndirect()
H A DvalidationES.cpp1206 (checkedEndByte.ValueOrDie() > static_cast<size_t>(pixelUnpackBuffer->getSize()))) in ValidImageDataSize()
5099 if (!checkedSize.IsValid() || checkedSize.ValueOrDie() > static_cast<size_t>(buffer->getSize())) in ValidateMapBufferRangeBase()
5220 checkedSize.ValueOrDie() > static_cast<size_t>(buffer->getMapLength())) in ValidateFlushMappedBufferRangeBase()
7006 if (checkedEndByte.ValueOrDie() > static_cast<size_t>(pixelPackBuffer->getSize())) in ValidatePixelPack()
7201 if (readExtent.ValueOrDie() > bufferSize) in ValidateReadPixelsBase()
7212 *outExtent = std::max<int>(clippedExtent.ValueOrDie(), 0); in ValidateReadPixelsBase()
H A Dformatutils.cpp37 *resultOut = value.ValueOrDie(); in CheckedMathResult()
1730 if (numBlocksWide.IsValid() && numBlocksWide.ValueOrDie() < minBlockWidth) in computeCompressedImageSize()
1732 if (numBlocksHigh.IsValid() && numBlocksHigh.ValueOrDie() < minBlockHeight) in computeCompressedImageSize()
H A DvalidationES3.cpp3426 if (checkedReadSum.ValueOrDie() > readBuffer->getSize() || in ValidateCopyBufferSubData()
3427 checkedWriteSum.ValueOrDie() > writeBuffer->getSize()) in ValidateCopyBufferSubData()
3444 if (checkedOffsetDiff.ValueOrDie() < size) in ValidateCopyBufferSubData()
/third_party/gn/src/base/numerics/
H A Dchecked_math.h76 // ValueOrDie() - The primary accessor for the underlying value. If the
85 constexpr StrictNumeric<Dst> ValueOrDie() const { in ValueOrDie() function in base::internal::CheckedNumeric
299 return value.template ValueOrDie<Dst>(); in ValueOrDieForType()
359 .template ValueOrDie<uintptr_t>(); in operator +()
367 .template ValueOrDie<uintptr_t>(); in operator -()
/third_party/skia/third_party/externals/angle2/src/common/third_party/base/anglebase/numerics/
H A Dchecked_math.h83 // ValueOrDie() - The primary accessor for the underlying value. If the
92 constexpr StrictNumeric<Dst> ValueOrDie() const in ValueOrDie() function in angle::base::internal::CheckedNumeric
294 return value.template ValueOrDie<Dst>(); in ValueOrDieForType()
348 .template ValueOrDie<uintptr_t>(); in operator +()
357 .template ValueOrDie<uintptr_t>(); in operator -()
/third_party/protobuf/src/google/protobuf/util/internal/
H A Dobject_writer.cc77 ow->RenderBytes(name, data.ToBytes().ValueOrDie()); in RenderDataPieceTo()
H A Dproto_writer.cc257 WireFormatLite::WriteBytes(field_number, c.ValueOrDie(), stream); in WriteBytes()
H A Dprotostream_objectwriter.cc438 value_storage_ = value_.ToBytes().ValueOrDie(); in DeepCopy()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
H A Drenderer11_utils.cpp2203 context->getScratchBuffer(maxImageSize.ValueOrDie(), &scratchBuffer)); in GenerateInitialTextureData()
2206 rowPitch.ValueOrDie(), depthPitch.ValueOrDie()); in GenerateInitialTextureData()
2220 outSubresourceData->at(i).SysMemPitch = mipRowPitch.ValueOrDie(); in GenerateInitialTextureData()
2221 outSubresourceData->at(i).SysMemSlicePitch = mipDepthPitch.ValueOrDie(); in GenerateInitialTextureData()
H A DQuery11.cpp296 mResult = checkedTime.ValueOrDie(); in testQuery()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
H A DVertexBuffer.cpp233 ANGLE_TRY(reserveSpace(context, alignedRequiredSpace.ValueOrDie())); in reserveVertexSpace()
H A DVertexDataManager.cpp158 *offsetOut = offset.ValueOrDie(); in computeOffset()
/third_party/gn/src/base/strings/
H A Dstring_number_conversions.cc37 // The ValueOrDie call below can never fail, because UnsignedAbs is valid in IntToString()
40 CheckedNumeric<INT>(value).UnsignedAbs().ValueOrDie(); in IntToString()
/third_party/skia/third_party/externals/angle2/src/common/
H A Dmathutil_unittest.cpp236 ASSERT_EQ(0u, checkedValue.ValueOrDie());
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
H A Drenderergl_utils.cpp2610 if (static_cast<size_t>(checkedPixelBytes.ValueOrDie()) * size.width < rowPitch) in ShouldApplyLastRowPaddingWorkaround()
2617 *shouldApplyOut = checkedEndByte.ValueOrDie() > static_cast<size_t>(pixelBuffer->getSize()); in ShouldApplyLastRowPaddingWorkaround()
H A DFramebufferGL.cpp308 const GLuint allocatedBytes = checkedAllocatedBytes.ValueOrDie(); in Initialize()

Completed in 56 milliseconds

12