Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 199464493
  • Loading branch information
tensorflower-gardener committed Jun 6, 2018
1 parent abd8348 commit 47d42a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tensorflow/contrib/lite/models/smartreply/predictor_test.cc
Expand Up @@ -35,8 +35,8 @@ const char kModelName[] = "smartreply_ondevice_model.bin";
const char kSamples[] = "smartreply_samples.tsv";

string TestDataPath() {
return string(StrCat(tensorflow::testing::TensorFlowSrcRoot(), "/",
"contrib/lite/models/testdata/"));
return string(absl::StrCat(tensorflow::testing::TensorFlowSrcRoot(), "/",
"contrib/lite/models/testdata/"));
}

MATCHER_P(IncludeAnyResponesIn, expected_response, "contains the response") {
Expand All @@ -55,7 +55,7 @@ class PredictorTest : public ::testing::Test {
protected:
PredictorTest() {
model_ = tflite::FlatBufferModel::BuildFromFile(
StrCat(TestDataPath(), "/", kModelName).c_str());
absl::StrCat(TestDataPath(), "/", kModelName).c_str());
CHECK(model_);
}
~PredictorTest() override {}
Expand Down Expand Up @@ -121,7 +121,7 @@ TEST_F(PredictorTest, BatchTest) {
int total_triggers = 0;

string line;
std::ifstream fin(StrCat(TestDataPath(), "/", kSamples));
std::ifstream fin(absl::StrCat(TestDataPath(), "/", kSamples));
while (std::getline(fin, line)) {
const std::vector<string> fields = absl::StrSplit(line, '\t');
if (fields.empty()) {
Expand Down

0 comments on commit 47d42a1

Please sign in to comment.