aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/lib/strings/ordered_code_test.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-04-04 12:08:49 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-04-04 12:11:49 -0700
commit13e103b8f0dcc89673dd0d3d589b976c05c37a09 (patch)
tree3debee5abeae72842052b360124504c5a62e9779 /tensorflow/core/lib/strings/ordered_code_test.cc
parentbd540c8c45bf66a9c14af38a272840b47731b91a (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/lib/strings/ordered_code_test.cc')
-rw-r--r--tensorflow/core/lib/strings/ordered_code_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/core/lib/strings/ordered_code_test.cc b/tensorflow/core/lib/strings/ordered_code_test.cc
index fee8a6f93e..ede9f4d390 100644
--- a/tensorflow/core/lib/strings/ordered_code_test.cc
+++ b/tensorflow/core/lib/strings/ordered_code_test.cc
@@ -22,6 +22,7 @@ limitations under the License.
#include "tensorflow/core/lib/core/stringpiece.h"
#include "tensorflow/core/lib/random/simple_philox.h"
+#include "tensorflow/core/lib/strings/str_util.h"
#include "tensorflow/core/platform/logging.h"
#include "tensorflow/core/platform/test.h"
#include "tensorflow/core/platform/test_benchmark.h"
@@ -128,7 +129,7 @@ void TestWriteAppends(T first, U second) {
string encoded_first_only = encoded;
OCWriteToString<U>(&encoded, second);
EXPECT_NE(encoded, encoded_first_only);
- EXPECT_TRUE(StringPiece(encoded).starts_with(encoded_first_only));
+ EXPECT_TRUE(str_util::StartsWith(encoded, encoded_first_only));
}
template <typename T>