#include "chrome/browser/ui/tabs/existing_base_sub_menu_model.h"
#include <memory>
#include <vector>
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/test/base/browser_with_test_window_test.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "ui/base/models/simple_menu_model.h"
#include "url/gurl.h"
namespace {
constexpr int kMinCommandId = …;
constexpr int kParentNewCommandId = …;
constexpr int kExpectedFlags = …;
constexpr char16_t kItem1Text[] = …;
constexpr char16_t kTitleText[] = …;
constexpr char16_t kItem2Text[] = …;
class TestDelegate : public ui::SimpleMenuModel::Delegate { … };
class TestModel : public ExistingBaseSubMenuModel { … };
}
class ExistingBaseSubMenuModelTest : public BrowserWithTestWindowTest { … };
TEST_F(ExistingBaseSubMenuModelTest, IsCommandIdAlerted) { … }
TEST_F(ExistingBaseSubMenuModelTest, ExecuteCommand_New) { … }
TEST_F(ExistingBaseSubMenuModelTest, ExecuteCommand_Existing) { … }