#include <memory>
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/metrics/user_action_tester.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/browser/bookmark_node.h"
#include "components/bookmarks/common/bookmark_metrics.h"
#include "components/bookmarks/test/test_bookmark_client.h"
#include "components/commerce/core/commerce_feature_list.h"
#include "components/commerce/core/mock_shopping_service.h"
#include "components/commerce/core/price_tracking_utils.h"
#include "components/commerce/core/shopping_bookmark_model_observer.h"
#include "components/commerce/core/subscriptions/mock_subscriptions_manager.h"
#include "components/commerce/core/test_utils.h"
#include "components/power_bookmarks/core/power_bookmark_utils.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace commerce {
namespace {
class ShoppingBookmarkModelObserverTest : public testing::Test { … };
TEST_F(ShoppingBookmarkModelObserverTest, TestUnsubscribeOnBookmarkDeletion) { … }
TEST_F(ShoppingBookmarkModelObserverTest,
TestUnsubscribeOnBookmarkDeletion_MultipleBookmarks) { … }
TEST_F(ShoppingBookmarkModelObserverTest,
TestUnsubscribeOnBookmarkFolderDeletion) { … }
TEST_F(ShoppingBookmarkModelObserverTest,
TestUnsubscribeOnBookmarkFolderDeletion_SameProduct_SameFolder) { … }
TEST_F(ShoppingBookmarkModelObserverTest,
TestUnsubscribeOnBookmarkFolderDeletion_SameProduct_DifferentFolder) { … }
TEST_F(ShoppingBookmarkModelObserverTest,
TestMetaRemovalAndUnsubscribeOnURLChange) { … }
TEST_F(ShoppingBookmarkModelObserverTest,
TestMetaRemovalAndUnsubscribeOnURLChange_MultipleBookmarks) { … }
TEST_F(ShoppingBookmarkModelObserverTest, TestAutomaticTrackingOnAdd) { … }
TEST_F(ShoppingBookmarkModelObserverTest, TestShoppingCollectionChangeMetrics) { … }
}
}