#include "ui/views/controls/menu/menu_model_adapter.h"
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "base/memory/raw_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "ui/base/models/menu_model.h"
#include "ui/base/models/menu_model_delegate.h"
#include "ui/views/controls/menu/menu_item_view.h"
#include "ui/views/controls/menu/menu_runner.h"
#include "ui/views/controls/menu/submenu_view.h"
#include "ui/views/test/views_test_base.h"
namespace {
constexpr int kRootIdBase = …;
constexpr int kSubmenuIdBase = …;
constexpr int kActionableSubmenuIdBase = …;
class MenuModelBase : public ui::MenuModel { … };
class SubmenuModel final : public MenuModelBase { … };
class ActionableSubmenuModel final : public MenuModelBase { … };
class RootModel final : public MenuModelBase { … };
void CheckSubmenu(const RootModel& model,
views::MenuItemView* menu,
views::MenuModelAdapter* delegate,
int submenu_id,
size_t expected_children,
size_t submenu_model_index,
int id) { … }
}
namespace views {
MenuModelAdapterTest;
TEST_F(MenuModelAdapterTest, BasicTest) { … }
}