Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: net/BUILD.gn

Issue 1001963002: Reland: Add hpack utilities and perftests to net GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/gn_migration.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/BUILD.gn
diff --git a/net/BUILD.gn b/net/BUILD.gn
index 89de53e494b1af143023479051675d32196bba05..ffd968b2493ee3cd44919b795e899059318e8910 100644
--- a/net/BUILD.gn
+++ b/net/BUILD.gn
@@ -8,6 +8,7 @@ import("//build/config/ui.gni")
import("//build/module_args/v8.gni")
import("//url/config.gni")
import("//testing/test.gni")
+import("//third_party/icu/config.gni")
# TODO(cjhopman): //build/config/android/rules.gni also imports grit_rule.gni.
# Currently, that file can't be imported multiple times. Make this always
@@ -931,6 +932,48 @@ if (!is_ios && !is_android) {
]
}
+ executable("hpack_example_generator") {
+ testonly = true
+ sources = [
+ "spdy/fuzzing/hpack_example_generator.cc",
+ ]
+
+ # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
+ configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
+ deps = [
+ "//base",
+ ":net",
+ ]
+ }
+
+ executable("hpack_fuzz_mutator") {
+ testonly = true
+ sources = [
+ "spdy/fuzzing/hpack_fuzz_mutator.cc",
+ ]
+
+ # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
+ configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
+ deps = [
+ "//base",
+ ":net",
+ ]
+ }
+
+ executable("hpack_fuzz_wrapper") {
+ testonly = true
+ sources = [
+ "spdy/fuzzing/hpack_fuzz_wrapper.cc",
+ ]
+
+ # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
+ configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
+ deps = [
+ "//base",
+ ":net",
+ ]
+ }
+
if (use_v8_in_net) {
executable("net_watcher") {
testonly = true
@@ -961,6 +1004,7 @@ if (!is_ios && !is_android) {
deps = [
":net", # TODO(brettw) bug 363749: this shouldn't be necessary. It's not
# in the GYP build, and can be removed when the bug is fixed.
+
":test_support",
"//base",
"//base/test:test_support",
@@ -1522,3 +1566,41 @@ if (!is_android && !is_win && !is_mac) {
]
}
} # !is_android && !is_win && !is_mac
+
+executable("net_perftests") {
+ testonly = true
+ sources = [
+ "cookies/cookie_monster_perftest.cc",
+ "disk_cache/blockfile/disk_cache_perftest.cc",
+ "proxy/proxy_resolver_perftest.cc",
+ "udp/udp_socket_perftest.cc",
+ ]
+
+ # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
+ configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
+ deps = [
+ "//base",
+ "//base:i18n",
+ "//base/test:test_support_perf",
+ "//testing/gtest",
+ "//url",
+ ":net",
+ ":test_support",
+ ]
+
+ if (enable_websockets) {
+ sources += [ "websockets/websocket_frame_perftest.cc" ]
+ }
+
+ if (use_v8_in_net) {
+ deps += [ ":net_with_v8" ]
+ } else {
+ sources -= [ "proxy/proxy_resolver_perftest.cc" ]
+ }
+
+ if (is_win && icu_use_data_file) {
+ # This is needed to trigger the dll copy step on windows.
+ # TODO(mark): Specifying this here shouldn't be necessary.
+ deps += [ "//third_party/icu:icudata" ]
+ }
+}
« no previous file with comments | « build/gn_migration.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698