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

Unified Diff: ipc/BUILD.gn

Issue 2968003005: Support Serializing and Deserializing RepeatedField / RepeatedPtrField in IPC::Message (Closed)
Patch Set: Resolve review comments Created 3 years, 5 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
Index: ipc/BUILD.gn
diff --git a/ipc/BUILD.gn b/ipc/BUILD.gn
index c776d5826840549897a107b8de112eb7e57f2d6f..3d48207abe24be1b7370c7ae5066cb1ca3c8a1be 100644
--- a/ipc/BUILD.gn
+++ b/ipc/BUILD.gn
@@ -7,6 +7,7 @@ import("//build/config/nacl/config.gni")
import("//mojo/public/tools/bindings/mojom.gni")
import("//testing/test.gni")
import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
+import("//third_party/protobuf/proto_library.gni")
declare_args() {
# Enabling debug builds automatically sets enable_ipc_logging to true.
@@ -122,6 +123,17 @@ component("ipc") {
"//mojo/public/cpp/bindings",
"//mojo/public/cpp/system",
]
+
+ if (!is_nacl_nonsfi) {
+ sources += [
+ "ipc_message_protobuf_utils.h",
+ ]
+
+ public_deps += [
+ "//third_party/protobuf:protobuf_lite",
+ ]
+ }
+
deps = [
"//base",
]
@@ -176,6 +188,12 @@ if (!is_ios) {
]
}
+ proto_library("test_proto") {
+ sources = [
+ "test_proto.proto",
+ ]
+ }
+
test("ipc_tests") {
sources = [
"ipc_channel_mojo_unittest.cc",
@@ -203,6 +221,7 @@ if (!is_ios) {
":ipc",
":run_all_unittests",
":test_interfaces",
+ ":test_proto",
":test_support",
"//base",
"//base:i18n",
@@ -223,6 +242,12 @@ if (!is_ios) {
"sync_socket_unittest.cc",
]
}
+
+ if (!is_nacl_nonsfi) {
+ sources += [
+ "ipc_message_protobuf_utils_unittest.cc",
+ ]
+ }
}
test("ipc_perftests") {

Powered by Google App Engine
This is Rietveld 408576698