/third_party/protobuf/src/google/protobuf/ |
D | test_util_lite.cc | 1027 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 …]
|
D | test_util.inc | 1187 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 …]
|
D | reflection_ops_unittest.cc | 133 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 …]
|
D | descriptor_unittest.cc | 3011 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 …]
|
D | extension_set_unittest.cc | 77 &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/ |
D | GeneratedMessageTest.Proto2.cs | 116 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/ |
D | CustomOptionsTest.cs | 91 … 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/ |
D | IExtendableMessage.cs | 46 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/ |
D | EnumValueDescriptor.cs | 93 var value = Proto.Options.GetExtension(extension); in GetOption() 103 return Proto.Options.GetExtension(extension).Clone(); in GetOption()
|
D | ReflectionUtil.cs | 150 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()
|
D | ServiceDescriptor.cs | 114 var value = Proto.Options.GetExtension(extension); in GetOption() 124 return Proto.Options.GetExtension(extension).Clone(); in GetOption()
|
D | MethodDescriptor.cs | 93 var value = Proto.Options.GetExtension(extension); in GetOption() 103 return Proto.Options.GetExtension(extension).Clone(); in GetOption()
|
D | EnumDescriptor.cs | 148 var value = Proto.Options.GetExtension(extension); in GetOption() 158 return Proto.Options.GetExtension(extension).Clone(); in GetOption()
|
D | OneofDescriptor.cs | 137 var value = proto.Options.GetExtension(extension); in GetOption() 147 return proto.Options.GetExtension(extension).Clone(); in GetOption()
|
D | ExtensionAccessor.cs | 61 return helper.GetExtension(message); in GetValue()
|
D | MessageDescriptor.cs | 307 var value = Proto.Options.GetExtension(extension); in GetOption() 317 return Proto.Options.GetExtension(extension).Clone(); in GetOption()
|
D | FieldDescriptor.cs | 339 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/ |
D | cpp_unittest.cc | 99 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/ |
D | view_unittest.cc | 76 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()
|
D | background_unittest.cc | 112 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()
|
D | chrome_alarms_unittest.cc | 67 CefRefPtr<CefExtension> extension = browser->GetHost()->GetExtension(); in OnLoadingStateChange() 89 CefRefPtr<CefExtension> extension = browser->GetHost()->GetExtension(); in GetResourceHandler()
|
D | chrome_storage_unittest.cc | 67 CefRefPtr<CefExtension> extension = browser->GetHost()->GetExtension(); in OnLoadingStateChange() 89 CefRefPtr<CefExtension> extension = browser->GetHost()->GetExtension(); in GetResourceHandler()
|
/third_party/cef/tests/cefclient/browser/ |
D | root_window_manager.cc | 78 << 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/ |
D | request_context_impl.cc | 527 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/ |
D | request_context_ctocpp.h | 76 CefRefPtr<CefExtension> GetExtension(const CefString& extension_id) override;
|