[Wconversion] Suppress warnings

Bug: 58162
Change-Id: Ib1fce87b75557d67dbdfeb9056993e2757c4279a
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/googletest/+/425964
Reviewed-by: Roland McGrath <mcgrathr@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index 594dbf4..f32c594 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -76,25 +76,22 @@
       ]
     }
   }
+
+  # TODO(fxb/58162): delete the below and fix compiler warnings
+  configs += [ "//build/config:Wno-conversion" ]
 }
 
 # Library that defines the FRIEND_TEST macro.
 source_set("gtest_prod") {
   testonly = false
-  public = [
-    "googletest/include/gtest/gtest_prod.h",
-  ]
+  public = [ "googletest/include/gtest/gtest_prod.h" ]
   public_configs = [ ":gtest_config" ]
 }
 
 static_library("gtest_main") {
   testonly = true
-  sources = [
-    "googletest/src/gtest_main.cc",
-  ]
-  public_deps = [
-    ":gtest",
-  ]
+  sources = [ "googletest/src/gtest_main.cc" ]
+  public_deps = [ ":gtest" ]
 }
 
 executable("gtest_all_test") {
@@ -127,33 +124,21 @@
 
 executable("gtest_environment_test") {
   testonly = true
-  sources = [
-    "googletest/test/gtest_environment_test.cc",
-  ]
+  sources = [ "googletest/test/gtest_environment_test.cc" ]
   configs += [ ":gtest_private_config" ]
-  deps = [
-    ":gtest",
-  ]
+  deps = [ ":gtest" ]
 }
 
 executable("gtest_listener_test") {
   testonly = true
-  sources = [
-    "googletest/test/gtest-listener_test.cc",
-  ]
-  deps = [
-    ":gtest",
-  ]
+  sources = [ "googletest/test/gtest-listener_test.cc" ]
+  deps = [ ":gtest" ]
 }
 
 executable("gtest_no_test") {
   testonly = true
-  sources = [
-    "googletest/test/gtest_no_test_unittest.cc",
-  ]
-  deps = [
-    ":gtest",
-  ]
+  sources = [ "googletest/test/gtest_no_test_unittest.cc" ]
+  deps = [ ":gtest" ]
 }
 
 executable("gtest_param_test") {
@@ -164,37 +149,25 @@
     "googletest/test/gtest-param-test_test.h",
   ]
   configs += [ ":gtest_private_config" ]
-  deps = [
-    ":gtest",
-  ]
+  deps = [ ":gtest" ]
 }
 
 executable("gtest_premature_exit_test") {
   testonly = true
-  sources = [
-    "googletest/test/gtest_premature_exit_test.cc",
-  ]
-  deps = [
-    ":gtest",
-  ]
+  sources = [ "googletest/test/gtest_premature_exit_test.cc" ]
+  deps = [ ":gtest" ]
 }
 
 executable("gtest_repeat_test") {
   testonly = true
-  sources = [
-    "googletest/test/gtest_repeat_test.cc",
-  ]
+  sources = [ "googletest/test/gtest_repeat_test.cc" ]
   configs += [ ":gtest_private_config" ]
-  deps = [
-    ":gtest",
-  ]
+  deps = [ ":gtest" ]
 }
 
 executable("gtest_sole_header_test") {
   testonly = true
-  sources = [
-    "googletest/test/gtest_sole_header_test.cc",
-  ]
+  sources = [ "googletest/test/gtest_sole_header_test.cc" ]
   deps = [
     ":gtest",
     ":gtest_main",
@@ -203,23 +176,15 @@
 
 executable("gtest_stress_test") {
   testonly = true
-  sources = [
-    "googletest/test/gtest_stress_test.cc",
-  ]
+  sources = [ "googletest/test/gtest_stress_test.cc" ]
   configs += [ ":gtest_private_config" ]
-  deps = [
-    ":gtest",
-  ]
+  deps = [ ":gtest" ]
 }
 
 executable("gtest_unittest_api_test") {
   testonly = true
-  sources = [
-    "googletest/test/gtest-unittest-api_test.cc",
-  ]
-  deps = [
-    ":gtest",
-  ]
+  sources = [ "googletest/test/gtest-unittest-api_test.cc" ]
+  deps = [ ":gtest" ]
 }
 
 group("gtest_all_tests") {
@@ -258,9 +223,7 @@
 
 static_library("gmock") {
   testonly = true
-  public = [
-    "googlemock/include/gmock/gmock.h",
-  ]
+  public = [ "googlemock/include/gmock/gmock.h" ]
   sources = [
     "googlemock/include/gmock/gmock-actions.h",
     "googlemock/include/gmock/gmock-cardinalities.h",
@@ -288,16 +251,15 @@
   sources -= [ "googlemock/src/gmock-all.cc" ]
   public_configs = [ ":gmock_config" ]
   configs += [ ":gmock_private_config" ]
-  deps = [
-    ":gtest",
-  ]
+  deps = [ ":gtest" ]
+
+  # TODO(fxb/58162): delete the below and fix compiler warnings
+  configs += [ "//build/config:Wno-conversion" ]
 }
 
 static_library("gmock_main") {
   testonly = true
-  sources = [
-    "googlemock/src/gmock_main.cc",
-  ]
+  sources = [ "googlemock/src/gmock_main.cc" ]
   public_deps = [
     ":gmock",
     ":gtest",
@@ -349,9 +311,7 @@
 
 executable("gmock_stress_test") {
   testonly = true
-  sources = [
-    "googlemock/test/gmock_stress_test.cc",
-  ]
+  sources = [ "googlemock/test/gmock_stress_test.cc" ]
   configs += [ ":gmock_private_config" ]
   deps = [
     ":gmock",