Inject unique_ptr/shared_ptr into the test instead of using <memory>

Summary:
Inject unique_ptr/shared_ptr into the test instead of using <memory>
Libraries might not be present on tests.
This fixes the break introduces at rL205854.

Reviewers: klimek

CC: cfe-commits

Differential Revision: http://reviews.llvm.org/D3330

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@205913 91177308-0d34-0410-b5e6-96231b3b80d8