chromium/remoting/client/client_telemetry_logger_unittest.cc

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

#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 {

// Returns true if |actual| has all fields that |expected| has and the values
// also match. |actual| can have fields that |expected| doesn't have but not the
// other way around.
static bool Contains(const remoting::ChromotingEvent& actual,
                     const remoting::ChromotingEvent& expected) {}

}  // namespace

namespace remoting {

// The fake log writer will pass the test IFF:
// 1. The caller logs an entry when the writer expects an entry to be logged.
// 2. The caller logs an entry with all key-value pairs found in the expected
//    entry.
// 3. There are no more expected log entries when the writer destructs.
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) {}

}  // namespace remoting