aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/graph/subgraph_test.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-04-02 11:03:18 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-04-02 11:05:26 -0700
commit4118b7c8432ca770191ca22fc01fd435e4e4571e (patch)
tree62194ab9b119d548d3d8d71d91ef0be0072c3e3c /tensorflow/core/graph/subgraph_test.cc
parent5617c9b4be759b62f3cbd29b0a58c41a43ac47a0 (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: 191316903
Diffstat (limited to 'tensorflow/core/graph/subgraph_test.cc')
-rw-r--r--tensorflow/core/graph/subgraph_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/core/graph/subgraph_test.cc b/tensorflow/core/graph/subgraph_test.cc
index 7219d9812f..6c014a8d44 100644
--- a/tensorflow/core/graph/subgraph_test.cc
+++ b/tensorflow/core/graph/subgraph_test.cc
@@ -312,8 +312,8 @@ TEST_F(SubgraphTest, ChainOfFools) {
EXPECT_TRUE(HasEdge("e", 0, "_send_e_0", 0));
}
-static bool HasSubstr(const string& base, const string& substr) {
- bool ok = StringPiece(base).contains(substr);
+static bool HasSubstr(StringPiece base, StringPiece substr) {
+ bool ok = str_util::StrContains(base, substr);
EXPECT_TRUE(ok) << base << ", expected substring " << substr;
return ok;
}