libaurum: Apply factory pattern for OCP, LSP using TDD 72/305172/3
authorWoochan Lee <wc0917.lee@samsung.com>
Mon, 29 Jan 2024 11:30:01 +0000 (20:30 +0900)
committerwoochan lee <wc0917.lee@samsung.com>
Wed, 31 Jan 2024 04:17:36 +0000 (04:17 +0000)
commit1902d2a9dca0ecfc0473afa365bf741b905b1108
tree76cd83d491e74abc26571b1767994d8b93714374
parent251e6762341109c4ea7fce49f8991d5e62ca2a9d
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