Removing copy&paste code, part 1
[Issue#] N/A
[Problem] Duplicated code
[Cause] Copy&paste
[Solution] Extract common code, generalise it
[Verification] Build the package and run all tests
Changes:
- In test_collector:
- Created a macro for "OK" test result message
- Moved parsing of "--file" argument to a common function
- In widget dao ro, extracted namespaces from inside the methods to file level
and removed unnecessary namespace selection in variable declarations
- In popup_renderer, instead of duplicating code for adding 1, 2 or 3 buttons
to a popup, DoRender(btn1,btn2,btn3) now uses DoRender(btn1,btn2) to add first
two buttons, which in turn used DoRender(btn1) to add the first button.
- In security_origin_dao, hadResult now calls getResult instead of duplicating
the same select statement.
- Removed modules/widget_dao/dao/bind_to_dao.h - it wasn't used anywhere and it
was a copy of modules/event/include/dpl/event/model_bind_to_dao.h
Change-Id: I3fef08333844963b5987125dc36045fa185e4699