Home
last modified time | relevance | path

Searched refs:test_message (Results 1 – 20 of 20) sorted by relevance

/external/protobuf/conformance/
Dconformance_cpp.cc126 Message *test_message; in DoTest() local
132 test_message = MessageFactory::generated_factory()->GetPrototype(descriptor)->New(); in DoTest()
136 if (!test_message->ParseFromString(request.protobuf_payload())) { in DoTest()
160 if (!test_message->ParseFromString(proto_binary)) { in DoTest()
169 if (!TextFormat::ParseFromString(request.text_payload(), test_message)) { in DoTest()
189 test_message = &failures; in DoTest()
198 GOOGLE_CHECK(test_message->SerializeToString(response->mutable_protobuf_payload())); in DoTest()
204 GOOGLE_CHECK(test_message->SerializeToString(&proto_binary)); in DoTest()
219 GOOGLE_CHECK(printer.PrintToString(*test_message, in DoTest()
Dconformance_ruby.rb40 test_message = ProtobufTestMessages::Proto3::TestAllTypesProto3.new
48 test_message = ProtobufTestMessages::Proto3::TestAllTypesProto3.decode(
63 test_message = ProtobufTestMessages::Proto3::TestAllTypesProto3.decode_json(
85 response.protobuf_payload = test_message.to_proto
88 response.json_payload = test_message.to_json
Dconformance_python.py123 test_message = test_messages_proto2_pb2.TestAllTypesProto2() if isProto2 else \
129 test_message.ParseFromString(request.protobuf_payload)
139 json_format.Parse(request.json_payload, test_message,
147 text_format.Parse(request.text_payload, test_message)
159 response.protobuf_payload = test_message.SerializeToString()
163 response.json_payload = json_format.MessageToJson(test_message)
170 test_message, print_unknown_fields=request.print_unknown_fields)
Dconformance_php.php30 $test_message = new \Protobuf_test_messages\Proto3\TestAllTypesProto3();
38 $test_message->mergeFromString($request->getProtobufPayload());
54 $test_message->mergeFromJsonString($request->getJsonPayload(),
70 $response->setProtobufPayload($test_message->serializeToString());
73 $response->setJsonPayload($test_message->serializeToJsonString());
Dtext_format_conformance_suite.cc59 const ConformanceRequestSetting& setting, Message* test_message) { in ParseTextFormatResponse() argument
65 if (!parser.ParseFromString(response.text_payload(), test_message)) { in ParseTextFormatResponse()
77 const ConformanceRequestSetting& setting, Message* test_message) { in ParseResponse() argument
94 if (!test_message->ParseFromString(response.protobuf_payload())) { in ParseResponse()
113 if (!ParseTextFormatResponse(response, setting, test_message)) { in ParseResponse()
Dtext_format_conformance_suite.h60 Message* test_message);
63 Message* test_message) override;
Dbinary_json_conformance_suite.h74 Message* test_message);
78 Message* test_message) override;
Dconformance_test.cc235 Message* test_message = setting.GetTestMessage(); in VerifyResponse() local
263 if (!ParseResponse(response, setting, test_message)) return; in VerifyResponse()
274 check = differencer.Compare(*reference_message, *test_message); in VerifyResponse()
Dconformance_test.h258 Message* test_message) = 0;
Dbinary_json_conformance_suite.cc197 Message* test_message) { in ParseJsonResponse() argument
207 if (!test_message->ParseFromString(binary_protobuf)) { in ParseJsonResponse()
220 Message* test_message) { in ParseResponse() argument
236 if (!test_message->ParseFromString(response.protobuf_payload())) { in ParseResponse()
254 if (!ParseJsonResponse(response, test_message)) { in ParseResponse()
/external/libaom/libaom/test/
Dtest_runner.cmake23 set(test_message "Test shard ${GTEST_SHARD_INDEX}/${GTEST_TOTAL_SHARDS} result") variable
24 message("${test_message}: ${test_result}")
27 message(FATAL_ERROR "${test_message}: FAILED, non-zero exit code.")
/external/toolchain-utils/
Drun_tests_for.py142 test_message = pretty_test
144 test_message = '%s in %s/' % (pretty_test, pretty_directory)
146 print('## %s ... ' % test_message, end='')
/external/libbrillo/brillo/dbus/
Ddbus_method_invoker_test.cc198 dbus_utils_test::TestMessage test_message; in TEST_F() local
199 test_message.set_foo(123); in TEST_F()
200 test_message.set_bar("bar"); in TEST_F()
202 dbus_utils_test::TestMessage resp = CallProtobufTestMethod(test_message); in TEST_F()
Ddata_serialization_test.cc803 dbus_utils_test::TestMessage test_message; in TEST() local
804 test_message.set_foo(123); in TEST()
805 test_message.set_bar("abcd"); in TEST()
807 AppendValueToWriter(&writer, test_message); in TEST()
/external/vboot_reference/tests/
Drsa_padding_test.h32 static const uint8_t test_message[] = {0, 0, 0, 0}; variable
/external/libprotobuf-mutator/src/
Dmutator_test.cc624 auto test_message = in TYPED_TEST() local
626 if (seed % 2) test_message->set_optional_string(v); in TYPED_TEST()
635 auto test_message = in TYPED_TEST() local
637 if (seed % 2) test_message->set_optional_int64(v); in TYPED_TEST()
/external/python/cpython2/Lib/test/
Dtest_mimetools.py37 def test_message(self): member in MimeToolsTest
Dtest_warnings.py235 def test_message(self): member in WarnTests
/external/protobuf/python/google/protobuf/internal/
Djson_format_test.py652 test_message = json_format_proto3_pb2.TestMessage(
661 message.value.Pack(test_message)
/external/python/cpython3/Lib/test/test_warnings/
D__init__.py381 def test_message(self): member in WarnTests