Skip to content

Commit

Permalink
Migrate calls to std::string* returning
Browse files Browse the repository at this point in the history
`UnknownFieldSet::AddLengthDelimited` to alternatives. This overload is being
removed in favor of `absl::string_view` interfaces.

PiperOrigin-RevId: 656045832
  • Loading branch information
ml-metadata-team authored and tfx-copybara committed Jul 25, 2024
1 parent e78f2d3 commit 94bad59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ml_metadata/metadata_store/metadata_store_test_suite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3643,7 +3643,7 @@ TEST_P(MetadataStoreTestSuite, GetArtifactByURI) {
const google::protobuf::Reflection* reflection = request.GetReflection();
google::protobuf::UnknownFieldSet* fs = reflection->MutableUnknownFields(&request);
std::string uri = "deprecated_uri_field_value";
fs->AddLengthDelimited(1)->assign(uri);
fs->AddLengthDelimited(1, uri);

GetArtifactsByURIResponse response;
absl::Status s = metadata_store_->GetArtifactsByURI(request, &response);
Expand Down

0 comments on commit 94bad59

Please sign in to comment.