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

Unified Diff: net/BUILD.gn

Issue 936313002: Add GN For hpack fuzzing utilities and net_perftests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 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 8ebaaa03a197f1914321219fdc5462095892637e..9dd726bfc68949949cac037dd2e11bea15ccd624 100644
--- a/net/BUILD.gn
+++ b/net/BUILD.gn
@@ -916,6 +916,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
@@ -946,6 +988,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",
@@ -1503,3 +1546,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