libaurum: Apply factory pattern for OCP, LSP using TDD
authorWoochan Lee <wc0917.lee@samsung.com>
Mon, 29 Jan 2024 11:30:01 +0000 (20:30 +0900)
committerHosang Kim <hosang12.kim@samsung.com>
Tue, 6 Feb 2024 04:11:27 +0000 (13:11 +0900)
commit42f57b8fec3c2718c5b98377866a0701e2a668a9
tree76cd83d491e74abc26571b1767994d8b93714374
parentfbb606cc78aea77d7260e91725617674f01b2e1e
libaurum: Apply factory pattern for OCP, LSP using TDD

Adds generateKey method and Tests for this.

apply factory pattern for Key generates it able to be added or changed
without changing exising code.

It also no problem in the operation of the program even if an object of a child
class is replaced with an object of the parent class.

For advantaging of being easy to maintain and highly extensibel.

Change-Id: I5ee504a82f2f7cc5c3ffea9be8914034975bf015
libaurum/inc/Impl/MockDeviceImpl.h
libaurum/inc/Impl/TizenDeviceImpl.h
libaurum/inc/Interface/IDevice.h
libaurum/inc/UiDevice.h
libaurum/src/Impl/MockDeviceImpl.cc
libaurum/src/Impl/TizenDeviceImpl.cc
libaurum/src/UiDevice.cc
org.tizen.aurum-bootstrap/src/Commands/SendKeyCommand.cc
tests/Test_UiDevice.cc