Home
last modified time | relevance | path

Searched refs:TextFormat (Results 1 – 25 of 119) sorted by relevance

12345

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DTextFormatTest.java35 import com.google.protobuf.TextFormat.Parser.SingularOverwritePolicy;
125 private final TextFormat.Parser parserWithOverwriteForbidden =
126 TextFormat.Parser.newBuilder()
131 private final TextFormat.Parser defaultParser =
132 TextFormat.Parser.newBuilder().build();
136 String javaText = TextFormat.printToString(TestUtil.getAllSet()); in testPrintMessage()
148 String javaText = TextFormat.printToString(TestUtil.getAllSetBuilder()); in testPrintMessageBuilder()
160 String javaText = TextFormat.printToString(TestUtil.getAllExtensionsSet()); in testPrintExtensions()
224 TextFormat.printToString(message)); in testPrintUnknownFields()
232 TextFormat.printFieldToString(dataField, "test data")); in testPrintField()
[all …]
/external/protobuf/src/google/protobuf/
Dtext_format.cc94 TextFormat::Printer printer; in DebugString()
105 TextFormat::Printer printer; in ShortDebugString()
122 TextFormat::Printer printer; in Utf8DebugString()
138 TextFormat::ParseInfoTree::ParseInfoTree() { } in ParseInfoTree()
140 TextFormat::ParseInfoTree::~ParseInfoTree() { in ~ParseInfoTree()
147 void TextFormat::ParseInfoTree::RecordLocation( in RecordLocation()
149 TextFormat::ParseLocation location) { in RecordLocation()
153 TextFormat::ParseInfoTree* TextFormat::ParseInfoTree::CreateNested( in CreateNested()
156 TextFormat::ParseInfoTree* instance = new TextFormat::ParseInfoTree(); in CreateNested()
157 vector<TextFormat::ParseInfoTree*>* trees = &nested_[field]; in CreateNested()
[all …]
Dtext_format_unittest.cc157 TextFormat::Printer printer; in TEST_F()
287 TextFormat::Printer printer; in TEST_F()
328 EXPECT_TRUE(TextFormat::PrintUnknownFieldsToString(unknown_fields, &text)); in TEST_F()
349 TextFormat::Printer printer; in TEST_F()
371 TextFormat::Printer printer; in TEST_F()
391 EXPECT_FALSE(TextFormat::Print(message, &output_stream)); in TEST_F()
397 class CustomUInt32FieldValuePrinter : public TextFormat::FieldValuePrinter {
412 TextFormat::Printer printer; in TEST_F()
421 class CustomInt32FieldValuePrinter : public TextFormat::FieldValuePrinter {
434 TextFormat::Printer printer; in TEST_F()
[all …]
Dtext_format.h65 class LIBPROTOBUF_EXPORT TextFormat {
385 friend class TextFormat;
499 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TextFormat);
502 inline void TextFormat::RecordLocation(ParseInfoTree* info_tree, in RecordLocation()
509 inline TextFormat::ParseInfoTree* TextFormat::CreateNested( in CreateNested()
/external/tensorflow/tensorflow/core/framework/
Dkernel_def_builder_test.cc28 protobuf::TextFormat::ParseFromString("op: 'A' device_type: 'CPU'", in TEST()
40 protobuf::TextFormat::ParseFromString(R"proto( in TEST()
54 protobuf::TextFormat::ParseFromString(R"proto( in TEST()
66 protobuf::TextFormat::ParseFromString(R"proto( in TEST()
82 protobuf::TextFormat::ParseFromString( in TEST()
Dop_gen_lib_test.cc182 protobuf::TextFormat::ParseFromString(kTestOpList, &op_list); // NOLINT in TEST()
214 protobuf::TextFormat::ParseFromString(kTestOpList, &op_list); // NOLINT in TEST()
251 protobuf::TextFormat::ParseFromString(kTestOpList, &op_list); // NOLINT in TEST()
283 protobuf::TextFormat::ParseFromString(kTestOpList, &op_list); // NOLINT in TEST()
311 protobuf::TextFormat::ParseFromString(kTestOpList, &op_list); // NOLINT in TEST()
341 protobuf::TextFormat::ParseFromString(kTestOpList, &op_list); // NOLINT in TEST()
382 protobuf::TextFormat::ParseFromString(kTestOpList, &op_list); // NOLINT in TEST()
409 protobuf::TextFormat::ParseFromString(kTestOpList, &op_list); // NOLINT in TEST()
442 protobuf::TextFormat::ParseFromString(kTestOpList, &op_list); // NOLINT in TEST()
512 protobuf::TextFormat::ParseFromString(op_list1, &op_list); // NOLINT in TEST()
Dkernel_def_util_test.cc29 EXPECT_TRUE(protobuf::TextFormat::MergeFromString(text, &node_def)); in NodeDefFromText()
35 EXPECT_TRUE(protobuf::TextFormat::MergeFromString(text, &kernel_def)); in KernelDefFromText()
/external/tensorflow/tensorflow/core/graph/
Dvalidate_test.cc45 auto parser = protobuf::TextFormat::Parser(); in TEST()
60 auto parser = protobuf::TextFormat::Parser(); in TEST()
83 auto parser = protobuf::TextFormat::Parser(); in TEST()
105 auto parser = protobuf::TextFormat::Parser(); in TEST()
117 auto parser = protobuf::TextFormat::Parser(); in TEST()
160 auto parser = protobuf::TextFormat::Parser(); in TEST()
175 auto parser = protobuf::TextFormat::Parser(); in TEST()
/external/opencensus-java/impl_core/src/jmh/java/io/opencensus/implcore/trace/propagation/
DTextFormatBenchmarkBase.java21 import io.opencensus.trace.propagation.TextFormat;
22 import io.opencensus.trace.propagation.TextFormat.Getter;
23 import io.opencensus.trace.propagation.TextFormat.Setter;
46 private final TextFormat textFormat;
48 TextFormatBenchmarkBase(TextFormat textFormat) { in TextFormatBenchmarkBase()
DB3FormatImplBenchmark.java25 import io.opencensus.trace.propagation.TextFormat;
26 import io.opencensus.trace.propagation.TextFormat.Getter;
27 import io.opencensus.trace.propagation.TextFormat.Setter;
/external/tensorflow/tensorflow/core/kernels/
Dsummary_op_test.cc44 CHECK(protobuf::TextFormat::ParseFromString(expected_str, &expected)); in EXPECT_SummaryMatches()
291 ASSERT_TRUE(protobuf::TextFormat::ParseFromString( in TEST_F()
296 ASSERT_TRUE(protobuf::TextFormat::ParseFromString( in TEST_F()
299 ASSERT_TRUE(protobuf::TextFormat::ParseFromString( in TEST_F()
325 ASSERT_TRUE(protobuf::TextFormat::ParseFromString( in TEST_F()
330 ASSERT_TRUE(protobuf::TextFormat::ParseFromString( in TEST_F()
333 ASSERT_TRUE(protobuf::TextFormat::ParseFromString( in TEST_F()
359 ASSERT_TRUE(protobuf::TextFormat::ParseFromString( in TEST_F()
364 ASSERT_TRUE(protobuf::TextFormat::ParseFromString( in TEST_F()
/external/tensorflow/tensorflow/core/profiler/internal/
Dtfprof_stats_test.cc91 CHECK(protobuf::TextFormat::ParseFromString( in TEST_F()
127 CHECK(protobuf::TextFormat::ParseFromString( in TEST_F()
163 CHECK(protobuf::TextFormat::ParseFromString( in TEST_F()
194 CHECK(protobuf::TextFormat::ParseFromString( in TEST_F()
244 CHECK(protobuf::TextFormat::ParseFromString( in TEST_F()
278 CHECK(protobuf::TextFormat::ParseFromString( in TEST_F()
Dtfprof_utils.h54 } else if (protobuf::TextFormat::ParseFromString(out, proto)) { in ReadProtoFile()
58 if (protobuf::TextFormat::ParseFromString(out, proto)) { in ReadProtoFile()
/external/opencensus-java/api/src/test/java/io/opencensus/trace/propagation/
DTextFormatTest.java22 import io.opencensus.trace.propagation.TextFormat.Getter;
23 import io.opencensus.trace.propagation.TextFormat.Setter;
32 private static final TextFormat textFormat = TextFormat.getNoopTextFormat();
/external/tensorflow/tensorflow/core/api_def/
Dupdate_api_def_test.cc71 protobuf::TextFormat::ParseFromString(op_text, &op); // NOLINT in TEST()
137 protobuf::TextFormat::ParseFromString(op1_text, &op1); // NOLINT in TEST()
138 protobuf::TextFormat::ParseFromString(op2_text, &op2); // NOLINT in TEST()
139 protobuf::TextFormat::ParseFromString(op3_text, &op3); // NOLINT in TEST()
174 protobuf::TextFormat::ParseFromString(op_text, &op); // NOLINT in TEST()
/external/opencensus-java/api/src/main/java/io/opencensus/trace/propagation/
DPropagationComponent.java50 public abstract TextFormat getB3Format(); in getB3Format()
69 public TextFormat getB3Format() { in getB3Format()
70 return TextFormat.getNoopTextFormat(); in getB3Format()
DTextFormat.java83 public abstract class TextFormat { class
176 static TextFormat getNoopTextFormat() { in getNoopTextFormat()
180 private static final class NoopTextFormat extends TextFormat {
/external/libprotobuf-mutator/src/
Dtext_format.cc21 using protobuf::TextFormat;
29 TextFormat::Parser parser; in ParseTextMessage()
50 if (!protobuf::TextFormat::PrintToString(message, &tmp)) return {}; in SaveMessageAsText()
/external/desugar/java/com/google/devtools/common/options/
DInvocationPolicyParser.java21 import com.google.protobuf.TextFormat;
50 TextFormat.merge(policy, builder); in parsePolicy()
53 } catch (InvalidProtocolBufferException | TextFormat.ParseException e) { in parsePolicy()
/external/opencensus-java/contrib/http_util/src/main/java/io/opencensus/contrib/http/util/
DHttpPropagationUtil.java19 import io.opencensus.trace.propagation.TextFormat;
38 public static TextFormat getCloudTraceFormat() { in getCloudTraceFormat()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/propagation/
DPropagationComponentImpl.java21 import io.opencensus.trace.propagation.TextFormat;
34 public TextFormat getB3Format() { in getB3Format()
/external/opencensus-java/contrib/http_util/src/test/java/io/opencensus/contrib/http/util/
DHttpPropagationUtilTest.java21 import io.opencensus.trace.propagation.TextFormat;
32 TextFormat cloudTraceFormat = HttpPropagationUtil.getCloudTraceFormat(); in cloudTraceFormatNotNull()
/external/grpc-grpc/test/cpp/util/
Dconfig_grpc_cli.h40 #define GRPC_CUSTOM_TEXTFORMAT ::google::protobuf::TextFormat
59 typedef GRPC_CUSTOM_TEXTFORMAT TextFormat; typedef
/external/tensorflow/tensorflow/cc/framework/
Dcc_op_gen_test.cc112 protobuf::TextFormat::ParseFromString(kBaseOpDef, &op_defs); // NOLINT in TEST()
140 protobuf::TextFormat::ParseFromString(kBaseOpDef, &op_defs); // NOLINT in TEST()
171 protobuf::TextFormat::ParseFromString(kBaseOpDef, &op_defs); // NOLINT in TEST()
/external/perf_data_converter/src/quipper/
Dtest_utils.h51 ASSERT_TRUE(TextFormat::Parse(&arr1, &proto1)); in CompareTextProtoFiles()
52 ASSERT_TRUE(TextFormat::Parse(&arr2, &proto2)); in CompareTextProtoFiles()

12345