Make string members of wakeup event struct to be deep copied 21/263621/2
authorJi-hoon Lee <dalton.lee@samsung.com>
Mon, 6 Sep 2021 12:00:04 +0000 (21:00 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Tue, 7 Sep 2021 07:37:47 +0000 (07:37 +0000)
commit0d546654f32e6c9963e2d5b574e42febb112d4c2
tree0b2ab617ffc77dff362a6f559c86979631e1d73e
parent7f6ab54bc32bd4f3372bbbb9f2391dca12876621
Make string members of wakeup event struct to be deep copied

This fixes the problem found when running the previously added test.

[ RUN      ] DefaultFixture.WakeupEventInfoPreservedForStringLiterals
[       OK ] DefaultFixture.WakeupEventInfoPreservedForStringLiterals (2 ms)
[ RUN      ] DefaultFixture.WakeupEventInfoPreservedForDynamicallyAllocatedStrings
[       OK ] DefaultFixture.WakeupEventInfoPreservedForDynamicallyAllocatedStrings (0 ms)
[----------] 2 tests from DefaultFixture (2 ms total)

Change-Id: I24fecd9a78767beda7fafce67f69fae6d53ebf1d
plugins/wakeup-manager/inc/wakeup_policy_default.h
plugins/wakeup-manager/src/wakeup_policy_default.cpp