Completed code, unit test and integration test for cg_cpm_eng_cpm

Change-Id: I38d95216926964283f422d0541f607b815ecfb79
Merge "Completed code, unit test and integration test for cg_cpm_eng_cpm"