Home
last modified time | relevance | path

Searched refs:GetExtension (Results 1 – 25 of 73) sorted by relevance

123

/third_party/protobuf/src/google/protobuf/
Dtest_util_lite.cc1027 message.GetExtension(unittest::optionalgroup_extension_lite).has_a()); in ExpectAllExtensionsSet()
1029 message.GetExtension(unittest::optional_nested_message_extension_lite) in ExpectAllExtensionsSet()
1032 message.GetExtension(unittest::optional_foreign_message_extension_lite) in ExpectAllExtensionsSet()
1035 message.GetExtension(unittest::optional_import_message_extension_lite) in ExpectAllExtensionsSet()
1039 .GetExtension(unittest::optional_public_import_message_extension_lite) in ExpectAllExtensionsSet()
1042 message.GetExtension(unittest::optional_lazy_message_extension_lite) in ExpectAllExtensionsSet()
1053 EXPECT_EQ(101, message.GetExtension(unittest::optional_int32_extension_lite)); in ExpectAllExtensionsSet()
1054 EXPECT_EQ(102, message.GetExtension(unittest::optional_int64_extension_lite)); in ExpectAllExtensionsSet()
1056 message.GetExtension(unittest::optional_uint32_extension_lite)); in ExpectAllExtensionsSet()
1058 message.GetExtension(unittest::optional_uint64_extension_lite)); in ExpectAllExtensionsSet()
[all …]
Dtest_util.inc1187 EXPECT_TRUE(message.GetExtension(UNITTEST::optionalgroup_extension).has_a());
1188 EXPECT_TRUE(message.GetExtension(UNITTEST::optional_nested_message_extension)
1190 EXPECT_TRUE(message.GetExtension(UNITTEST::optional_foreign_message_extension)
1192 EXPECT_TRUE(message.GetExtension(UNITTEST::optional_import_message_extension)
1195 message.GetExtension(UNITTEST::optional_public_import_message_extension)
1198 message.GetExtension(UNITTEST::optional_lazy_message_extension).has_bb());
1207 EXPECT_EQ(101, message.GetExtension(UNITTEST::optional_int32_extension));
1208 EXPECT_EQ(102, message.GetExtension(UNITTEST::optional_int64_extension));
1209 EXPECT_EQ(103, message.GetExtension(UNITTEST::optional_uint32_extension));
1210 EXPECT_EQ(104, message.GetExtension(UNITTEST::optional_uint64_extension));
[all …]
Dreflection_ops_unittest.cc133 message.GetExtension(unittest::optional_int32_extension)); in TEST()
139 message.GetExtension(unittest::optional_string_extension)); in TEST()
145 message.GetExtension(unittest::repeated_int32_extension, 1)); in TEST()
146 int32 i = message.GetExtension(unittest::repeated_int32_extension, 0); in TEST()
236 &message.GetExtension(unittest::optionalgroup_extension)); in TEST()
238 &message.GetExtension(unittest::optional_nested_message_extension)); in TEST()
241 &message.GetExtension(unittest::optional_foreign_message_extension)); in TEST()
243 &message.GetExtension(unittest::optional_import_message_extension)); in TEST()
317 EXPECT_EQ(1, message.GetExtension(unittest::optional_nested_message_extension) in TEST()
321 message.GetExtension(unittest::repeated_nested_message_extension, 0) in TEST()
[all …]
Ddescriptor_unittest.cc3011 file->options().GetExtension(protobuf_unittest::file_opt1)); in TEST()
3013 message->options().GetExtension(protobuf_unittest::message_opt1)); in TEST()
3015 field->options().GetExtension(protobuf_unittest::field_opt1)); in TEST()
3017 field->options().GetExtension(protobuf_unittest::field_opt2)); in TEST()
3018 EXPECT_EQ(-99, oneof->options().GetExtension(protobuf_unittest::oneof_opt1)); in TEST()
3019 EXPECT_EQ(-789, enm->options().GetExtension(protobuf_unittest::enum_opt1)); in TEST()
3020 EXPECT_EQ(123, enm->value(1)->options().GetExtension( in TEST()
3023 service->options().GetExtension(protobuf_unittest::service_opt1)); in TEST()
3025 method->options().GetExtension(protobuf_unittest::method_opt1)); in TEST()
3037 EXPECT_EQ(false, options->GetExtension(protobuf_unittest::bool_opt)); in TEST()
[all …]
Dextension_set_unittest.cc77 &message.GetExtension(unittest::optionalgroup_extension)); in TEST()
79 &message.GetExtension(unittest::optional_nested_message_extension)); in TEST()
82 &message.GetExtension(unittest::optional_foreign_message_extension)); in TEST()
84 &message.GetExtension(unittest::optional_import_message_extension)); in TEST()
113 &message.GetExtension(unittest::optionalgroup_extension)); in TEST()
115 &message.GetExtension(unittest::optional_nested_message_extension)); in TEST()
118 &message.GetExtension(unittest::optional_foreign_message_extension)); in TEST()
120 &message.GetExtension(unittest::optional_import_message_extension)); in TEST()
135 message.GetExtension(unittest::optional_int64_extension); in TEST()
140 EXPECT_EQ(0, message.GetExtension(unittest::optional_int64_extension)); in TEST()
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DGeneratedMessageTest.Proto2.cs116 Assert.AreEqual(false, message.GetExtension(OptionalBoolExtension)); in DefaultExtensionValues()
117 Assert.AreEqual(ByteString.Empty, message.GetExtension(OptionalBytesExtension)); in DefaultExtensionValues()
118 Assert.AreEqual(0.0, message.GetExtension(OptionalDoubleExtension)); in DefaultExtensionValues()
119 Assert.AreEqual(0, message.GetExtension(OptionalFixed32Extension)); in DefaultExtensionValues()
120 Assert.AreEqual(0L, message.GetExtension(OptionalFixed64Extension)); in DefaultExtensionValues()
121 Assert.AreEqual(0.0f, message.GetExtension(OptionalFloatExtension)); in DefaultExtensionValues()
122 … Assert.AreEqual(ForeignEnum.ForeignFoo, message.GetExtension(OptionalForeignEnumExtension)); in DefaultExtensionValues()
123 Assert.IsNull(message.GetExtension(OptionalForeignMessageExtension)); in DefaultExtensionValues()
124 … Assert.AreEqual(ImportEnum.ImportFoo, message.GetExtension(OptionalImportEnumExtension)); in DefaultExtensionValues()
125 Assert.IsNull(message.GetExtension(OptionalImportMessageExtension)); in DefaultExtensionValues()
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DCustomOptionsTest.cs91 … Assert.AreEqual(0, UnittestProto3Reflection.Descriptor.GetOptions().GetExtension(FileOpt1)); in OptionPresenceCanBeDetected()
95 …876543210UL, UnittestCustomOptionsProto3Reflection.Descriptor.GetOptions().GetExtension(FileOpt1)); in OptionPresenceCanBeDetected()
103 … AssertOption(-100, customOptions.TryGetInt32, Int32Opt, d.GetOption, d.GetOptions().GetExtension); in ScalarOptions()
104 …Option(12.3456789f, customOptions.TryGetFloat, FloatOpt, d.GetOption, d.GetOptions().GetExtension); in ScalarOptions()
105 …567890123456789d, customOptions.TryGetDouble, DoubleOpt, d.GetOption, d.GetOptions().GetExtension); in ScalarOptions()
106 …ello, \"World\"", customOptions.TryGetString, StringOpt, d.GetOption, d.GetOptions().GetExtension); in ScalarOptions()
107 …f8("Hello\0World"), customOptions.TryGetBytes, BytesOpt, d.GetOption, d.GetOptions().GetExtension); in ScalarOptions()
108 …ype2, EnumFetcher<TestEnumType>(customOptions), EnumOpt, d.GetOption, d.GetOptions().GetExtension); in ScalarOptions()
116 … { 99, 88 } }, customOptions.TryGetMessage, ComplexOpt1, d.GetOption, d.GetOptions().GetExtension); in MessageOptions()
124 customOptions.TryGetMessage, ComplexOpt2, d.GetOption, d.GetOptions().GetExtension); in MessageOptions()
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf/
DIExtendableMessage.cs46 TValue GetExtension<TValue>(Extension<T, TValue> extension); in GetExtension() method
52 RepeatedField<TValue> GetExtension<TValue>(RepeatedExtension<T, TValue> extension); in GetExtension() method
/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/
DEnumValueDescriptor.cs93 var value = Proto.Options.GetExtension(extension); in GetOption()
103 return Proto.Options.GetExtension(extension).Clone(); in GetOption()
DReflectionUtil.cs150 object GetExtension(IMessage message); in GetExtension() method
218 public object GetExtension(IMessage message) in GetExtension() method in Google.Protobuf.Reflection.ReflectionUtil.ExtensionReflectionHelper
229 return extensionMessage.GetExtension(extension as Extension<T1, T3>); in GetExtension()
302 extensionMessage.GetExtension(extension as RepeatedExtension<T1, T3>).Clear(); in ClearExtension()
DServiceDescriptor.cs114 var value = Proto.Options.GetExtension(extension); in GetOption()
124 return Proto.Options.GetExtension(extension).Clone(); in GetOption()
DMethodDescriptor.cs93 var value = Proto.Options.GetExtension(extension); in GetOption()
103 return Proto.Options.GetExtension(extension).Clone(); in GetOption()
DEnumDescriptor.cs148 var value = Proto.Options.GetExtension(extension); in GetOption()
158 return Proto.Options.GetExtension(extension).Clone(); in GetOption()
DOneofDescriptor.cs137 var value = proto.Options.GetExtension(extension); in GetOption()
147 return proto.Options.GetExtension(extension).Clone(); in GetOption()
DExtensionAccessor.cs61 return helper.GetExtension(message); in GetValue()
DMessageDescriptor.cs307 var value = Proto.Options.GetExtension(extension); in GetOption()
317 return Proto.Options.GetExtension(extension).Clone(); in GetOption()
DFieldDescriptor.cs339 var value = Proto.Options.GetExtension(extension); in GetOption()
349 return Proto.Options.GetExtension(extension).Clone(); in GetOption()
/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_unittest.cc99 EXPECT_EQ(123, message.GetExtension(ExtensionMessage::repeated_int32_ext, 0)); in TEST()
127 EXPECT_EQ(123, message.GetExtension(protobuf_unittest::void_)); in TEST()
/third_party/cef/tests/ceftests/extensions/
Dview_unittest.cc76 CefRefPtr<CefExtension> extension = browser->GetHost()->GetExtension(); in OnLoadingStateChange()
104 CefRefPtr<CefExtension> extension = browser->GetHost()->GetExtension(); in GetResourceHandler()
128 CefRefPtr<CefExtension> extension = browser->GetHost()->GetExtension(); in OnMessage()
Dbackground_unittest.cc112 CefRefPtr<CefExtension> extension = browser->GetHost()->GetExtension(); in OnLoadingStateChange()
140 CefRefPtr<CefExtension> extension = browser->GetHost()->GetExtension(); in GetResourceHandler()
195 CefRefPtr<CefExtension> extension = browser->GetHost()->GetExtension(); in OnMessage()
Dchrome_alarms_unittest.cc67 CefRefPtr<CefExtension> extension = browser->GetHost()->GetExtension(); in OnLoadingStateChange()
89 CefRefPtr<CefExtension> extension = browser->GetHost()->GetExtension(); in GetResourceHandler()
Dchrome_storage_unittest.cc67 CefRefPtr<CefExtension> extension = browser->GetHost()->GetExtension(); in OnLoadingStateChange()
89 CefRefPtr<CefExtension> extension = browser->GetHost()->GetExtension(); in GetResourceHandler()
/third_party/cef/tests/cefclient/browser/
Droot_window_manager.cc78 << browser->GetHost()->GetExtension()->GetIdentifier().ToString(); in GetActiveBrowser()
81 DCHECK(!active_browser->GetHost()->GetExtension()); in GetActiveBrowser()
192 browser->GetHost()->GetExtension(); in HasRootWindowAsExtension()
/third_party/cef/libcef/browser/
Drequest_context_impl.cc527 CefRefPtr<CefExtension> extension = GetExtension(extension_id); in DidLoadExtension()
533 return !!GetExtension(extension_id); in HasExtension()
546 CefRefPtr<CefExtension> CefRequestContextImpl::GetExtension( in GetExtension() function in CefRequestContextImpl
551 return browser_context()->GetExtension(extension_id); in GetExtension()
/third_party/cef/libcef_dll/ctocpp/
Drequest_context_ctocpp.h76 CefRefPtr<CefExtension> GetExtension(const CefString& extension_id) override;

123