#include "remoting/client/client_telemetry_logger.h"
#include <memory>
#include <string>
#include "base/containers/circular_deque.h"
#include "base/memory/ptr_util.h"
#include "remoting/protocol/connection_to_host.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
static bool Contains(const remoting::ChromotingEvent& actual,
const remoting::ChromotingEvent& expected) { … }
}
namespace remoting {
class FakeLogWriter : public ChromotingEventLogWriter { … };
void FakeLogWriter::AddExpectedEvent(const ChromotingEvent& entry) { … }
void FakeLogWriter::Log(const ChromotingEvent& entry) { … }
class ClientTelemetryLoggerTest : public testing::Test { … };
void ClientTelemetryLoggerTest::SetUp() { … }
TEST_F(ClientTelemetryLoggerTest, LogSessionStateChange) { … }
TEST_F(ClientTelemetryLoggerTest, LogStatistics) { … }
TEST_F(ClientTelemetryLoggerTest, SessionIdGeneration) { … }
TEST_F(ClientTelemetryLoggerTest, SessionIdExpiration) { … }
}