SVCS - English Documentation
Loading...
Searching...
No Matches
RemoteProtocolTest.cxx File Reference

Google Tests for RemoteProtocol class. More...

#include <gtest/gtest.h>
#include <iostream>
#include <sstream>
#include <filesystem>
#include <fstream>
#include <algorithm>
#include <memory>
#include "../../server/include/RemoteProtocol.hxx"
#include "../../services/ISubject.hxx"
#include "../../services/IObserver.hxx"
#include "../../services/Event.hxx"
#include "../../core/include/RepositoryManager.hxx"

Classes

class  svcs::test::server::MockEventBus
class  svcs::test::server::MockRepositoryManager
class  svcs::test::server::RemoteProtocolTest
class  svcs::test::server::RemoteProtocolIntegrationTest

Namespaces

namespace  svcs::test
 Comprehensive testing framework for SVCS version control system.
namespace  svcs::test::server
 Server component testing.

Functions

 svcs::test::server::TEST_F (RemoteProtocolTest, Construction)
 svcs::test::server::TEST_F (RemoteProtocolTest, ValidationMethods)
 svcs::test::server::TEST_F (RemoteProtocolTest, ObjectManagement)
 svcs::test::server::TEST_F (RemoteProtocolTest, EventNotifications)
 svcs::test::server::TEST_F (RemoteProtocolIntegrationTest, SimpleProtocolCommunication)
 svcs::test::server::TEST_F (RemoteProtocolIntegrationTest, StreamErrorConditions)
 svcs::test::server::TEST_F (RemoteProtocolTest, ErrorHandling)
 svcs::test::server::TEST_F (RemoteProtocolTest, RepositoryValidation)
 svcs::test::server::TEST_F (RemoteProtocolTest, ValidationPerformance)
int main (int argc, char **argv)

Detailed Description

Google Tests for RemoteProtocol class.

This file contains comprehensive unit tests for the RemoteProtocol class, verifying network communication, protocol message serialization/deserialization, error handling, and connection management with remote repositories.

The tests cover:

  • Connection establishment and authentication
  • Protocol message formatting and parsing
  • Data transfer reliability and integrity
  • Error recovery and timeout handling
  • Multi-threaded communication scenarios

Mock network components are used to simulate various network conditions and edge cases without requiring actual network connectivity.