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

Unified Diff: Source/core/html/parser/HTMLSrcsetParserTest.cpp

Issue 311053011: Initialize all ImageCandidate's member variables (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added initialization test Created 6 years, 6 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 | « Source/core/html/parser/HTMLSrcsetParser.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLSrcsetParserTest.cpp
diff --git a/Source/core/html/parser/HTMLSrcsetParserTest.cpp b/Source/core/html/parser/HTMLSrcsetParserTest.cpp
index fcb6b2f37cd4c536d4909939109f60da5b1e4a8c..76236102f90d97eab2a2c81bc02716c0c448f8d9 100644
--- a/Source/core/html/parser/HTMLSrcsetParserTest.cpp
+++ b/Source/core/html/parser/HTMLSrcsetParserTest.cpp
@@ -20,6 +20,15 @@ typedef struct {
int outputResourceWidth;
} TestCase;
+TEST(ImageCandidateTest, Basic)
+{
+ ImageCandidate candidate;
+ ASSERT_EQ(candidate.density(), 1);
+ ASSERT_EQ(candidate.resourceWidth(), -1);
+ ASSERT_EQ(candidate.srcOrigin(), false);
+
+}
+
TEST(HTMLSrcsetParserTest, Basic)
{
TestCase testCases[] = {
« no previous file with comments | « Source/core/html/parser/HTMLSrcsetParser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698