#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/ui/tab_contents/chrome_web_contents_view_handle_drop.h"
#include <memory>
#include <optional>
#include <set>
#include <string>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/bind.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.h"
#include "chrome/browser/enterprise/connectors/connectors_service.h"
#include "chrome/browser/enterprise/connectors/test/deep_scanning_test_utils.h"
#include "chrome/browser/enterprise/connectors/test/fake_content_analysis_delegate.h"
#include "chrome/browser/policy/dm_token_utils.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile.h"
#include "chrome/test/base/testing_profile_manager.h"
#include "components/prefs/scoped_user_pref_update.h"
#include "components/safe_browsing/core/common/features.h"
#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/drop_data.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
class DragDropTestContentAnalysisDelegate
: public enterprise_connectors::test::FakeContentAnalysisDelegate { … };
class ChromeWebContentsViewDelegateHandleOnPerformingDrop
: public testing::Test { … };
TEST_F(ChromeWebContentsViewDelegateHandleOnPerformingDrop, NoData) { … }
TEST_F(ChromeWebContentsViewDelegateHandleOnPerformingDrop,
WithData_NoneDocOp) { … }
TEST_F(ChromeWebContentsViewDelegateHandleOnPerformingDrop, UrlTitle) { … }
TEST_F(ChromeWebContentsViewDelegateHandleOnPerformingDrop, Text) { … }
TEST_F(ChromeWebContentsViewDelegateHandleOnPerformingDrop, Html) { … }
TEST_F(ChromeWebContentsViewDelegateHandleOnPerformingDrop, Files) { … }
TEST_F(ChromeWebContentsViewDelegateHandleOnPerformingDrop, Directories) { … }