#include "chrome/browser/ui/views/sharing_hub/preview_view.h"
#include "chrome/browser/share/share_attempt.h"
#include "chrome/test/views/chrome_views_test_base.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/gfx/image/image_unittest_util.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h"
#include "ui/views/test/widget_test.h"
#include "ui/views/view_utils.h"
namespace {
PreviewViewTest;
views::Label* FindLabelWithText(views::View* root, std::u16string text) { … }
views::ImageView* FindImage(views::View* root) { … }
ui::ImageModel BuildTestImage(SkColor color) { … }
SkColor ImageTopLeftColor(ui::ImageModel model) { … }
std::unique_ptr<sharing_hub::PreviewView> BuildTestPreview() { … }
TEST_F(PreviewViewTest, IncludesTitle) { … }
TEST_F(PreviewViewTest, IncludesURL) { … }
TEST_F(PreviewViewTest, IncludesImage) { … }
}