chromium/remoting/protocol/jingle_messages_unittest.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "remoting/protocol/jingle_messages.h"

#include <stddef.h>

#include "base/strings/string_util.h"
#include "remoting/protocol/content_description.h"
#include "remoting/signaling/xmpp_constants.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/libjingle_xmpp/xmllite/xmlelement.h"

QName;
XmlAttr;
XmlElement;

namespace remoting::protocol {

namespace {

const char kXmlNsNs[] =;
const char kXmlNs[] =;

// Compares two XML blobs and returns true if they are
// equivalent. Otherwise |error| is set to error message that
// specifies the first test.
bool VerifyXml(const XmlElement* exp,
               const XmlElement* val,
               std::string* error) {}

// Parses |message_text| to JingleMessage.
void ParseJingleMessageFromXml(const char* message_text,
                               JingleMessage* parsed) {}


// Parses |message_text| to JingleMessage then attempts to format it to XML and
// verifies that the same XML content is generated.
void ParseFormatAndCompare(const char* message_text, JingleMessage* parsed) {}

}  // namespace

// Session-initiate message for current ICE-based protocol.
TEST(JingleMessageTest, SessionInitiate) {}

// Session-initiate message for WebRTC-based protocol.
TEST(JingleMessageTest, SessionInitiateWebrtc) {}

// Session-initiate message for hybrid clients that support both versions of the
// protocol.
TEST(JingleMessageTest, SessionInitiateHybrid) {}

// Old GICE session-initiate message from older clients that are no longer
// supported.
TEST(JingleMessageTest, SessionInitiateNoIce) {}

// Session-accept message for current ICE-based protocol.
TEST(JingleMessageTest, SessionAccept) {}

// Session-accept message for WebRTC-based protocol.
TEST(JingleMessageTest, SessionAcceptWebrtc) {}

// Old GICE session-accept message from older host that are no longer
// supported.
TEST(JingleMessageTest, SessionAcceptNoIce) {}

TEST(JingleMessageTest, IceTransportInfo) {}

TEST(JingleMessageTest, SessionTerminate) {}

TEST(JingleMessageTest, SessionInfo) {}

TEST(JingleMessageReplyTest, ToXml) {}

TEST(JingleMessageTest, ErrorMessage) {}

TEST(JingleMessageTest, RemotingErrorCode) {}

TEST(JingleMessageTest, AttachmentsMessage) {}

}  // namespace remoting::protocol