Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(610)

Unified Diff: third_party/WebKit/Source/wtf/HashMapTest.cpp

Issue 2386843002: reflow comments in wtf (Closed)
Patch Set: comments (heh!) Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/HashMap.h ('k') | third_party/WebKit/Source/wtf/HashSet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/HashMapTest.cpp
diff --git a/third_party/WebKit/Source/wtf/HashMapTest.cpp b/third_party/WebKit/Source/wtf/HashMapTest.cpp
index d3d28b3f619ded3c4dca10d86ed21fd198314cc0..8437fbf3c60668867047b41c1ab62dfe6f0cc191 100644
--- a/third_party/WebKit/Source/wtf/HashMapTest.cpp
+++ b/third_party/WebKit/Source/wtf/HashMapTest.cpp
@@ -68,9 +68,10 @@ int bucketForKey(double key) {
}
TEST(HashMapTest, DoubleHashCollisions) {
- // The "clobber" key here is one that ends up stealing the bucket that the -0 key
- // originally wants to be in. This makes the 0 and -0 keys collide and the test then
- // fails unless the FloatHash::equals() implementation can distinguish them.
+ // The "clobber" key here is one that ends up stealing the bucket that the -0
+ // key originally wants to be in. This makes the 0 and -0 keys collide and
+ // the test then fails unless the FloatHash::equals() implementation can
+ // distinguish them.
const double clobberKey = 6;
const double zeroKey = 0;
const double negativeZeroKey = -zeroKey;
@@ -294,7 +295,8 @@ TEST(HashMapTest, ValueTypeDestructed) {
class MoveOnly {
public:
- // kEmpty and kDeleted have special meanings when MoveOnly is used as the key of a hash table.
+ // kEmpty and kDeleted have special meanings when MoveOnly is used as the key
+ // of a hash table.
enum { kEmpty = 0, kDeleted = -1, kMovedOut = -2 };
explicit MoveOnly(int value = kEmpty) : m_value(value) {}
@@ -317,7 +319,8 @@ class MoveOnly {
};
struct MoveOnlyHashTraits : public GenericHashTraits<MoveOnly> {
- // This is actually true, but we pretend that it's false to disable the optimization.
+ // This is actually true, but we pretend that it's false to disable the
+ // optimization.
static const bool emptyValueIsZero = false;
static const bool hasIsEmptyValueFunction = true;
@@ -409,7 +412,8 @@ TEST(HashMapTest, MoveOnlyValueType) {
}
TEST(HashMapTest, MoveOnlyKeyType) {
- // The content of this test is similar to the test above, except that the types of key and value are swapped.
+ // The content of this test is similar to the test above, except that the
+ // types of key and value are swapped.
using TheMap = HashMap<MoveOnly, int>;
TheMap map;
{
« no previous file with comments | « third_party/WebKit/Source/wtf/HashMap.h ('k') | third_party/WebKit/Source/wtf/HashSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698