Home
last modified time | relevance | path

Searched refs:MessageHeader (Results 1 – 25 of 26) sorted by relevance

12

/external/chromium_org/extensions/browser/api/cast_channel/
Dcast_framer.cc25 MessageFramer::MessageHeader::MessageHeader() : message_size(0) { in MessageHeader() function in extensions::core_api::cast_channel::MessageFramer::MessageHeader
28 void MessageFramer::MessageHeader::SetMessageSize(size_t size) { in SetMessageSize()
36 void MessageFramer::MessageHeader::PrependToString(std::string* str) { in PrependToString()
37 MessageHeader output = *this; in PrependToString()
39 size_t header_size = MessageHeader::header_size(); in PrependToString()
48 void MessageFramer::MessageHeader::Deserialize(char* data, in Deserialize()
49 MessageHeader* header) { in Deserialize()
57 size_t MessageFramer::MessageHeader::header_size() { in header_size()
62 size_t MessageFramer::MessageHeader::max_message_size() { in max_message_size()
66 std::string MessageFramer::MessageHeader::ToString() { in ToString()
[all …]
Dcast_transport_unittest.cc326 Read(NotNull(), MessageFramer::MessageHeader::header_size(), _)) in TEST_F()
335 MessageFramer::MessageHeader::header_size(), in TEST_F()
338 MessageFramer::MessageHeader::header_size(), in TEST_F()
340 MessageFramer::MessageHeader::header_size())), in TEST_F()
347 socket_cbs.Pop(MessageFramer::MessageHeader::header_size()); in TEST_F()
349 Read(NotNull(), MessageFramer::MessageHeader::header_size(), _)) in TEST_F()
352 MessageFramer::MessageHeader::header_size()); in TEST_F()
364 Read(NotNull(), MessageFramer::MessageHeader::header_size(), _)) in TEST_F()
373 MessageFramer::MessageHeader::header_size(), in TEST_F()
376 MessageFramer::MessageHeader::header_size(), in TEST_F()
[all …]
Dcast_framer.h52 struct MessageHeader { struct
53 MessageHeader();
59 static void Deserialize(char* data, MessageHeader* header);
Dcast_framer_unittest.cc30 buffer_->SetCapacity(MessageFramer::MessageHeader::max_message_size()); in SetUp()
62 cast_message_str_.size() - MessageFramer::MessageHeader::header_size(), in TEST_F()
80 payload.append(MessageFramer::MessageHeader::max_message_size() + 1, 'x'); in TEST_F()
111 for (size_t i = MessageFramer::MessageHeader::header_size(); in TEST_F()
115 MessageFramer::MessageHeader::header_size(), in TEST_F()
Dcast_socket_unittest.cc204 return msg.length() - MessageFramer::MessageHeader::header_size(); in ComputeBodySize()
257 AddReadResult(mode, data, MessageFramer::MessageHeader::header_size()); in AddReadResultForMessage()
259 mode, data + MessageFramer::MessageHeader::header_size(), body_size); in AddReadResultForMessage()
954 size_t size = MessageFramer::MessageHeader::max_message_size() + 1; in TEST_F()
1174 base::HostToNet32(MessageFramer::MessageHeader::max_message_size() + 1); in TEST_F()
Dcast_transport.cc42 read_buffer_->SetCapacity(MessageFramer::MessageHeader::max_message_size()); in CastTransport()
/external/chromium_org/mojo/android/javatests/src/org/chromium/mojo/bindings/
DRouterTest.java60 MessageHeader header = new MessageHeader(requestMessageType, in testSendingToRouterWithResponse()
61 MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG, 0); in testSendingToRouterWithResponse()
70 MessageHeader receivedHeader = new Message( in testSendingToRouterWithResponse()
78 MessageHeader responseHeader = new MessageHeader(responseMessageType, in testSendingToRouterWithResponse()
79 MessageHeader.MESSAGE_IS_RESPONSE_FLAG, receivedHeader.getRequestId()); in testSendingToRouterWithResponse()
89 assertEquals(MessageHeader.MESSAGE_IS_RESPONSE_FLAG, in testSendingToRouterWithResponse()
104 MessageHeader header = new MessageHeader(requestMessageType, in testReceivingViaRouterWithResponse()
105 MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG, requestId); in testReceivingViaRouterWithResponse()
119 MessageHeader responseHeader = new MessageHeader(responseMessageType, in testReceivingViaRouterWithResponse()
120 MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG, requestId); in testReceivingViaRouterWithResponse()
DMessageHeaderTest.java29 ServiceMessage message = p.serializeWithHeader(null, new MessageHeader(type)); in testSimpleMessageHeader()
31 MessageHeader header = message.getHeader(); in testSimpleMessageHeader()
55 new MessageHeader(type, MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG, 0)); in testMessageWithRequestIdHeader()
58 MessageHeader header = message.getHeader(); in testMessageWithRequestIdHeader()
59 assertTrue(header.validateHeader(type, MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG)); in testMessageWithRequestIdHeader()
61 assertEquals(MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG, header.getFlags()); in testMessageWithRequestIdHeader()
DValidationTest.java134 MessageHeader header = message.asServiceMessage().getHeader(); in accept()
135 if (header.hasFlag(MessageHeader.MESSAGE_IS_RESPONSE_FLAG)) { in accept()
/external/chromium_org/mojo/public/cpp/bindings/lib/
Dmessage_internal.h20 struct MessageHeader : internal::StructHeader { struct
24 MOJO_COMPILE_ASSERT(sizeof(MessageHeader) == 16, bad_sizeof_MessageHeader); argument
26 struct MessageHeaderWithRequestID : MessageHeader {
33 MessageHeader header;
36 MOJO_COMPILE_ASSERT(sizeof(MessageData) == sizeof(MessageHeader),
Dmessage_header_validator.cc15 bool IsValidMessageHeader(const MessageHeader* header) { in IsValidMessageHeader()
21 if (header->num_bytes != sizeof(MessageHeader)) { in IsValidMessageHeader()
69 if (!ValidateStructHeader(message->data(), sizeof(MessageHeader), 2, in Accept()
Dmessage_builder.cc19 : buf_(sizeof(MessageHeader) + payload_size) { in MessageBuilder()
20 MessageHeader* header; in MessageBuilder()
/external/chromium_org/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
DServiceMessage.java16 private final MessageHeader mHeader;
23 public ServiceMessage(Message baseMessage, MessageHeader header) { in ServiceMessage()
25 assert header.equals(new org.chromium.mojo.bindings.MessageHeader(baseMessage)); in ServiceMessage()
34 this(baseMessage, new org.chromium.mojo.bindings.MessageHeader(baseMessage)); in ServiceMessage()
49 public MessageHeader getHeader() { in getHeader()
DMessageHeader.java14 public class MessageHeader { class
53 public MessageHeader(int type) { in MessageHeader() method in MessageHeader
63 public MessageHeader(int type, int flags, long requestId) { in MessageHeader() method in MessageHeader
75 MessageHeader(Message message) { in MessageHeader() method in MessageHeader
192 MessageHeader other = (MessageHeader) object; in equals()
DRouterImpl.java116 assert messageWithHeader.getHeader().hasFlag(MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG); in acceptWithResponder()
164 MessageHeader header = message.asServiceMessage().getHeader(); in handleIncomingMessage()
165 if (header.hasFlag(MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG)) { in handleIncomingMessage()
173 } else if (header.hasFlag(MessageHeader.MESSAGE_IS_RESPONSE_FLAG)) { in handleIncomingMessage()
DStruct.java112 public ServiceMessage serializeWithHeader(Core core, MessageHeader header) { in serializeWithHeader()
/external/chromium_org/mojo/python/tests/
Dmessaging_unittest.py78 header = messaging.MessageHeader(0xdeadbeaf, messaging.NO_FLAG)
84 other_header = messaging.MessageHeader.Deserialize(data)
92 header = messaging.MessageHeader(0xdeadbeaf,
102 other_header = messaging.MessageHeader.Deserialize(data)
112 other_header = messaging.MessageHeader.Deserialize(data)
117 header = messaging.MessageHeader(0xdeadbeaf,
128 other_header = messaging.MessageHeader.Deserialize(data)
164 header_data = messaging.MessageHeader(0, messaging.NO_FLAG).Serialize()
175 header_data = messaging.MessageHeader(0, messaging.NO_FLAG).Serialize()
183 header_data = messaging.MessageHeader(
[all …]
/external/chromium_org/chromeos/network/onc/
Donc_validator.cc83 LOG(ERROR) << MessageHeader() << "Found value '" << onc_value in MapValue()
164 std::string message = MessageHeader() + "Field name '" + field_name + in MapField()
245 LOG(WARNING) << MessageHeader() << "Found the field '" in ValidateRecommendedField()
277 std::string message = MessageHeader() + "The " + error_cause + in ValidateRecommendedField()
351 LOG(ERROR) << MessageHeader() << "Found value '" << actual_value << in FieldExistsAndHasNoValidValue()
368 LOG(ERROR) << MessageHeader() << "Found value '" << actual_value in FieldExistsAndIsNotInRange()
396 LOG(ERROR) << MessageHeader() << "Found an empty string, but expected a " in FieldExistsAndIsEmpty()
407 std::string message = MessageHeader() + "The required field '" + field_name + in RequireField()
423 LOG(ERROR) << MessageHeader() << "Found a duplicate GUID " << guid << "."; in CheckGuidIsUniqueAndAddToSet()
435 LOG(ERROR) << MessageHeader() << "Client certificate patterns are " in IsCertPatternInDevicePolicy()
[all …]
Donc_validator.h200 std::string MessageHeader();
/external/chromium_org/mojo/public/tools/bindings/generators/java_templates/
Dinterface_definition.tmpl53 org.chromium.mojo.bindings.MessageHeader.NO_FLAG
55 org.chromium.mojo.bindings.MessageHeader.MESSAGE_EXPECTS_RESPONSE_FLAG
57 org.chromium.mojo.bindings.MessageHeader.MESSAGE_IS_RESPONSE_FLAG
102 org.chromium.mojo.bindings.MessageHeader header = messageWithHeader.getHeader();
190 new org.chromium.mojo.bindings.MessageHeader(
199 … new org.chromium.mojo.bindings.MessageHeader({{method|method_ordinal_name}})));
243 org.chromium.mojo.bindings.MessageHeader header = messageWithHeader.getHeader();
281 new org.chromium.mojo.bindings.MessageHeader(
/external/nanopb-c/tests/message_sizes/
Dmessages2.proto5 required MessageHeader header = 1;
Dmessages1.proto17 message MessageHeader { message
/external/chromium_org/mojo/public/python/mojo/bindings/
Dmessaging.py22 class MessageHeader(object): class
59 return MessageHeader(message_type, flags, request_id, data)
128 self._header = MessageHeader.Deserialize(self.data)
/external/chromium_org/mojo/public/cpp/bindings/
Dmessage.h40 const internal::MessageHeader* header() const { return &data_->header; } in header()
/external/chromium_org/mojo/public/java/
DBUILD.gn40 "bindings/src/org/chromium/mojo/bindings/MessageHeader.java",

12