Merge "UTC coverage for MathUtils,Matrix,Uint16Pair,PropertyTypes" into tizen
authorKimmo Hoikka <kimmo.hoikka@samsung.com>
Tue, 26 May 2015 17:50:35 +0000 (10:50 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Tue, 26 May 2015 17:50:36 +0000 (10:50 -0700)
automated-tests/src/dali/utc-Dali-CustomActor.cpp
dali/public-api/actors/custom-actor-impl.h

index 579dba4..44b15c7 100644 (file)
@@ -1931,8 +1931,20 @@ int UtcDaliCustomActorTypeRegistry(void)
   catch( DaliException& e )
   {
     exception = e.condition;
-    DALI_TEST_EQUALS( exception, "handle && \"BaseObject handle is empty\"", NULL );
+    DALI_TEST_EQUALS( exception, "handle && \"BaseObject handle is empty\"", TEST_LOCATION );
   }
 
   END_TEST;
 }
+
+
+int UtcDaliCustomActorGetExtensionP(void)
+{
+  TestApplication application;
+
+  TestCustomActor custom = TestCustomActor::NewVariant5();
+
+  DALI_TEST_CHECK( NULL == custom.GetImplementation().GetExtension() );
+
+  END_TEST;
+}
index e1873f2..c29d1cb 100644 (file)
@@ -60,6 +60,8 @@ class DALI_IMPORT_API CustomActorImpl : public Dali::RefObject
 {
 public:
 
+  class Extension; ///< Forward declare future extension interface
+
   /**
    * @brief Virtual destructor.
    */
@@ -129,7 +131,7 @@ public:
    * @param[in] index The Property index that was set.
    * @param[in] propertyValue The value to set.
    */
-  virtual void OnPropertySet( Property::Index index, Property::Value propertyValue ) ;
+  virtual void OnPropertySet( Property::Index index, Property::Value propertyValue );
 
   /**
    * @brief Called when the owning actor's size is set e.g. using Actor::SetSize().
@@ -268,6 +270,16 @@ public:
    */
   virtual void OnLayoutNegotiated( float size, Dimension::Type dimension ) = 0;
 
+  /**
+   * Retrieve the extension for this control
+   *
+   * @return The extension if available, NULL otherwise
+   */
+  virtual Extension* GetExtension()
+  {
+    return NULL;
+  }
+
 protected: // For derived classes
 
   // Flags for the constructor