mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
Stubbed out repeated fields, extensions, and error for hpb(cpp). PiperOrigin-RevId: 820213542
25 lines
702 B
C++
25 lines
702 B
C++
// Protocol Buffers - Google's data interchange format
|
|
// Copyright 2025 Google LLC. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file or at
|
|
// https://developers.google.com/open-source/licenses/bsd
|
|
|
|
#include <gtest/gtest.h>
|
|
#include "hpb_generator/tests/test_model.hpb.h"
|
|
#include "hpb/arena.h"
|
|
#include "hpb/hpb.h"
|
|
#include "hpb/ptr.h"
|
|
|
|
namespace hpb::testing {
|
|
namespace {
|
|
|
|
using ::hpb_unittest::protos::TestModel;
|
|
|
|
TEST(CppBackend, CanCreateMessage) {
|
|
hpb::Arena arena;
|
|
hpb::Ptr<TestModel> test_model_ptr = hpb::CreateMessage<TestModel>(arena);
|
|
(void)test_model_ptr;
|
|
}
|
|
} // namespace
|
|
} // namespace hpb::testing
|