finish resize manager and testcase

Signed-off-by: qdaxb <uaxb@hotmail.com>