OsmAnd
|
#include <vector>
#include <google/protobuf/io/coded_stream.h>
#include <limits.h>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/testing/googletest.h>
#include <gtest/gtest.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/stubs/strutil.h>
Packages | |
namespace | |
namespace | google::protobuf |
namespace | google::protobuf::io |
Defines | |
#define | ULL(x) GOOGLE_ULONGLONG(x) |
#define | TEST_1D(FIXTURE, NAME, CASES) |
#define | TEST_2D(FIXTURE, NAME, CASES1, CASES2) |
#define TEST_1D | ( | FIXTURE, | |
NAME, | |||
CASES | |||
) |
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)
#define TEST_2D | ( | FIXTURE, | |
NAME, | |||
CASES1, | |||
CASES2 | |||
) |
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)
#define ULL | ( | x | ) | GOOGLE_ULONGLONG(x) |
int backup_amount_ |
int64 buffer_count_ |
uint8 bytes[sizeof(uint64)] |
bool can_parse |
int size |
uint64 value |