diff --git a/tensorflow/core/kernels/quantization_utils_test.cc b/tensorflow/core/kernels/quantization_utils_test.cc index 98ee5499b7d..81b3f4ff4b2 100644 --- a/tensorflow/core/kernels/quantization_utils_test.cc +++ b/tensorflow/core/kernels/quantization_utils_test.cc @@ -950,7 +950,7 @@ RUN_TEST(TestComputeLerp4xAll); #endif // __ANDROID__ int main(int argc, char** argv) { - // On Linux, add: FLAGS_logtostderr = true; + // On Linux, add: absl::SetFlag(&FLAGS_logtostderr, true); ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } diff --git a/tensorflow/core/kernels/quantized_add_op_test.cc b/tensorflow/core/kernels/quantized_add_op_test.cc index 376fe34c4b5..c33115759da 100644 --- a/tensorflow/core/kernels/quantized_add_op_test.cc +++ b/tensorflow/core/kernels/quantized_add_op_test.cc @@ -295,7 +295,7 @@ RUN_TEST(BenchmarkVectorPlusTensor); #endif // __ANDROID__ int main(int argc, char** argv) { - // On Linux, add: FLAGS_logtostderr = true; + // On Linux, add: absl::SetFlag(&FLAGS_logtostderr, true); ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } diff --git a/tensorflow/core/kernels/quantized_instance_norm_test.cc b/tensorflow/core/kernels/quantized_instance_norm_test.cc index 896fe046e7e..f34ab9dcd87 100644 --- a/tensorflow/core/kernels/quantized_instance_norm_test.cc +++ b/tensorflow/core/kernels/quantized_instance_norm_test.cc @@ -183,7 +183,7 @@ RUN_TEST(TestOutputRangeGiven); RUN_TEST(TestClamp); int main(int argc, char** argv) { - // On Linux, add: FLAGS_logtostderr = true; + // On Linux, add: absl::SetFlag(&FLAGS_logtostderr, true); ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } diff --git a/tensorflow/core/kernels/quantized_mul_op_test.cc b/tensorflow/core/kernels/quantized_mul_op_test.cc index a4e407c7a94..f41ebdefb4d 100644 --- a/tensorflow/core/kernels/quantized_mul_op_test.cc +++ b/tensorflow/core/kernels/quantized_mul_op_test.cc @@ -296,7 +296,7 @@ RUN_TEST(BenchmarkVectorTimesTensor); #endif // __ANDROID__ int main(int argc, char** argv) { - // On Linux, add: FLAGS_logtostderr = true; + // On Linux, add: absl::SetFlag(&FLAGS_logtostderr, true); ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } diff --git a/tensorflow/core/kernels/quantized_resize_bilinear_op_test.cc b/tensorflow/core/kernels/quantized_resize_bilinear_op_test.cc index 6e359b08f31..ae5ca6e6c1e 100644 --- a/tensorflow/core/kernels/quantized_resize_bilinear_op_test.cc +++ b/tensorflow/core/kernels/quantized_resize_bilinear_op_test.cc @@ -407,7 +407,7 @@ RUN_TEST(RunBenchmarkResizeBilinearTwoDims); #endif // __ANDROID__ int main(int argc, char** argv) { - // On Linux, add: FLAGS_logtostderr = true; + // On Linux, add: absl::SetFlag(&FLAGS_logtostderr, true); ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } diff --git a/tensorflow/lite/testing/util.h b/tensorflow/lite/testing/util.h index b76cb4c1f68..f72f284c3d3 100644 --- a/tensorflow/lite/testing/util.h +++ b/tensorflow/lite/testing/util.h @@ -51,7 +51,7 @@ class TestErrorReporter : public ErrorReporter { inline void LogToStderr() { #ifdef PLATFORM_GOOGLE - FLAGS_logtostderr = true; + absl::SetFlag(&FLAGS_logtostderr, true); #endif } diff --git a/tensorflow/lite/tools/gen_op_registration_test.cc b/tensorflow/lite/tools/gen_op_registration_test.cc index e572d28d2e1..3037963264e 100644 --- a/tensorflow/lite/tools/gen_op_registration_test.cc +++ b/tensorflow/lite/tools/gen_op_registration_test.cc @@ -100,7 +100,7 @@ TEST_F(GenOpRegistrationTest, TestNormalizeCustomOpName) { } // namespace tflite int main(int argc, char** argv) { - // On Linux, add: FLAGS_logtostderr = true; + // On Linux, add: absl::SetFlag(&FLAGS_logtostderr, true); ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } diff --git a/tensorflow/lite/tools/optimize/calibration/logging_op_resolver_test.cc b/tensorflow/lite/tools/optimize/calibration/logging_op_resolver_test.cc index 25507daaa91..511e4d0288d 100644 --- a/tensorflow/lite/tools/optimize/calibration/logging_op_resolver_test.cc +++ b/tensorflow/lite/tools/optimize/calibration/logging_op_resolver_test.cc @@ -171,7 +171,7 @@ TEST(LoggingOpResolverTest, CustomOps) { } // namespace tflite int main(int argc, char** argv) { - // On Linux, add: FLAGS_logtostderr = true; + // On Linux, add: absl::SetFlag(&FLAGS_logtostderr, true); ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }