#include "ui/base/class_property.h"
#include <limits.h>
#include <string>
#include <utility>
#include <vector>
#include "base/compiler_specific.h"
#include "base/memory/raw_ptr.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
DEFINE_UI_CLASS_PROPERTY_TYPE(…)
DEFINE_UI_CLASS_PROPERTY_TYPE(…)
DEFINE_UI_CLASS_PROPERTY_TYPE(…)
namespace {
class TestProperty { … };
class TestCascadingProperty { … };
void* TestProperty::last_deleted_ = …;
class AssignableTestProperty { … };
DEFINE_OWNED_UI_CLASS_PROPERTY_KEY(…)
DEFINE_OWNED_UI_CLASS_PROPERTY_KEY(…)
DEFINE_CASCADING_OWNED_UI_CLASS_PROPERTY_KEY(…)
}
DEFINE_UI_CLASS_PROPERTY_TYPE(…)
DEFINE_UI_CLASS_PROPERTY_TYPE(…)
DEFINE_UI_CLASS_PROPERTY_TYPE(…)
namespace ui {
namespace test {
namespace {
class TestPropertyHandler : public PropertyHandler { … };
const int kDefaultIntValue = …;
const char* kDefaultStringValue = …;
const char* kTestStringValue = …;
const float kDefaultFloatValue = …;
DEFINE_UI_CLASS_PROPERTY_KEY(…)
DEFINE_UI_CLASS_PROPERTY_KEY(…)
DEFINE_UI_CLASS_PROPERTY_KEY(…)
}
TEST(PropertyTest, Property) { … }
TEST(PropertyTest, OwnedProperty) { … }
TEST(PropertyTest, AcquireAllPropertiesFrom) { … }
TEST(PropertyTest, AssignableProperty) { … }
TEST(PropertyTest, SetProperty_ForwardsParametersCorrectly) { … }
TEST(PropertyTest, PropertyChangedEvent) { … }
TEST(PropertyTest, CascadingProperties) { … }
TEST(PropertyTest, DISABLED_CheckedOwnedProperties) { … }
}
}