@@ -329,7 +329,7 @@ TEST_F(RangeCoderOpsTest, InvalidCdfShape) {
329
329
const Status status = RunEncodeOp (10 , {data, cdf}, &unused);
330
330
EXPECT_FALSE (status.ok ());
331
331
EXPECT_NE (status.error_message ().find (" `cdf` should have one more axis" ),
332
- string::npos);
332
+ std:: string::npos);
333
333
}
334
334
335
335
Tensor empty{DT_STRING, {}};
@@ -339,7 +339,7 @@ TEST_F(RangeCoderOpsTest, InvalidCdfShape) {
339
339
const Status status = RunDecodeOp (10 , {empty, shape, cdf}, &unused);
340
340
EXPECT_FALSE (status.ok ());
341
341
EXPECT_NE (status.error_message ().find (" `cdf` should have one more axis" ),
342
- string::npos);
342
+ std:: string::npos);
343
343
}
344
344
345
345
cdf = Tensor{DT_INT32, {3 , 3 , 1 }};
@@ -348,14 +348,14 @@ TEST_F(RangeCoderOpsTest, InvalidCdfShape) {
348
348
EXPECT_FALSE (status.ok ());
349
349
EXPECT_NE (
350
350
status.error_message ().find (" last dimension of `cdf` should be > 1" ),
351
- string::npos);
351
+ std:: string::npos);
352
352
}
353
353
{
354
354
const Status status = RunDecodeOp (10 , {empty, shape, cdf}, &unused);
355
355
EXPECT_FALSE (status.ok ());
356
356
EXPECT_NE (
357
357
status.error_message ().find (" last dimension of `cdf` should be > 1" ),
358
- string::npos);
358
+ std:: string::npos);
359
359
}
360
360
}
361
361
@@ -405,7 +405,7 @@ TEST_F(RangeCoderOpsTest, InvalidBroadcast) {
405
405
const Status status = RunEncodeOp (10 , {data, cdf}, &unused);
406
406
EXPECT_FALSE (status.ok ());
407
407
EXPECT_NE (status.error_message ().find (" Cannot broadcast shape" ),
408
- string::npos);
408
+ std:: string::npos);
409
409
}
410
410
411
411
data = Tensor{DT_INT16, {3 , 1 }};
@@ -417,7 +417,7 @@ TEST_F(RangeCoderOpsTest, InvalidBroadcast) {
417
417
const Status status = RunDecodeOp (10 , {empty, shape, cdf}, &unused);
418
418
EXPECT_FALSE (status.ok ());
419
419
EXPECT_NE (status.error_message ().find (" Cannot broadcast shape" ),
420
- string::npos);
420
+ std:: string::npos);
421
421
}
422
422
423
423
std::vector<int64> shape_vector = {2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 };
@@ -426,7 +426,8 @@ TEST_F(RangeCoderOpsTest, InvalidBroadcast) {
426
426
{
427
427
const Status status = RunEncodeOp (10 , {data, cdf}, &unused);
428
428
EXPECT_FALSE (status.ok ());
429
- EXPECT_NE (status.error_message ().find (" Irregular broadcast" ), string::npos);
429
+ EXPECT_NE (status.error_message ().find (" Irregular broadcast" ),
430
+ std::string::npos);
430
431
}
431
432
432
433
shape = Tensor{DT_INT32, {static_cast <int64>(shape_vector.size ())}};
@@ -436,16 +437,17 @@ TEST_F(RangeCoderOpsTest, InvalidBroadcast) {
436
437
{
437
438
const Status status = RunDecodeOp (10 , {empty, shape, cdf}, &unused);
438
439
EXPECT_FALSE (status.ok ());
439
- EXPECT_NE (status.error_message ().find (" Irregular broadcast" ), string::npos);
440
+ EXPECT_NE (status.error_message ().find (" Irregular broadcast" ),
441
+ std::string::npos);
440
442
}
441
443
}
442
444
443
- #define EXPECT_STATUS_SUBSTR (status_expr, message ) \
444
- { \
445
- auto status = (status_expr); \
446
- EXPECT_FALSE (status.ok ()); \
447
- EXPECT_NE (status.error_message ().find ((message)), string::npos) \
448
- << status.error_message (); \
445
+ #define EXPECT_STATUS_SUBSTR (status_expr, message ) \
446
+ { \
447
+ auto status = (status_expr); \
448
+ EXPECT_FALSE (status.ok ()); \
449
+ EXPECT_NE (status.error_message ().find ((message)), std:: string::npos) \
450
+ << status.error_message (); \
449
451
}
450
452
451
453
TEST_F (RangeCoderOpsTest, EncoderDebug) {
0 commit comments