Fix the linking of various tests against GMock
[folly.git] / folly / test / EvictingCacheMapTest.cpp
index 6de403906228002937bc2ec7a7a54baf8780ffb2..85a4a5ed319dd676889ff1a91a881360e3bf3719 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -317,15 +317,15 @@ TEST(EvictingCacheMap, DestructorInvocationTest) {
     int* ref;
   };
 
+  int sum;
   EvictingCacheMap<int, SumInt> map(0);
+
   EXPECT_EQ(0, map.size());
   EXPECT_TRUE(map.empty());
   for (int i = 0; i < 100; i++) {
     EXPECT_FALSE(map.exists(i));
   }
 
-  int sum;
-
   for (int i = 0; i < 100; i++) {
     map.set(i, SumInt(i, &sum));
     EXPECT_EQ(i + 1, map.size());