chromium/ui/base/models/simple_menu_model_unittest.cc

// Copyright 2018 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/base/models/simple_menu_model.h"

#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/color/color_id.h"
#include "ui/gfx/image/image_unittest_util.h"
#include "ui/gfx/paint_vector_icon.h"
#include "ui/gfx/vector_icon_types.h"

namespace ui {

namespace {

DECLARE_ELEMENT_IDENTIFIER_VALUE();
DEFINE_ELEMENT_IDENTIFIER_VALUE(kTestElementID);

constexpr int kAlertedCommandId =;

class DelegateBase : public SimpleMenuModel::Delegate {};

class MockDelegate : public DelegateBase {};

TEST(SimpleMenuModelTest, AddSeparatorPreventsEmptySections) {}

TEST(SimpleMenuModelTest, SetLabel) {}

TEST(SimpleMenuModelTest, SetEnabledAt) {}

TEST(SimpleMenuModelTest, SetVisibleAt) {}

TEST(SimpleMenuModelTest, IsEnabledAtWithNoDelegate) {}

TEST(SimpleMenuModelTest, IsEnabledAtWithDelegateAndCommandEnabled) {}

TEST(SimpleMenuModelTest, IsEnabledAtWithDelegateAndCommandNotEnabled) {}

TEST(SimpleMenuModelTest, IsEnabledAtWithDelegateTitle) {}

TEST(SimpleMenuModelTest, IsVisibleAtWithDelegateAndCommandVisible) {}

TEST(SimpleMenuModelTest, IsVisibleAtWithDelegateAndCommandNotVisible) {}

TEST(SimpleMenuModelTest, IsAlertedAtViaDelegate) {}

TEST(SimpleMenuModelTest, SetIsNewFeatureAt) {}

TEST(SimpleMenuModelTest, SetElementIdentifierAt) {}

TEST(SimpleMenuModelTest, HasIconsViaDelegate) {}

TEST(SimpleMenuModelTest, HasIconsViaAddItem) {}

TEST(SimpleMenuModelTest, HasIconsViaVectorIcon) {}

TEST(SimpleMenuModelTest, InheritsSubMenuAlert) {}

}  // namespace

}  // namespace ui