chromium/chrome/browser/ui/views/commerce/price_tracking_view_unittest.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/ui/views/commerce/price_tracking_view.h"

#include "base/test/metrics/user_action_tester.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/commerce/shopping_service_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/test/base/browser_with_test_window_test.h"
#include "chrome/test/views/chrome_test_widget.h"
#include "components/bookmarks/browser/bookmark_utils.h"
#include "components/bookmarks/test/bookmark_test_helpers.h"
#include "components/commerce/core/commerce_feature_list.h"
#include "components/commerce/core/mock_shopping_service.h"
#include "components/commerce/core/pref_names.h"
#include "components/commerce/core/price_tracking_utils.h"
#include "components/commerce/core/shopping_service.h"
#include "components/commerce/core/test_utils.h"
#include "components/prefs/pref_service.h"
#include "components/strings/grit/components_strings.h"
#include "components/sync_bookmarks/bookmark_sync_service.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/image_model.h"
#include "ui/events/event.h"
#include "ui/gfx/geometry/point.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/test/test_platform_native_widget.h"
#include "ui/views/view.h"
#include "ui/views/widget/unique_widget_ptr.h"
#include "ui/views/widget/widget.h"

namespace {
const char kTestURL[] =;
const uint64_t kProductClusterId =;
}  // namespace

class PriceTrackingViewTest : public BrowserWithTestWindowTest {};

TEST_F(PriceTrackingViewTest, InitialPriceTrackEnabled) {}

TEST_F(PriceTrackingViewTest, ToggleSucceeded) {}

TEST_F(PriceTrackingViewTest, ToggleFailed) {}

TEST_F(PriceTrackingViewTest, ToggleRecordTracked) {}

TEST_F(PriceTrackingViewTest, ToggleRecordUntracked) {}

TEST_F(PriceTrackingViewTest, EmailTurnedOff) {}

TEST_F(PriceTrackingViewTest, EmailTurnedOn) {}

TEST_F(PriceTrackingViewTest, ToggleReactsToSubscriptionChanges) {}

TEST_F(PriceTrackingViewTest, InitialPriceTrackDisabled) {}