chromium/ui/views/controls/menu/menu_model_adapter_unittest.cc

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

#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 {

// Base command id for test menu and its submenu.
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

namespace views {

MenuModelAdapterTest;

TEST_F(MenuModelAdapterTest, BasicTest) {}

}  // namespace views