aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/framework/function_test.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-04-02 10:50:09 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-04-02 10:52:29 -0700
commit82bb63b958f5e39fb57ad45147b7d2c662c9b06c (patch)
tree334b52ad4b5c75c92ae86307a6d5076e9f645741 /tensorflow/core/framework/function_test.cc
parent3edab0abb1213f88507692042a320abc695ff674 (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: 191314576
Diffstat (limited to 'tensorflow/core/framework/function_test.cc')
-rw-r--r--tensorflow/core/framework/function_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/framework/function_test.cc b/tensorflow/core/framework/function_test.cc
index 23685e9c53..44e1383719 100644
--- a/tensorflow/core/framework/function_test.cc
+++ b/tensorflow/core/framework/function_test.cc
@@ -496,7 +496,7 @@ MySelect(x:float) -> (z:float) {
}
static void HasError(const Status& s, const string& substr) {
- EXPECT_TRUE(StringPiece(s.ToString()).contains(substr))
+ EXPECT_TRUE(str_util::StrContains(s.ToString(), substr))
<< ">>" << s << "<<, expected substring >>" << substr << "<<";
}