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

Unified Diff: components/tracing/test/proto_zero_generation_unittest.cc

Issue 2239383002: GN proto_libary refactoring. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: optimisation Created 4 years, 4 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/test/proto_zero_generation_unittest.cc
diff --git a/components/tracing/test/proto_zero_generation_unittest.cc b/components/tracing/test/proto_zero_generation_unittest.cc
index cc2be35c03a6d2b089819ce25d41fc613877a1ae..eb6e8f759ff918ec143a4340cc002f94062fd9a4 100644
--- a/components/tracing/test/proto_zero_generation_unittest.cc
+++ b/components/tracing/test/proto_zero_generation_unittest.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "components/tracing/test/example_proto/library.pbzero.h"
#include "components/tracing/test/example_proto/test_messages.pbzero.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -12,6 +13,10 @@ using foo::bar::CamelCaseFields;
TEST(ProtoZeroTest, Simple) {
// TODO(kraynov) Put tests in the next CL (crbug.com/608721).
+
+ // Test the includes for indirect public import: library.pbzero.h ->
+ // library_internals/galaxies.pbzero.h -> upper_import.pbzero.h .
+ EXPECT_LE(0u, sizeof(foo::bar::TrickyPublicImport));
}
TEST(ProtoZeroTest, FieldNumbers) {

Powered by Google App Engine
This is Rietveld 408576698