Commit 8ec93a3a authored by dpranke's avatar dpranke Committed by Commit bot

Add more size_t -> int warning fixes for the win x64 GN build.

R=brettw@chromium.org
BUG=354261

Review URL: https://codereview.chromium.org/941863002

Cr-Commit-Position: refs/heads/master@{#317439}
parent 910b20ff
...@@ -183,6 +183,7 @@ template("json_schema_api") { ...@@ -183,6 +183,7 @@ template("json_schema_api") {
sources += get_target_outputs(":$schema_generator_name") sources += get_target_outputs(":$schema_generator_name")
public_deps += [ ":$schema_generator_name" ] public_deps += [ ":$schema_generator_name" ]
deps += [ "//tools/json_schema_compiler:generated_api_util" ] deps += [ "//tools/json_schema_compiler:generated_api_util" ]
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
} }
if (bundle) { if (bundle) {
......
...@@ -865,6 +865,8 @@ if (!is_win || link_chrome_on_windows) { ...@@ -865,6 +865,8 @@ if (!is_win || link_chrome_on_windows) {
"test/run_all_unittests.cc", "test/run_all_unittests.cc",
] ]
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
deps = [ deps = [
":cc", ":cc",
":test_support", ":test_support",
...@@ -903,6 +905,8 @@ test("cc_perftests") { ...@@ -903,6 +905,8 @@ test("cc_perftests") {
"trees/occlusion_tracker_perftest.cc", "trees/occlusion_tracker_perftest.cc",
] ]
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
deps = [ deps = [
":cc", ":cc",
":test_support", ":test_support",
......
...@@ -312,6 +312,8 @@ source_set("test_support") { ...@@ -312,6 +312,8 @@ source_set("test_support") {
] ]
} }
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
if (enable_extensions) { if (enable_extensions) {
sources += [ sources += [
"extensions/extension_test_util.cc", "extensions/extension_test_util.cc",
......
...@@ -70,6 +70,8 @@ source_set("unit_tests") { ...@@ -70,6 +70,8 @@ source_set("unit_tests") {
"bookmark_utils_unittest.cc", "bookmark_utils_unittest.cc",
] ]
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
deps = [ deps = [
":browser", ":browser",
"//base:prefs", "//base:prefs",
......
...@@ -39,6 +39,7 @@ source_set("unit_tests") { ...@@ -39,6 +39,7 @@ source_set("unit_tests") {
"watcher_client_win_unittest.cc", "watcher_client_win_unittest.cc",
"watcher_metrics_provider_win_unittest.cc", "watcher_metrics_provider_win_unittest.cc",
] ]
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
deps = [ deps = [
":browser_watcher", ":browser_watcher",
":browser_watcher_client", ":browser_watcher_client",
......
...@@ -94,6 +94,8 @@ source_set("unit_tests") { ...@@ -94,6 +94,8 @@ source_set("unit_tests") {
"data_reduction_proxy_usage_stats_unittest.cc", "data_reduction_proxy_usage_stats_unittest.cc",
] ]
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
deps = [ deps = [
":browser", ":browser",
":test_support", ":test_support",
......
...@@ -86,6 +86,8 @@ source_set("unit_tests") { ...@@ -86,6 +86,8 @@ source_set("unit_tests") {
"util_unittest.cc", "util_unittest.cc",
] ]
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
deps = [ deps = [
":domain_reliability", ":domain_reliability",
"//base", "//base",
......
...@@ -32,6 +32,8 @@ source_set("unit_tests") { ...@@ -32,6 +32,8 @@ source_set("unit_tests") {
"owner_key_util_impl_unittest.cc", "owner_key_util_impl_unittest.cc",
] ]
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
deps = [ deps = [
":ownership", ":ownership",
"//testing/gtest", "//testing/gtest",
......
...@@ -54,6 +54,8 @@ source_set("unit_tests") { ...@@ -54,6 +54,8 @@ source_set("unit_tests") {
"wire_message_unittest.cc", "wire_message_unittest.cc",
] ]
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
deps = [ deps = [
":proximity_auth", ":proximity_auth",
"cryptauth:unit_tests", "cryptauth:unit_tests",
......
...@@ -257,6 +257,8 @@ if (!is_mac && (!is_win || link_chrome_on_windows)) { ...@@ -257,6 +257,8 @@ if (!is_mac && (!is_win || link_chrome_on_windows)) {
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
deps = [ deps = [
":browsertest_support", ":browsertest_support",
":web_ui_test_mojo_bindings", ":web_ui_test_mojo_bindings",
......
...@@ -99,6 +99,8 @@ if (!is_win || link_chrome_on_windows) { ...@@ -99,6 +99,8 @@ if (!is_win || link_chrome_on_windows) {
defines = [ "GL_GLEXT_PROTOTYPES" ] defines = [ "GL_GLEXT_PROTOTYPES" ]
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
deps = [ deps = [
":gpu", ":gpu",
":test_support", ":test_support",
...@@ -228,6 +230,8 @@ if (!is_win || link_chrome_on_windows) { ...@@ -228,6 +230,8 @@ if (!is_win || link_chrome_on_windows) {
"config/gpu_util_unittest.cc", "config/gpu_util_unittest.cc",
] ]
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
deps = [ deps = [
":gpu", ":gpu",
":test_support", ":test_support",
......
...@@ -150,6 +150,8 @@ if (enable_webrtc || !is_android) { ...@@ -150,6 +150,8 @@ if (enable_webrtc || !is_android) {
] ]
} }
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
public_deps = [ public_deps = [
"//third_party/libjingle", "//third_party/libjingle",
] ]
......
...@@ -286,7 +286,11 @@ source_set("unittests") { ...@@ -286,7 +286,11 @@ source_set("unittests") {
"//testing/gmock", "//testing/gmock",
"//testing/gtest", "//testing/gtest",
] ]
configs += [ "//media:media_config" ]
configs += [
"//build/config/compiler:no_size_t_to_int_warning",
"//media:media_config",
]
if (is_android) { if (is_android) {
sources += [ "android/audio_android_unittest.cc" ] sources += [ "android/audio_android_unittest.cc" ]
......
...@@ -270,7 +270,10 @@ source_set("base_for_cast_ios") { ...@@ -270,7 +270,10 @@ source_set("base_for_cast_ios") {
"video_frame.cc", "video_frame.cc",
"video_frame.h", "video_frame.h",
] ]
configs += [ "//media:media_config" ] configs += [
"//build/config/compiler:no_size_t_to_int_warning",
"//media:media_config",
]
all_dependent_configs = [ ":base_for_cast_ios_dependent_config" ] all_dependent_configs = [ ":base_for_cast_ios_dependent_config" ]
} }
...@@ -351,7 +354,10 @@ source_set("unittests") { ...@@ -351,7 +354,10 @@ source_set("unittests") {
"wall_clock_time_source_unittest.cc", "wall_clock_time_source_unittest.cc",
"yuv_convert_unittest.cc", "yuv_convert_unittest.cc",
] ]
configs += [ "//media:media_config" ] configs += [
"//build/config/compiler:no_size_t_to_int_warning",
"//media:media_config",
]
deps = [ deps = [
":base", ":base",
":test_support", ":test_support",
......
...@@ -104,6 +104,8 @@ if (!is_mac && (!is_win || link_chrome_on_windows)) { ...@@ -104,6 +104,8 @@ if (!is_mac && (!is_win || link_chrome_on_windows)) {
"//url", "//url",
] ]
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
sources = [ sources = [
"buffered_data_source_host_impl_unittest.cc", "buffered_data_source_host_impl_unittest.cc",
"buffered_data_source_unittest.cc", "buffered_data_source_unittest.cc",
......
...@@ -75,6 +75,8 @@ source_set("cdm_service") { ...@@ -75,6 +75,8 @@ source_set("cdm_service") {
"mojo_cdm_service.h", "mojo_cdm_service.h",
"mojo_type_trait.h", "mojo_type_trait.h",
] ]
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
} }
# media::Renderer implementation using mojo::MediaRenderer. # media::Renderer implementation using mojo::MediaRenderer.
......
...@@ -33,6 +33,8 @@ source_set("pipeline_integration_tests") { ...@@ -33,6 +33,8 @@ source_set("pipeline_integration_tests") {
"pipeline_integration_test.cc", "pipeline_integration_test.cc",
] ]
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
deps = [ deps = [
":pipeline_integration_test_base", ":pipeline_integration_test_base",
"//base", "//base",
...@@ -83,6 +85,8 @@ if (!is_component_build) { ...@@ -83,6 +85,8 @@ if (!is_component_build) {
defines = [ "MOJO_RENDERER" ] defines = [ "MOJO_RENDERER" ]
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
deps = [ deps = [
":pipeline_integration_test_base", ":pipeline_integration_test_base",
"//base", "//base",
......
...@@ -201,6 +201,8 @@ test("printing_unittests") { ...@@ -201,6 +201,8 @@ test("printing_unittests") {
"units_unittest.cc", "units_unittest.cc",
] ]
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
if (use_cups) { if (use_cups) {
configs += [ ":cups" ] configs += [ ":cups" ]
sources += [ "backend/cups_helper_unittest.cc" ] sources += [ "backend/cups_helper_unittest.cc" ]
......
...@@ -234,6 +234,8 @@ if (!is_win || link_chrome_on_windows) { ...@@ -234,6 +234,8 @@ if (!is_win || link_chrome_on_windows) {
"test/run_all_unittests.cc", "test/run_all_unittests.cc",
] ]
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
deps = [ deps = [
":app_list", ":app_list",
":test_support", ":test_support",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment