chromium/remoting/signaling/ftl_registration_manager_unittest.cc

// Copyright 2019 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/signaling/ftl_registration_manager.h"

#include "base/memory/raw_ptr.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "base/uuid.h"
#include "remoting/base/fake_oauth_token_getter.h"
#include "remoting/base/protobuf_http_status.h"
#include "remoting/proto/ftl/v1/ftl_messages.pb.h"
#include "remoting/signaling/ftl_client_uuid_device_id_provider.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace remoting {

namespace {

_;

SignInGaiaResponseCallback;

constexpr char kAuthToken[] =;
constexpr int64_t kAuthTokenExpiresInMicroseconds =;  // = 1 day
constexpr base::TimeDelta kAuthTokenExpiration =;

MATCHER_P(HasErrorCode, error_code, "") {}

MATCHER(IsStatusOk, "") {}

void VerifySignInGaiaRequest(const ftl::SignInGaiaRequest& request) {}

decltype(auto) RespondOkToSignInGaia(const std::string& registration_id) {}

}  // namespace

class FtlRegistrationManagerTest : public testing::Test {};

TEST_F(FtlRegistrationManagerTest, SignInGaiaAndAutorefresh) {}

TEST_F(FtlRegistrationManagerTest, FailedToSignIn_Backoff) {}

TEST_F(FtlRegistrationManagerTest, SignOut) {}

}  // namespace remoting