webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Namespaces | Macros
tokenizer_unittest.cc File Reference
#include <limits.h>
#include <math.h>
#include <vector>
#include <google/protobuf/io/tokenizer.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#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/testing/googletest.h>
#include <gtest/gtest.h>

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: messagequeue.h:156
for i
Definition: complexityMeasures.m:24
#define TEST_F(test_fixture, test_name)
Definition: gtest.h:2037
#define GOOGLE_ARRAYSIZE(a)
Definition: macros.h:88

◆ 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: messagequeue.h:156
for i
Definition: complexityMeasures.m:24
#define TEST_F(test_fixture, test_name)
Definition: gtest.h:2037
#define GOOGLE_ARRAYSIZE(a)
Definition: macros.h:88
for for j
Definition: complexityMeasures.m:25

Variable Documentation

◆ detached_comments

const char* detached_comments[10]

◆ errors

const char* errors

◆ input

static int input

◆ next_leading_comments

const char* next_leading_comments

◆ output

Tokenizer::Token output[10]

◆ prev_trailing_comments

const char* prev_trailing_comments

◆ recoverable

bool recoverable

◆ text_

string text_

◆ type

Tokenizer::TokenType type