#include "chrome/browser/media/router/providers/cast/cast_activity_test_base.h"
#include <algorithm>
#include <memory>
#include <optional>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/mock_callback.h"
#include "base/test/values_test_util.h"
#include "base/values.h"
#include "chrome/browser/media/router/providers/cast/cast_activity_manager.h"
#include "chrome/browser/media/router/providers/cast/cast_session_client.h"
#include "chrome/browser/media/router/providers/cast/test_util.h"
#include "chrome/browser/media/router/test/provider_test_helpers.h"
#include "components/media_router/common/providers/cast/channel/cast_test_util.h"
#include "components/media_router/common/test/test_helper.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
ParseJsonDict;
NiceMock;
namespace media_router {
MockCastSessionClient::MockCastSessionClient(const std::string& client_id,
const url::Origin& origin,
int tab_id)
: … { … }
MockCastSessionClient::~MockCastSessionClient() { … }
std::vector<MockCastSessionClient*> MockCastSessionClient::instances_;
MockCastActivityManager::MockCastActivityManager() = default;
MockCastActivityManager::~MockCastActivityManager() = default;
const char* const CastActivityTestBase::kAppId = …;
const char* const CastActivityTestBase::kRouteId = …;
const char* const CastActivityTestBase::kSinkId = …;
const char* const CastActivityTestBase::kHashToken = …;
CastActivityTestBase::CastActivityTestBase() = default;
CastActivityTestBase::~CastActivityTestBase() = default;
void CastActivityTestBase::SetUp() { … }
void CastActivityTestBase::TearDown() { … }
void CastActivityTestBase::RunUntilIdle() { … }
std::unique_ptr<CastSessionClient> CastActivityTestBase::MakeClientForTest(
const std::string& client_id,
const url::Origin& origin,
int tab_id) { … }
MockCastSessionClient* CastActivityTestBase::AddMockClient(
CastActivity* activity,
const std::string& client_id,
int tab_id) { … }
}