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

Unified Diff: third_party/WebKit/Source/wtf/HashSetTest.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/HashSet.h ('k') | third_party/WebKit/Source/wtf/HashTable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/HashSetTest.cpp
diff --git a/third_party/WebKit/Source/wtf/HashSetTest.cpp b/third_party/WebKit/Source/wtf/HashSetTest.cpp
index 31943f88ac0285515ca0b6836e1ee897720c217a..f560d35df887642203dd063a5bcfefa846793419 100644
--- a/third_party/WebKit/Source/wtf/HashSetTest.cpp
+++ b/third_party/WebKit/Source/wtf/HashSetTest.cpp
@@ -58,7 +58,8 @@ void testReserveCapacity() {
EXPECT_EQ(initialCapacity, testSet.capacity());
}
- // Adding items up to less than half the capacity should not change the capacity.
+ // Adding items up to less than half the capacity should not change the
+ // capacity.
unsigned capacityLimit = initialCapacity / 2 - 1;
for (size_t i = size; i < capacityLimit; ++i) {
testSet.add(i + 1);
@@ -275,7 +276,8 @@ TEST(HashSetTest, MoveShouldNotMakeCopy) {
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, int id = 0)
@@ -305,7 +307,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;
@@ -492,7 +495,8 @@ TEST(HashSetTest, InitializerList) {
EXPECT_TRUE(oneTwoThree.contains(2));
EXPECT_TRUE(oneTwoThree.contains(3));
- // Other ways of construction: as a function parameter and in a return statement.
+ // Other ways of construction: as a function parameter and in a return
+ // statement.
EXPECT_TRUE(isOneTwoThree({1, 2, 3}));
EXPECT_TRUE(isOneTwoThree(returnOneTwoThree()));
}
« no previous file with comments | « third_party/WebKit/Source/wtf/HashSet.h ('k') | third_party/WebKit/Source/wtf/HashTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698