Home
last modified time | relevance | path

Searched refs:msg2 (Results 1 – 25 of 133) sorted by relevance

123456

/external/protobuf/src/google/protobuf/util/
Dmessage_differencer_unittest.cc82 const Message& msg1, const Message& msg2) { in ExpectEqualsWithDifferencer() argument
84 EXPECT_TRUE(differencer->Compare(msg1, msg2)); in ExpectEqualsWithDifferencer()
87 EXPECT_TRUE(differencer->Compare(msg1, msg2)); in ExpectEqualsWithDifferencer()
93 unittest::TestAllTypes msg2; in TEST() local
96 TestUtil::SetAllFields(&msg2); in TEST()
99 EXPECT_TRUE(util::MessageDifferencer::Equals(msg1, msg2)); in TEST()
105 unittest::TestAllTypes msg2; in TEST() local
108 TestUtil::SetAllFields(&msg2); in TEST()
113 EXPECT_FALSE(util::MessageDifferencer::Equals(msg1, msg2)); in TEST()
119 unittest::TestAllTypes msg2; in TEST() local
[all …]
/external/nanopb-c/tests/enum_sizes/
Denumsizes_unittests.c19 PackedEnums msg2; in main() local
34 TEST(pb_decode(&s, PackedEnums_fields, &msg2)); in main()
36 TEST(msg1.u8_min == (int)msg2.u8_min); in main()
37 TEST(msg1.u8_max == (int)msg2.u8_max); in main()
38 TEST(msg1.i8_min == (int)msg2.i8_min); in main()
39 TEST(msg1.i8_max == (int)msg2.i8_max); in main()
40 TEST(msg1.u16_min == (int)msg2.u16_min); in main()
41 TEST(msg1.u16_max == (int)msg2.u16_max); in main()
42 TEST(msg1.i16_min == (int)msg2.i16_min); in main()
43 TEST(msg1.i16_max == (int)msg2.i16_max); in main()
[all …]
/external/grpc-grpc/third_party/nanopb/tests/enum_sizes/
Denumsizes_unittests.c19 PackedEnums msg2; in main() local
34 TEST(pb_decode(&s, PackedEnums_fields, &msg2)); in main()
36 TEST(msg1.u8_min == (int)msg2.u8_min); in main()
37 TEST(msg1.u8_max == (int)msg2.u8_max); in main()
38 TEST(msg1.i8_min == (int)msg2.i8_min); in main()
39 TEST(msg1.i8_max == (int)msg2.i8_max); in main()
40 TEST(msg1.u16_min == (int)msg2.u16_min); in main()
41 TEST(msg1.u16_max == (int)msg2.u16_max); in main()
42 TEST(msg1.i16_min == (int)msg2.i16_min); in main()
43 TEST(msg1.i16_max == (int)msg2.i16_max); in main()
[all …]
/external/grpc-grpc/third_party/nanopb/tests/intsizes/
Dintsizes_unittests.c20 IntSizes msg2 = IntSizes_init_zero; \
43 TEST(pb_decode(&s, IntSizes_fields, &msg2) == expected_result); \
46 TEST( (int64_t)msg2.req_int8 == int8); \
47 TEST((uint64_t)msg2.req_uint8 == uint8); \
48 TEST( (int64_t)msg2.req_sint8 == sint8); \
49 TEST( (int64_t)msg2.req_int16 == int16); \
50 TEST((uint64_t)msg2.req_uint16 == uint16); \
51 TEST( (int64_t)msg2.req_sint16 == sint16); \
52 TEST( (int64_t)msg2.req_int32 == int32); \
53 TEST((uint64_t)msg2.req_uint32 == uint32); \
[all …]
/external/nanopb-c/tests/intsizes/
Dintsizes_unittests.c20 IntSizes msg2 = IntSizes_init_zero; \
43 TEST(pb_decode(&s, IntSizes_fields, &msg2) == expected_result); \
46 TEST( (int64_t)msg2.req_int8 == int8); \
47 TEST((uint64_t)msg2.req_uint8 == uint8); \
48 TEST( (int64_t)msg2.req_sint8 == sint8); \
49 TEST( (int64_t)msg2.req_int16 == int16); \
50 TEST((uint64_t)msg2.req_uint16 == uint16); \
51 TEST( (int64_t)msg2.req_sint16 == sint16); \
52 TEST( (int64_t)msg2.req_int32 == int32); \
53 TEST((uint64_t)msg2.req_uint32 == uint32); \
[all …]
/external/protobuf/objectivec/Tests/
DGPBSwiftTests.swift40 let msg2 = Message2() in testProto2Basics() variable
46 msg2.optionalString = "other" in testProto2Basics()
47 msg.optional = msg2 in testProto2Basics()
67 XCTAssertTrue(msg2.hasOptionalString) in testProto2Basics()
77 XCTAssertEqual(msg2.optionalString, "other") in testProto2Basics()
78 XCTAssertTrue(msg.optional === msg2) in testProto2Basics()
108 msg2.optionalString = nil in testProto2Basics()
109 XCTAssertFalse(msg2.hasOptionalString) in testProto2Basics()
110 XCTAssertEqual(msg2.optionalString, "") in testProto2Basics()
127 XCTAssertTrue(msg.optional !== msg2) // New instance in testProto2Basics()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationCurrencyTest.java130 String msg2 = "\", \""; in reportCResult() local
139 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
141 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
145 msg2 = "\").compareTo(key(\""; in reportCResult()
149 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
151 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
153 msg2 = " vs. "; in reportCResult()
154 … errln(msg1 + CollationTest.prettify(sourceKey) + msg2 + CollationTest.prettify(targetKey)); in reportCResult()
158 msg2 = "\", \""; in reportCResult()
164 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
[all …]
DLotusCollationKoreanTest.java93 String msg2 = "\", \""; in reportCResult() local
102 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
104 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
108 msg2 = "\").compareTo(key(\""; in reportCResult()
112 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
114 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
116 msg2 = " vs. "; in reportCResult()
117 … errln(msg1 + CollationTest.prettify(sourceKey) + msg2 + CollationTest.prettify(targetKey)); in reportCResult()
121 msg2 = "\", \""; in reportCResult()
127 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
[all …]
DCollationFinnishTest.java115 String msg2 = "\", \""; in reportCResult() local
124 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
126 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
130 msg2 = "\").compareTo(key(\""; in reportCResult()
134 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
136 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
138 msg2 = " vs. "; in reportCResult()
139 … errln(msg1 + CollationTest.prettify(sourceKey) + msg2 + CollationTest.prettify(targetKey)); in reportCResult()
143 msg2 = "\", \""; in reportCResult()
149 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
[all …]
DCollationSpanishTest.java127 String msg2 = "\", \""; in reportCResult() local
136 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
138 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
142 msg2 = "\").compareTo(key(\""; in reportCResult()
146 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
148 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
150 msg2 = " vs. "; in reportCResult()
151 … errln(msg1 + CollationTest.prettify(sourceKey) + msg2 + CollationTest.prettify(targetKey)); in reportCResult()
155 msg2 = "\", \""; in reportCResult()
161 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
[all …]
DCollationTurkishTest.java134 String msg2 = "\", \""; in reportCResult() local
143 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
145 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
149 msg2 = "\").compareTo(key(\""; in reportCResult()
153 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
155 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
157 msg2 = " vs. "; in reportCResult()
158 … errln(msg1 + CollationTest.prettify(sourceKey) + msg2 + CollationTest.prettify(targetKey)); in reportCResult()
162 msg2 = "\", \""; in reportCResult()
168 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
[all …]
DCollationGermanTest.java162 String msg2 = "\", \""; in reportCResult() local
171 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
173 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
177 msg2 = "\").compareTo(key(\""; in reportCResult()
181 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
183 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
185 msg2 = " vs. "; in reportCResult()
186 … errln(msg1 + CollationTest.prettify(sourceKey) + msg2 + CollationTest.prettify(targetKey)); in reportCResult()
190 msg2 = "\", \""; in reportCResult()
196 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
[all …]
DCollationFrenchTest.java226 String msg2 = "\", \""; in reportCResult() local
235 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
237 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
241 msg2 = "\").compareTo(key(\""; in reportCResult()
245 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
247 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
249 msg2 = " vs. "; in reportCResult()
250 … errln(msg1 + CollationTest.prettify(sourceKey) + msg2 + CollationTest.prettify(targetKey)); in reportCResult()
254 msg2 = "\", \""; in reportCResult()
260 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
[all …]
DCollationEnglishTest.java361 String msg2 = "\", \""; in reportCResult() local
370 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
372 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
376 msg2 = "\").compareTo(key(\""; in reportCResult()
380 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
382 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
384 msg2 = " vs. "; in reportCResult()
385 … errln(msg1 + CollationTest.prettify(sourceKey) + msg2 + CollationTest.prettify(targetKey)); in reportCResult()
389 msg2 = "\", \""; in reportCResult()
395 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
[all …]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationCurrencyTest.java127 String msg2 = "\", \""; in reportCResult() local
136 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
138 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
142 msg2 = "\").compareTo(key(\""; in reportCResult()
146 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
148 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
150 msg2 = " vs. "; in reportCResult()
151 … errln(msg1 + CollationTest.prettify(sourceKey) + msg2 + CollationTest.prettify(targetKey)); in reportCResult()
155 msg2 = "\", \""; in reportCResult()
161 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
[all …]
DLotusCollationKoreanTest.java90 String msg2 = "\", \""; in reportCResult() local
99 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
101 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
105 msg2 = "\").compareTo(key(\""; in reportCResult()
109 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
111 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
113 msg2 = " vs. "; in reportCResult()
114 … errln(msg1 + CollationTest.prettify(sourceKey) + msg2 + CollationTest.prettify(targetKey)); in reportCResult()
118 msg2 = "\", \""; in reportCResult()
124 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
[all …]
DCollationTurkishTest.java131 String msg2 = "\", \""; in reportCResult() local
140 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
142 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
146 msg2 = "\").compareTo(key(\""; in reportCResult()
150 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
152 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
154 msg2 = " vs. "; in reportCResult()
155 … errln(msg1 + CollationTest.prettify(sourceKey) + msg2 + CollationTest.prettify(targetKey)); in reportCResult()
159 msg2 = "\", \""; in reportCResult()
165 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
[all …]
DCollationSpanishTest.java124 String msg2 = "\", \""; in reportCResult() local
133 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
135 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
139 msg2 = "\").compareTo(key(\""; in reportCResult()
143 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
145 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
147 msg2 = " vs. "; in reportCResult()
148 … errln(msg1 + CollationTest.prettify(sourceKey) + msg2 + CollationTest.prettify(targetKey)); in reportCResult()
152 msg2 = "\", \""; in reportCResult()
158 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
[all …]
DCollationFinnishTest.java112 String msg2 = "\", \""; in reportCResult() local
121 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
123 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
127 msg2 = "\").compareTo(key(\""; in reportCResult()
131 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
133 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
135 msg2 = " vs. "; in reportCResult()
136 … errln(msg1 + CollationTest.prettify(sourceKey) + msg2 + CollationTest.prettify(targetKey)); in reportCResult()
140 msg2 = "\", \""; in reportCResult()
146 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
[all …]
DCollationGermanTest.java159 String msg2 = "\", \""; in reportCResult() local
168 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
170 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
174 msg2 = "\").compareTo(key(\""; in reportCResult()
178 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
180 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
182 msg2 = " vs. "; in reportCResult()
183 … errln(msg1 + CollationTest.prettify(sourceKey) + msg2 + CollationTest.prettify(targetKey)); in reportCResult()
187 msg2 = "\", \""; in reportCResult()
193 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
[all …]
DCollationFrenchTest.java223 String msg2 = "\", \""; in reportCResult() local
232 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
234 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
238 msg2 = "\").compareTo(key(\""; in reportCResult()
242 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
244 errln(msg1 + source + msg2 + target + msg3 + sResult + msg4 + sExpect); in reportCResult()
246 msg2 = " vs. "; in reportCResult()
247 … errln(msg1 + CollationTest.prettify(sourceKey) + msg2 + CollationTest.prettify(targetKey)); in reportCResult()
251 msg2 = "\", \""; in reportCResult()
257 logln(msg1 + source + msg2 + target + msg3 + sResult); in reportCResult()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/upb/tests/
Dtest_generated_code.c31 protobuf_test_messages_proto3_TestAllTypesProto3 *msg2; in test_scalars() local
48 msg2 = protobuf_test_messages_proto3_TestAllTypesProto3_parse( in test_scalars()
52 msg2) == 10); in test_scalars()
54 msg2) == 20); in test_scalars()
56 msg2) == 30); in test_scalars()
58 msg2) == 40); in test_scalars()
60 msg2) - 50.5 < 0.01); in test_scalars()
62 msg2) - 60.6 < 0.01); in test_scalars()
64 msg2) == 1); in test_scalars()
65 val = protobuf_test_messages_proto3_TestAllTypesProto3_optional_string(msg2); in test_scalars()
[all …]
/external/nanopb-c/tests/regression/issue_256/
Dsubmsg_array.c26 TestMessage msg2 = TestMessage_init_zero; in main() local
28 TEST(pb_decode(&istream, TestMessage_fields, &msg2)); in main()
29 TEST(msg2.submsg.rep_uint32_count == 3); in main()
30 TEST(msg2.submsg.rep_uint32[0] == 0); in main()
31 TEST(msg2.submsg.rep_uint32[1] == 1); in main()
32 TEST(msg2.submsg.rep_uint32[2] == 2); in main()
/external/grpc-grpc/third_party/nanopb/tests/fuzztest/
Dfuzzstub.c74 alltypes_static_AllTypes *msg2 = malloc_with_check(sizeof(alltypes_static_AllTypes)); in do_static_roundtrip() local
76 memset(msg2, 0, sizeof(alltypes_static_AllTypes)); in do_static_roundtrip()
93 status = pb_decode(&stream, alltypes_static_AllTypes_fields, msg2); in do_static_roundtrip()
99 status = pb_encode(&stream, alltypes_static_AllTypes_fields, msg2); in do_static_roundtrip()
108 free_with_check(msg2); in do_static_roundtrip()
121 alltypes_pointer_AllTypes *msg2 = malloc_with_check(sizeof(alltypes_pointer_AllTypes)); in do_pointer_roundtrip() local
123 memset(msg2, 0, sizeof(alltypes_pointer_AllTypes)); in do_pointer_roundtrip()
140 status = pb_decode(&stream, alltypes_pointer_AllTypes_fields, msg2); in do_pointer_roundtrip()
146 status = pb_encode(&stream, alltypes_pointer_AllTypes_fields, msg2); in do_pointer_roundtrip()
155 pb_release(alltypes_pointer_AllTypes_fields, msg2); in do_pointer_roundtrip()
[all …]
/external/nanopb-c/tests/fuzztest/
Dfuzzstub.c74 alltypes_static_AllTypes *msg2 = malloc_with_check(sizeof(alltypes_static_AllTypes)); in do_static_roundtrip() local
76 memset(msg2, 0, sizeof(alltypes_static_AllTypes)); in do_static_roundtrip()
93 status = pb_decode(&stream, alltypes_static_AllTypes_fields, msg2); in do_static_roundtrip()
99 status = pb_encode(&stream, alltypes_static_AllTypes_fields, msg2); in do_static_roundtrip()
108 free_with_check(msg2); in do_static_roundtrip()
121 alltypes_pointer_AllTypes *msg2 = malloc_with_check(sizeof(alltypes_pointer_AllTypes)); in do_pointer_roundtrip() local
123 memset(msg2, 0, sizeof(alltypes_pointer_AllTypes)); in do_pointer_roundtrip()
140 status = pb_decode(&stream, alltypes_pointer_AllTypes_fields, msg2); in do_pointer_roundtrip()
146 status = pb_encode(&stream, alltypes_pointer_AllTypes_fields, msg2); in do_pointer_roundtrip()
155 pb_release(alltypes_pointer_AllTypes_fields, msg2); in do_pointer_roundtrip()
[all …]

123456