/*
- * 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.
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());