#include "ui/actions/actions.h"
#include <optional>
#include "base/callback_list.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/weak_ptr.h"
#include "base/test/metrics/histogram_tester.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/class_property.h"
namespace actions {
enum class ContextValues { … };
namespace {
const std::u16string kActionText = …;
const std::u16string kChild1Text = …;
const std::u16string kChild2Text = …;
const std::u16string kActionAccessibleText = …;
const std::u16string kActionTooltipText = …;
#define TEST_ACTION_IDS …
#include "ui/actions/action_id_macros.inc"
enum TestActionIds : ActionId { … };
#include "ui/actions/action_id_macros.inc"
DEFINE_UI_CLASS_PROPERTY_KEY(…)
class ActionManagerTest : public testing::Test { … };
ActionItemTest;
ActionIdMapTest;
}
}
DECLARE_EXPORTED_UI_CLASS_PROPERTY_TYPE(, actions::ContextValues)
DEFINE_UI_CLASS_PROPERTY_TYPE(…)
namespace actions {
TEST_F(ActionManagerTest, Harness) { … }
TEST_F(ActionManagerTest, InitializerTest) { … }
TEST_F(ActionManagerTest, ActionRegisterAndInvoke) { … }
TEST_F(ActionManagerTest, ActionNotFound) { … }
TEST_F(ActionItemTest, ScopedFindActionTest) { … }
TEST_F(ActionIdMapTest, TestCreateActionId) { … }
TEST_F(ActionIdMapTest, MapBetweenEnumAndString) { … }
#define MAP_ACTION_IDS_TO_STRINGS
#include "ui/actions/action_id_macros.inc"
TEST_F(ActionIdMapTest, MergeMaps) { … }
#include "ui/actions/action_id_macros.inc"
#undef MAP_ACTION_IDS_TO_STRINGS
TEST_F(ActionIdMapTest, TestEnumNotFound) { … }
TEST_F(ActionItemTest, ActionBuilderTest) { … }
TEST_F(ActionItemTest, ActionBuilderChildrenTest) { … }
TEST_F(ActionItemTest, TestGetChildren) { … }
TEST_F(ActionItemTest, TestItemBatchUpdate) { … }
TEST_F(ActionItemTest, TestGroupIdExclusion) { … }
TEST_F(ActionItemTest, TestActionItemPinnableKey) { … }
TEST_F(ActionItemTest, TestActionProperties) { … }
TEST_F(ActionItemTest, TestActionWeakPtr) { … }
TEST_F(ActionItemTest, TextActionInvocationContext) { … }
}