#include <memory>
#include "base/functional/bind.h"
#include "base/values.h"
#include "chrome/browser/media/router/chrome_media_router_factory.h"
#include "chrome/browser/media/router/media_router_feature.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/media_router/media_router_ui_service.h"
#include "chrome/browser/ui/media_router/media_router_ui_service_factory.h"
#include "chrome/browser/ui/toolbar/toolbar_actions_model.h"
#include "chrome/browser/ui/toolbar/toolbar_actions_model_factory.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/testing_profile.h"
#include "components/media_router/browser/test/mock_media_router.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
class MockMediaRouterUIServiceObserver
: public media_router::MediaRouterUIService::Observer { … };
}
namespace media_router {
class MediaRouterUIServiceFactoryUnitTest : public testing::Test { … };
TEST_F(MediaRouterUIServiceFactoryUnitTest, CreateService) { … }
TEST_F(MediaRouterUIServiceFactoryUnitTest,
DoNotCreateActionControllerWhenDisabled) { … }
TEST_F(MediaRouterUIServiceFactoryUnitTest, DisablingMediaRouting) { … }
}