Home
last modified time | relevance | path

Searched refs:optional_string (Results 1 – 25 of 85) sorted by relevance

1234

/external/libprotobuf-mutator/examples/libfuzzer/
Dlibfuzzer_example.cc27 std::hash<std::string>{}(message->optional_string())); in __anon7841a1170102()
52 std::hash<std::string>{}(message.optional_string()) && in DEFINE_PROTO_FUZZER()
53 message.optional_string() == "abcdefghijklmnopqrstuvwxyz" && in DEFINE_PROTO_FUZZER()
Dlibfuzzer_bin_example.cc27 std::hash<std::string>{}(message->optional_string())); in __anon95debcef0102()
52 std::hash<std::string>{}(message.optional_string()) && in DEFINE_BINARY_PROTO_FUZZER()
53 message.optional_string() == "abcdefghijklmnopqrstuvwxyz" && in DEFINE_BINARY_PROTO_FUZZER()
Dlibfuzzer_example.proto9 optional string optional_string = 3; field
/external/protobuf/ruby/tests/
Dbasic.rb96 m.optional_string = "foo bar"
97 assert_equal "foo bar", m.optional_string
99 assert_equal "", m.optional_string
101 m.optional_string = "foo"
102 assert_equal "foo", m.optional_string
104 assert_equal "", m.optional_string
263 optional_string: "foo",
267 assert_equal m.optional_string, "foo"
Dcommon_tests.rb24 assert m.optional_string == ""
46 m.optional_string = "hello"
47 assert m.optional_string == "hello"
48 m.optional_string = :hello
49 assert m.optional_string == "hello"
82 assert_equal 'foo', m.optional_string
91 assert_equal "", m.optional_string
166 m.optional_string = 42
169 m.optional_string = nil
206 m.optional_string = ["FFFF"].pack('H*')
[all …]
Dbasic_proto2.rb125 assert_equal "Default Str", m.optional_string
151 m.optional_string = "foo bar"
152 assert_equal "foo bar", m.optional_string
155 assert_equal "Default Str", m.optional_string
Dbasic_test_proto2.proto31 optional string optional_string = 8; field
61 optional string optional_string = 8 [default = "Default Str"]; field
Dtype_errors.rb17 A::B::C::TestMessage.new(optional_string: 4)
/external/webrtc/rtc_base/experiments/
Dfield_trial_parser_unittest.cc162 FieldTrialOptional<std::string> optional_string("s", std::string("ab")); in TEST() local
163 ParseFieldTrial({&optional_string}, "s:"); in TEST()
164 EXPECT_EQ(optional_string.GetOptional().value(), ""); in TEST()
165 ParseFieldTrial({&optional_string}, "s"); in TEST()
166 EXPECT_FALSE(optional_string.GetOptional().has_value()); in TEST()
/external/llvm-project/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/optional/
Dmain.cpp25 using optional_string = std::optional<std::string> ; in main() typedef
36 optional_string ostring = "hello" ; in main()
/external/protobuf/ruby/compatibility_tests/v3.0.0/tests/
Dbasic.rb130 assert m.optional_string == ""
151 m.optional_string = "hello"
152 assert m.optional_string == "hello"
237 m.optional_string = nil
291 m.optional_string = ["FFFF"].pack('H*')
296 m.optional_string = "\u0100"
299 m.optional_string = "asdf".encode!('UTF-8')
301 m.optional_string.encode!('ASCII-8BIT')
878 m.optional_string = "hello"
946 assert_equal 'foo', m.optional_string
[all …]
/external/tensorflow/tensorflow/tools/proto_text/
Dtest.proto8 string optional_string = 1; field
39 string optional_string = 14; field
/external/protobuf/python/google/protobuf/internal/
Dmessage_test.py820 m2.optional_string = 'scalar string'
831 self.assertEqual(m1.optional_string, 'scalar string')
837 self.assertIsInstance(m1.optional_string, six.text_type)
1029 m.optional_string = str('')
1030 self.assertIsInstance(m.optional_string, six.text_type)
1456 messages[2].optional_string = 'hello'
1461 merged_message.optional_string = 'hello'
1621 self.assertEqual('', message.optional_string)
1632 message.optional_string = 'abc'
1645 self.assertEqual('', message.optional_string)
[all …]
Dreflection_test.py129 optional_string='optional_string',
134 self.assertEqual('optional_string', proto.optional_string)
190 optional_string='optional_string',
205 self.assertEqual('optional_string', proto.optional_string)
225 TypeError, unittest_pb2.TestAllTypes, optional_string=1234)
462 proto.optional_string = 'foo'
553 self.assertEqual('', proto.optional_string)
1463 proto2.optional_string = 'value'
1467 self.assertEqual('value', proto2.optional_string)
1594 proto1.optional_string = 'important-text'
[all …]
Dtext_format_test.py198 message.optional_string = 'a\nnew\nline'
340 message.optional_string = golden_unicode
354 message.optional_string = golden_unicode
524 self.assertEqual(msg2.optional_string, u'café')
526 self.assertEqual(msg2.optional_string, u'')
528 self.assertEqual(msg2.optional_string, u'café')
712 self.assertEqual(m.optional_string, self._GOLDEN_UNICODE)
724 self.assertEqual(m.optional_string, self._GOLDEN_UNICODE)
737 self.assertEqual(m.optional_string, self._GOLDEN_UNICODE)
745 self.assertEqual(m.optional_string, self._GOLDEN_UNICODE)
[all …]
/external/protobuf/src/google/protobuf/
Dproto3_lite_unittest.inc75 EXPECT_EQ("asdf", m.optional_string());
132 EXPECT_EQ("3456", msg1.optional_string());
133 EXPECT_EQ("123", msg2.optional_string());
Dno_field_presence_test.cc59 EXPECT_EQ(0, m.optional_string().size()); in CheckDefaultValues()
168 EXPECT_EQ("asdf", m.optional_string()); in CheckNonDefaultValues()
370 EXPECT_EQ("", message.optional_string()); in TEST()
475 EXPECT_EQ("test", dest.optional_string()); in TEST()
481 EXPECT_EQ("test2", dest.optional_string()); in TEST()
/external/protobuf/java/core/src/test/proto/com/google/protobuf/
Dfield_presence_test.proto51 string optional_string = 2; field
79 string optional_string = 2; field
/external/rust/crates/grpcio-sys/grpc/third_party/upb/tests/json/
Dtest.proto10 string optional_string = 5; field
/external/protobuf/objectivec/Tests/
Dtext_format_unittest_data.txt14 optional_string: "115"
/external/rust/crates/grpcio-sys/grpc/third_party/upb/tests/bindings/lua/
Dtest_upb.lua160 proto2_msg.optional_string = "\xff"
426 optional_string = invalid_utf8,
454 optional_string = "abc",
474 assert_equal("abc", msg.optional_string)
/external/protobuf/src/google/protobuf/testdata/
Dtext_format_unittest_data.txt14 optional_string: "115"
Dtext_format_unittest_data_oneof_implemented.txt14 optional_string: "115"
Dtext_format_unittest_data_pointy.txt14 optional_string: "115"
/external/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
Dtext_format_unittest_data.txt14 optional_string: "115"

1234