Move the code outside the conditions. The test sources themselves are also required for Visual Studio. Change-Id: Id5e93ebc7369e1807eba0b9dc4f7d0f18033d794