diff --git a/env/env_basic_test.cc b/env/env_basic_test.cc index 05173bae3..194853b67 100644 --- a/env/env_basic_test.cc +++ b/env/env_basic_test.cc @@ -97,8 +97,11 @@ static ROT13BlockCipher encrypt_block_rot13(32); static CTREncryptionProvider encrypt_provider_ctr(encrypt_block_rot13); -static std::unique_ptr encrypt_env(new NormalizingEnvWrapper( - NewEncryptedEnv(Env::Default(), &encrypt_provider_ctr))); +static std::unique_ptr ecpt_env(NewEncryptedEnv(Env::Default(), + &encrypt_provider_ctr)); + +static std::unique_ptr encrypt_env( + new NormalizingEnvWrapper(ecpt_env.get())); INSTANTIATE_TEST_CASE_P(EncryptedEnv, EnvBasicTestWithParam, ::testing::Values(encrypt_env.get())); INSTANTIATE_TEST_CASE_P(EncryptedEnv, EnvMoreTestWithParam,