#include "chrome/browser/ui/views/commerce/price_tracking_bubble_dialog_view.h"
#include "base/memory/raw_ptr.h"
#include "base/test/mock_callback.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/signin/identity_test_environment_profile_adaptor.h"
#include "chrome/browser/sync/local_or_syncable_bookmark_sync_service_factory.h"
#include "chrome/browser/ui/views/bookmarks/bookmark_editor_view.h"
#include "chrome/test/base/browser_with_test_window_test.h"
#include "chrome/test/views/chrome_test_widget.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/browser/bookmark_utils.h"
#include "components/bookmarks/test/bookmark_test_helpers.h"
#include "components/strings/grit/components_strings.h"
#include "components/sync_bookmarks/bookmark_sync_service.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/image_model.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/views/controls/styled_label.h"
#include "ui/views/test/widget_test.h"
#include "ui/views/widget/any_widget_observer.h"
#include "ui/views/widget/unique_widget_ptr.h"
namespace {
const char kTestURL[] = …;
const char16_t kTestBookmarkTitle[] = …;
}
class PriceTrackingBubbleDialogViewUnitTest : public BrowserWithTestWindowTest { … };
class PriceTrackingBubbleDialogViewLayoutUnitTest
: public PriceTrackingBubbleDialogViewUnitTest,
public ::testing::WithParamInterface<bool> { … };
TEST_P(PriceTrackingBubbleDialogViewLayoutUnitTest, FUEBubble) { … }
TEST_P(PriceTrackingBubbleDialogViewLayoutUnitTest, NormalBubble) { … }
INSTANTIATE_TEST_SUITE_P(…);
class PriceTrackingBubbleDialogViewActionUnitTest
: public PriceTrackingBubbleDialogViewUnitTest { … };
TEST_F(PriceTrackingBubbleDialogViewActionUnitTest, AcceptFUEBubble) { … }
TEST_F(PriceTrackingBubbleDialogViewActionUnitTest, CancelNormalBubble) { … }
TEST_F(PriceTrackingBubbleDialogViewActionUnitTest,
ClickLinkInTheNormalBubble) { … }