#include "chrome/browser/enterprise/connectors/analysis/content_analysis_downloads_delegate.h"
#include <gtest/gtest.h>
#include "base/strings/strcat.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/enterprise/connectors/analysis/content_analysis_features.h"
#include "chrome/browser/enterprise/connectors/common.h"
#include "components/download/public/common/mock_download_item.h"
namespace enterprise_connectors {
namespace {
constexpr char kTestUrl[] = …;
constexpr char kTestUrl2[] = …;
constexpr char kTestInvalidUrl[] = …;
constexpr char16_t kTestMessage[] = …;
constexpr char16_t kTestMessage2[] = …;
constexpr char16_t kTestFile[] = …;
}
class ContentAnalysisDownloadsDelegateTest : public testing::Test { … };
TEST_F(ContentAnalysisDownloadsDelegateTest, TestOpenFile) { … }
TEST_F(ContentAnalysisDownloadsDelegateTest, TestDiscardFileWarning) { … }
TEST_F(ContentAnalysisDownloadsDelegateTest, TestDiscardFileBlock) { … }
TEST_F(ContentAnalysisDownloadsDelegateTest, TestNoMessageOrUrlReturnsNullOpt) { … }
TEST_F(ContentAnalysisDownloadsDelegateTest, TestGetMessageAndUrl) { … }
TEST_F(ContentAnalysisDownloadsDelegateTest,
TestCustomRuleMessageAndCustomMessage) { … }
TEST_F(ContentAnalysisDownloadsDelegateTest,
TestCustomRuleMessageAndCustomMessageInvalidUrl) { … }
}