/third_party/protobuf/src/google/protobuf/stubs/ |
H A D | statusor_test.cc | 87 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 D | statusor.h | 45 // 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 D | status_macros.h | 63 lhs = result.ValueOrDie(); in DoAssignOrReturn()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
H A D | BinaryStream.h | 121 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 D | TransformFeedback.cpp | 216 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 D | angletypes.cpp | 658 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 D | VertexAttribute.cpp | 110 mCachedElementLimit = elementLimit.ValueOrDie(); in updateCachedElementLimit()
|
H A D | Shader.cpp | 500 if (checked_local_size_product.ValueOrDie() > in resolveCompile()
|
H A D | validationES31.cpp | 530 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 D | validationES.cpp | 1206 (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 D | formatutils.cpp | 37 *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 D | validationES3.cpp | 3426 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 D | checked_math.h | 76 // 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 D | checked_math.h | 83 // 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 D | object_writer.cc | 77 ow->RenderBytes(name, data.ToBytes().ValueOrDie()); in RenderDataPieceTo()
|
H A D | proto_writer.cc | 257 WireFormatLite::WriteBytes(field_number, c.ValueOrDie(), stream); in WriteBytes()
|
H A D | protostream_objectwriter.cc | 438 value_storage_ = value_.ToBytes().ValueOrDie(); in DeepCopy()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
H A D | renderer11_utils.cpp | 2203 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 D | Query11.cpp | 296 mResult = checkedTime.ValueOrDie(); in testQuery()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/ |
H A D | VertexBuffer.cpp | 233 ANGLE_TRY(reserveSpace(context, alignedRequiredSpace.ValueOrDie())); in reserveVertexSpace()
|
H A D | VertexDataManager.cpp | 158 *offsetOut = offset.ValueOrDie(); in computeOffset()
|
/third_party/gn/src/base/strings/ |
H A D | string_number_conversions.cc | 37 // 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 D | mathutil_unittest.cpp | 236 ASSERT_EQ(0u, checkedValue.ValueOrDie());
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/ |
H A D | renderergl_utils.cpp | 2610 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 D | FramebufferGL.cpp | 308 const GLuint allocatedBytes = checkedAllocatedBytes.ValueOrDie(); in Initialize()
|