• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2008 Google Inc.  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 // Author: kenton@google.com (Kenton Varda)
9 //  Based on original Protocol Buffers design by
10 //  Sanjay Ghemawat, Jeff Dean, and others.
11 
12 #include <algorithm>
13 #include <cstdint>
14 #include <cstring>
15 #include <vector>
16 
17 #include <gtest/gtest.h>
18 #include "absl/hash/hash_testing.h"
19 #include "absl/log/absl_check.h"
20 #include "google/protobuf/arena.h"
21 #include "google/protobuf/explicitly_constructed.h"
22 #include "google/protobuf/has_bits.h"
23 #include "google/protobuf/internal_visibility.h"
24 #include "google/protobuf/message_lite.h"
25 #include "google/protobuf/port.h"
26 #include "google/protobuf/unittest.pb.h"
27 #include "google/protobuf/unittest_import.pb.h"
28 #include "google/protobuf/unittest_lite.pb.h"
29 
30 #define MESSAGE_TEST_NAME MessageTest
31 #define MESSAGE_FACTORY_TEST_NAME MessageFactoryTest
32 #define UNITTEST_PACKAGE_NAME "protobuf_unittest"
33 #define UNITTEST ::protobuf_unittest
34 #define UNITTEST_IMPORT ::protobuf_unittest_import
35 
36 // Must include after the above macros.
37 // clang-format off
38 #include "google/protobuf/test_util.inc"
39 #include "google/protobuf/message_unittest.inc"
40 #include "google/protobuf/message_unittest_legacy_apis.inc"
41 // clang-format on
42