#include "remoting/host/corp_host_status_logger.h"
#include <memory>
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/test/mock_callback.h"
#include "base/time/time.h"
#include "remoting/base/logging_service_client.h"
#include "remoting/proto/logging_service.h"
#include "remoting/protocol/credentials_type.h"
#include "remoting/protocol/protocol_mock_objects.h"
#include "remoting/protocol/session_authz_authenticator.h"
#include "remoting/protocol/session_authz_reauthorizer.h"
#include "remoting/protocol/session_observer.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace remoting {
namespace {
_;
Return;
ReturnRef;
constexpr char kFakeSessionId[] = …;
constexpr char kFakeReauthToken[] = …;
class MockLoggingServiceClient final : public LoggingServiceClient { … };
}
class CorpHostStatusLoggerTest : public testing::Test { … };
CorpHostStatusLoggerTest::CorpHostStatusLoggerTest() { … }
CorpHostStatusLoggerTest::~CorpHostStatusLoggerTest() { … }
void CorpHostStatusLoggerTest::SetUpSessionAuthzAuthenticator() { … }
TEST_F(CorpHostStatusLoggerTest, UnsubscribeOnceDestroyed) { … }
TEST_F(CorpHostStatusLoggerTest, IgnoreUninterestingState) { … }
TEST_F(CorpHostStatusLoggerTest, IgnoreNonSessionAuthzSession) { … }
TEST_F(CorpHostStatusLoggerTest, IgnoreSessionWithoutSessionAuthzId) { … }
TEST_F(CorpHostStatusLoggerTest,
ReportsSessionDisconnectedForSessionWithoutReauthorizer) { … }
TEST_F(CorpHostStatusLoggerTest, ReportsSessionDisconnectedForClosed) { … }
TEST_F(CorpHostStatusLoggerTest, ReportsSessionDisconnectedForFailed) { … }
}