Kaydet (Commit) 5c03dca7 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

More descriptive method name.

Change-Id: I7f0d68ee59e7a36254267d652de398cc371c7f8c
üst 8ac758d5
...@@ -57,7 +57,7 @@ public: ...@@ -57,7 +57,7 @@ public:
void testRemoveVetoableChangeListener(); void testRemoveVetoableChangeListener();
protected: protected:
virtual bool isChangeable(const rtl::OUString& rName); virtual bool isPropertyValueChangeable(const rtl::OUString& rName);
private: private:
void fillPropsToTest(const uno::Reference<beans::XPropertySetInfo>& xPropInfo); void fillPropsToTest(const uno::Reference<beans::XPropertySetInfo>& xPropInfo);
......
...@@ -69,6 +69,7 @@ void XPropertySet::testAddVetoableChangeListener() ...@@ -69,6 +69,7 @@ void XPropertySet::testAddVetoableChangeListener()
void XPropertySet::testSetPropertyValue() void XPropertySet::testSetPropertyValue()
{ {
testGetPropertySetInfo(); testGetPropertySetInfo();
uno::Reference<beans::XPropertySet> xPropSet(init(), UNO_QUERY_THROW);
// TODO: implement this. // TODO: implement this.
} }
...@@ -103,7 +104,7 @@ void XPropertySet::testRemoveVetoableChangeListener() ...@@ -103,7 +104,7 @@ void XPropertySet::testRemoveVetoableChangeListener()
// TODO: implement this. // TODO: implement this.
} }
bool XPropertySet::isChangeable(const rtl::OUString& rName) bool XPropertySet::isPropertyValueChangeable(const rtl::OUString& rName)
{ {
uno::Reference<beans::XPropertySet> xPropSet(init(), UNO_QUERY_THROW); uno::Reference<beans::XPropertySet> xPropSet(init(), UNO_QUERY_THROW);
try try
...@@ -177,7 +178,7 @@ void XPropertySet::fillPropsToTest(const uno::Reference<beans::XPropertySetInfo> ...@@ -177,7 +178,7 @@ void XPropertySet::fillPropsToTest(const uno::Reference<beans::XPropertySetInfo>
bool bBound = (aProp.Attributes & beans::PropertyAttribute::BOUND) != 0; bool bBound = (aProp.Attributes & beans::PropertyAttribute::BOUND) != 0;
bool bConstrained = (aProp.Attributes & beans::PropertyAttribute::CONSTRAINED) != 0; bool bConstrained = (aProp.Attributes & beans::PropertyAttribute::CONSTRAINED) != 0;
bool bCanChange = isChangeable(aProp.Name); bool bCanChange = isPropertyValueChangeable(aProp.Name);
if (bBound && bCanChange) if (bBound && bCanChange)
maPropsToTest.bound.push_back(aProp.Name); maPropsToTest.bound.push_back(aProp.Name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment