dep-protobuf/hpb/backend/cpp/cpp_test.cc
Hong Shin 37bb5d7a13 hpb/cpp: get cpp backend compiling again
Stubbed out repeated fields,  extensions, and error for hpb(cpp).

PiperOrigin-RevId: 820213542
2025-10-16 07:00:22 -07:00

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