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

Unified Diff: components/tracing/proto_zero_test/BUILD.gn

Issue 2083373002: proto_zero_plugin [NOT FOR REVIEW]. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: full_featured_will_split_into_smaller_CLs_for_review Created 4 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: components/tracing/proto_zero_test/BUILD.gn
diff --git a/components/tracing/proto_zero_test/BUILD.gn b/components/tracing/proto_zero_test/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..4afab7c4c505db4f5b89f110b480158fb6675a80
--- /dev/null
+++ b/components/tracing/proto_zero_test/BUILD.gn
@@ -0,0 +1,37 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//third_party/protobuf/proto_library.gni")
+
+proto_library("proto_zero_test_mock_messages") {
+ visibility = [ "//components/tracing/proto_zero_test/*" ]
+
+ sources = [
+ "mock_messages.proto",
+ ]
+
+ proto_out_dir = "components/tracing/proto_zero_test"
+ generator_plugin = "proto_zero_plugin"
+ generator_plugin_suffix = ".zeropb"
+ generate_cc = false
+ generate_python = false
+
+ deps = [
+ "//components/tracing/proto_zero_plugin:proto_zero_plugin($host_toolchain)",
+ ]
+}
+
+source_set("unit_tests") {
+ testonly = true
+
+ sources = [
+ "mock_messages_unittest.cc",
+ ]
+
+ deps = [
+ ":proto_zero_test_mock_messages",
+ "//base/test:test_support",
+ "//testing/gtest",
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698