#include "base/memory/raw_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "chrome/browser/ui/views/menu_test_base.h"
#include "ui/base/themed_vector_icon.h"
#include "ui/views/controls/menu/menu_item_view.h"
#include "ui/views/controls/menu/submenu_view.h"
ASCIIToUTF16;
template <int INDEX>
class MenuItemViewTestBasic : public MenuTestBase { … };
MenuItemViewTestBasic0;
MenuItemViewTestBasic1;
MenuItemViewTestBasic2;
VIEW_TEST(MenuItemViewTestBasic0, SelectItem0)
VIEW_TEST(MenuItemViewTestBasic1, SelectItem1)
VIEW_TEST(MenuItemViewTestBasic2, SelectItem2)
template <int INSERT_INDEX, int SELECT_INDEX>
class MenuItemViewTestInsert : public MenuTestBase { … };
MenuItemViewTestInsert00;
MenuItemViewTestInsert02;
MenuItemViewTestInsert10;
MenuItemViewTestInsert12;
MenuItemViewTestInsert20;
MenuItemViewTestInsert22;
#if defined(MEMORY_SANITIZER)
#define MAYBE_InsertItem00 …
#else
#define MAYBE_InsertItem00 …
#endif
VIEW_TEST(MenuItemViewTestInsert00, MAYBE_InsertItem00)
VIEW_TEST(MenuItemViewTestInsert02, DISABLED_InsertItem02)
VIEW_TEST(MenuItemViewTestInsert10, InsertItem10)
#if defined(MEMORY_SANITIZER)
#define MAYBE_InsertItem12 …
#else
#define MAYBE_InsertItem12 …
#endif
VIEW_TEST(MenuItemViewTestInsert12, MAYBE_InsertItem12)
#if defined(MEMORY_SANITIZER)
#define MAYBE_InsertItem20 …
#else
#define MAYBE_InsertItem20 …
#endif
VIEW_TEST(MenuItemViewTestInsert20, MAYBE_InsertItem20)
VIEW_TEST(MenuItemViewTestInsert22, InsertItem22)
template <int INSERT_INDEX>
class MenuItemViewTestInsertWithSubmenu : public MenuTestBase { … };
MenuItemViewTestInsertWithSubmenu0;
MenuItemViewTestInsertWithSubmenu1;
VIEW_TEST(MenuItemViewTestInsertWithSubmenu0, InsertItemWithSubmenu0)
VIEW_TEST(MenuItemViewTestInsertWithSubmenu1, InsertItemWithSubmenu1)
template <int REMOVE_INDEX, int SELECT_INDEX>
class MenuItemViewTestRemove : public MenuTestBase { … };
MenuItemViewTestRemove00;
MenuItemViewTestRemove01;
MenuItemViewTestRemove10;
MenuItemViewTestRemove11;
MenuItemViewTestRemove20;
MenuItemViewTestRemove21;
VIEW_TEST(MenuItemViewTestRemove00, RemoveItem00)
#if BUILDFLAG(IS_OZONE)
#define MAYBE_RemoveItem01 …
#else
#define MAYBE_RemoveItem01 …
#endif
VIEW_TEST(MenuItemViewTestRemove01, MAYBE_RemoveItem01)
VIEW_TEST(MenuItemViewTestRemove10, RemoveItem10)
VIEW_TEST(MenuItemViewTestRemove11, RemoveItem11)
VIEW_TEST(MenuItemViewTestRemove20, RemoveItem20)
#if BUILDFLAG(IS_OZONE) || BUILDFLAG(IS_LINUX)
#define MAYBE_RemoveItem21 …
#else
#define MAYBE_RemoveItem21 …
#endif
VIEW_TEST(MenuItemViewTestRemove21, MAYBE_RemoveItem21)
template <int REMOVE_INDEX>
class MenuItemViewTestRemoveWithSubmenu : public MenuTestBase { … };
MenuItemViewTestRemoveWithSubmenu0;
MenuItemViewTestRemoveWithSubmenu1;
#if BUILDFLAG(IS_OZONE)
#define MAYBE_RemoveItemWithSubmenu0 …
#else
#define MAYBE_RemoveItemWithSubmenu0 …
#endif
VIEW_TEST(MenuItemViewTestRemoveWithSubmenu0, MAYBE_RemoveItemWithSubmenu0)
#if BUILDFLAG(IS_OZONE)
#define MAYBE_RemoveItemWithSubmenu1 …
#else
#define MAYBE_RemoveItemWithSubmenu1 …
#endif
VIEW_TEST(MenuItemViewTestRemoveWithSubmenu1, MAYBE_RemoveItemWithSubmenu1)