diff options
author | 2018-04-04 12:08:49 -0700 | |
---|---|---|
committer | 2018-04-04 12:11:49 -0700 | |
commit | 13e103b8f0dcc89673dd0d3d589b976c05c37a09 (patch) | |
tree | 3debee5abeae72842052b360124504c5a62e9779 /tensorflow/core/util/device_name_utils_test.cc | |
parent | bd540c8c45bf66a9c14af38a272840b47731b91a (diff) |
Replaced calls to deprecated tensorflow::StringPiece methods with their
tensorflow::str_util equivalents.
This will allow the deprecated methods to be removed.
PiperOrigin-RevId: 191627087
Diffstat (limited to 'tensorflow/core/util/device_name_utils_test.cc')
-rw-r--r-- | tensorflow/core/util/device_name_utils_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/util/device_name_utils_test.cc b/tensorflow/core/util/device_name_utils_test.cc index c1bc0f3378..ff9c108f10 100644 --- a/tensorflow/core/util/device_name_utils_test.cc +++ b/tensorflow/core/util/device_name_utils_test.cc @@ -408,7 +408,7 @@ static void MergeDevNamesError(const string& name_a, const string& name_b, DeviceNameUtils::ParsedName target_a = Name(name_a); Status s = DeviceNameUtils::MergeDevNames(&target_a, Name(name_b)); EXPECT_EQ(s.code(), error::INVALID_ARGUMENT); - EXPECT_TRUE(StringPiece(s.error_message()).contains(expected_error_substr)) + EXPECT_TRUE(str_util::StrContains(s.error_message(), expected_error_substr)) << s; } |