#include "chrome/browser/ui/webui/commerce/shopping_ui_handler_delegate.h"
#include "base/json/json_reader.h"
#include "base/uuid.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/webui/commerce/product_specifications_disclosure_dialog.h"
#include "chrome/browser/ui/webui/feedback/feedback_dialog.h"
#include "chrome/test/base/chrome_test_utils.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/commerce/core/commerce_utils.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/test_navigation_observer.h"
namespace {
const char kExampleUrl[] = …;
}
class ShoppingUiHandlerDelegateBrowserTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(ShoppingUiHandlerDelegateBrowserTest,
TestGetCurrentUrl) { … }
IN_PROC_BROWSER_TEST_F(ShoppingUiHandlerDelegateBrowserTest,
TestGetBookmarkForCurrentUrl) { … }
IN_PROC_BROWSER_TEST_F(ShoppingUiHandlerDelegateBrowserTest,
TestAddBookmarkForCurrentUrl) { … }
IN_PROC_BROWSER_TEST_F(ShoppingUiHandlerDelegateBrowserTest,
TestSwitchToOrOpenTab_SwitchToExistingTab) { … }
IN_PROC_BROWSER_TEST_F(ShoppingUiHandlerDelegateBrowserTest,
TestSwitchToOrOpenTab_OpenNewTab) { … }
IN_PROC_BROWSER_TEST_F(ShoppingUiHandlerDelegateBrowserTest,
TestSwitchToOrOpenTab_InvalidUrls) { … }
#if !BUILDFLAG(IS_CHROMEOS)
IN_PROC_BROWSER_TEST_F(ShoppingUiHandlerDelegateBrowserTest,
TestShowFeedbackForProductSpecifications) { … }
#endif
IN_PROC_BROWSER_TEST_F(ShoppingUiHandlerDelegateBrowserTest,
TestShowProductSpecificationsDisclosureDialog) { … }
IN_PROC_BROWSER_TEST_F(ShoppingUiHandlerDelegateBrowserTest,
TestShowProductSpecificationsSetForUuid) { … }