Quellcode-Bibliothek turn_server_unittest.cc
Sprache: C
/* * Copyright 2016 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree.
*/
// NOTE: This is a work in progress. Currently this file only has tests for // TurnServerConnection, a primitive class used by TurnServer.
namespace cricket {
class TurnServerConnectionTest : public ::testing::Test { public:
TurnServerConnectionTest() : thread_(&vss_), socket_factory_(&vss_) {}
void ExpectEqual(const TurnServerConnection& a, const TurnServerConnection& b) {
EXPECT_TRUE(a == b);
EXPECT_FALSE(a < b);
EXPECT_FALSE(b < a);
}
void ExpectNotEqual(const TurnServerConnection& a, const TurnServerConnection& b) {
EXPECT_FALSE(a == b); // We don't care which is less than the other, as long as only one is less // than the other.
EXPECT_TRUE((a < b) != (b < a));
}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.10Bemerkung:
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.