OsmAnd
Classes | Packages | Defines | Functions | Variables
jni/protobuf/google/protobuf/text_format_unittest.cc File Reference
#include <math.h>
#include <stdlib.h>
#include <limits>
#include <google/protobuf/text_format.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/io/tokenizer.h>
#include <google/protobuf/unittest.pb.h>
#include <google/protobuf/unittest_mset.pb.h>
#include <google/protobuf/test_util.h>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/testing/file.h>
#include <google/protobuf/testing/googletest.h>
#include <gtest/gtest.h>
#include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/stubs/substitute.h>

Classes

class  google::protobuf::text_format_unittest::TextFormatTest
class  google::protobuf::text_format_unittest::TextFormatExtensionsTest
class  google::protobuf::text_format_unittest::TextFormatParserTest
class  google::protobuf::text_format_unittest::TextFormatParserTest::MockErrorCollector
class  google::protobuf::text_format_unittest::TextFormatMessageSetTest

Packages

namespace  google
namespace  google::protobuf
namespace  google::protobuf::text_format_unittest

Defines

#define EXPECT_FIELD(name, value, valuestring)
#define EXPECT_FLOAT_FIELD(name, value, valuestring)
#define EXPECT_DOUBLE_FIELD(name, value, valuestring)
#define EXPECT_INVALID(name, valuestring)

Functions

bool google::protobuf::text_format_unittest::IsNaN (double value)
 google::protobuf::text_format_unittest::TEST_F (TextFormatTest, Basic)
 google::protobuf::text_format_unittest::TEST_F (TextFormatExtensionsTest, Extensions)
 google::protobuf::text_format_unittest::TEST_F (TextFormatTest, ShortDebugString)
 google::protobuf::text_format_unittest::TEST_F (TextFormatTest, ShortPrimitiveRepeateds)
 google::protobuf::text_format_unittest::TEST_F (TextFormatTest, StringEscape)
 google::protobuf::text_format_unittest::TEST_F (TextFormatTest, Utf8DebugString)
 google::protobuf::text_format_unittest::TEST_F (TextFormatTest, PrintUnknownFields)
 google::protobuf::text_format_unittest::TEST_F (TextFormatTest, PrintUnknownMessage)
 google::protobuf::text_format_unittest::TEST_F (TextFormatTest, PrintMessageWithIndent)
 google::protobuf::text_format_unittest::TEST_F (TextFormatTest, PrintMessageSingleLine)
 google::protobuf::text_format_unittest::TEST_F (TextFormatTest, ParseBasic)
 google::protobuf::text_format_unittest::TEST_F (TextFormatExtensionsTest, ParseExtensions)
 google::protobuf::text_format_unittest::TEST_F (TextFormatTest, ParseStringEscape)
 google::protobuf::text_format_unittest::TEST_F (TextFormatTest, ParseConcatenatedString)
 google::protobuf::text_format_unittest::TEST_F (TextFormatTest, ParseFloatWithSuffix)
 google::protobuf::text_format_unittest::TEST_F (TextFormatTest, Comments)
 google::protobuf::text_format_unittest::TEST_F (TextFormatTest, OptionalColon)
 google::protobuf::text_format_unittest::TEST_F (TextFormatTest, PrintExotic)
 google::protobuf::text_format_unittest::TEST_F (TextFormatTest, PrintFloatPrecision)
 google::protobuf::text_format_unittest::TEST_F (TextFormatTest, AllowPartial)
 google::protobuf::text_format_unittest::TEST_F (TextFormatTest, ParseExotic)
 google::protobuf::text_format_unittest::TEST_F (TextFormatParserTest, ParseFieldValueFromString)
 google::protobuf::text_format_unittest::TEST_F (TextFormatParserTest, InvalidToken)
 google::protobuf::text_format_unittest::TEST_F (TextFormatParserTest, InvalidFieldName)
 google::protobuf::text_format_unittest::TEST_F (TextFormatParserTest, InvalidCapitalization)
 google::protobuf::text_format_unittest::TEST_F (TextFormatParserTest, InvalidFieldValues)
 google::protobuf::text_format_unittest::TEST_F (TextFormatParserTest, MessageDelimeters)
 google::protobuf::text_format_unittest::TEST_F (TextFormatParserTest, UnknownExtension)
 google::protobuf::text_format_unittest::TEST_F (TextFormatParserTest, MissingRequired)
 google::protobuf::text_format_unittest::TEST_F (TextFormatParserTest, ParseDuplicateRequired)
 google::protobuf::text_format_unittest::TEST_F (TextFormatParserTest, ParseDuplicateOptional)
 google::protobuf::text_format_unittest::TEST_F (TextFormatParserTest, MergeDuplicateRequired)
 google::protobuf::text_format_unittest::TEST_F (TextFormatParserTest, MergeDuplicateOptional)
 google::protobuf::text_format_unittest::TEST_F (TextFormatParserTest, PrintErrorsToStderr)
 google::protobuf::text_format_unittest::TEST_F (TextFormatParserTest, FailsOnTokenizationError)
 google::protobuf::text_format_unittest::TEST_F (TextFormatParserTest, ParseDeprecatedField)
 google::protobuf::text_format_unittest::TEST_F (TextFormatMessageSetTest, Serialize)
 google::protobuf::text_format_unittest::TEST_F (TextFormatMessageSetTest, Deserialize)

Variables

const string google::protobuf::text_format_unittest::kEscapeTestString = "slashes \\ and multiple spaces"
const string google::protobuf::text_format_unittest::kEscapeTestStringEscaped = "and \\t tabs and \\001 slashes \\\\ and multiple spaces\""

Define Documentation

#define EXPECT_DOUBLE_FIELD (   name,
  value,
  valuestring 
)
Value:
EXPECT_TRUE(TextFormat::ParseFieldValueFromString( \
    valuestring, d->FindFieldByName("optional_" #name), message.get())); \
  EXPECT_DOUBLE_EQ(value, message->optional_##name()); \
  EXPECT_TRUE(message->has_optional_##name());
#define EXPECT_FIELD (   name,
  value,
  valuestring 
)
Value:
EXPECT_TRUE(TextFormat::ParseFieldValueFromString( \
    valuestring, d->FindFieldByName("optional_" #name), message.get())); \
  EXPECT_EQ(value, message->optional_##name()); \
  EXPECT_TRUE(message->has_optional_##name());
#define EXPECT_FLOAT_FIELD (   name,
  value,
  valuestring 
)
Value:
EXPECT_TRUE(TextFormat::ParseFieldValueFromString( \
    valuestring, d->FindFieldByName("optional_" #name), message.get())); \
  EXPECT_FLOAT_EQ(value, message->optional_##name()); \
  EXPECT_TRUE(message->has_optional_##name());
#define EXPECT_INVALID (   name,
  valuestring 
)
Value:
EXPECT_FALSE(TextFormat::ParseFieldValueFromString( \
    valuestring, d->FindFieldByName("optional_" #name), message.get()));
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines