Add mock singleton injection support to folly/experimental Singleton (t5653148).
authorAdrian Hamza <adriah@fb.com>
Wed, 10 Dec 2014 17:43:25 +0000 (09:43 -0800)
committerDave Watson <davejwatson@fb.com>
Thu, 11 Dec 2014 16:02:02 +0000 (08:02 -0800)
commitaccea1ae7213b528a91110ced5248d16ca5f3b11
tree3c32f3b9a813091e472b968ee2186c09bc10f42c
parente5f8a09e441addacde4bac3a3c169232d0d31194
Add mock singleton injection support to folly/experimental Singleton (t5653148).

Summary: Add mock singleton injection support to folly/experimental Singleton (t5653148).

Test Plan:
Added unit tests for MockSingleton, all unit tests passed.
Validated this works for my scenario.

Reviewed By: andrii@fb.com

Subscribers: trunkagent, njormrod, folly-diffs@

FB internal diff: D1690946

Tasks: 5653148

Signature: t1:1690946:1418080331:948d7051a5e5a2653dc393c123f188c56072c6db
folly/experimental/Singleton.cpp
folly/experimental/Singleton.h
folly/experimental/test/SingletonTest.cpp