Namespaces | Macros
protobuf/src/google/protobuf/io/coded_stream_unittest.cc File Reference
#include <google/protobuf/io/coded_stream.h>
#include <limits.h>
#include <memory>
#include <vector>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/testing/googletest.h>
#include <gtest/gtest.h>
#include <google/protobuf/stubs/casts.h>
#include <google/protobuf/port_def.inc>
#include <google/protobuf/port_undef.inc>
Include dependency graph for protobuf/src/google/protobuf/io/coded_stream_unittest.cc:

Go to the source code of this file.

Namespaces

 google
 
 google::protobuf
 
 google::protobuf::io
 

Macros

#define TEST_1D(FIXTURE, NAME, CASES)
 
#define TEST_2D(FIXTURE, NAME, CASES1, CASES2)
 

Macro Definition Documentation

◆ TEST_1D

#define TEST_1D (   FIXTURE,
  NAME,
  CASES 
)
Value:
class FIXTURE##_##NAME##_DD : public FIXTURE { \
protected: \
template <typename CaseType> \
void DoSingleCase(const CaseType& CASES##_case); \
}; \
TEST_F(FIXTURE##_##NAME##_DD, NAME) { \
for (int i = 0; i < GOOGLE_ARRAYSIZE(CASES); i++) { \
SCOPED_TRACE(testing::Message() \
<< #CASES " case #" << i << ": " << CASES[i]); \
DoSingleCase(CASES[i]); \
} \
} \
\
template <typename CaseType> \
void FIXTURE##_##NAME##_DD::DoSingleCase(const CaseType& CASES##_case)

Definition at line 84 of file protobuf/src/google/protobuf/io/coded_stream_unittest.cc.

◆ TEST_2D

#define TEST_2D (   FIXTURE,
  NAME,
  CASES1,
  CASES2 
)
Value:
class FIXTURE##_##NAME##_DD : public FIXTURE { \
protected: \
template <typename CaseType1, typename CaseType2> \
void DoSingleCase(const CaseType1& CASES1##_case, \
const CaseType2& CASES2##_case); \
}; \
TEST_F(FIXTURE##_##NAME##_DD, NAME) { \
for (int i = 0; i < GOOGLE_ARRAYSIZE(CASES1); i++) { \
for (int j = 0; j < GOOGLE_ARRAYSIZE(CASES2); j++) { \
SCOPED_TRACE(testing::Message() \
<< #CASES1 " case #" << i << ": " << CASES1[i] << ", " \
<< #CASES2 " case #" << j << ": " << CASES2[j]); \
DoSingleCase(CASES1[i], CASES2[j]); \
} \
} \
} \
\
template <typename CaseType1, typename CaseType2> \
void FIXTURE##_##NAME##_DD::DoSingleCase(const CaseType1& CASES1##_case, \
const CaseType2& CASES2##_case)

Definition at line 102 of file protobuf/src/google/protobuf/io/coded_stream_unittest.cc.

Variable Documentation

◆ backup_amount_

int backup_amount_

◆ buffer_

char buffer_[1024]
staticprotected

◆ buffer_count_

int64 buffer_count_
private

◆ bytes

uint8 bytes[sizeof(uint64)]

◆ can_parse

bool can_parse

◆ kBufferSize

constexpr int kBufferSize = 1024 * 64
staticconstexprprotected

◆ size

◆ value

uint64 value
absl::str_format_internal::LengthMod::j
@ j
testing::Message
Definition: bloaty/third_party/googletest/googletest/include/gtest/gtest-message.h:90
gmock_output_test._
_
Definition: bloaty/third_party/googletest/googlemock/test/gmock_output_test.py:175
GOOGLE_ARRAYSIZE
#define GOOGLE_ARRAYSIZE(a)
Definition: bloaty/third_party/protobuf/src/google/protobuf/stubs/macros.h:88
FIXTURE
#define FIXTURE
Definition: test-fs-poll.c:27
cpp.tokenize.NAME
string NAME
Definition: bloaty/third_party/googletest/googlemock/scripts/generator/cpp/tokenize.py:56
i
uint64_t i
Definition: abseil-cpp/absl/container/btree_benchmark.cc:230
TEST_F
#define TEST_F(test_fixture, test_name)
Definition: bloaty/third_party/googletest/googletest/include/gtest/gtest.h:2367


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:07