DescriptionCleanup EXPECT/ASSERTs in unit tests in core/fetch and core/loader
- Use EXPECT_.*() where possible instead of ASSERT_.*()
- Use the argument order of EXPECT_EQ(expected, actual)
- Remove unnecessary casts
- Replace EXPECT_EQ/NE(nullptr) with EXPECT_FALSE/TRUE()
- Replace EXPECT_STREQ() with EXPECT_EQ() using WTF::String comparison
BUG=none
Committed: https://crrev.com/9cda388f3c8f935fefff65703b63b61ff77eefac
Cr-Commit-Position: refs/heads/master@{#417550}
Patch Set 1 #
Total comments: 24
Patch Set 2 : Use EXPECT_TRUE/FALSE instead of EXPECT_NE/EQ(nullptr) #Patch Set 3 : Replace EXPECT_STREQ(...utf8().data()) with EXPECT_EQ() #Patch Set 4 : Fix empty-null mismatch #Patch Set 5 : EXPECT #
Messages
Total messages: 11 (5 generated)
|