message: Make ConvertSqueeze a value parameterized test
diff: @@ -2915,7 +2915,10 @@ std::ostream& operator<<(std::ostream& os, const SqueezeTestParams& p) {
  return os;
  }
  -TEST_F(OpConverterTest, ConvertSqueeze) {
  +class ConvertSqueezeTest : public OpConverterTest,
  + public ::testing::WithParamInterface<bool> {};
  +
  +TEST_P(ConvertSqueezeTest, ConvertSqueeze) {
  // Get the NodeDef for Squeeze.
  auto get_squeeze_nodedef = [](std::vector<int> axis) -> NodeDef {
  Scope s = Scope::NewRootScope();
  @@ -2932,8 +2935,7 @@ TEST_F(OpConverterTest, ConvertSqueeze) {
  }
  };
  - // Loop trough conversion parameters.
  - for (bool use_implicit_batch : {true, false}) {
  + bool use_implicit_batch = GetParam();
  // The success or failiure of some conversion depends on the conversion
  // params.
  std::vector<SqueezeTestParams> test_params = {
  @@ -3038,15 +3040,14 @@ TEST_F(OpConverterTest, ConvertSqueeze) {
  p.expected_output_dims.end());
  ExpectTrtDimsEqualsArray(out_dims, output.tensor()->getDimensions());
  }
  - TensorShape shape =
  - TrtDimsToTensorShape(p.input_dims, use_implicit_batch, 1);
  -
  + TensorShape shape;
  + TF_EXPECT_OK(TensorShapeUtils::MakeShape(p.input_dims, &shape));
  const DataVec input_data{
  {"input", AsTensor<float>({1, 2, 3, 4, 5, 6}, shape)}};
  DataVec output_data{{"my_squeeze", ConstructTensor<float>(6)}};
  BuildAndRun(input_data, &output_data);
  // Check tha actual output tensor
  - TensorShapeUtils::MakeShape(p.expected_output_dims, &shape);
  + TF_EXPECT_OK(TensorShapeUtils::MakeShape(p.expected_output_dims, &shape));
  EXPECT_TRUE(output_data[0].tensor.shape() == shape)
  << "Expected shape: " << shape.DebugString() << ", actual shape"
  << output_data[0].tensor.shape().DebugString();
  @@ -3054,8 +3055,9 @@ TEST_F(OpConverterTest, ConvertSqueeze) {
  ElementsAre(1, 2, 3, 4, 5, 6));
  }
  } // loop over test parameters
  - } // loop over conversion parameters
  }
  +INSTANTIATE_TEST_CASE_P(ConvertSqueezeInstantiation, ConvertSqueezeTest,
  + ::testing::Values(false, true));
  TEST_F(OpConverterTest, ConvertStridedSlice) {
  // Get nodedef for StridedSlice layer.
  