From: Tom Robinson Date: Mon, 5 Sep 2016 10:49:51 +0000 (+0100) Subject: [3.0] Clipping API feature in Actor X-Git-Tag: accepted/tizen/3.0/ivi/20161011.043735~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=732dc52ee565624964d234275ac23d31f2ba465a;hp=d3512b31357c03a714ec76024df3b89b83e85475;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git [3.0] Clipping API feature in Actor Change-Id: Id290d6e41f1f2c31414472ef560e29d79f6128bd (cherry picked from commit c446f69576f8e2bdd5554a74d3f1cd745a7b4c9d) --- diff --git a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-trace-call-stack.cpp b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-trace-call-stack.cpp index 3f2e6e5..0054e59 100644 --- a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-trace-call-stack.cpp +++ b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-trace-call-stack.cpp @@ -130,6 +130,18 @@ bool TraceCallStack::FindMethodAndParams(std::string method, const NamedParams& return FindIndexFromMethodAndParams( method, params ) > -1; } +bool TraceCallStack::FindMethodAndParamsFromStartIndex( std::string method, std::string params, size_t& startIndex ) const +{ + for( size_t i = startIndex; i < mCallStack.size(); ++i ) + { + if( ( mCallStack[i].method.compare( method ) == 0 ) && ( mCallStack[i].paramList.compare( params ) == 0 ) ) + { + startIndex = i; + return true; + } + } + return false; +} /** * Search for a method in the stack with the given parameter list diff --git a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-trace-call-stack.h b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-trace-call-stack.h index 137bfaf..e1882ea 100644 --- a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-trace-call-stack.h +++ b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-trace-call-stack.h @@ -102,6 +102,19 @@ public: bool FindMethodAndParams(std::string method, const NamedParams& params) const; /** + * Search for a method in the stack with the given parameter list. + * The search is done from a given index. + * This allows the order of methods and parameters to be checked. + * @param[in] method The name of the method + * @param[in] params A comma separated list of parameter values + * @param[in/out] startIndex The method index to start looking from. + * This is updated if a method is found so subsequent + * calls can search for methods occuring after this one. + * @return True if the method was in the stack + */ + bool FindMethodAndParamsFromStartIndex( std::string method, std::string params, size_t& startIndex ) const; + + /** * Search for a method in the stack with the given parameter list * @param[in] method The name of the method * @param[in] params A comma separated list of parameter values