Namespaces | Macros
protobuf/src/google/protobuf/io/tokenizer_unittest.cc File Reference
#include <google/protobuf/io/tokenizer.h>
#include <limits.h>
#include <math.h>
#include <vector>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/stubs/substitute.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/testing/googletest.h>
#include <gtest/gtest.h>
Include dependency graph for protobuf/src/google/protobuf/io/tokenizer_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 78 of file protobuf/src/google/protobuf/io/tokenizer_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 96 of file protobuf/src/google/protobuf/io/tokenizer_unittest.cc.

Variable Documentation

◆ array_stream_

ArrayInputStream array_stream_
private

◆ counter_

int counter_
private

◆ detached_comments

const char* detached_comments[10]

◆ errors

const char* errors

◆ input

std::string input

◆ next_leading_comments

const char* next_leading_comments

◆ output

std::vector<Tokenizer::Token> output

◆ prev_trailing_comments

const char* prev_trailing_comments

◆ recoverable

bool recoverable

◆ text_

std::string text_

◆ type

Tokenizer::TokenType type
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:35