#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "components/open_from_clipboard/clipboard_recent_content_generic.h"
#include <memory>
#include <string>
#include <utility>
#include "base/containers/contains.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 "base/time/time.h"
#include "build/build_config.h"
#include "components/open_from_clipboard/clipboard_recent_content_features.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/clipboard/test/test_clipboard.h"
#include "ui/gfx/image/image_unittest_util.h"
#include "ui/gfx/skia_util.h"
#include "url/gurl.h"
#include "url/url_util.h"
namespace {
class HasDataCallbackWaiter { … };
}
const char kChromeUIScheme[] = …;
class ClipboardRecentContentGenericTest : public testing::Test { … };
TEST_F(ClipboardRecentContentGenericTest, RecognizesURLs) { … }
TEST_F(ClipboardRecentContentGenericTest,
OlderContentNotSuggestedDefaultLimit) { … }
TEST_F(ClipboardRecentContentGenericTest, OlderContentNotSuggestedLowerLimit) { … }
TEST_F(ClipboardRecentContentGenericTest, GetClipboardContentAge) { … }
TEST_F(ClipboardRecentContentGenericTest, SuppressClipboardContent) { … }
TEST_F(ClipboardRecentContentGenericTest, GetRecentTextFromClipboard) { … }
TEST_F(ClipboardRecentContentGenericTest, ClearClipboardContent) { … }
TEST_F(ClipboardRecentContentGenericTest, HasRecentImageFromClipboard) { … }
TEST_F(ClipboardRecentContentGenericTest, HasRecentContentFromClipboard_URL) { … }
TEST_F(ClipboardRecentContentGenericTest, HasRecentContentFromClipboard_Text) { … }
TEST_F(ClipboardRecentContentGenericTest, HasRecentContentFromClipboard_Image) { … }