• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2023 Google LLC.  All rights reserved.
3 //
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file or at
6 // https://developers.google.com/open-source/licenses/bsd
7 
8 #include <gtest/gtest.h>
9 #include "upb/reflection/def.hpp"
10 #include "upb/test/proto3_test.upb.h"
11 #include "upb/test/proto3_test.upbdefs.h"
12 
TEST(Proto3Test,SyntheticOneofExtension)13 TEST(Proto3Test, SyntheticOneofExtension) {
14   upb::DefPool defpool;
15   upb::MessageDefPtr md(upb_test_TestMessage3_getmsgdef(defpool.ptr()));
16   ASSERT_EQ(md.field_count(), 6);
17 }
18