#include "chrome/browser/ui/views/media_preview/media_preview_feature.h"
#include <memory>
#include "base/check.h"
#include "base/memory/raw_ptr.h"
#include "base/test/bind.h"
#include "base/time/time.h"
#include "chrome/browser/origin_trials/origin_trials_factory.h"
#include "chrome/browser/ui/views/media_preview/media_preview_metrics.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/browser/origin_trials_controller_delegate.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/mojom/origin_trial_feature/origin_trial_feature.mojom-shared.h"
#include "url/gurl.h"
#include "url/origin.h"
OriginTrialFeature;
UiLocation;
_;
Return;
StrictMock;
namespace content {
class BrowserContext;
}
class MockOriginTrialsDelegate
: public content::OriginTrialsControllerDelegate { … };
class MediaPreviewsTestingProfile : public TestingProfile { … };
class MediaPreviewFeatureTest : public testing::Test { … };
TEST_F(MediaPreviewFeatureTest, TestFeatureDisabled) { … }
TEST_F(MediaPreviewFeatureTest, TestFeatureEnabledNoOriginTrial) { … }
TEST_F(MediaPreviewFeatureTest, TestFeatureEnabledInvalidUrls) { … }
TEST_F(MediaPreviewFeatureTest, TestFeatureEnabledNullDelegate) { … }
TEST_F(MediaPreviewFeatureTest, TestFeatureEnabledRequestedInOriginTrial) { … }
TEST_F(MediaPreviewFeatureTest, TestFeatureEnabledEmbeddedInOriginTrial) { … }