PageRenderTime 68ms CodeModel.GetById 32ms RepoModel.GetById 1ms app.codeStats 0ms

/components/data_reduction_proxy/core/browser/BUILD.gn

https://gitlab.com/0072016/Facebook-SDK-
GN | 162 lines | 147 code | 12 blank | 3 comment | 2 complexity | ae8912c72dd3a9366356c99e010298ef MD5 | raw file
  1. # Copyright 2014 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. browser_sources = [
  5. "data_reduction_proxy_bypass_protocol.cc",
  6. "data_reduction_proxy_bypass_protocol.h",
  7. "data_reduction_proxy_bypass_stats.cc",
  8. "data_reduction_proxy_bypass_stats.h",
  9. "data_reduction_proxy_compression_stats.cc",
  10. "data_reduction_proxy_compression_stats.h",
  11. "data_reduction_proxy_config.cc",
  12. "data_reduction_proxy_config.h",
  13. "data_reduction_proxy_config_service_client.cc",
  14. "data_reduction_proxy_config_service_client.h",
  15. "data_reduction_proxy_configurator.cc",
  16. "data_reduction_proxy_configurator.h",
  17. "data_reduction_proxy_delegate.cc",
  18. "data_reduction_proxy_delegate.h",
  19. "data_reduction_proxy_interceptor.cc",
  20. "data_reduction_proxy_interceptor.h",
  21. "data_reduction_proxy_io_data.cc",
  22. "data_reduction_proxy_io_data.h",
  23. "data_reduction_proxy_metrics.cc",
  24. "data_reduction_proxy_metrics.h",
  25. "data_reduction_proxy_mutable_config_values.cc",
  26. "data_reduction_proxy_mutable_config_values.h",
  27. "data_reduction_proxy_network_delegate.cc",
  28. "data_reduction_proxy_network_delegate.h",
  29. "data_reduction_proxy_prefs.cc",
  30. "data_reduction_proxy_prefs.h",
  31. "data_reduction_proxy_request_options.cc",
  32. "data_reduction_proxy_request_options.h",
  33. "data_reduction_proxy_service.cc",
  34. "data_reduction_proxy_service.h",
  35. "data_reduction_proxy_service_observer.h",
  36. "data_reduction_proxy_settings.cc",
  37. "data_reduction_proxy_settings.h",
  38. "data_reduction_proxy_tamper_detection.cc",
  39. "data_reduction_proxy_tamper_detection.h",
  40. "data_store.cc",
  41. "data_store.h",
  42. "data_usage_store.cc",
  43. "data_usage_store.h",
  44. "db_data_owner.cc",
  45. "db_data_owner.h",
  46. ]
  47. if (is_android) {
  48. source_set("browser_small") {
  49. sources = browser_sources
  50. deps = [
  51. "//base",
  52. "//components/data_reduction_proxy/core/common:common_small",
  53. "//components/data_reduction_proxy/proto:data_reduction_proxy_proto",
  54. "//components/pref_registry",
  55. "//components/prefs",
  56. "//components/variations",
  57. "//crypto",
  58. "//google_apis:google_apis_small",
  59. "//net:net_small",
  60. "//url:url_lib_use_icu_alternatives_on_android",
  61. ]
  62. }
  63. }
  64. source_set("browser") {
  65. sources = browser_sources
  66. sources += [
  67. "data_store_impl.cc",
  68. "data_store_impl.h",
  69. ]
  70. deps = [
  71. "//base",
  72. "//components/data_reduction_proxy/core/common",
  73. "//components/data_reduction_proxy/proto:data_reduction_proxy_proto",
  74. "//components/pref_registry",
  75. "//components/prefs",
  76. "//components/variations",
  77. "//crypto",
  78. "//google_apis",
  79. "//net",
  80. "//third_party/leveldatabase",
  81. "//url",
  82. ]
  83. defines = [ "USE_GOOGLE_API_KEYS" ]
  84. if (!is_ios) {
  85. defines += [ "USE_GOOGLE_API_KEYS_FOR_AUTH_KEY" ]
  86. }
  87. }
  88. source_set("test_support") {
  89. testonly = true
  90. sources = [
  91. "data_reduction_proxy_config_test_utils.cc",
  92. "data_reduction_proxy_config_test_utils.h",
  93. "data_reduction_proxy_configurator_test_utils.cc",
  94. "data_reduction_proxy_configurator_test_utils.h",
  95. "data_reduction_proxy_settings_test_utils.cc",
  96. "data_reduction_proxy_settings_test_utils.h",
  97. "data_reduction_proxy_test_utils.cc",
  98. "data_reduction_proxy_test_utils.h",
  99. ]
  100. configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
  101. public_deps = [
  102. ":browser",
  103. ]
  104. deps = [
  105. "//base",
  106. "//components/data_reduction_proxy/core/common",
  107. "//components/data_reduction_proxy/core/common:test_support",
  108. "//components/prefs:test_support",
  109. "//net",
  110. "//net:test_support",
  111. "//testing/gmock",
  112. "//testing/gtest",
  113. ]
  114. }
  115. source_set("unit_tests") {
  116. testonly = true
  117. sources = [
  118. "data_reduction_proxy_bypass_protocol_unittest.cc",
  119. "data_reduction_proxy_bypass_stats_unittest.cc",
  120. "data_reduction_proxy_compression_stats_unittest.cc",
  121. "data_reduction_proxy_config_service_client_unittest.cc",
  122. "data_reduction_proxy_config_unittest.cc",
  123. "data_reduction_proxy_configurator_unittest.cc",
  124. "data_reduction_proxy_delegate_unittest.cc",
  125. "data_reduction_proxy_interceptor_unittest.cc",
  126. "data_reduction_proxy_io_data_unittest.cc",
  127. "data_reduction_proxy_metrics_unittest.cc",
  128. "data_reduction_proxy_mutable_config_values_unittest.cc",
  129. "data_reduction_proxy_network_delegate_unittest.cc",
  130. "data_reduction_proxy_prefs_unittest.cc",
  131. "data_reduction_proxy_request_options_unittest.cc",
  132. "data_reduction_proxy_settings_unittest.cc",
  133. "data_reduction_proxy_tamper_detection_unittest.cc",
  134. "data_usage_store_unittest.cc",
  135. ]
  136. configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
  137. deps = [
  138. ":browser",
  139. ":test_support",
  140. "//base",
  141. "//base/test:test_support",
  142. "//components/data_reduction_proxy/core/common:test_support",
  143. "//components/data_reduction_proxy/proto:data_reduction_proxy_proto",
  144. "//components/prefs:test_support",
  145. "//components/variations",
  146. "//net:test_support",
  147. "//testing/gmock",
  148. "//testing/gtest",
  149. ]
  150. }