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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp

Issue 1865543002: Add DocumentWriteEvaluator unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move anonymous namespace (trybots prev) Created 4 years, 8 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
Index: third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp b/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp
index beedbbd5588e26413d68a570289acd4cdb1ac816..cdd62e4c7b1467c082fb4b233c27ab0fadc4a03f 100644
--- a/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp
@@ -41,6 +41,15 @@ DocumentWriteEvaluator::DocumentWriteEvaluator(const Document& document)
m_userAgent = document.userAgent();
}
+// For unit testing.
+DocumentWriteEvaluator::DocumentWriteEvaluator(const String& pathName, const String& hostName, const String& protocol, const String& userAgent)
+ : m_pathName(pathName)
+ , m_hostName(hostName)
+ , m_protocol(protocol)
+ , m_userAgent(userAgent)
+{
+}
+
DocumentWriteEvaluator::~DocumentWriteEvaluator()
{
}

Powered by Google App Engine
This is Rietveld 408576698